*{
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}


body{
  text-align: center;
  font-family: sans-serif;
  background-color: rgb(35, 31, 31);
}

.page-header{
  display:flex;
}


#head{
  align-items: center;
  justify-content: space-between;
  height: 63px;
  background: #171717;
  position:fixed;
  width: 100%;
  z-index: 100000000;
}

header nav .boxit{
  align-items: center;
  top: 50%;
  left: 50%;
}
input.src{
  padding: 9px 10px 9px 32px;
  margin-top: 10px;
  outline: none;
  font-size: 17px;
  border-radius: 15px;
  color: #444;
  border: 2px solid #0000;
  background: #fff url("../imagenes/search.png") no-repeat left ;
  background-size: 30px;
  background-color: rgb(29, 29, 29);
  width: 60px;
  transition: all .5s;
}

input.src:hover{
  width: 180px;
  box-shadow: 0 0 5px #C81D11;
}

input.cosa{
  width: 180px;
  box-shadow: 0 0 5px #CB1D11;
}


.navbar{
  display:flex;
  margin-right: 20px;

}

.logo{
  margin-left: 30px;
  height: 120px;
  width: 120px;
}

.enlace{
  width: 100px;
  height: 63px;
}

.buf{
  width: 100px;
  height: 63px;
  position:absolute;
  margin-left: 20px;
}


#head .box_jeje{
  width: 120px;
  height: 120px;
  border-radius: 0px;
}
#head .contain_jeje{
  width: 110px;
  height: 110px;
  margin-left: 20px;
  margin-top: 15px;
}


#head img{
  width: 100%;
  height: 100%;
  border-radius: 30px;
}

.navbar a{
  padding: 20px 20px;
  color: #ffff;
  text-decoration: none;
  font-family: 'Rubik Glitch', cursive;
  text-transform: uppercase;
  font-size: 20px;
  transition: all .4s;
}

.navbar a:hover{
  color: rgb(255, 0, 0);
}

main h1{
  font-size: 30px;
  color: white;
  padding: 20px;
}

#section .box{
  width: 300px;
  height: 300px;
  border-radius: 30px;
  position: relative;
}
#section .contain{
  object-fit: cover;
}
#articles img{
  width: 100%;
  height:100%;
  border-radius: 30px;
}
#articles{
  display: grid;
  grid-template-columns: 300px 300px 300px 300px;
  grid-auto-rows: 300px;
  justify-content: center;
  grid-gap: 10px;
  padding-bottom: 100px;
}

.box a h2{
  position: absolute;
  display:none;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 30px;
  background: rgba(0, 0, 0, .7);
  text-align: center;
  color: white;
  padding: 110px;
  font-size: 20px;
}

.box:hover h2{
  display: block;
  animation-duration: .9s;
  animation-name: bordercolor;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

main{
  padding-top: 63px;
}

@keyframes bordercolor {
  from{
    box-shadow: 0 0 0px #C81D11
  }
  to{
    box-shadow: 0 0 14px #C81D11;
  }
}
.hide{
  display: none;
}
/*---- Plataformas ----*/

.platforms{
  background-color: rgb(40, 35, 35);
  align-items: center;
}
.box-platforms{
  display: flex;
  margin: 30px;
}
.cosas{
  width: 200px;
}
.i-platform{
  margin-bottom: 60px;
  height: 400px;
  border-radius: 15px;
}
/*Text, links and title platforms style */
.i-platform a{
  text-decoration: none;
  color:white;
  background-color: red;
  border-radius: 20px;
  transition: all .5s;
  padding-left: 10px;
  padding-right: 10px;
}
#PS4 a:hover{
  color: rgb(38, 4, 235);
  background-color: #191919;
  transition: all .5s;
}
#NINTENDO a:hover{
  color:red;
  background-color: #191919 ;
  transition:all .5s;
}
.i-platform h2{
  color: white;
  font-size: 25px;
  padding: 10px;
}
.i-platform p{
  padding-top: 200px;
  color: white;
  padding-bottom: 25px;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
  font-size: 16px;
}
#PS4{
  background-image:url("../imagenes/ps4-logo-transparente.png");
  background-size: 500px;
  background-repeat: no-repeat;
  background-position: center;
  background-position-y: 80px;
  background-position-x: 50%;
  background-color:#191919;
  animation-name: PS4;
  animation-duration: 1.2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
#NINTENDO{
  background-image:url("../imagenes/nintendo_logo_transparent.png");
  background-position: center;
  background-color: #191919;
  background-repeat: no-repeat;
  background-size: 500px;
  background-position-y: 100px;
  animation-name: NINTENDO;
  animation-duration: 1.2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
#WINDOWS{
  background-image: url("../imagenes/Windows_logo_transparent.png");
  background-position: center;
  background-position-y: 45px ;
  background-size: 200px;
  background-repeat: no-repeat;
  background-color:#191919;
  animation-name: WINDOWS;
  animation-duration: 1.2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

#WINDOWS a:hover{
  background-color:#191919;
  color:#67bfd3;
  transition:all .5s;
}

