@font-face {
  font-family: Roboto;
  src: url(../../../../../fonts/Roboto-Regular-webfont.eot), url(../../../../../fonts/Roboto-Regular-webfont.woff), url(../../../../../fonts/Roboto-Regular-webfont.ttf), url(../../../../../fonts/Roboto-Regular-webfont.svg);
}

@font-face {
  font-family: Sosa;
  src: url(../../../../../fonts/sosa-regular-webfont.eot), url(../../../../../fonts/sosa-regular-webfont.woff), url(../../../../../fonts/sosa-regular-webfont.ttf), url(../../../../../fonts/sosa-regular-webfont.svg);
}

@font-face {
  font-family: Merienda;
  src: url(../../../../../fonts/Merienda-Regular.ttf), url(../../../../../fonts/Merienda-Bold.ttf);
}

@font-face {
  font-family: Lato;
  src: url(../../../../../fonts/Lato-Regular.ttf), url(../../../../../fonts/Lato-Black.ttf), url(../../../../..//fonts/Lato-BlackItalic.ttf), url(../../../../../fonts/Lato-Bold.ttf), url(../../../../..//fonts/Lato-BoldItalic.ttf), url(../../../../../fonts/Lato-Hairline.ttf), url(../../../../../fonts/Lato-HairlineItalic.ttf), url(../../../../../fonts/Lato-Italic.ttf), url(../../../../../fonts/Lato-Light.ttf), url(../../../../../fonts/Lato-LightItalic.ttf);
}

* {
  font-family: "Lato", serif;
  font-size: 16px;
  text-decoration: none;
}

*:focus {
  outline: none;
}

/* box-shadow outlines rounded corners! */
.focus-visible {
  box-shadow: 0 0 0 2px lightgreen;
}

h1 {
  font-family: "Roboto", sans-serif;
  text-align: center;
  vertical-align: bottom;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

h2 {
  font-family: "Merienda", cursive;
  color: #000000;
  text-shadow: 2px 0 5px #ffffff;
  text-align: center;
}

h3 {
  font-family: "Lato", sans-serif;
  color: #000000;
  text-shadow: 0 0 10px rgb(196, 182, 182);
  text-align: center;
}

h4 {
  font-family: "Lato", sans-serif;
  color: #000000;
  text-shadow: 0 0 10px rgb(196, 182, 182);
  text-align: justify;
}

h1, h2 {
  font-size: 2.5rem;
}

h3, h4 {
  font-size: 1.5rem;
}

body {
  display: grid;
  margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-areas: "header""main""footer";
}

@media only screen and (min-width: 50px) and (max-width: 767px) {
  h1, h2 {
    font-size: 1.5rem;
  }

  h3, h4 {
    font-size: 0.9rem;
  }

  .header {
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 148, 255, 1), rgba(189, 189, 189, 1));
    overflow: hidden;
    font-family: "Merienda", cursive;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column;
    min-height: 300vh;
    width: 100%;
    background-color: #91cae0;
    border: 2px solid rgba(204, 204, 204, 0.123);
    text-align: center;
  }

  .ejercicio {
    margin: 0 auto;
    padding: 10px;
    position: sticky;
    top: 30px;
    bottom: 100px;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 10vh;
    width: 80%;
    background: #ffffff;
  }

  footer {
    align-items: center;
    text-align: left;
    background: linear-gradient(to right, #ff5252, rgba(0, 148, 255, 1));
  }

  .footer-copyright {
    text-align: center;
    min-height: 50px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {

  .aviso {
    text-align: center;
    color: rgb(243, 17, 17);
    font-size: 1.5rem;
    box-sizing: border-box;
    min-width: 180px;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column;
    min-height: 300vh;
    width: 100%;
    background-color: #91cae0;
    border: 2px solid rgba(204, 204, 204, 0.123);
    text-align: center;
  }

  .container > p, footer {
    display: flex;
    width: 100%;
    background-color: #1976d2;
  }

  .ejercicio {
    position: sticky;
    top: 100px;
    bottom: 100px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
    width: 80%;
    background: #ffffff;
  }

  .entrada {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    font-size: 1.4rem;
    background-color: #91cae0;
    opacity: 0.9;
    color: rgba(0, 148, 255, 1);
    box-shadow: -3px -3px 5px 3px rgba(255, 255, 255, 0.2);
    padding: 5rem;
    margin-bottom: 20px;
    border: 1px solid;
    border-radius: 15px;
  }

  .entrada .field .aviso {
    text-align: center;
    color: #fff;
    padding: .2rem .2rem;
    font-size: 1rem;
    box-sizing: border-box;
    min-width: 180px;
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    background: linear-gradient(to left, rgba(0, 148, 255, 1), rgba(189, 189, 189, 1));
    z-index: 3;
  }

  footer p {
    font-family: "Merienda", cursive;
  }

  h1, h2 {
    font-size: 2rem;
  }

  h3, h4 {
    font-size: 1.2rem;
  }

  .header {
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    width: 100%;
    height: 60vh;
    background: linear-gradient(to right, rgba(0, 148, 255, 1), rgba(189, 189, 189, 1));
    overflow: hidden;
    font-family: "Merienda", cursive;
  }

}

@media only screen and (min-width: 1024px) {
  
  .aviso {
    text-align: center;
    color: rgb(243, 17, 17);
    font-size: 1.5rem;
    box-sizing: border-box;
    min-width: 180px;
  }

  .container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column;
    min-height: 50vh;
    width: 100%;
    background-color: #91cae0;
    border: 2px solid rgba(204, 204, 204, 0.123);
    text-align: center;
  }

  .container .ejercicio article {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    padding: 0.5rem;
  }
  .container > p, footer {
    display: flex;
    width: 100%;
    background-color: #1976d2;
  }

  .ejercicio {
    position: sticky;
    top: 100px;
    bottom: 100px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
    width: 90%;
    background: #ffffff;
  }

  .entrada {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    font-size: 1.4rem;
    background-color: #91cae0;
    opacity: 0.9;
    color: rgba(0, 148, 255, 1);
    box-shadow: -3px -3px 5px 3px rgba(255, 255, 255, 0.2);
    padding: 5rem;
    margin-bottom: 20px;
    border: 1px solid;
    border-radius: 15px;
  }

  .entrada .field .aviso {
    text-align: center;
    color: #fff;
    padding: .2rem .2rem;
    font-size: 1rem;
    box-sizing: border-box;
    min-width: 180px;
  }

  .footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    background: linear-gradient(to left, rgba(0, 148, 255, 1), rgba(189, 189, 189, 1));
    z-index: 3;
  }

  footer p {
    font-family: "Merienda", cursive;
  }

  h1, h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  .header {
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 10vh;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to right, rgba(0, 148, 255, 1), rgba(189, 189, 189, 1));
    overflow: hidden;
    font-family: "Merienda", cursive;
  }

}