/* DOCUMENTO HTML*/

body, html {
  height: 100%;
  width: 100%;
  margin:0px;
  padding:0px;
}

section{
  display:grid; /*porque si le pongo flex coje el aside y lo junta todo*/
  margin-bottom: 0.1em;
}

article{
  font-family: 'ShipporiMincho';
}

article h1{
  margin: 1rem;/*En todos los bordes*/
  text-transform: uppercase;
}

/* MAIN*/

#main{/*Almohadilla porque es un div id*/
  display:grid;
  grid-gap:1rem;
  padding:1rem;
}

.bloque{
  font-family: 'Helvetica';
  box-shadow: 3px 5px 28px 0px rgb(58, 54, 54);
  height: 160%;
}

.bloque video{
  width: 100%;
  height: auto;
}

.bloque iframe{
  width: 100%;
  height: auto;
}

.bloque .textos{
margin-left: 0.5rem;
margin-right: 0.5rem;
padding-bottom: 0.5rem;
}

/*Podemos hacer un subenlace como en el ejemplo (ver color), 
redirigiendo a mas informacion de por ejemplo insertar videos, etc. Y subrayado con a:hoover*/

.textos h2{
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0;
  border-bottom-width: 1px;
  border-bottom-style: groove;
  border-bottom-color: steelblue;
}

.textos p{
  font-size: 0.9rem;
}

/*NAV*/

nav {
  margin-bottom: 0.1em;
  font-family:'Montserrat';
}

nav ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: space-around;
}

nav li {
  padding: 10px;
  flex-grow: 1;
}

nav a{
    display: block;
    text-align:center;
    text-decoration: none;
    transition: all 2s;
    color: black;
    padding: 1em;
    border: solid 1px black;
    text-transform: uppercase;
    font-size: 1.2rem;

}

nav a:hover {
  background-color: lightblue;
  color:  white;
  
}

/*ASIDE*/

aside{
  display: grid;
  grid-gap:0.5rem;
  padding:0.5rem;
  background-color: rgb(218, 242, 252);

}

.card img{
  width: 100%;
  height:auto;
  transition: all 1s;
}

.card img:hover{
  filter:invert(100%);
}

footer{
  font-family: 'Helvetica';
  font-size: 0.8em;
  color:mintcream;
  background-color: lightslategray;
  padding-left: 2.2rem;
}

@media (orientation: landscape){

  section{
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto;
  }

  #main {
   grid-template-columns: 1fr 1fr 1fr;
   grid-template-rows: auto;
  }
  
  aside{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  nav ul{
    flex-direction: row;
  }

  a{
    margin-right: 0.2em;
  }
}

@media(orientation: portrait){
  section{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  #main{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;

  }

  .bloque{
    height: auto;
  }
  aside{
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;

  }
  nav ul{
    flex-direction: column;
  }

  nav a{
    margin-bottom: 0.2em;
  }

}