@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Roboto&display=swap");

/* CSS Document */
body,
html {
  height: 100%;
  width: 100%;
  margin: 0px;
  padding: 0px;
  font-family: "Roboto", sans-serif;
}
body {
  background-color: white;
}
h1,
h2 {
  font-family: "Lobster", cursive;
}

/* CONTAINER */
.container {
  display: grid;
  margin-bottom: 0.1em;
}

/* HEADER */
.header {
  grid-area: h;
  padding: 0.3rem;
  text-align: center;
  background-color: antiquewhite;
  border: solid #424242;
  border-width: 0px 0px 1px 0px;
}

/* NAV */
.nav {
  grid-area: n;
  display: flex;
  background-color: antiquewhite;
}
.nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 1em;
  text-align: center;
  text-decoration: none;
  color: #000000;
  border: solid #424242;
  border-width: 0px 1px 1px 1px;
  transition: all 0.5s;
  text-transform: uppercase;
}
.nav a:hover {
  background-color: azure;
}
nav {
  width: 100%;
}

/* ARTICLE */
.article {
  grid-area: c;
  padding: 0.5rem;
}
.article h1 {
  margin: 1rem 1rem 0rem 1rem;
}

/* MAIN */
.main {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
}
.bloque {
  display: flex;
  flex-direction: column;
  box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.75);
}
.bloque .bl_content {
  flex-grow: 4;
  box-sizing: content-box;
}
.bloque video, iframe {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.bloque .textos {
  flex-grow: 1;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-width: 1px;
  border-style: solid;
  border-color: #fff;
}
.textos h2 {
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0;
  border-bottom-width: 1px;
  border-bottom-style: dashed;
  border-bottom-color: #19191b;
}
.textos p {
  font-size: 0.8rem;
}

/* ASIDE */
.aside {
  grid-area: a;
  padding: 0.5rem;
  background-color: LightGray;
  background-image: url("img/img_brick_150.png");
}

/* FOOTER */
.footer {
  grid-area: f;
  font-size: 0.8em;
  color: #ffffff;
  background-color: #666;
  padding: 0.5rem;
  text-align: right;
}

/*MEDIA QUERIES*/

@media (orientation: landscape) {
  .container {
    grid-template-columns: 150px 1fr 5%;
    grid-template-rows: 80px 1fr 30px;
    grid-template-areas:
      "h h h"
      "n c a"
      "f f f";
  }
  .main {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
  }
}

@media (orientation: portrait) {
  .header h1 {
    font-size: 1.55rem;
  }
  .nav a {
    padding: 0.5em;
  }
  .article h1 {
    font-size: 1.3rem;
  }
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
    "h"
    "n"
    "c"
    "a"
    "f";
  }
  .main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
}
