@import url("https://fonts.googleapis.com/css?family=Spectral|Rubik|Montserrat:wght@300");

* {
  box-sizing: border-box;
  margin: 0;
}

:root {
  --color: #9acd32;
  --color2: #e0e0e0;
  --color3: #822bad;
  --font1: "Spectral", serif;
  --font2: "Rubik", serif;
  --font3: "Montserrat", sans-serif;
}

html {
  font-size: 24px;
}

body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}


.row::after {
  content: "";
  clear: both;
  display: table;
}

[class*="col-"] {
  float: left;
  padding: 2% 6% 2% 8%;
  width: 100%;
}

header {
  background-color: #9933cc;
  color: #ffffff;
  position: fixed;
  width: 100%;
  height: 15vh;
  float: left;
  z-index: 999;
}

.logo {
  padding: 2% 1% 1% 3%;
}

.idioma {
  font-variant: small-caps;
  font-family: var(--font3);
}

nav {
  width: 55%;
  float: right;
  background-color: inherit;
}

.bajadilla {
  padding-top: 10vh;
}

/* Comienza menu superior */

#nivel {
  display: none;
  background-color: var(--color3);
}

@media only screen and (min-width: 768px) {
  #nivel {
    display: block;
  }
}

#nivel li {
  list-style: none;
  float: none;
  padding: 0 3%;
}

#nivel li:last-child {
  font-style: italic;
  padding-left: 8%;
}

@media only screen and (min-width: 768px) {
  #nivel li {
    float: left;
  }

  #nivel li:last-child {
    display: none;
  }
}

#control-menu {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 3%;
}

#control-menu rect {
  fill: var(--color2);
}

@media only screen and (min-width: 768px) {
  #control-menu {
    display: none;
  }
}



#demo3 {
  display: none;
}

.lateral {
  padding-left: 0;
}

.lateral li {
  list-style: none;
  padding: 2%;
}

footer {
  background-color: black;
  color: #ffffff;
  padding: 15px;
  width: 100%;
}

footer p {
  font-size: 0.7rem;
}

footer a {
  font-size: 0.7rem;
  color: white;
}

footer .col-4 {
  padding: 3%;
}

footer form, footer .form {
  background-color: #666;
}




/* genera sticky footer */
.contenedor {
  flex-grow: 1;
}

.nota,
.nota a {
  font-size: 0.6rem;
  padding-top: 1.5rem;
}

/*Fuentes */

h1,
.title-translate {
  font-family: var(--font1);
  font-size: 1.2rem;
}

@media only screen and (min-width: 768px) {
  h1,
  .title-translate
   {
    padding-left: 5%;
  }
}

.title-logo,
#nivel a {
  color: var(--color2);
font-family: var(--font1);
  font-size: 0.8rem;
}

@media only screen and (min-width: 768px) {
  
  .title-logo {
    padding-left: 5%;
    font-size: 1rem;
  }
}

.title-translate {
  font-style: italic;
  font-weight: bold;
}



h2,
h3, h4 {
  font-family: var(--font1);
  font-size: 0.9rem;
  padding-bottom: 5%;
  padding-top: 5%;
}

h2:not(.form>h2)::after, h3:not(.form>h3)::after{
        content:"";
        display: block;
        position: absolute;
        bottom: 5;
        height: 7px;
        width: 3rem;
        border-bottom: 4px solid #9933cc;
        margin-left: 0;
    }

    

h3 {
  font-size: 0.85rem;
}

/* h3:not(.form>h3)::after {
        
      border-bottom: 2.5px solid #9933cc;
        
    } */

h4 {
  font-size: 0.8rem;
}

p,
li,
a,
td,
th,
option, label {
  font-family: var(--font2);
  font-size: 0.8rem;
  padding-bottom: 2%;
  line-height: 1.5;
}

