html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

@font-face {
    font-family: 'mythMono';
    src: url('/assets/pokemon-emerald.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
        url("/assets/sand.png");
    background-size: 4%;
    font-family: 'mythMono';
    margin: 0;
}

.main {
    max-width: 1024px;
    /*maximum window width, will default to this when available device screen is >=*/
    width: 100%;
    /*make this dynamic for smaller screens*/
    margin: 0 auto;
}

nav {
    width: 100%;
    aspect-ratio: 7/1;
    display: flex;
    align-items: flex-end;
    background-color: aliceblue;
    box-shadow: inset 6px 6px 2px rgba(255, 255, 255, 0.5), inset -6px -6px 2px rgba(0, 0, 0, 0.3);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.8)),
        url("/assets/background.png");
    background-size: cover;
    background-position: top;

}

.logo {
    width: 30%;
    height: 100%;
    padding: 1%;
    align-self: flex-start;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: top;
}

.nav-links {
    width: 100%;
    display: flex;
    container-type: inline-size;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    font-size: 4cqw;
    text-align: center;
    font-family: 'mythMono';
    background: none;
    border: none;
    cursor: pointer;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, .8));
    margin-bottom: 6px;
    margin-right: 6px;
    text-decoration: none;
    color: #222;
    height: 64px;
}

.container {
    width: 100%;
    margin-top: 2%;
    margin-bottom: 2%;
    padding: 25px;
    background-color: aliceblue;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
        url("/assets/mainbg.png");
    background-size: cover;
    background-position: top;
    border-radius: 8px;
    box-shadow: 0px 0px 8px #222;
}

footer {
    width: 100%;
    aspect-ratio: 16/1;
    display: flex;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
        url("/assets/grass.png");
    background-size: 48px;
    color: #777;
}

.footer-links {
    width: 100%;
    display: flex;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    container-type: inline-size;
    flex-direction: row;
}

.footer-links a {
    text-decoration: none;
    color: #222;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'mythMono';
    box-shadow: inset 4px 4px 2px rgba(255, 255, 255, 0.5), inset -4px -4px 2px rgba(0, 0, 0, 0.3);
}


@media (max-width: 800px) {
    nav {
        flex-direction: column;
        align-items: flex-end;
        padding: 1%;
    }

    .nav-links a {
        margin-bottom: 0;
    }

    .logo {
        width: 20%;
        height: auto;
        align-self: left;
        margin-bottom: 4px;
    }

    .logo img {
        height: auto;
        width: 100%;
    }

    .nav-links {
        width: 100%;
    }

    .container {
        padding: 12px;
    }

}
