*{
    margin: 0;
    padding: 0;
  }

html{
    height: 100%;
}

body{
    height: 100%;
    background-color: #E5E5E5;
    font-family: Inter, sans-serif;
    font-weight: 400;
    letter-spacing: 0em;
}

header {
    width: 70%;
    height: 10%;
    display: flex;
    align-items: flex-start;
}

.switchconte{
  position: relative;
  width: auto;
  height: 100%;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  align-self: right;
  align-items: center;
  width: 4.1666666666667vw;
  height: 2.3611111111111vw;
  margin-top: 50%;
  margin-left: 5%;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 50%;
}

.switchLabel {
  position: relative;
  display: flex;
  color: black;
  font-size: 1vw;
  margin-left: -9%;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  white-space: nowrap;
  text-align: center;
  align-self: center;
}

.slider:before {
  position: absolute;
  content: "";
  height: 2.3vw;
  width: 2.3vw;
  left: 0.12vw;
  bottom: 0.12vw;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(1.8vw);
}

.slider.round {
  border-radius: 5.5555555555556vw;
}

.slider.round:before {
  border-radius: 50%;
}


/*######################################## Logo header */

  .logo {
    position: relative;
    display: flex;
    width: 80%;
    height: 100%;
    align-items: flex-start;
  }

  .logo img {
    position: relative;
    height: 5vw;
    padding: 2% 0 1% 3%;
  }

  .logo h1 {
    flex: 1;
    display: inline-block;
    margin-left: 9%;
    margin-top: 2.5%;
    font-size: 4vw;
    font-style: normal;
    font-family: Arial, Helvetica, sans-serif;
    color: rgba(39, 39, 39, 0.911);
  }


  .contenedor {
    position: absolute;
     width: 100%;
    height: 75%; 
    display: flex;

  } 


  .izquierda {
       flex: 70%;
       position: relative;
       height: auto;
  }


  .textoinput {
    position: relative;
    width: 96%;
     height: 70%;

     padding: 4% 0 0 4%;

  }

  #textoNuevo {
    position: relative;
      width: 90%;
      height: 90%;
   border: none;
   outline: none;                
   background-color: transparent;
   color: #0A3871;
   font-family: 'Inter';
   font-style: normal;
   font-weight: 400;                 
   font-size: 2.6vw;
   line-height: 150%;
   align-self: flex-start;
  }


  ::placeholder {
       color: #0A3871;
  }



  .botones {
    position: relative;
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 30%;

  }


  .mensajeinfo {
      margin-left: 15%;

      margin-bottom: 2%;

      font-family: arial;

      font-style: normal;


      font-weight: 400;

      font-size: 120%;

      line-height: 150%;

      color: #495057;

      opacity: 0.9;

      flex: none;

      order: 1;

      flex-grow: 0;

  }


  #botonencrip {

    display: inline-block;
     width: 22.778vw;
     height: 4.653vw;
     gap: 0.556vw;
    margin-left: 15%;

      color: white;

      font-size: 1.389vw;

      font-family: Arial, Helvetica, sans-serif;

      background: #0A3871;

      border-radius: 24px;

      align-items: center;

      justify-content: center;

  }


  #botondesencrip {

      display: inline-block;

      width: 22.778vw;

      height: 4.653vw;

      gap: 0.556vw;

      margin-left: 5%;

      background: #D8DFE8;

      border: 1px solid #0A3871;

      border-radius: 24px;

      color: #0A3871;

      font-size: 1.389vw;

      font-family: Arial, Helvetica, sans-serif;

      align-items: center;

      justify-content: center;
  }



  /*presentacion de resultados*/
  .derecha {
    flex: 30%;
    height: 100%;
    overflow: visible;
  }
  
  #botonCopiar {
    width: 27vw;
    position: absolute;
    bottom: 4%;
    margin: 0 2vw;
    align-self: center;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    padding: 1.667vw;

    width: 22.778vw;
    height: 4.653vw;
    gap: 0.556vw;
    border: 1px solid #0A3871;
    border-radius: 24px;
    color: black;
  }
  
  #botonCopiar:hover, #botonencrip:hover, #botondesencrip:hover {
    border: 2px solid #061e3b;
    transform: scale(1.03);
    cursor: pointer;
  }
  
  .rectangulo1 {
    position: absolute;
    align-self: stretch; /* Cambiado de "center" a "stretch" */
    flex-direction: column; /* Alinear elementos verticalmente */
    align-items: center; /* Centrar elementos horizontalmente */
    justify-content: center; /* Centrar elementos verticalmente */
    width: 27vw;
    height: 100%;
    padding: 5% 0;
    margin-top: -4%;
    background: #FFFFFF;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.08);
    border-radius: 32px;
    overflow: hidden;
  }
  
  .munheco {
    position: relative;
    max-width: 100%;
    width: auto;
    height: auto;
    align-self: stretch;
    text-align: center;
  }
  
  .rectangulo1 h1 {
    width: 100%;
    position: relative;
    text-align: center;
    font-size: 2vw; /* Cambiado de "1.8vw" a "4vw" */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    color: #343A40;
  }
  
  .rectangulo1 p {
    width: 100%;
    position: relative;
    text-align: center;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-size: 1vw; /* Cambiado de "0.8vw" a "2.667vw" */
    line-height: 150%;
    color: #495057;
    order: 1;
  }
  
  #mensaje-copiado {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-style: bold;
    background-color: rgba(0, 42, 133, 0.548);
    border: 1px solid #fffefe;
    border-radius: 24px;
    z-index: 9999;
    display: none;
  }
  
  #textoReemplazado {

      position: absolute;
      top: 3%;
      margin: 3% 3%;
      padding: 2%;
      align-self: center;
      max-width: 22vw;
      max-height: 60%;
      font-family: Arial, Helvetica, sans-serif;
      font-style: normal;
      font-weight: 400;
      font-size: 1.5vw;
      line-height: 150%;
      display: none;
      text-align: justify;
      overflow-y: auto;
      
      word-wrap: break-word;

  }

  /* #############Pie de página############## */
  footer {
      position: absolute;
      bottom: 0;

      width: 70%;

      height: 6%;

      margin: 1% 0 0 0;

      margin-top: 4%;

      padding: 0;

      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;

  }
  .pie{
      position: absolute;
      width: 100%;
      margin-bottom: 2%;
      font-family: Arial, Helvetica, sans-serif;
  }
  .corazon {

      position: absolute;

      width: 30%;
      max-width:fit-content;

      height: 10%;

      margin: 0 50%;
      align-self: center;

      transform: scale(30%);

      animation: rotate 2s infinite linear;

  }
  @keyframes rotate {
      0% {
          transform: rotateY(0deg) scale(2.0);
      }
      100% {
          transform: rotateY(360deg) scale(2.0);
      }

  }

  /*###### diferentes medidas */

  /*tables*/
  @media screen and (max-width:768px){



    .switchconte{
      position: absolute;
      margin-top: -6%;
      padding: 1%;
      right: 2vw;
    }

    .switchLabel{
      font-size: 2vw;
      left: -3.5vw;
    }

    .contenedor {
      position: absolute;
      width: 100%;
      height: 80%;
      display: flex;
      flex-direction: column;
      margin-top: 0%;
    }

    .izquierda {
      flex: 70%;
    }

    .textoinput {
      position: relative;
      width: 94%;
      margin: 0;
      padding: 3%;
      height: 58%;
  
    }


    .munheco{
      display: none;
    }
  
    #textoNuevo {
      position: relative;
        width: 100%;
        height: 90%;
        background-color: #fffefe;
     border: 7px #061e3b;  
     border-radius: 24px; 
     padding: 3% 0 0 1%;            
    }

    .botones{
      margin-top: 3%;
      width: 100%;
      height: 35%;
    }
  

    .derecha {
      flex: 30%;
  
    }

    .mensajeinfo{
      align-self: center;
      font-size: 3vw;
      margin-left: 4%;
    }

    #botonencrip {
       width: 40vw;
       height: 8vw;
       gap: 0.556vw;
       margin-left: 4%;

   }

   #botondesencrip {
    width: 40vw;
       height: 8vw;
       gap: 0.556vw;

   }

   .resultados{
    position: relative;
    width: 94%;
    height: 100%;
    padding: 1%  3% 0 3%;

   }

    .rectangulo1 {
      position: relative;
      align-items: center;
    
     width: 100%;
     height: 100%;
     padding: 0;
     margin-top: 0;
    }


    #botonCopiar{
     width: 35vw;
     height: 8vw;
     align-self: center;
     margin-left: 31%;


    }


    footer{
     width: 100%;
   }

  } 

  /*######### celular##################*/
  @media screen and (max-width:375px) {
  
  }
