* {
    margin: 5px;
    padding: 2.5px;
    box-sizing: border-box;
    
}
body{
   
    background: whitesmoke;
    font-family: "Cambria";
    transition: .3s ease all;
}
/*
CONTENIDO
*/

.contenido {
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    width: 90%;
    padding: 10px;
    margin: auto auto 0 auto;

    
}

.contenido h2 {
    color: darkslategray;
    text-transform: uppercase;
    font-size: 30px;
}

.contenido p {
    margin:30px 0;
    font-weight: bolder;
    font-size: 20px;
    color: indianred;
}

.contenido input {
    width: 70px;
    text-decoration: none;
    font-size: 15px;
    font-weight: inherit;
    color: darkslategray;
    background: transparent;


}
/* 
NAV
*/

  .switch {
    background: darkslategray;
    border-radius: 1000px;
    border: none;
    position: relative;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    outline: none;
  }
  
  .switch::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    background: #F1F1F1;
    color: crimson;
    top: 0;
    left: 0;
    right: unset;
    border-radius: 100px;
    -webkit-transition: .3s ease all;
    transition: .3s ease all;
    -webkit-box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
            box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
  }
  
  .switch.active {
    background: crimson;
    color: #000;
  }
  
  .switch.active::after {
    right: 0;
    left: unset;
  }
  
  .switch span {
    width: 15px;
    height: 3px;
    line-height: 10px;
    display: block;
    background: none;
    color: crimson;
  }


/*
.rango input{
    width: 70%;

} */
input[type=range] {
    height: 10px;
    width: 100%;
    height: 2em;
    display: block;
    -webkit-appearance: none;
    background-image: linear-gradient(to right, crimson calc(var(--value)*1%), black 0);
    border-radius: 50px;
}

.rango span {
    color: crimson;
    font-size: 15px;
}

h1 {
    margin-top: 20px;
    font-size: 20px;
    color: darkslategray;
}

span {
    font-weight: bold;
    font-size: 35px;
    color: rgb(96, 158, 96);
   
}
/* 
FOOTER
*/
footer{
    display: block;
    text-align: center;
    color: rgb(71, 68, 68);
    transition: .3s ease all;
    }
    footer:hover{
        letter-spacing: 2px;
    }
    footer a{
        text-decoration: none;
        text-transform: uppercase;
        color: rgb(96, 158, 96);
    }
    
/* 
MODO OSCURO
*/
body.dark{
    background: darkslategray;
}

body.dark h2{
    color: cyan;
}
body.dark .contenido p{
    color: whitesmoke;
}
body.dark .contenido input{
    color: cyan;
}
body.dark input[type=range]{
    background-image: linear-gradient(to right, lightseagreen calc(var(--value)*1%), black 0);
}
body.dark .rango span{
    color: cyan;
}
body.dark h1{
    color: turquoise;
}
body.dark span{
    color: lightgrey;
}
body.dark footer{
    color: rgb(29, 27, 27);
}
/*
@media screen and (max-width:500px) {
  
        input[type=range]{
            height: 20px;
        width: 100%;
            height:.5em;
            display:block;
            -webkit-appearance: none; 
            background-image:linear-gradient(to right, crimson  calc(var(--value)*1%), black 0);
            border-radius: 50px;
          }
}
*/
@media screen and (max-width:375px) {
   footer {
       font-size: 12px;
   }
  
}
@media screen and (max-width:275px) {
    .contenido h2{
        font-size: 20px;
    }
    .contenido p{
        font-size: 15px;
    }
}