body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    display : flex;
    flex-direction: column;
    min-height: 100vh;
}

header{
    background-color: #fff3f6;
    width : 100%;
    display : flex;
    align-items: center;
    justify-content: space-between;
}

/* Dropdown Button */
.navbar {
    overflow: hidden;
    background-color: #333;
  }
  
  .navbar a {
    float: left;
    font-size: 1em;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  .dropdown {
    float: left;
    overflow: hidden;
    display : none;
  }
  
  .dropdown .dropbtn {
    cursor: pointer;
    font-size: 1em;  
    border: none;
    outline: none;
    color: #f92467;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }

  .dropdown .dropbtn > svg {
    pointer-events: none;
  }

  .dropdown .dropbtn svg {
    color : #f92467;
  }
  
  .navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
    background-color: #f92467;
  }

    .dropdown:hover .dropbtn svg, .dropbtn:focus svg {
        color : white;
    }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown-content a:hover {
    background-color: #ddd;
  }
  
  .show {
    display: block;
  }


header .header-logo{
    height: 115px;
    width: 100%;
    display: flex;
    padding-left: 5em;
}

header .header-logo img{
    width: 15em;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

header .main-nav-container{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
}

header .main-nav{
    display: static;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
}

/* nav ul{
    max-width: 1200px;
    margin: 0 auto;
} */
nav li{ 
    display: inline-block;
    font-size: 1.25em;
    padding-left : 20px;
    padding-right : 20px;
}

nav li a{
    text-decoration: none;
    color: #f92467;
}



main{
    max-width: 100%;
    width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    box-sizing: border-box;
}
article h2{
    color: #f92467;
    font-size: 3em;
}
article p{
    line-height: 2em;
    color: #4b4b4b;
}
.images{
    text-align: center;
    margin: 80px 0;
    white-space: nowrap;
}
.images li{
    display: inline-block;
    width: 40%;
    margin: 20px 5%;
}
.images li img{
    width: 445px;
    height: 295px;
    max-width: 100%;
    object-fit: contain;
}

.frontpage-games h2{
    color: #f92467;
    font-size: 3em;
    margin-bottom: 20px;
}

  * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  body { font-family: sans-serif; }

  
  .carousel{
    height: 450px;
  }
  .carousel-cell {
    display: -webkit-box;
    display: -webkit-flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
    -webkit-align-items: center;
            align-items: center;
    display: flex;
    flex-direction: column;
    width: 375px;
    height: 375px;
    border-radius: 20px;
    opacity: 0.7;
    -webkit-transform: scale(0.85);
            transform: scale(0.85);
    -webkit-filter: blur(5px);
            filter: blur(5px);
    padding : 0 20px;
  }

  .carousel-cell h2{
    font-size: 1.5em;
    color: #f92467;
    font-weight: 700;
    transition: 0.5s;
  }
  
  .carousel-cell .image-container{
    display: flex;
    justify-content: center;
    padding: 20px;
  }

  .carousel-cell img {
    width: 300px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
  }
  
  /* brighten selected image */
  .carousel-cell.is-selected {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-filter: none;
            filter: none;
            box-shadow: 0 15px 40px rgba(130, 27, 27, 0.30);
  }


footer{
    display: flex;
    background: #fff3f6;
    color: lightgray;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

footer p{
    color: #f92467;
}


/* ----- Logos ----- */
footer .icons{
    display: flex;
    justify-content: center;
    align-items: center;
}

footer a{
    width: 40px;
    height: 40px;
}

footer .icons svg{
    width: 20px;
    height: 20px;
    margin: 10px;
    color : gray;
}

footer svg:hover{
    color: #f92467;
}


/* Pseudo Classes */
nav li a:hover{
    text-decoration: underline;
}

.images li:hover{
    position : relative;
    top : -10px;
}

form input:focus{
    border: 4px dashed #4b4b4b;
    outline: none;
}

form input:valid{
    border: 4px solid #71d300;
}

article p:first-line{
    font-weight: bold;
    font-size: 1.2em;
}
p::selection{
    background-color: #47ded4;
    color: white;
}

/* Media Queries */

@media screen and (max-width: 1000px) {
    .images li{
        width: 100%;
        margin: 20px auto;
        display : block;
    }
}

@media screen and (max-width: 950px){

    header{
        justify-content: center;
        align-items: center;
    }

    header .header-logo{
        padding-left: 0;
        justify-self: center;
    }

    header img{
        width : 100%;
        overflow: hidden;
        display: inline;
        align-self: center;
    }
    header .main-nav{
        display: none;
    }

    header .dropdown{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 20%;
    }
}


/* Game card */
.gameContainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 100px 70px;
    padding: 100px 70px;
}

.gameContainer .game {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    height: 350px;
    object-fit: cover;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 35px 80px rgba(130, 27, 27, 0.30);
}

.gameContainer .game .imgBox {
    position: absolute;
    top: 20px;
    width: 300px;
    max-width: 80%;
    height: 220px;
    background: #333;
    border-radius: 12px;
    transition: 0.5s;
}

.gameContainer .game .imgBox img {
    display: inline;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gameContainer .game .imgBox video {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gameContainer .game:hover {
    height:calc(350px + 50px);
    min-height: 350px;

    transition: 1s;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.gameContainer .game:hover .imgBox {
    top: -100px;
    scale: 0.75;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.gameContainer .game:hover .imgBox img {
    display: none;
}

.gameContainer .game:hover .imgBox video {
    display: inline;
}


.gameContainer .game .content {
    pointer-events: none;
    position: absolute;
    top: 252px;
    width: 90%;
    padding: 0 30px;
    height: 45px;
    overflow: hidden;
    text-align: center;
    transition: 0.5s;
}

.gameContainer .game:hover .content {
    top: 130px;
    height:auto;
}

.gameContainer .game .content h2 {
    font-size: 1.5em;
    color: #f92467;
    font-weight: 700;
    transition: 0.5s;
}

.gameContainer .game .content p {
    display: none;
    color: #333;
}

.gameContainer .game:hover .content p {
    display: block;
    transition: 0.5s;
}   

.gameContainer .game .content .logo {
    align-items: center;
}


.gameContainer .game .content .logo img {
    pointer-events: auto;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    margin-top: 20px;
}

.gameContainer .game .content .logo img:hover {
    color: #fff3f6;
    width: 35px;
    height: 35px;
    transition: 0.5s;
}

/* Boutons Game*/
.container-bouton {
    text-align: center;
}

.filter-buttons button {
    background-color: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 10px;
    margin-bottom: 10px;
}

/* Style pour le survol des boutons */
.filter-buttons button:hover {
    background-color: #f92467; /* Couleur de remplissage au survol */
    color: #fff;
}


/* Style pour les contacts */
.main-container h2 {
    text-align: center;
    color: #f92467;
    font-size: 1.875em;
    margin-bottom: 10px;
}

.social-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 100px 70px;
    padding : 20px 20px;
}

.social-container .social-cell{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 200px;
    height: 200px;
    object-fit: cover;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(130, 27, 27, 0.30);
}

.social-container .social-cell svg{ 
    width: 50px;
    height: 50px;
    margin: 10px;
    color : gray;
}

.social-container .social-cell svg:hover{
    color: #f92467;
}
