*{
    margin: 0;
}
#particles-js{
    background-color: rgb(187, 11, 11);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: -1;
}

#main {
    text-align: center;
    width: 100%;
    height: 80%
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

iframe {
    border-radius: 10px; 
}

#LogoOlanquaInc {
    position: absolute;
  top: 0;
  left: 0;
  width: 100px;
}

.title {
    text-align: center;
    font-size: 5em;
    font-weight: bold;
    margin-bottom: 20px;
    height: 90%;
    position: absolute;
    color: #f1f1f1;

}

#Histoire {
    position: absolute;
    top: 35%;
    color: #ffffff;
}

#HistoireText {
    position: absolute;
    top: 50%;
    font-family: Arial, sans-serif; font-size: 16px; line-height: 1.5;
}

#Rejoint {
    position: absolute;
    top: 70%;
    color: #ffffff;
}

.description {
    margin: 30px auto;
    width: 70%;
    font-size: 1.2em;
    color: #555;
    max-width: 1000px;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; 
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px; 
}
.container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; 
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px; 
}
.game-card {
    display: block;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin-top: 150%; 
    max-height: 500px; 
    overflow-y: auto; 
    animation: colorChange 4s infinite;
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.game-card h3 {
    margin: 10px 0;
    font-size: 1.5em;
    color: #333;
    
}

a {
    text-decoration: none; 
    color: inherit; 
}

@keyframes colorChange {
    0% { background-color: red; }
    25% { background-color: blue; }
    50% { background-color: green; }
    75% { background-color: yellow; }
    100% { background-color: red; }
}



.language-switcher {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    gap: 20px; 
}

.language-switcher button {
    background-color: transparent;
    border: none;
    padding: 0; 
    cursor: pointer; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-switcher button:hover {
    transform: scale(1.1); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.language-switcher button:active {
    transform: scale(0.9);
}

.language-switcher img {
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
}


.footer {
    position: absolute; 
    bottom: 96px; 
    left: 60%; 
    transform: translateX(-50%); /

  }
  
  .footer-img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease-in-out; 
  }
  
  .footer-img:hover {
    transform: scale(1.2); 
  }
  
  .footer2 {
    position: absolute; 
    bottom: 100px; 
    left: 40%; 
    transform: translateX(-50%); /

  }
  
  .footer2-img {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease-in-out;
  }
  
  .footer2-img:hover {
    transform: scale(1.2); 
  }
  
  @media screen and (max-width: 1150px) {
    
    .footer {
        position: absolute; 
        bottom: 5px; 
        left: 60%; 
        transform: translateX(-50%); /
    
      }
            
      #LogoOlanquaInc {
        position: absolute;
      top: 0;
      left: 0;
      width: 65px;
    }

    .footer2 {
        position: absolute; 
        bottom: 5px; 
        left: 40%; 
        transform: translateX(-50%); /
    
      }

      #Rejoint {
        position: absolute;
        top: 100%;
        color: #ffffff;
    }

}

@media screen and (max-width: 430px) {
    
    .footer {
        position: absolute; 
        bottom: -500px; 
        left: 60%; 
        transform: translateX(-50%); /
    
      }

      .footer2 {
        position: absolute; 
        bottom: -500px; 
        left: 40%; 
        transform: translateX(-50%); /
    
      }
            
      #LogoOlanquaInc {
        position: absolute;
      top: 0;
      left: 0;
      width: 65px;
    }

    .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(250px, auto);
        gap: 20px;
        padding: 40px 20px;
        max-width: 300px;
        margin: 0 0 0 50px;  
        margin-top: 300px;      
        justify-items: start;
    }

    .container2 {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(250px, auto);
        gap: 20px;
        padding: 40px 20px;
        max-width: 300px;
        margin: 0 0 0 -250px;  
        margin-top: 1000px;      
        justify-items: start;
    }

    #Rejoint {
        position: absolute;
        top: 160%;
        color: #ffffff;
    }

}