@font-face {
    font-family: "Minecraft";
    src: url("/mc/fonts/MinecraftRegular-Bmg3.otf");
}

* {
    padding: 0px;
    margin: 0px;

    box-sizing: border-box;

    font-family: Minecraft, Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

h1,
h2 {
    text-shadow: 1.5px 1.5px 0px #0000007f;
}

a {
    text-decoration: none;
}

ul li {
    margin-inline-start: 20px;
}

body {
    width: 100vw;
    min-height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;

    background-color: #3f3f3f;
    color: #ffffff;
}


header {
    margin-bottom: 32px;

    flex-basis: 0;
    flex-shrink: 0;
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

main {
    width: 80%;

    flex-basis: 0;
    flex-grow: 2;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    font-size: 24px;
}

footer {
    width: 100%;

    flex-basis: 0%;
    flex-grow: 0;
    flex-shrink: 1;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;

    margin-top: 32px;

    font-size: 16px;
}


.title {
    position: relative;

    padding: 32px;

    transition-property: transform;
    transition-duration: 0.1s;
    transition-timing-function: ease-in-out;
    
    /* font-size: 72px; */
}

.title:hover {
    transform: scale(1.2);
}

.title img {
    width: 100%;
    max-width: 67vw;
    height: 100%;

    object-fit: fill;
}

@keyframes title-splash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

.title-splash {
    position: absolute;
    right: 5%;
    bottom: 25%;

    rotate: -15deg;

    font-size: 24px;

    color: #ffff00;

    animation-name: title-splash;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;

    text-shadow: 3px 4px #5f5f00;
}


.buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    /* align-items: center; */
}

.buttons .buttons {
    width: 100%;

    margin-top: 8px;

    flex-direction: row;
    justify-content: flex-start;
}

.slab,
.button {
    border-color: #000000;
    border-style: solid;
    border-width: 2px;

    background-color: #7f7f7f;
    background-image: url("/mc/assets/button.png");
    background-size: auto 100%;

    box-shadow: inset 2px 2px #ffffff7f, inset -2px -2px #0000007f;
}

.button {
    flex-basis: 0;
    flex-grow: 0;
    flex-shrink: 1;

    padding: 8px;

    text-align: center;
}

/* .button::after {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;

    border-spacing: 2px;
    border-color: #0000007f;
    border-width: 2px;
    border-style: solid;
} */

.button:hover {
    cursor: pointer;

    border-color: #ffffff;

    background-color: #afafaf;
}

.button h1,
.button h2 {
    font-weight: normal;
}

.buttons .button {
    width: 100%;
}

.buttons .button + .button {
    margin-top: 8px;
}

.buttons .buttons .button {
    flex-grow: 1;
}

.buttons .buttons .button + .button {
    margin-top: 0;
    margin-left: 8px;
}

.spacer {
    opacity: 0;
    pointer-events: none;
}


#version,
#copyright {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;

    margin: 4px;

    text-wrap-mode: nowrap;
}

#version {
    text-align: left;
}

#copyright {
    text-align: right;
}


#background {
    width: 100vw;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    z-index: -1;

    background-color: #3f3f3f;
}



@media screen and (max-width: 1280px) {
    main {
        font-size: 20px;
    }
}

@media screen and (max-width: 1080px) {
    main {
        font-size: 18px;
    }
}

@media screen and (max-width: 960px) {
    main {
        font-size: 16px;
    }

    .title {
        padding: 24px;

        font-size: 48px;
    }
}

@media screen and (max-width: 640px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h1,
    h2 {
        text-shadow: 1px 1px 0px #0000007f;
    }

    main {
        font-size: 16px;
    }

    .title {
        font-size: 32px;
    }

    .title-splash {
        font-size: 16px;
    }

    footer {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .title {
        padding: 16px;

        font-size: 24px;
    }
}

@media screen and (max-width: 320px) {
    #version,
    #copyright {
        text-wrap-mode: initial;
    }
}