* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

.game-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../media/images/univers-dc.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    box-shadow: inset 0 0 0 2000px rgba(0, 85, 145, 0.6);
}

.title {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 72px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 
                 0 0 30px rgba(0, 136, 255, 0.8),
                 0 0 45px rgba(0, 106, 255, 0.5);
    letter-spacing: 4px;
    z-index: 2;
    text-align: center;
    font-family: 'Roboto', Arial, sans-serif;
    white-space: nowrap;
    line-height: 1;
}

.logo-container {
    position: absolute;
    top: 50px;
    z-index: 2;
}

.jl-logo {
    max-width: 150px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

#game-controls {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 2;
}

#play-button {
    background-color: #ff3e3e;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 18px 70px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 62, 62, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#play-button:hover {
    background-color: #ff5252;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 62, 62, 0.7), 0 5px 15px rgba(0, 0, 0, 0.3);
}

#select-mode {
    color: white;
    font-size: 20px;
    margin-top: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
}

#mode-buttons {
    display: flex;
    justify-content: space-between;
    width: 320px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mode-button {
    background-color: #2d2d2d;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mode-button:hover {
    transform: scale(1.05);
}

#campaign-button {
    background-color: #2d73ff;
    box-shadow: 0 0 20px rgba(45, 115, 255, 0.5);
}

#campaign-button:hover {
    background-color: #4285f4;
    box-shadow: 0 0 30px rgba(66, 133, 244, 0.7);
}

#online-button {
    background-color: #00a67e;
    box-shadow: 0 0 20px rgba(0, 166, 126, 0.5);
}

#online-button:hover {
    background-color: #00bf8f;
    box-shadow: 0 0 30px rgba(0, 191, 143, 0.7);
}

#mode-buttons a {
    text-decoration: none;
}

/* responsive design */
@media (max-width: 1024px) {
    .epic-title {
        font-size: 48px;
        top: 12%;
        letter-spacing: 3px;
        white-space: nowrap;
        line-height: 1;
    }
    
    #play-button {
        font-size: 20px;
        padding: 15px 60px;
        margin-top: 60px;
    }
    
    #select-mode {
        font-size: 18px;
        margin-top: 25px;
    }
    
    #mode-buttons {
        width: 280px;
        margin-top: 20px;
        flex-direction: row;
    }
    
    .mode-button {
        font-size: 14px;
        padding: 10px 25px;
    }
}


@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .epic-title {
        font-size: 28px;
        top: 10%;
        letter-spacing: 2px;
        padding: 0 20px;
        white-space: nowrap;
        line-height: 1;
    }
    
    .logo-container {
        top: 30px; 
    }
    
    .jl-logo {
        max-width: 100px; 
    }
    
    #game-controls {
        margin-top: 80px;
    }
    
    #play-button {
        font-size: 18px;
        padding: 15px 50px;
        margin-top: 60px;
    }
    
    #select-mode {
        font-size: 16px;
        margin-top: 30px;
        padding: 0 20px;
    }
    
    #mode-buttons {
        flex-direction: row;
        width: 260px;
        gap: 15px;
        margin-top: 25px;
        justify-content: space-between;
    }
    
    .mode-button {
        font-size: 14px;
        padding: 12px 25px;
        flex: 1;
    }
    
    .hero-silhouettes {
        height: 150px;
    }
    
    .hero {
        width: 80px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .epic-title {
        font-size: 26px;
        top: 8%;
        letter-spacing: 1px;
        line-height: 1;
        white-space: nowrap;
    }
    
    .logo-container {
        top: 20px;
    }
    
    .jl-logo {
        max-width: 80px;
    }
    
    #game-controls {
        margin-top: 100px;
    }
    
    #play-button {
        font-size: 16px;
        padding: 12px 40px;
        margin-top: 70px;
    }
    
    #select-mode {
        font-size: 14px;
        margin-top: 25px;
    }
    
    #mode-buttons {
        flex-direction: row;
        width: 220px;
        gap: 10px;
        margin-top: 20px;
        justify-content: space-between;
    }
    
    .mode-button {
        font-size: 12px;
        padding: 10px 18px;
        flex: 1;
    }
}