#XBOX{
  background-image: url("../imagenes/Xbox_one_logo.png");
  background-position: center;
  background-size: 220px;
  background-position-y:38px;
  background-repeat: no-repeat;
  background-color: #191919;
  animation-name: XBOX;
  animation-duration: 1.2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

#XBOX a:hover{
  background-color: #191919;
  color: green;
  transition:all .5s;
}

#ANDROID{
  background-image: url("../imagenes/Android_logo_transparent.png");
  background-position: center;
  background-size: 170px;
  background-position-y:45px ;
  background-color: #191919;
  background-repeat: no-repeat;
  animation-name: ANDROID;
  animation-duration: 1.2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
#ANDROID a:hover{
  background-color: #191919;
  color: #40a74d;
  transition:all .5s;
}

#LINUX{
  background-color: #191919;
  background-image: url("../imagenes/LINUX-LOGO_transparent.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 200px;
  background-position-y: 40px;
  animation-name: LINUX;
  animation-duration: 1.2s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

#LINUX a:hover{
  color:#d4b422;
  background-color: #191919;
}



@keyframes WINDOWS {
  from{
    box-shadow: 0 0 3px #67bfd3
  }
  to{
    box-shadow: 0 0 12px #67bfd3;
  }
}
@keyframes XBOX {
  from{
    box-shadow: 0 0 3px green
  }
  to{
    box-shadow: 0 0 12px green;
  }
}
@keyframes PS4 {
  from{
    box-shadow: 0 0 3px blue
  }
  to{
    box-shadow: 0 0 12px blue;
  }
}
@keyframes ANDROID {
  from{
    box-shadow: 0 0 3px #40a74d
  }
  to{
    box-shadow: 0 0 12px #40a74d;
  }
}
@keyframes NINTENDO {
  from{
    box-shadow: 0 0 3px #C81D11
  }
  to{
    box-shadow: 0 0 12px #C81D11;
  }
}
@keyframes LINUX {
  from{
    box-shadow: 0 0 3px #d4b422
  }
  to{
    box-shadow: 0 0 12px #d4b422;
  }
}

.scroll-down{
  transform: translate3d(0, -100%, 0);
  transition: transform 0.4s;
}
.scroll-up{
  transform: none;
  transition:transform 0.4s;
}

.grid{
  width: 100%;
  height: 2000px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  grid-template-rows: repeat(5,1fr);
  grid-template-areas:
  "n1 n1 n1 n1 n1"
  "n0 n2 n2 n2 n3"
  "n0 n2 n2 n2 n3"
  "n0 n2 n2 n2 n3"
  "n0 n4 n4 n4 n3";
}

.div1{
  background-attachment: fixed;
  grid-area: n1;
  background-repeat: no-repeat;
  background-size: cover;
}

.div1 p{
  color:black;
  font-size: 30px;
  padding-top: 30px;
  font-weight:600;
  font-style: normal;
}

.div2{
  grid-area: n2;
}

#barra{
  height: 100%;
  width: 100%;
  position: absolute;
  transform: translateY(64px);
}

#menu{
  display: none;
}

.nav-phone{
  display: none;
}

@media screen and (max-width: 480px){
  body a{
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
  }
  .head .section .platforms{
    width: 100%;
  }
  
  #articles{
    grid-template-columns: 110px 110px 110px;
    grid-auto-rows: 110px; 

  }
  .buf{
    display: none;
  }

  #section .box{
    width: 110px;
    height: 110px;
  }
  .box a h2{
    position: absolute;
    display:none;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    border-radius: 30px;
    background: rgba(0, 0, 0, .7);
    text-align: center;
    color: white;
    padding: 30px;
    font-size: 13px;
  }
  .boxit{
    display: flex;
    width: 100%;
  }
  .section{
    display: none;
  }
  .page-header img{
    display: none;
  }
  input.src{
    width: 115px;
    transform: translate(80px,-5px);
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
  }
  input.src:hover{
    width: 115px;
    transition: all .3s;
  }
  #menu{
    display: block;
    color: white;
    transform: translate(20px,15px);
  }
  .nav-phone{
    display:flex;
    position:absolute;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: justify;
    font-size: 15px;
    background-color: #171717;
    list-style: none;
    border-radius: 0px 20px 20px 20px;
  }
  .nav-phone li{
    margin-left: 0px;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-right: 20px;
  }

  .see{
    transform: translate3d(0%,57px,0);
    transition: all 0.5s;
  }
  .hidden{
    transform: translate3d(-100%,57px,0);
    transition: all .5s;
  }
  .box-platforms p{
    display:none;
  }
  .box-platforms{
    display: flex;
    flex-direction: column;
  }
  .i-platform{
    height: 280px;
  }
  .i-platform a{
    position: absolute;
    transform: translate(-60px, 180px);
  }
  #PS4{
    background-size: 270px;
    background-position-y: 100px;
  }
  #NINTENDO{
    background-size: 280px;
    background-position-y: 110px ;
  }
  #WINDOWS{
    background-size: 170px;
  }
  #XBOX{
    background-size: 180px;
  }
  #ANDROID{
    background-size: 150px;
  }
  #LINUX{
    background-size:170px;
  }
}
