@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap');


*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

body{
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}
/****************************************************************************************************
MODOS                                   MODOS                                    MODOS
****************************************************************************************************/

body.dark{
    --colorFondoPrimario: #2f2e4d;
    --colorFondoSecundario: #312244;
    --colorFondoTerciario: #271B36;
    --colorTexto: white;
    
    --botonMenuHover:#402d58;
    --btnDescarga: #15a14b;
    --btnDescargaHover: #359459;
    
    --input:#393e49;
    --inputHover: #4d194d;
}
body.claro{
    --colorFondoPrimario: #f8f7f5;
    --colorFondoSecundario: #f7f0e8f5;
    --colorFondoTerciario:#D5D0CD;
    --colorTexto: black;
    
    --botonMenuHover:#e6dbd0;
    --btnDescarga: #c0bba3;
    --btnDescargaHover: #a8a48e;
    --input:#ccccc8;
    --inputHover: #b3b4a7;
}

/****************************************************************************************************
HEADER                                    HEADER                                    HEADER
****************************************************************************************************/
.flex{
    display: flex;
    flex-wrap: wrap;

}

header{

    border: solid 1px transparent;
    background-color: var(--colorFondoSecundario);
    width:100%;
    color: var(--colorTexto);
    padding-top: 0.5em;
    padding-bottom: 0.55em;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

h1{
   font-size: 2.25rem;
}

.boton-menu{
    margin-inline-start: 2em;
    border: 1px transparent solid;
    padding: 0.5em;
    background-color: transparent;
    font-size: 0.875rem;
    color:var(--colorTexto);
    cursor: pointer;

}
.boton-menu:hover{
    background-color:var(--botonMenuHover);
    
    border-radius: 1em;
    
}
.boton-switch{
    background-color: var(--botonMenuHover);
    color: var(--colorTexto);
    margin-inline-start: 2em;
    border: 1px transparent solid;
    padding: 0.5em;
    position: relative;
    cursor: pointer;
    outline: none;
    border-radius: 1em;
   
}
.boton-switch:hover{
    background-color:var(--botonMenuHover);
    
}
.boton-switch::after{
    display:block;
    background: #fffbf5;
    width: 2em;
    height: 2em;
    position: absolute;
    top:0em;
    left:0em;
    right:unset;
    border-radius: 3em;
    transition: all .5s ease-in;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .5);
    content: "";
}

.boton-switch.active::after{
    left:unset;
    right:0;
}

i{
    padding-inline-end: 0.5em;
}
/****************************************************************************************************
MAIN                                    MAIN                                    MAIN
****************************************************************************************************/

main{

    background-color: var(--colorFondoPrimario);
    height: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.1em;
}
.row{
    display: flex;
    flex-direction: column;
    align-content: center;
}
.meme-container{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width:50%;
    height:400px;
    border: 0.5px solid rgba(219, 216, 216, 0.507);
}

.top-text{

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white;
    height: auto;
    width: 100%;
    padding: 0.6em;
    padding-bottom: 0.8em;

    font-size: 1.5rem;
    font-family: Impact;

    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: clip;
    
}

#meme{
    background-color: black;
    width:  100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;

}
.bottom-text{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white;
    height: auto;
    width: 100%;
    padding: 0.5em;
    padding-bottom: 0.8em;

    font-size: 1.5rem;
    font-family: Impact;

    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: clip;
}

.btnDescarga{

    display: flex;
    align-self: center;

    color: var(--colorTexto);
    background-color: var(--btnDescarga);
    border: 1px solid transparent;
    border-radius:3px ;

    font-size: 0.7rem;
    margin-top: 1em;
    padding: 0.5em;
}

.btnDescarga:hover{
    background-color: var(--btnDescargaHover);
}
/****************************************************************************************************
ASIDE                                   ASIDE                                    ASIDE
****************************************************************************************************/
.flex{
    display: flex;
}

.ocultar{
    display: none;
}
.hidden{
    visibility: hidden;
}
#cruz{    
    text-align: right;
    background-color: var(--colorFondoTerciario);
    color: var(--colorTexto);
    border: none;
}
.cross{
    border: 4px transparent solid;
    cursor: pointer;
    border-radius:20% ;
    padding: 0em;
}

