@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); 

.page {
    background-color: #1a1a1a;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: Roboto, Arial, sans-serif;
}

.header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.title {
    margin-bottom: 30px;
    font-size: 3rem;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: Pacifico, cursive;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.case {
    flex: 1 0 calc(100% - 20px);
    max-width: calc(100% - 20px);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.05); /* Ajoutez cette ligne pour donner une légère couleur de fond aux cases de jeux */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0; /* Ajoutez cette ligne pour initialiser l'opacité à 0 */
    animation: fadeIn 1s ease-out forwards; /* Ajoutez cette ligne pour appliquer l'animation fadeIn */
    animation-delay: calc(0.1s * var(--animation-order)); /* Ajoutez cette ligne pour appliquer un délai d'animation basé sur l'ordre des cases de jeux */
}

.case:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.jeu1 {
    background-image: url('images/csgo.png');
}

.jeu2 {
    background-image: url('images/fa.png');
}

.jeu3 {
    background-image: url('images/wl.png');
}

.jeu4 {
    background-image: url('images/extinction.jpg');
}

.jeu5 {
    background-image: url('images/habbo.png');
}

.jeu6 {
    background-image: url('images/teufzer.png');
}

.jeu7 {
    background-image: url('images/logo.svg');
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6); 
    margin-bottom: 30px;
}
/* Media Queries */
@media (min-width: 480px) {
    .case {
        flex: 1 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (min-width: 768px) {
    .case {
        flex: 1 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
