@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Roboto', sans-serif;
    background-color: black;
}

header{
    width: 100%;
    min-height: 15vh;
    background-color: black;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    color: white;
}

header nav{
    width: 40%;
}

header nav ul{
    width: 100%;
    display: flex;
    justify-content: space-around;
    list-style: none;
}

header nav ul li a{
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

header nav ul li a:hover{
    font-weight: 700;
    color: #9d36c0;

}

header form input[type=text], #menuBurger form input[type=text]
{
    background-color: #444444;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 5px 2px;
    font-family: 'Roboto', sans-serif;
}

header form input[type=text]:focus, #menuBurger form input[type=text]:focus{
    outline: none;
}

header form input[type=submit]
{
    border: none;
    border-radius: 5px;
    background-color: white;
    color: black;
    padding: 5px 2px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}
#menuBurger form input[type=submit]
{
    border: none;
    border-radius: 5px;
    background-color: white;
    color: black;
    padding: 5px 2px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    margin: 15px;
}

main{
    min-height: 75vh;
    background-color: #444444;
}

footer{
    min-height: 10vh;
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 10px;
}

#logo{
    width: 150px;
}

#logo img{
    width: 100%;
}

footer .logo img
{
    height: 70px;
}

#burger{
    display: none;
    width: 50px;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

#burger .bar{
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 8px 0;
    transition: all 1s;
}

#burger.open .bar:nth-child(1){
    transform: rotate(45deg) translate(0px,14px);
}
#burger.open .bar:nth-child(2){
    opacity: 0;
}
#burger.open .bar:nth-child(3){
    transform: rotate(-45deg) translate(0px,-16px);
}

#menuBurger{
    width: 100%;
    height: 100vh;
    background-color: #444444;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 100%;
    transition: all 1s;
    z-index: 99;
}

#menuBurger ul{
    list-style: none;
    margin: 0 0 30px;
}

#menuBurger ul li{
    margin: 35px 0;
    text-align: center;
}

#menuBurger ul li a{
    color: white;
    font-size: 25px;
    text-decoration: none;
    
}

#menuBurger.open-menu{
    left:0!important;
}

#menuBurger form{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container{
    width: 80%;
    margin: 0 auto;
    padding: 15px 0;
    color: white;
}

/******************* home ***************/

.myhome{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 70vh;
    background-image: url(../../images/wall1.jpg);
    background-size: cover;
    background-position: center bottom;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 3px black;
   
}

@keyframes opa {
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}

.myhome h2{
    font-size: 60px;
    font-weight: 700;
    opacity: 0;
    animation-name: opa;
    animation-duration: 4.5s;
    animation-fill-mode: forwards;
}

.myhome h3{
    font-size: 25px;
    font-weight: 400;
    opacity: 0;
    animation-name: opa;
    animation-delay: 2s;
    animation-duration: 4.5s;
    animation-fill-mode: forwards;
}

.games-home, .consoles-home{
    margin-top: 30px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px;
}


.myhome a{
    opacity: 0;
    animation-name: opa;
    animation-delay: 4s;
    animation-duration: 4.5s;
    animation-fill-mode: forwards;
    position: relative; 
    display: inline-block;
    padding: 15px 30px;
    color: #3196f3;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-decoration: none;
    font-size: 24px;
    overflow: hidden; 
    transition: 0.2s;
    margin-top: 25px;
    background: rgba(67, 15, 115,0.8);
}

.myhome a:hover
{
    color: #255784;
    background-color: #2196f3;
    box-shadow: 0 0 10px #2196f3, 0 0 40px #2196f3, 0 0 80px #2196f3;
    transition-delay: 1s;
}

.myhome a span{
    position: absolute;
    display: block;
   
}

.myhome a span:nth-child(1)
{
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2196f3)
}

.myhome a:hover span:nth-child(1)
{
  
    left: 100%;
    transition: 1s; /* pas de retour en arrière si c'est placé sur le hover */
}

