* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-size: 1.5rem;
    scroll-behavior: smooth;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

body {
    min-height: 100vh;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    gap: 1em;
    font-family: Helvetica, sans-serif;
    font-style: bold;
    text-align: center;
    color: rgb(224, 216, 231);
}

body:last-child {
    margin-bottom: 4em;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("assets/minecraft/sunsetblur.png");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    filter: brightness(0.7);
    z-index: -1;
}

nav {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--font-size) * 2.9);
    width: 100%;
    background-color: rgba(34, 30, 37, 0.409);
    padding: 0.5em;
    gap: 0.5em;
}

.navbuttons {
    font-size: calc(var(--font-size) * 0.9);
    height: 100%;
}

nav .navbuttons {
    display: flex;
    gap: 0.5em;
}

#header-pfp {
    height: 100%;
    aspect-ratio: 1 / 1;
}

#header-pfp img {
    height: 100%;
    width: auto;
}

button,
input[type="submit"],
input[type="reset"] {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    height: 100%;
    background-color: rgba(34, 30, 37, 0.828);
    padding: 0.3em;
}

.card {
    background-color: rgba(34, 30, 37, 0.613);
    padding: 1em;
    width: calc(100% - 2em);
    animation: fade-in 800ms ease-out;
}

.card,
#map-frame,
.screenshot {
    border-radius: 7px;
}

@keyframes fade-in {
    0% {
        opacity: 0.65;
        transform: translate(0, -2rem);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

p {
    font-size: calc(var(--font-size) * 0.8);
    line-height: 1.3em;
    margin-top: 1em;
}

em {
    font-style: normal;
    font-weight: bold;
    color: rgb(231, 158, 255);
}

a {
    color: rgb(134, 162, 255);
}

a:active {
    color: rgb(178, 71, 255);
}

h1 {
    margin-top: 0.5em;
    font-size: calc(var(--font-size) * 1.5);
}

#map-frame {
    min-height: 70vh;
    width: 100%;
}

#map-frame,
.screenshot {
    margin-top: 1em;
}

.screenshot {
    transition: all 300ms;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 0 5px rgba(19, 16, 25, 0.582);
}

@media screen and (min-width: 800px) {
    :root {
        --font-size: 1.8rem;
    }

    .card {
        max-width: 1000px;
        border-radius: 10px;
    }
}