.cross:hover{
    background-color: var(--inputHover);
}
#container-aside{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    height: 100%;
    width:25%;
    padding: 0.5em 0.5em 0em 1em;
    color:var(--colorTexto);
    background-color:var(--colorFondoTerciario);

    overflow: auto;
    position: fixed;
    top: 0;
    right: 0;
    box-shadow: -10px 10px 100px 5px rgb(0 0 0 / 30%);
    z-index: 10;

}
h2{
    font-size: 1.125rem;
    font-weight:800;

    display: flex;
    justify-content: center;
}

h3{
    font-size: 0.75rem;
    font-weight: bolder;
    margin-bottom: 0.5em;
}
label{ 
    font-size: 0.70rem;
}

.spaceBtwn{
    display: flex;
    justify-content: space-between;

}
.inputColor{
    width: 50%;
    margin-right: 0.3em;
    padding: 0.2em;
    border:0;
    border-radius: 3px;
    color: var(--colorTexto);
    background-color: var(--input);
}
.BolaColor{
    margin-left: 0.5em;
    width:15%;
    margin-right: 0.4em;
    border:none;
    background-color: var(--input);
}

.inputSelect{
    width: 100%;
    height:100%;
    border:0;
    border-radius: 3px;
    color: var(--colorTexto);
    background-color: var(--input);
}

.panel-input{
    width: 100%;
    padding: 0.3125em 0.625em;
    
    border:0;
    border-radius: 3px;
    color: var(--colorTexto);
    background-color: var(--input);

}

.margen{
    margin-top: 0.3em;
}

textarea{
    resize: vertical;
    outline: none;
    margin: 0em 0.2083em 0.3125em 0em;
    height: 3em;
    width: 25.5625em;
}
#sizeValue{
    height: 100%;
    padding: 0.3125em 0.625em;
    
    background-color: var(--input);
    color: var(--colorTexto);
    border: none;
    border-radius: 3px;
    outline: none;

}


.botonAlign{
    color: var(--colorTexto);
    background-color: var(--input);
    border: 1px solid transparent;
    border-radius: 3px;
    height: 100%;
}
.iAlign{
    padding: 0.5em;
    
}
.spaceAround{
    display: flex;
    justify-content: space-around;
}

.margenIzq{
    margin-inline-start: 10em;
}
.inputEspaciado{
    background-color: var(--input);
    border:0;
    border-radius: 3px;
    padding: 0.5em;
    width:100%;
    outline: none;
    color: var(--colorTexto);


}
input:hover.panel-input:hover,.botonAlign:hover,textarea:hover,.inputSelect:hover,.botonAlign:hover,.inputEspaciado:hover,#sizeValue:hover{
    background-color: var(--inputHover);
}

/*
INPUTS                                         INPUTS                                         INPUTS                  
*/
input[type='range'] {
    width: 100%;
    background-color: #5a5d68;
    appearance: none;
    height: 0.35em;
  }
  
  input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    height:0.8em;
    width: 0.8em;
    border-radius: 50%;
    background: white;
    cursor: pointer;
  }
  
  input[type='color']::-webkit-color-swatch {
    border-radius: 100%;
    border: none;
    cursor: pointer;
    
  }
/*MEDIA QUERY                           MEDIA QUERY      */

@media (min-width: 280px) and (max-width: 645px){

h1{
    font-size: 2rem;
}
main{
    height: 90vh;
}
.meme-container{
    width:100%;
    height: 65vh;
}

#container-aside{
width:100%;
padding: 0.5em;
height: 100vh;
}
}

@media (min-width:645px) and (max-width: 700px) {
 
main{
    height: 100%;
}
  h1 {
      font-size: 26px;
  }

  #container-aside{
      width: 100%;
      height: 100vh;
  
  }

  }
@media (max-width:1059px){

    #wrap{
        flex-wrap: wrap;
    }
}

@media (min-width: 1300px) {

    #container-aside {
      display: block;
      box-shadow: none;
    }
    #cruz {
      display: none;
    }
  }