body {
  position: relative;
  font-family: "inter", sans-serif;
  background: #f3f5fc;
  margin: 0 auto;
  text-align: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
}

header img {
  display: inline-block;
  width: clamp(2.2rem,1.37rem + 2.51vw,3.125rem); /*  */
  top: 0.3rem;
  margin-right: 0.6rem;
  color: #0a3871;
  font-weight: 800;
  cursor: pointer;
}

header h1 {
  display: inline-block;
  font-size: clamp(2.2rem,0.33rem + 3.53vw,2.8rem);
  color: #0a3871;
  font-weight: 800;
}



main {
  display: flex;
  justify-content: center;
  align-items: center;
}


.container {
  margin: 0 auto;
  display: flex;
  margin-top: 2.5rem;
  height: 37.5rem;
}
.campoEncriptar {
  margin-right: 40px;
}

#campoTexto {
  background: #f3f5fc;
  border: none;
  font-size: 1.6rem;
  font-family: inherit;
  color: #0a3871;
  margin-top: 20px;
  margin-left: 10px;
  outline: none; /* hide  */
  resize: none;
  
  height: 18em;
  width: 98%;
}

.parteBaja {
  margin-top: 2%;
  margin-bottom: 25px;
  margin-left: 5px;
  position: relative;
  bottom: 5%;
}

.indicacion {
  display: flex;
  margin-bottom: 15px;
}

.indicacion p {
  margin-top: 2px;
  margin-left: 10px;
  font-size: 12px;
  color: #495057;
}

#botonEncriptar {
  color: white;
  width: 328px;
  height: 67px;
  border: none;
  background: #0a3871;
  border-radius: 24px;

  cursor: pointer;
}

#botonDesencriptar {
  width: 328px;
  height: 67px;
  background: #d8dfe8;
  border: 0.0625rem solid #0a3871;
  border-radius: 1.5rem;
  margin-left: 0.625rem;
  cursor: pointer;
}

.campoTextoEncriptado {
  position: relative;
  background: white;
  width: 400px;
  box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.08);
  border-radius: 25px;

  /* centrar todo el contenido de campotextoencriptado */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.campoTextoEncriptado img {
  width: 21rem;
  height: 19rem;
  top: 12%;
}

.text {
  text-align: center;
  top: 138%;
  width: 360px;
}

.text h2 {
  font-size: 1.5rem;
  line-height: 28,0.5rem;
  font-weight: 700;
  margin-bottom: 0.9375rem;
}
.text p {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.botonCopiar {
  display: none;
  position: absolute;
  bottom: 1.8125rem;
  width: 20.5rem;
  height: 4.1875rem;
  background: #ffffff;
  border: 1px solid #0a3871;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s ease-in; /* efecto fade in al hacer clic */
}

.botonCopiar:active {
  background: #0a3871;
  border-color: #0a3871;
  transition: background 0.3s ease-out; /* efecto fade out al hacer clic */
}

.printEncriptado {
  position: absolute;
  top: 2rem;
  font-size: 1.25rem;
  left: 1.375rem;
  right: 2.25rem;
  color: #495057;
  line-height: 36px;
  text-align: justify;
  width: 21.875rem;
  height: 76%;
  word-wrap: break-word; /* asi la palabra no se sale por la orilla, sino que la separa para la siguiente linea */
  display: none;
  border: none;
  outline: none;
  resize: none;
}

footer {
  text-align: center;
  margin-top: 3.75rem;
  resize: ;
}

.social-icons {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.social-icons img {
  transition: all 0.3s ease-in;
}

.social-icons img:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}

.social-icons img {
  width: 2.5rem;
  height: 2.5rem;
}

.made-with {
  text-align: center;
  font-size: 1rem;
  margin-top: 0.3125rem;
  color: #495057;
}










@media screen and (max-width: 1200px) {

  header{
    margin-bottom: 0;
  }

  .container{
  flex-direction: column;
  align-items: center;
  height: 41rem;
  width: 35rem;
  margin-top: 0;
  }
  form{
    height: 22rem;
  }
  .campoEncriptar {
  margin: 1.875rem;
  width: 100%;
  height: 22rem;
  flex-direction: column;
  align-items: center;
  }
  #campoTexto {
  width: 90%;
  height: 18.5rem;
  font-size: 1.2rem;
  }
  .parteBaja {
  width: 100%;
  margin-top: 1.25rem;
  text-align: center;
  margin: 0;
  }

  .indicacion {
    align-items: center;
    justify-content: center;
    margin-bottom: 0.525rem;
    text-align: center;
  }
  .indicacion p {
  font-size: 0.8rem;
  }
  #botonEncriptar, #botonDesencriptar {
  width: 40%;
  height: 3rem;
  margin: 0.625rem 0.625rem;
  font-size: 0.75rem;
  }
  .campoTextoEncriptado {
    width: 120%;
    display: flex;
    text-align: center;
    top: 4.375rem;
    height: 28rem;
  }
  .text {
    top: 0;
    color: #495057;
    margin-top: 1.2rem;
    margin-bottom: 12px;
  }
  .text h2{
    font-size: 1.4rem;
    font-weight: 600;
  }
  .text p{
    font-size: 16px;
  }
  .campoTextoEncriptado img {
    display: none;
  }
  .printEncriptado {
    width: auto;
    top: 0.5rem;
    height: 10.3rem;
    margin-left: 1.2rem;
  }
  .botonCopiar{
    width: 35%;
    height: 2.8rem;
    position: absolute;
    bottom: 0.6rem;
  }
  footer {
    margin-top: 8.5rem;
    width: 100%;
    font-size: 0.9rem;
  }

  .made-with{
    font-size: 0.9rem;
  }

  }







  
@media screen and (max-width: 670px){
  .container{
    width: 90vw;
  }

  .campoTextoEncriptado{
    width: 90vw;
  }

  .indicacion img{
    width: 0.9rem;
  }
  .indicacion p{
    font-size: 0.7rem;
    margin-left: 5px;
  }
  .text h2{
    font-size: 1.2rem;
  }
  .text p {
    font-size: 13px;
    width: 80%;
    margin-left: 2.08rem;
  }

}

