body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; 
}

body {
    
    background: linear-gradient(to bottom, #000000 70%, #2e2e2e 100%);
    
    
    display: flex;             
    justify-content: center;   
    align-items: center;       
}


.container {
    position: relative; 
    width: 100%;
    height: 100vh; 
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
}


.hero-text {
    font-family: 'VlaShu', cursive, sans-serif;
    font-size: 76px;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    
    opacity: 0;
    will-change: transform, opacity, text-shadow;

    
    animation: 
        fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
        glowPulse 1.8s ease-out 1.4s forwards;
}


.bottom-menu {
    position: absolute; 
    bottom: 300px;       
    display: flex;
    gap: 70px;          
    opacity: 0;         
    animation: menuFadeIn 1s ease-out 2.5s forwards; 
}

.bottom-menu a {
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    color: #6d6d6d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}


.bottom-menu a:hover {
    color: #ffffff;
    text-shadow: 0 0 100px rgb(0, 81, 255);
}




@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0% { text-shadow: none; }
    100% {
        text-shadow: 
            0 0 5px  #000000, 0 0 10px #000000, 0 0 20px #000000,
            0 0 40px rgba(0, 0, 0, 0.9),
            0 0 80px rgba(0, 0, 0, 0.7),
            0 0 120px rgba(0, 0, 0, 0.5);
    }
}


@keyframes menuFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}




.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.4s ease-out forwards;
}


.modal-content.modal-games {
    background-color: #000000; 
    color: #ffffff;
    padding: 40px 30px 50px 30px;
    border-radius: 16px;
    max-width: 1100px; 
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid #353535;
}





@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



.games-section-inside {
    width: 100%;
}


.games-section-inside .games-row {
    display: flex;
    gap: 150px;
    justify-content: center; 
    
}


.games-section-inside .game-card {
    flex: 0 0 256px;
    height:356px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.games-section-inside .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.games-section-inside .game-card {
    filter: grayscale(100%) brightness(0.6);
}

.games-section-inside .game-card.active-game {
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 0 5px rgba(216, 216, 216, 0.9);
}

.games-section-inside .game-card:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
    z-index: 10;
}

.games-section-inside .game-card.active-game:hover {
    transform: scale(1.08);
}
.modal.closing {
    animation: modalFadeOut 0.4s ease-in forwards;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
}


.modal-content.modal-text {
    background-color: #111111;
    color: #ffffff;
    padding: 40px 30px 50px 30px;
    border-radius: 16px;
    max-width: 1100px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    text-align: center;
}

#textContent h2 {
    font-family: 'Inter',  sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: #ffffff;
}

#textContent p {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1px;
    color: #cccccc;
}

.game-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}


.game-link .game-card {
    cursor: pointer;
}
.modal.closing-for-game {
    animation: gameTransitionOut 0.6s ease-in forwards;
}

@keyframes gameTransitionOut {
    0% {
        opacity: 1;
        transform: scale(1);
        background-color: rgba(0, 0, 0, 0.8); 
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        background-color: rgba(0, 0, 0, 1); 
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero-text {
        font-size: 60px;
    }

    .bottom-menu {
        gap: 50px;
    }

    .games-section-inside .games-row {
        gap: 50px;
    }
    
    .games-section-inside .game-card {
        flex: 0 0 200px;
        height: 280px;
    }
}


@media (max-width: 768px) {
    
    body, html {
        height: auto;
        overflow-y: auto;
    }
    
    body {
        align-items: flex-start;
        padding: 20px 0;
    }

    .container {
        height: auto;
        min-height: 100vh;
    }

    
    .hero-text {
        font-size: 40px;
        text-align: center;
        margin-top: 40px;
    }

    
    .bottom-menu {
        position: static;
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }
    .bottom-menu a {
        font-size: 20px;
    }

    
    .games-section-inside .games-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .games-section-inside .game-card {
        flex: 0 0 calc(50% - 10px);
        height: 190px;
    }
    
    
    .modal-content.modal-text {
        padding: 20px;
    }
    #textContent h2 {
        font-size: 24px;
    }
    #textContent p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    
    body, html {
        height: auto;
        overflow-y: auto;
    }
    
    body {
        align-items: center;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
        justify-content: center; 
    }

    
    .hero-text {
        font-size: 2.5rem; 
        text-align: center;
    }

    
    .bottom-menu {
        position: absolute;
        bottom: 80px; 
        display: flex;
        flex-direction: row; 
        gap: 40px; 
        align-items: center;
        width: auto;
    }

    .bottom-menu a {
        font-size: 17px; 
    }
}