p, label {
  padding-left: 3%;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
/*
nav a {
font-size: 1.5rem;
}
*/

.img-box {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 5% 0;
}

@media only screen and (min-width: 768px) {
  .img-box {
    width: 70%;
  }
}


img {
  width: 100%;
  height: auto;
}

.button {
  background-color: black;
  border: none;
  color: white;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.7rem;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: "\00bb";
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

.desinencia {
  color: red;
  font-weight: bold;
}

form,
.form {
  background-color: var(--color2);
  padding: 3%;
  border-radius: 25px;
  margin-bottom: 2%;
}

.img_cont {
  margin: 0.5em 0 0.5em 0;
  height: 60vh;
}

.img_banner {
  margin: 0.5em 0 0.5em 0;
  height: 25vh;
}

@media screen and  (min-width: 768px) {
  .img_banner {
  margin: 0.5em 0 0.5em 0;
  height: 45vh;
}
}

.img_cont img, .img_banner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}



.elemento {
  font-family: var(--font2);
  text-align: center;
  padding: 7% 20% 7% 0%;
  border-bottom: 1px solid black;
  font-size: 0.65rem;
}

.row {
  display: block;
  margin-left: auto;
  margin-right: auto;
      max-width: 920px;
      
}

@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {
    width: 8.33%;
  }
  .col-2 {
    width: 16.66%;
  }
  .col-3 {
    width: 25%;
  }
  .col-4 {
    width: 33.33%;
  }
  .col-5 {
    width: 41.66%;
  }
  .col-6 {
    width: 50%;
  }
  .col-7 {
    width: 58.33%;
  }
  .col-8 {
    width: 66.66%;
  }
  .col-9 {
    width: 75%;
  }
  .col-10 {
    width: 83.33%;
  }
  .col-11 {
    width: 91.66%;
  }
  .col-12 {
    width: 100%;
      }

  

  nav li {
    padding: 1%;
    list-style: none;
  }

  .control-menu {
    display: none;
  }

  #navegacion {
    float: left;
    height: 100%;
    min-height: 45px;
    background-color: inherit;
  }

  #navegacion li {
    float: left;
    list-style: none;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
  }

  #navegacion a,
  .cerrar a {
    padding: 0.6rem 1rem;
    color: white;
    font-size: 1rem;
    white-space: nowrap;
  }

  #navegacion a:hover {
    background: white;
    color: black;
    text-decoration: none;
  }

  ul.nav-items {
    height: auto;
    overflow: visible;
  }

  #demo4 {
    padding-top: 5%;
    position: -webkit-sticky;
    position: sticky;
    top: 15%;
  }

  #demo4 p {
    text-transform: uppercase;
    transform: rotate(-90deg);

    /* Legacy vendor prefixes that you probably don't need... */

    /* Safari */
    -webkit-transform: rotate(-90deg);

    /* Firefox */
    -moz-transform: rotate(-90deg);

    /* IE */
    -ms-transform: rotate(-90deg);

    /* Opera */
    -o-transform: rotate(-90deg);

    /* Internet Explorer */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  }

  .col-3.lateral p {
    padding: 2%;
    position: -webkit-sticky;
    position: fixed;
    top: 20%;
  }

  .col-3.lateral ul {
    position: -webkit-sticky;
    position: fixed;
    top: 30%;
  }

  .col-3.lateral li a {
    font-size: 0.6rem;
  }

  .col-3.lateral li {
    text-decoration: none;
    line-height: 1;
  }

  .elemento {
    font-size: 0.8rem;
  }
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 98; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: DarkBlue; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
}

#myBtn:hover {
  background-color: MidnightBlue; /* Add a dark-grey background on hover */
}

#myBtn a,
#myBtn a:visited {
  text-decoration: none;
  color: white;
}

#myBtn p {
font-size: .7rem;
}


.conj {
  display: inline-block;
  bottom: 20px;
  right: 30px;
  z-index: 98;
  border: none;
  outline: none;
  background-color: DarkBlue;
  color: white;
  cursor: pointer;
  padding: 5px;
  border-radius: 10px;
}

.conj:hover {
  background-color: MidnightBlue;
}

.conj a,
.conj a:visited {
  font-size: 0.6rem;
  text-decoration: none;
  color: white;
}

.area {
  margin-bottom: 20px;
  padding: 15px;
  max-width: 100%;
  background-color: #d4d0d0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.italic {
  font-style: italic;
}