.myhome a span:nth-child(3)
{
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #2196f3)
}

.myhome a:hover span:nth-child(3)
{
  
    right: 100%;
    transition: 1s; /* pas de retour en arrière si c'est placé sur le hover */
    transition-delay: 0.5s;
}

.myhome a span:nth-child(2)
{
    top: -100%;
    right: 0%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #2196f3)
}

.myhome a:hover span:nth-child(2)
{
  
    top: 100%;
    transition: 1s; /* pas de retour en arrière si c'est placé sur le hover */
    transition-delay: 0.25s;
}

.myhome a span:nth-child(4)
{
    bottom: -100%;
    left: 0%;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #2196f3)
}

.myhome a:hover span:nth-child(4)
{
  
    bottom: 100%;
    transition: 1s; /* pas de retour en arrière si c'est placé sur le hover */
    transition-delay: 0.75s;
}

#container-home-games{
    width: 100%;
    padding: 30px 0;
}

#container-home-consoles{
    width: 100%;
    padding: 30px 0;
    background-color: #2c2c2c;
}

/******************* games / consoles ***************/

.games, .consoles{
    margin-top: 30px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

.cards{
    display: flex;
    color: #060606;
    text-decoration: none;
    height: 400px;
    border: solid 1px black;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 4px black;
}

.cards .title{
    background-color: #333333;
    text-align: center;
    color: white;
    display: flex;
    width: 100%;
    height: 20%;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.cards .cover{
    width: 100%;
    height: 80%;
    text-align: center;
}

.cards .cover img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagination {
    display: flex;
    margin: 0 auto;
    justify-content: center;
  }
  
  .pagination a {
    color: silver;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
  }
  
  .pagination a.active {
    background-color: #9d36c0;
    color: white;
  }
  
  .pagination a:hover:not(.active) {
    background-color: #ddd;
    color: black;
}

@keyframes slide {
	0% {
		background-position: 50% 50%;
	}
	100% {
		background-position: 60% 100%;
	}
}

.container h2 {
    display: inline-block;
	color: transparent;
    font-size: 40px;
	font-weight: 800;
	background-color: #1e80db !important;
	background-position: 50% 50%;
	background: url(../../images/bubbles.png) repeat-y;
	-webkit-background-clip: text;
    animation-name: slide;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/******************* console ***************/

.console-pres{
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.console-pres h2{
    margin: 30px 0;
    font-size: 60px;
}
.console-pres h4{
    font-size: 30px;
}
.console-pres h3{
    font-size: 45px;
}

.console-pres h5{
    font-size: 25px;
}

.console-image{
    width: 80%;
    margin: 0 auto;
    padding-bottom: 30px;
}

.console-image img{
    width: 100%;
}




/******************* game ***************/

.game-pres{
    min-height: 30vh;
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.game-pres h4{
    font-size: 40px;
    text-shadow: 2px 2px 5px black;
}
.game-pres h5{
    font-size: 30px;
    text-shadow: 2px 2px 5px black;
}

.game-pres h2{
    font-size: 60px;
    text-shadow: 2px 2px 5px black;
}

.description{
    margin: 15px 0;
}

.swiper {
    width: 100%;
    height: 700px;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

/*************** error ***************/
#error400{
    background-color: white;
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#error400 img{
    width: 30%;
}

/******************* media ***************/

@media all and (max-width: 790px)
{
    .container{
        width: 95%;
    }

    header{
        justify-content: space-between;
        padding: 0 15px; 
    }
    header nav{
        display: none;
    }
    header form{
        display: none;
    }

    #burger{
        display: block;
    }

    .games, .consoles, .games-home, .consoles-home{
        grid-template-columns: auto;
       
    }

    .myhome{
        text-align: center;
    }

    #error400 img{
        width: 60%;
    }
}

@media all and (max-width: 300px)
{
    .myhome h2{
        font-size: 20vw;
    }
}