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

html {
  overflow-y: scroll;
}

body {
    background-color: #000;
    color: #fff;
    font-family: Ojuju;
    font-size: 1.2em;
    text-shadow: -2px 2px 2px black;
}



.wrapper {
    min-height: 70vh; /* Assure que le wrapper prend toute la hauteur de la page */
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1; /* Prend tout l'espace disponible au-dessus du footer */
}



#bg-shadow{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    z-index: -9;
    background-color: rgba(0, 0, 0, 0.7) ;
}

.game-bg{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -10;
}

#bg1{
    background-image: url("../img/backgrounds/PrimordiaScene.jpg");
}
#bg2{
    background-image: url("../img/backgrounds/StrangelandScene.jpg");
}
#bg3{
    background-image: url("../img/backgrounds/FGScene.jpg");
}
#bg4{
    background-image: url("../img/backgrounds/UIHYScene.jpg");
}



.navbar {
    /* background-color: #2c1b0a; */
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0px 0px 6px 2px #000000;
    height: 50px;
    display: flex;
    align-items: center;
    margin: 20px 0 50px 0;
    border: 2px solid #000;
    border-right: none;
    border-left: none;
    z-index: 10;
    justify-content: center;
}

.navbar-brand {
    padding: 0;
    margin: 20px;
}

.navbar-nav {
    background-color: transparent;
}

.navbar-nav .nav-link {
    margin: 0 10px;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-brand .logo-img {
    user-select: none;
    width: 300px; 
    margin-top: 35px;
}

#posters {
    text-align: center;
    width: 100%;
    height: calc(100% - 160px);
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    position: relative;
}

.poster {
  max-height: 60vh
}

/*.game-card {
    position: relative;
    background-color: #1f1f1f;
    border: 1px solid #3e3e3e;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}*/

.poster {
    width: 20%;
    height: auto;
    aspect-ratio: 2/3;
    display: inline-block;
    background-color: transparent;
    border-radius: 0px;
    /*box-shadow: -2px 2px 6px 0px #000000;*/
    background-size: cover;
    background-position: center;
    margin: 0.75%;
    min-width: 200px;
    /*padding-top: 4px;*/
    transition: background-color 0.15s;
    position: relative;
    overflow: hidden;
}

.poster:hover {
    /*background-color: rgba(255, 255, 255, 0.05);*/
    transform: scale(1.1);
}

.poster-inside {
    opacity: 0;
    background-color: rgba(0,0,0,0.5);
    transition: opacity 0.5s;
}

.poster::before {
    transition: opacity 0.5s;
}

.poster::before {
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    box-shadow: 0px 0px 6px 2px #000000 inset;
    position: absolute;
    display: inline-block;
    background-size: cover;
    background-position: center;
}

#poster-1::before {
    background-image: url(../img/PrimordiaPoster.jpg);
}

#poster-2::before {
    background-image: url(../img/StrangelandPoster.jpg);
}

#poster-3::before {
    background-image: url(../img/FGPoster.jpg);
}

#poster-4::before {
    background-image: url(../img/UIHYPoster.jpg);
}


/*.game-card, .poster::before {
    content: "";
    width: 95%;
    height: 95%;
    left: 2.5%;
    top: 2.5%;
    box-shadow: 0px 0px 6px 2px #000000 inset;
    position: absolute;
    display: inline-block;
    background-size: cover;
    background-position: center;
}*/

.game-card{
    overflow: hidden;
}

.background-glow{
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    transform: translate(0px, -200px);
}

.game-img-container{
    position: relative;
    width: 100%;
    height: auto;    
}

.game-img {
    width: 100%;
    height: auto;
    
}

.poster, .background-glow{
    transition: transform 0.3s ease;
}

.poster:hover .background-glow{
    transform: translate(0px, 0px);
}

.game-link{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
}

/*.game-card, .background-glow{
    transition: transform 0.3s ease;
}

.game-card:hover .background-glow{
    transform: translate(0px, 0px);
}*/

.game-card:hover  {
    transform: scale(1.1);
}

.game-card:hover .game-card-txt {
    opacity: 1;
}

.game-card-txt{
    opacity: 0;
    color:#fff;
    font-weight: bold;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    text-align: center;
    transition: opacity 0.5s;
    font-family: Arial;
}

.footer {
       background-color: transparent;
    /*box-shadow: 0px 0px 6px 2px #000000;*/
    text-align: center;
    padding: 10px 0;
    color: #fff;
    width: 100%;
    font-size: 0.8em;
    font-family: Arial;
    box-sizing: border-box;
}

#gamePage .footer, .page-id-42 .footer{
    position: fixed;
    bottom: 25px;
}

.text-center {
    font-weight: bold;
}




#latest-post{
    /*font-family: Arial;*/
    height: 25px;
}

#latest-post a{
    color: #CCC;
    text-decoration: none;
}

#latest-post a:hover{
    color: #555;
}

#socialTaglineContainer{
    position: relative;
    width: 100%;
    height: 50px;
    margin-bottom: 50px;
}

div#socialsIcons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: #CCC;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

#taglineContainer{
    height: 25px;
    right: 0;
    width: 100%;
    display: none;
    text-align: center;
}

#socialsIcons ul {
    list-style-type: none; /* Removes bullet points */
    padding: 0; /* Removes default padding */
    margin: 0; /* Removes default margin */
    display: flex; /* Aligns items horizontally */
    gap: 10px; /* Adds space between icons */
}

#socialsIcons li {
    display: inline; /* Ensures list items stay in a line */
}

a.socialIcons-link {
    text-decoration: none; /* Removes underline from links */
    color: inherit; /* Uses the color of the parent element */
    font-size: 24px; /* Adjust the size of the icons */
    text-shadow: -2px 2px 2px black;
}

a.socialIcons-link:hover {
    color: #555; /* Optional: changes the color on hover */
}



.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: none; 
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner a {
    color: #4CAF50;
    text-decoration: underline;
}

.cookie-banner .cookie-accept {
    background-color: #4CAF50;
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-banner .cookie-accept:hover {
    background-color: #45a049;
}

.poster-inside a {
    font-size: 16px;
}




@media (max-width: 991px) {

    .navbar{
        height: 70px;
            margin: 50px 0 50px 0;
    }
    .navbar-nav {
        background-color: #000;   
        margin-top: 15px; 
        box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.75);
        border: thin solid #6f6f6f;    
    }

    /*.game-link{
            display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        align-items: center;        
    }

    .game-card{
        width: 70%;
    }*/

    #gamePage .footer, .page-id-42 .footer{
        position: relative;
    }
}

@media screen and (min-width: 1921px) {
  .poster {
    width: 15%;
  }
}