.imagen-circulo {
  margin: 1em;
  -webkit-shape-outside: unset;
  border-radius: 50%;
}

@media screen and (min-width: 760px) {
  .imagen-circulo {
    max-width: 10em;
    float: left;
    margin-left: -5em;
    -webkit-shape-outside: circle(50%) border-box;
    -webkit-shape-margin: 0.5em;
  }
}

.imagen-circulo img {
  display: block;
  border-radius: 50%;
}

/*Estilos de columnas en los index */
.columnas {
  column-count: 1;
}

@media screen and (min-width: 760px) {
  .columnas {
  column-count: 2;
}
}

.columnas a:link {
  font-weight: 900;
  color: #000;
}

.columnas a:visited {
  font-weight: 100;
  color: #888;
}

.oculto {
  display: none;
}

/* nuevo menu */

header {
  display: block;
  width: 100%;
  min-height: 95px;
  background-color: var(--color3);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 2;
}


.header-logo {
  display: flex;
  width: 60%;
  float: left;
  background-color: inherit;
  color: var(--color2);
  min-height: 75px;
  align-items: center;
  justify-content: center;
}



@media (min-width: 850px) {
  .header-logo {
    width: 40%;
  }
}

.header-logo p {

padding: 1% 0px;

}

.header-logo img {
  display: block;
  max-height: 70px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

nav {
  width: 40%;
  float: right;
  background-color: inherit;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 850px) {
  nav {
    width: 60%;
  }
}

.desplegable {
  display: none;
  flex-direction: column;
}

@media (min-width: 850px) {
  .desplegable {
    display: flex;
    flex-direction: row;
  }
}

.desplegada {
  display: flex;
  

}

nav li {
  padding: 5px;
  list-style-type: none;
  display: block;
}

@media (min-width: 850px) {
  nav li {
    padding: 10px 20px;
  }
}

nav li:last-child {
  margin-bottom: 15px;
}

@media (min-width: 850px) {
  nav li:last-child {
    margin-bottom: 0;
  }
}

nav li a:hover,
#menu:hover {
  background-color: var(--color2);
  color: var(--color3);
  border-radius: 10px;
  transition-duration: 700ms;
}

nav li a,
#menu {
  color: var(--color2);
  text-decoration: none;
  padding: 10px;
  font-size: 0.85rem;
}

#menu {
  display: block;
  border: none;
  background-color: inherit;
}

@media (min-width: 850px) {
  #menu {
    display: none;
  }
}

.youtube {
    background-color: #000;
    margin-bottom: 30px;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    cursor: pointer;
}
.youtube img {
    width: 100%;
    top: -16.84%;
    left: 0;
    opacity: 0.7;
}
.youtube .play-button {
    width: 90px;
    height: 60px;
    background-color: #333;
    box-shadow: 0 0 30px rgba( 0,0,0,0.6 );
    z-index: 1;
    opacity: 0.8;
    border-radius: 6px;
}
.youtube .play-button:before {
    content: "";
    border-style: solid;
    border-width: 15px 0 15px 26.0px;
    border-color: transparent transparent transparent #fff;
}
.youtube img,
.youtube .play-button {
    cursor: pointer;
}
.youtube img,
.youtube iframe,
.youtube .play-button,
.youtube .play-button:before {
    position: absolute;
}
.youtube .play-button,
.youtube .play-button:before {
    top: 50%;
    left: 50%;
    transform: translate3d( -50%, -50%, 0 );
}
.youtube iframe {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

/* check de ejercicios */

.botones-check {
  display: flex;
}

/* Fin check de ejercicios */

.green {
  color: green;
}

.botones {
  display: flex;
  margin-bottom: 25%;
}

@media  (min-width: 850px) {
.botones {
  margin-bottom: 10%;
}
}

.no-visible {
  position: absolute;
  text-indent: -999em;
}

.ejemplo {
   font-style: italic;
  margin-left: 3%;
}

.ejemplo::before {
  content: "- "
}

#fecha {
  font-weight: bold;
}