@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600&family=Roboto+Slab:wght@700&family=Roboto:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* https://www.fontsquirrel.com/fonts/Harting */
@font-face {
    font-family: "Unicephalon";
    src: url('../fonts/unicephalon/unicephalon.heavy.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    min-width: 280px;
}

body {
    min-height: 100%;
    height: 100%;
    margin: 0;
    /* padding: 1em; */
    padding: 0 0 0 1em;
    color: rgba(255, 255, 255, 1);
    background-color: #00913c;

    font-family: 'Roboto', sans-serif;
    font-size: 16px;

    overflow: hidden;
    /* overflow-y: scroll; */
    position: relative;
}

/** Footer **/
.footer {
    background-color: #00913c;
    position: absolute;
    left: 0;
    bottom: .1px;
    width: 100%;
}

.footer-inner {
    margin: auto;
	width: max-content;
	width: fit-content;
	width: -moz-fit-content;
}

.footer-inner>a {
    display: inline-block;
    padding: .6em 0.8em;
    color: transparent;
    text-decoration: none;
}

.footer-inner>a>img {
    width: 2em;
    height: 2em;
    transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 320px) {
    .footer-inner>a>img {
        width: 1.6em;
        height: 1.6em;
    }
}

.footer-inner>a:hover>img {
    transform: scale(1.4);
    transition: transform 0.2s ease-in-out;
}

/** ScrollBar **/
.flex-container::-webkit-scrollbar {
    width: 1em;
}

.flex-container::-webkit-scrollbar-track {
    background: #00913c;
}

.flex-container::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 2px;
    border: 5px solid #00913c;
    border-radius: 12px;
}

.flex-container::-webkit-scrollbar-thumb:vertical:hover {
    background: #ddd;
}

/** FireFox Scrollbar **/
.flex-container {
    scrollbar-color: #ffffff transparent;
    scrollbar-width: thin;
}

/** Content **/
.flex-container {
    width: 100%;
    height: calc(100% - 56px);
    margin: auto;
    overflow-x: hidden;
    overflow-y: scroll;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    align-items: flex-start;
}

.table-container {
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    min-width: 200px;
    block-size: fit-content;

    margin: 0 auto;
    display: table;
}

@media screen and (max-width: 320px) {
    .table-container {
        margin: 0;
    }
}

.table-inner-primary {
    display: block;
}

.table-inner-rest {
    display: table-caption;
    caption-side: bottom;
}

.site-title {
    margin: .9em 0 0;
    text-align: center;
    font-family: "Unicephalon", 'Roboto Slab', sans-serif;
    /* font-size: 7em; */
    font-size: 9vw;
    user-select: none;
}

@media screen and (min-width: 1100px) {
    .site-title {
        margin: 1em 0 0;
        font-size: 6.2em;
    }
}

.resource-grid {
    padding: 0;
    margin: 3em 0;
    display: grid;
    grid-template: [header-left] "btn1 items btn2" auto [header-right] / 2.6em 1fr 2.6em;
    gap: 1em;
}

@media screen and (max-width: 320px) {
    .resource-grid {
        padding: 3px;
        grid-template: [header-left] "btn1 items btn2" auto [header-right] / 2em auto 2em;
        gap: 0.6em;
    }
}

.nav-items {
    grid-area: items;
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 1em;
}

.btn-left,
.btn-up {
    grid-area: btn1;
}

.btn-right,
.btn-down {
    grid-area: btn2;
}

.nav-btn,
.resource-item {
    display: block;
    margin: 0;
    text-align: center;
    padding: .2em .2em;
    font-size: 1.2em;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: .2em;
    font-family: "Unicephalon", 'Roboto Slab', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    user-select: none;
}

@media screen and (max-width: 720px) {
    .nav-btn,
    .resource-item {
        font-size: 1em;
    }
}

@media screen and (max-width: 320px) {
    .nav-btn,
    .resource-item {
        font-size: .9em;
    }
}

.resource-item:hover {
    border: 1px solid white;
    transition: border-color .6s;
}

.nav-btn:hover {
    border: 1px solid white;
    transition: background-color .3s, border-color .1s, opacity .6s;
}

.nav-btn:active {
    background-color: white;
    color: #00913c;
    opacity: .6;
}

.btn-left, .btn-right {
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-left {
    background-image: url('../icons/angle-left-white.svg');
}

.btn-left:active {
    background-image: url('../icons/angle-left-green.svg');
}

.btn-right {
    background-image: url('../icons/angle-right-white.svg');
}

.btn-right:active {
    background-image: url('../icons/angle-right-green.svg');
}

.resource-info-wrapper {
    display: none;
    /* border: 1px solid white; */
    border-radius: .2em;
    padding: 1em 0;
    width: 100%;
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    opacity: 0;
    transition: opacity .5s;
}

.resource-info-wrapper.active {
    opacity: 1;
    transition: all .5s;
}

.resource-info {
    display: grid;
    grid-template-columns: 7em repeat(1, 1fr);
    gap: 1em;
    color: rgba(255, 255, 255, 0.6);
    width: fit-content;
    max-width: 100%;
    max-width: 670px;
    margin: 0 auto;
}

@media screen and (max-width: 480px) {
    .resource-info {
        grid-template-columns: 4em repeat(1, 1fr);
        font-size: 14px;
    }
}

@media screen and (max-width: 380px) {
    .resource-info {
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    .resource-info {
        font-size: 10px;
    }
}

.info-label {
    text-align: right;
}

.info-label, .info-bracket {
    user-select: none;
}

.info-item {
    /* margin-left: 1em; */
    color: #fff;
    /* width: fit-content; */
    font-weight: 600;
    letter-spacing: .4px;
    position: relative;
}

.info-item a {
    text-decoration: none;
    color: #bce1ff;
    /* word-break: break-word; */
}


.info-item::before {
    content: '"';
    position: absolute;
    left: -.75em;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
}

.info-item span {
    position: relative;
    z-index: 1;
    word-break: break-word;
}

.info-item span::after {
    position: absolute;
    content: '",';
    right: -1.4em;
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    z-index: -1;
    word-break: break-all;
    width: auto;
}

.info-item.item-home span::after {
    content: '"';
    right: -.7em;
}

.item-src,
.item-home {
    text-indent: 5em;
}

.item-src::before,
.item-home::before {
    left: -5.75em;
    content: '"https://';
    font-weight: 400;
    letter-spacing: 0;
}


.resource-item.active {
    background-color: white;
    color: #00913c;
    transition: all .6s;
}