@font-face {
    font-family: Frizon;
    src: url("/assets/fonts/Frizon.ttf");
}

@font-face {
    font-family: Manrope-Light;
    src: url("/assets/fonts/Manrope/Manrope-Light.otf");
}

@font-face {
    font-family: Manrope-Medium;
    src: url("/assets/fonts/Manrope/Manrope-Medium.otf");
}

@font-face {
    font-family: Manrope-Bold;
    src: url("/assets/fonts/Manrope/Manrope-Bold.otf");
}

@keyframes fade-box {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-h1 {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


.container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    display: grid;
    background-image: linear-gradient(to right top, #000000, #160e10, #231819, #322021, #412828);
    justify-items: center;
    align-items: center;
    grid-template-rows: 10% 40% 45% 5%;

}

.navbar {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 75% 7% 7% 7% 4%;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    font-family: Manrope-Light, sans-serif;
    font-size: clamp(16px, 1.4vw, 23px);
    color: white;
}

.container h1 {
    display: inline-block;
    color: white;
    font-size: min(4.5vw, 100px);
    text-align: center;
    font-family: Frizon, sans-serif;
    grid-row: 2;
    letter-spacing: 0.2rem;
    text-shadow: #ffffff 0 0 1rem;
}

.container h1 span {
    display: inline-block;
    transform: translateY(20px);
    opacity: 0;
}

@media (max-width: 480px) {
    .container {
        grid-template-rows: 30% 65% 5%;
    }

    .container h1 {
        display: block;
        text-align: center;
        font-size: 40px;
        grid-row: 1;
    }

    .container h1 span {
        display: block;
        margin: 0.5rem 0;
    }
}

.part1 {
    animation: fade-h1 0.75s ease 0.5s forwards;
}

.part2 {
    animation: fade-h1 0.75s ease 1s forwards;
}

.part3 {
    animation: fade-h1 0.75s ease 1.5s forwards;
}

.games {
    display: grid;
    grid-template-columns: 10% 32.5% 32.5% 10%;
    grid-gap: 5%;
    grid-row: 3;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

@media (max-width: 480px) {
    .games {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        grid-gap: 0;
        grid-row: 2;
    }
}

.game {
    width: 80%;
    height: 60%;
    max-width: 500px;
    min-height: 300px;
    animation: fade-box 2s ease 2.5s 1 normal forwards;
    opacity: 0;
    transform: translateY(50px);
    border-radius: 20px;
    background-color: darkslategrey;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 480px) {
    .game {
        width: 70%;
        height: 70%;
        min-height: 1px; !important;
    }
}

.g-platformer {
    grid-column: 2;
    background-image: url("/assets/images/placeholder1.png");
    background-position: center;
}

@media (max-width: 480px) {
    .g-platformer {
        grid-column: 1;
        min-height: 200px;
    }
}

.g-farm {
    grid-column: 3;
    background-image: url("/assets/images/placeholder2.png");
    background-position: center;
}

@media (max-width: 480px) {
    .g-farm {
        grid-column: 1;
        min-height: 200px;
    }
}

.overlay {
    display: grid;
    grid-template-rows: 25% 45% 30%;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.overlay:active {
    pointer-events: auto;
}

.overlay:not(:active) {
    pointer-events: none;
}

.game:hover .overlay,
.game:focus-within .overlay {
    background-color: rgba(0, 0, 0, 0.75);
}
.overlay h3 {
    color: white;
    font-family: Manrope-Bold, sans-serif;
    font-size: clamp(20px, 1.7vw, 25px);
    letter-spacing: 0.05vw;
    opacity: 0;
    margin: 0;
    transition: opacity 0.4s ease;
    padding-left: 7%;
    padding-right: 7%;
    align-self: center;
}

.game:hover .overlay h3,
.game:focus-within .overlay h3 {
    opacity: 1;
}

.overlay p {
    color: white;
    font-family: Manrope-Light, sans-serif;
    font-size: clamp(16px, 1.4vw, 23px);
    opacity: 0;
    margin: 0;
    transition: opacity 0.4s ease;
    padding-left: 7%;
    padding-right: 7%;
}

.game:hover .overlay p,
.game:focus-within .overlay p {
    opacity: 1;
}

.overlay a {
    display: grid;
    place-items: center;
    place-self: center;
    background-color: transparent;
    border: 0.2rem solid white;
    cursor: pointer;
    color: white;
    font-family: Manrope-Medium, sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    letter-spacing: 0.1vw;
    text-align: center;
    width: 40%;
    height: 45%;
    line-height: 100%;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
    pointer-events: auto;
    box-shadow: #ffffff 0 0 2rem;
    text-shadow: #ffffff 0 0 1rem;
}

.game:hover .overlay a,
.game:focus-within .overlay a {
    opacity: 1;
}


