@font-face {
    font-family: MSR;
    src: url('https://interstellar717.github.io/random-pokemon/assets/fonts/msr.woff2');
}

@font-face {
    font-family: Afa;
    src: url('https://interstellar717.github.io/random-pokemon/assets/fonts/AfacadFlux-Regular.ttf');
}

.msr {
    font-family: MSR;
}

* {
    transition: 0.5s all;
    --bkg-gray: auto;
    --light-blue: #62def9;
    --dark-blue: hwb(217deg 20.49% 66.61%);
    --dark-blue-hover: hwb(217 20% 57% / 1);
    background-color: rgb(var(--bkg-gray) var(--bkg-gray) var(--bkg-gray));
    font-family: Afa;
    color: white;
}

html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

body {
    padding-top: 15vh;
    padding-bottom: 15vh;
    height: fit-content;
}

body {
    --bkg-gray: 42;
}

.section-header {
    width: 100%;
    text-align: left;
    margin: 10vh 0 0 0;
}


.navbar {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    --bkg-gray: 52;
    height: 10vh;
    width: 100vw;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar .logo {
    height: 100%;
    /* MAYBE */
    /* filter: drop-shadow(2px 4px 6px black); */
}

a:has(.logo) {
    display: inline-block;
    height: 95%;
    margin-top: 0.25vh;
}

.sidebar {
    position: fixed;
    top: 10vh;
    left: 0;
    --bkg-gray: 52;
    height: 90vh;
    width: 23vw;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar.hidden:hover {
    transform: translateX(-20vw);
    cursor: pointer;
}

.sidebar.hidden {
    transform: translateX(-22.9vw);
    cursor: pointer;
}

.close {
    background-color: var(--dark-blue);
    border: none;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 20%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;
    top: 1em;
    /* left: calc(23vw - 2em - 1em); */
    left: 1em;
    width: 2.1em;
    height: 2.1em;
    font-size: 1.2vw;
    text-align: center;
}

.close:hover {
    background-color: var(--dark-blue-hover);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.tile-container {
    --w: calc(20vw + 20vw + 3vw);
    text-align: center;
    margin:
        /* calc(10vh + 3vw) */
        0 calc(50vw - var(--w) / 2) 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3vw;
    width: var(--w);
}

a:has(.page-tile) {
    text-decoration: none;
}

.page-tile {
    width: 20vw;
    height: 30vh;
    /* --bkg-gray: 42; */
    background-color: var(--dark-blue);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 1vw;
    cursor: pointer;
}

.page-tile:hover {
    /* --bkg-gray: 52; */
    background-color: var(--dark-blue-hover);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-tile img.thumbnail {
    height: 70%;
    width: 100%;
    border-radius: 1vw 1vw 0 0;
    object-fit: cover;
    background-color: white;
}

.page-tile:hover img.thumbnail {
    filter: brightness(0.5);
}

.page-tile .label {
    height: calc(30% - 14%);
    width: calc(100% - 10%);
    padding: 5% 5%;
    border-radius: 0 0 1vw 1vw;
    display: inline-block;
    margin-top: -5px;
    text-align: center;
    display: block;
    text-decoration: none;
    font-size: 3vh;
    line-height: 1.4em;
}