:root{
    background-color: rgb(54, 54, 54);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
}

/* Header Section */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(32, 32, 32, 0.8);
    padding: 2rem 9%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
  }

  .logo img{
    width: 120px;
  }

  .navbar img{
    width: 32px;
  }

  #homebar{
    width: 30%;
    z-index: 1000;
  }

  #homebar form {
    display: block;
    top: 30%;
    
  }
  #homebar form input[type=search] {
    border: solid 3px #050b18;
    box-sizing: border-box;
    font-size: 1.2em;
    height: 2em;
    width: 100%;
    outline: solid #050b18 0;
    padding: 0.5em;
    transition: all 2s ease-in;
    z-index: 1;
    border-radius: 10px;
    color: white;
    background-color: rgba(32, 32, 32, 0.548);
  }

  #homebar form input[type=search]:focus {
    border: solid 3px #09f;
    outline: solid #071024d2  2000px;
    background-color: rgba(22, 7, 41, 0.548);
  }

  #homebar button:hover{
    border: solid 3px #09f;
  }

  header .navbar a, .count{
    font-size: 1.2rem;
    margin-left: 2rem;
    color: rgb(255, 255, 255);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    display: inline-block;
  }

  .count{
    text-align: left;
  }
  
  header a::before,
  header a::after {
   content: '';
    position: absolute;
    width: 100%;
    left: 0;
  }
  header a::before {
    background-color: #54b3d6;
    height: 2px;
    bottom: 0;
    transform-origin: 100% 50%;
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
  }
  header a::after {
    content: attr(data-replace);
    height: 100%;
    top: 0;
    transform-origin: 100% 50%;
    transform: translate3d(200%, 0, 0);
    transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
    color: #54b3d6;
  }
  
  header a:hover::before {
    transform-origin: 0% 50%;
    transform: scaleX(1);
  }
  header a:hover::after {
    transform: translate3d(0, 0, 0);
  }
  
  header a span {
    display: inline-block;
    transition: transform .3s cubic-bezier(0.76, 0, 0.24, 1);
  }
  
  header a:hover span {
    transform: translate3d(-200%, 0, 0);
  }

/* End Header Section */

/* Search Result Section */
.search_result{
  position: fixed;
  width: 50%;
  top: 120px;
  margin-left: 20%;
  margin-right: 20%;
  background-color:rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
}

#search_result button{
  padding: 10px;
  background-color:rgba(0, 0, 0, 0.3);
  color: white;
  cursor: pointer;
  border: none;
  transition: 1s;
}

#search_result button:hover{
  color: red;
}

#result{
  color: white;
  font-size: 25px;
  text-align: center;
  padding: 25px;
}

#result a {
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

#result a:visited{
  color: white;
}
#result a:hover{
  border-color: #54b3d6;
  color: #54b3d6;
}

/* End Search Result Section */

/*Home Section*/
  .home{
    margin-top: 1rem;
  }

  .block1{
    margin-top: 5rem;
    width: 100%;
    position: relative;
    background-color: black;
    border-radius: 20px;
  }

  .block1 video {
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    border-radius: 20px;
  }

  .infovideo{
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.849);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
  }

  .infovideo img{
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    width: 80%;
  }

  .infobuttons{
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    width: 80%;
    height: 30%;
  }
  .infobuttons button{
    width: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    border-color: white;
    margin-bottom: 2%;
    padding: 3%;
    font-size: 100%;
    border-radius: 5%;
    transition: 0.5s;
  }

  #buy_prin:hover,
  #cart_prin:hover{
    border-color: #54b3d6;
    color: #54b3d6;
  }

/* End Home Section*/


/* Categories Section*/

.block2,
.block3{
  display: flex;
  flex-wrap:nowrap;
  gap: 1.5rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}
.categories{
  background-image: url("../img/categories/P7gn.gif");
  border-radius: 10px;
}
.categories a{
  border-radius: 10px;
  border-width: 10px;
  cursor: pointer;
  font-size: 3rem;
  text-align: center;
  width: 100%; 
  display: block;
  text-decoration-line: none;
}

