@font-face {
    font-family: 'MCRegular';
    src: url("fonts/MinecraftRegular-Bmg3.otf");
}

body {
    background-image: url("images/end.webp");
    font-family: 'MCRegular';
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    justify-content: center;
    align-items: center;
    display: flex;
    color: white;
}

header {
    z-index: 100;
    position: fixed;
    display: flex;
    justify-content: space-between;
    top: 0;
    left: 0;
    width: 100%;
    background-image: url("images/obsidian.png")
}

.head {
    margin-left: 3vw;
    font-size: 2vw;
}

nav {
    font-size: 2.5vw;
    width: 40%;
    color: wheat;
    display: flex;
}

ul {
    position: relative;
    display: flex;
    gap: 4rem;
    list-style-type: none;
}

li {
    margin: 0;
}

header a {
    font-family: 'MCRegular';
    text-decoration: none;
    color: lightcoral;
}

a:hover {
    text-decoration: underline;
    h2 {
        text-decoration: underline;
    }
}

.wrapper {
    display: flex;
    width: 95%;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;
    margin-bottom: 2vh;
}

.grid {
    display: grid;
    margin-top: 8rem;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 4vw;
}

.container {
    margin: 0 auto;
    font-size: 1.5vw;
    width: 100%;
    border-radius: 0.25rem;
    overflow: hidden;
    background-image: url("images/void.png");
}

.item {
    position: relative;
    font-family: "MCRegular";
    text-align: center;
    color: lightyellow;
    p {
        margin: 2rem;
    }
}

.item img {
    width: 100%;
    height: 12rem;
    border-bottom: 1px solid white;
}

.item a {
    text-decoration: none;
}

@media (max-width: 768px) { /* mobile */


    .grid {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 0 auto;
        font-size: 30px;
        width: 95%;
        height: 450px;
        margin-bottom: 15px;
        padding: 0.1rem;
    }

    .container h2 {
        font-size: 35px;
    }

    .container p {
        font-size: 25px;
    }

    .container img {
        border: none;
        height: 180px;
    }

    nav {
        display: none;
    }

    .wrapper {
        width: 100%;
    }

    .head {
        margin-left: 12vw;
        font-size: 8vw;
    }
}