@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anta&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Anta', sans-serif;
    background: hsl(0, 0%, 0%);
    color: #eee;
}

main {
    flex: 1;
}

footer {
    padding-bottom: 20px;
    padding-left: 2em;
    width: 100%;
    text-align: left;
    font-family: "Orbitron", sans-serif;
    font-size: 0.75em;
    opacity: 0.5;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    background-image: url(../img/backgroundsymbolshome.png);
    background-repeat: repeat;
    background-attachment: fixed;
    filter: blur(6px) brightness(0.2);
    transform: scale(1);
}

.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 10px;
    z-index: 100;
    background-color: black;
}

.main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/backgroundsymbolsinfo.png);
    background-repeat: repeat;
    background-size: 150px;
    filter: blur(4px) invert(100%);
    background-position: center;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 1) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 1) 100%);
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #00d4ff;
}

.main-nav a.active {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    font-weight: bold;
}

.game-logo-gal {
    display: block;
    margin: 4em auto 2em auto;
    max-width: 500px;
    width: 100%;
    height: auto;
    z-index: 10;
    position: relative;
}

.game-logo-gal:first-of-type {
    margin-top: 6em;
}

.galerie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.galerie figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMasonry 0.6s ease forwards;
}

@keyframes fadeInMasonry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.galerie img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.galerie figure:hover img {
    transform: scale(1.08);
}

.galerie figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-size: 0.7em;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
    pointer-events: none;
}

.galerie figure:hover figcaption {
    opacity: 1;
}

@media (max-width: 1024px) {
    .galerie {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 15px 30px 15px;
    }
}

@media (max-width: 767px) {
    .galerie {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px 20px 10px;
        gap: 10px;
    }

    .game-logo-gal {
        max-width: 300px;
        margin: 3em auto 1.5em auto;
    }

    .game-logo-gal:first-of-type {
        margin-top: 5em;
    }

    .main-nav {
        gap: 20px;
        padding: 10px;
    }

    .main-nav a {
        font-size: 1em;
    }

    .main-nav::before {
        background-size: 80px;
        filter: blur(2px) invert(100%);
        -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 1) 100%);
        mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 1) 100%);
    }
}

@media (max-width: 480px) {
    .galerie {
        grid-template-columns: 1fr;
    }

    .game-logo-gal {
        max-width: 200px;
        margin: 2em auto 1em auto;
    }

    .game-logo-gal:first-of-type {
        margin-top: 4em;
    }

    .main-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
        padding: 5px;
    }

    .main-nav a {
        font-size: 0.9em;
    }
}