.box{
  border-radius: 10px;
  border-width: 10px;
  color: whitesmoke;
  font-size: 3rem;
  text-align: center;
  width: 100%;
  transition: transform 0.5s; 
  display: block;
}

.box:hover{
  transform: scale(1.05);
  color: #54b3d6;
}

.box img {
  margin-top: 20px;
  border-radius: 10px;
  width: 40%;
}

.box .subtitle{
  margin-bottom: 10px;
  font-size: 1.5rem;
}
/* End Categories Section*/

/* Popular Section */
.slider{
  margin: 0 auto;
  width: 800px;
  height: 400px;
  overflow: hidden;
}

.slides{
  width: 400%;
  height: 400px;
  display: flex;
}

.slides input{
  display: none;
}

.slide{
  width: 25%;
  position: relative;
  transition: 2s;
}

.slide img{
  width: 800px;
}

.manual-navigation{
  position: absolute;
  width: 800px;
  margin-top: -40px;
  display: flex;
  justify-content: center;
}

.manual-btn{
  border: 2px solid white;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: .8s;
}

.manual-btn:not(:last-child){
  margin-right: 40px;
}

.manual-btn:hover{
  border: 2px solid #54b3d6;
}

#radio1:checked ~ .s1 {
  margin-left: 0;
}

#radio2:checked ~ .s1 {
  margin-left: -25%;
}

#radio3:checked ~ .s1 {
  margin-left: -50%;
}

#radio4:checked ~ .s1 {
  margin-left: -75%;
}

#radio5:checked ~ .s1 {
  margin-left: -100%;
}

#radio6:checked ~ .s1 {
  margin-left: -125%;
}

.navigation-auto div{
  border: 2px solid #54b3d6;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.8s;
}

.navigation-auto{
  position: absolute;
  width: 800px;
  margin-top: 360px;
  display: flex;
  justify-content: center;
}

.navigation-auto div:not(:last-child){
  margin-right: 40px;
}

#radio1:checked ~ .navigation-auto .auto-btn1{
  background-color: #54b3d6;
}

#radio2:checked ~ .navigation-auto .auto-btn2{
  background-color: #54b3d6;
}

#radio3:checked ~ .navigation-auto .auto-btn3{
  background-color: #54b3d6;
}

#radio4:checked ~ .navigation-auto .auto-btn4{
  background-color: #54b3d6;
}

#radio5:checked ~ .navigation-auto .auto-btn5{
  background-color: #54b3d6;
}

#radio6:checked ~ .navigation-auto .auto-btn6{
  background-color: #54b3d6;
}

.islide{
  background-color: black;
  margin-left: auto;
  margin-right: auto;
  width: 800px;
  height: 200px;
  display: flex;
}

.igame{
  width: 80%;
  height: 100%;
  color: white;
}

.title{
  width: 100%;
  height: 100%;
  font-size: 70px;
  text-align: center;
  justify-content: center;
  transition: transform 0.5s;
}

.ibuttons{
  color: white;
  text-align: center;
}

.ibuttons button{
  width: 80%;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  cursor: pointer;
  border-color: white;
  border-radius: 5%;
  transition: 0.5s;
  padding: 10px;
}

#price-slide{
  margin-top: 10%;
  margin-bottom: 10%;
  font-size: 150%;
}

#buy-slide{
  margin-top: 10%;
  margin-bottom: 10%;
}
#buy-slide:hover,
#cart-slide:hover{
  border-color: #54b3d6;
  color: #54b3d6;
}
/* End Popular Section */

/* More Section*/

.more{
  width: 100%;
  text-align: center;
}
.more button{
  width: 50%;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  cursor: pointer;
  border-color: white;
  transition: 0.5s;
  padding: 10px;
  margin-top: 10%;
  margin-bottom: 10px;
  font-size: 150%;
  transition: transform 0.5s;
}

#more:hover{
  border-color: #54b3d6;
  color: #54b3d6;
  transform: scale(1.01);
}
/* End More Section*/

/* Footer */
footer{
  background-color: black;
  color: white;
  bottom: 0;
  position: relative;
  text-align: center;
}

footer a img{
  width: 48px;
}
footer a{
  text-decoration: none;
}

.f-logo img{
  width: 144px;
  margin: 10px;
  padding: 10px;
}

.f-info{
  padding: 10px;
}

.social-box{
  display: flex;
  flex-wrap:nowrap;
  justify-content: center;
}

.social{
  width: 10%;
  display: block;
  transition: 0.5s;
}

.social .social-name{
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.social:hover{
  color: #54b3d6;
}

footer a:visited{
  color: white;
}
footer a:hover{
  border-color: #54b3d6;
  color: #54b3d6;
}

.rollback{
  padding: 15px;
}

.rollback button{
  color: white;
  border-color: white;
  background-color: rgba(0, 0, 0, 0);
  font-family: 'Times New Roman', Times, serif;
  cursor: pointer;
  font-size: 32px;
  border-radius: 10px;
  transition: transform 0.9s;
  padding: 15px;
}

.rollback button:hover{
  color:#54b3d6;
  border-color:#54b3d6;
}

/* End Footer */

/* All Games page */

.list-all{
  margin-top: 10rem;
  margin-bottom: 10rem;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

.list-all .logo {
  width: 144px;
  border-radius: 10px;
}

.game-item, .game-item a{
  background-color: black;
  color: white;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: 1s;
}

.title{
  transition: 1s;
}

.title a:visited{
  color: white;
}
.title:hover{
  border-color: #54b3d6;
  color: #54b3d6;
}

.game-item:hover{
  background-color: #54b3d6;
}

.game-item .title{
  font-size: 50px;
}

/* End All Games page */

/* Game Page */

/*Game*/
#game-inf, #game-sub{
  margin-top: 10rem;
  margin-bottom: 10rem;
  margin-left: auto;
  margin-right: auto;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 50%;
}

#game-inf{
  display:flex
}

#game_descr{
  text-align: justify;
  padding: 25px;
}

#game_name{
  font-size: 48px;
  text-align: center;
  padding: 25px;
}

#game_img img{
  width: 240px;
  border-radius: 10px;
}

#game_head{
  text-align: center;
  font-size: 18px;
}
#btns{
  padding: 10px;
}
#buy, #cart{
  padding: 10px;
  width: 120px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 10px;
  margin-bottom: 5px;
  transition: 1s;
}

#others{
  padding: 10px;
  font-size: 20px;
}

#game-sub img{
  width: 120px;
  border-radius: 10px;
}

/* End Game Page */

/*Payment*/
#paybox{
  padding: 20px;
  margin-top: 130px;
  display: flex;
  flex-direction:row
}

fieldset{
  border: none;
  font-family: system-ui, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
}

#paybox h3{
  color: white;
}

.items-info, .pay{
  width: 50%;
  margin-left: 5px;
  margin-right: 5px;
}

[type=radio]{
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 25px;
  height: 25px;
  padding: 6px;
  background-clip: content-box;
  border: 2px solid white;
  background-color: white;
  border-radius: 50%;
  transition: .7s;
}

[type=radio]:hover{
  border: 2px solid #54b3d6;
}

input[type="radio"]:checked {
  background-color: #54b3d6;
}

[type=radio] + img{
  cursor: pointer;
}

input[type=submit] {
  background-color: #54b3d6;
  border: none;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  border-radius: 10px;
  cursor: pointer;
  transition: 1s;
}

input[type=submit]:hover{
  color: #54b3d6;
  background-color: white;
}
.pay{
  color: white;
}

#gameshow{
  display: flex;
  flex-direction: row;
  padding: 10px;
  border-radius: 10px;
  transition: .8s;
}
#gameshow:hover{
  background-color: #54b3d6;
}

.cover img{
  width: 90px;
  border-radius: 5px;
}
.order-game-name, 
.order-game-price{
  color: white;
  padding: 10px;
}
.cardinfo{
  display: flex;
  flex-direction: column;
  text-align: justify;
}
#cardnumber, #cardname{
  width: 300px;
}
#carddate, #securecard{
  width: 70px;
}
#cardflag, #cardnumber, #cardname, #carddate, #securecard, #email{
  padding: 10px;
  background: none;
  border: none;
  border-bottom: 1px solid #54b3d6;
  outline: none;
  color: #54b3d6;
  font-size: 15px;
  width: 100%;
  letter-spacing: 2px;
}

.cardinfo2{
  display: flex;
  flex-direction: row;
}

/*End Payment*/

/*Cartview page*/
#clear{
  padding: 20px;
}

#clear button{
  padding: 20px;
  cursor: pointer;
  border-radius: 10px;
  border:none;
  background-color: #050b1869;
  color: white;
  transition: .8s;
}

#clear button:hover{
  background-color: #912424;
}

#allitems{
  color: white;
  padding: 10px;
  margin-top: 130px;
  text-align: center; 
  margin-bottom: 200px;
}

#allitems #img_info{
  width: 300px;
  margin-left: auto;
  margin-right: auto;
}

#empty_info{
  font-size: 25px;
}

#item{
  display: flex;
  flex-direction: row;
  background-color: #050b1869;
  border-radius: 10px;
  transition: .8s;
}

#item:hover{
  background-color: #54b3d6;
}

#cart-cover img{
  width: 90px;
  border-radius: 100%;
}

#item button{
  border: none;
  height: 90px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  cursor: pointer;
  color: #54b3d6;
  background-color: #050b1869;
  padding: 15px;
  margin-right: 25px;
  transition: .8s;
}

#item button:hover{
  color: white;
  background-color: #912424;
}
#ordernow{
  padding: 10px;
  color: white;
  display: flex;
  flex-direction: row;
  font-size: 42px;
}

#total{
  margin-right: 20px;
}

#ordernow button{
  color: white;
  cursor: pointer;
  background-color: #09f;
  font-size: 22px;
  width: 150px;
  padding: 15px;
  border: none;
  border-radius: 10px;
  transition: .8s;
}
#ordernow button:hover{
  background-color: green;
}
/*End Cartview page*/

/* responsiveness */
@media only screen and (max-width: 1024px){
  .social .social-name{
    font-size: 1rem;
  }
  .social{
    width: 25%;
  }
}

@media only screen and (min-width: 765px){
  .sliderALT{
    display: none;
  }
}

@media only screen and (max-width: 413px){
  #homebar{
    display: none;
  }
}

@media only screen and (max-width: 940px){
  .slides input,
  .manual-navigation,
  .navigation-auto,
  .slide, .slides, .slider{
    display: none;
  }

  .islide{
    width: 360px;
    height: 200px;
  }

  .title{
    font-size: 42px;
  }

  .sliderALT{
    margin: 0 auto;
    width: 360px;
    height: 360px;
  }
  .sliderALT img{
    width: 100%;
  }

  .box img {
    margin-top: 20px;
    border-radius: 10px;
    width: 90%;
  }

  header .navbar a:not(:last-child){
    display: none;
  }

  #game-inf, #game-sub{
    width: 100%;
    display: block;
  }
}

@media only screen and (max-width: 1024px){
  .list-all{
    width: 100%;
  }
  
  .list-all .logo{
    width: 64px;
    border-radius: 5px;
  }

  .game-item{
    background-color: black;
    color: white;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    border-radius: 5px;
    cursor: pointer;
    transition: 1s;
  }
  
  .game-item:hover{
    background-color: #54b3d6;
  }
  
  .game-item .title{
    font-size: 22px;
  }

  #paybox{
    display:block;
  }
}
