@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

/* Estilos generales */
* {
  font-family: "Inter", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #eef4f8;
}

h2 {
  font-size: small;
  font-weight: 300;
  margin: 5px;
  padding-top: 15px;
}

/* Estilos del header y redes sociales */
.nav {
  width: auto;
  height: auto;
  margin: 5px;
  padding-top: 15px;
  display: flex;
  align-items: center;
}

.redes-sociales {
  display: flex;
  gap: 25px;
  margin-left: auto; /* Alinear iconos a la derecha */
  padding-right: 130px;
}

.icono-redes {
  width: 35px;
  height: 35px;
  transition: transform 0.3s;
}

.icono-redes:hover {
  transform: scale(1.1);
}

/* Estilos principales */
.main {
  width: 100%;
  height: 85vh;
  display: flex;
  justify-content: center;
  padding: 35px;
}

.section-input {
  width: 60%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5%;
}

.texto-input {
  width: 100%;
  height: 70%;
  text-align: center;
  font-size: x-large;
  padding: 25px;
  border: none;
  resize: none; /* Evita que el usuario cambie el tamaño del textarea */
  overflow: auto;
}

.contenedor-botones {
  width: 100%;
  height: 95px;
  display: flex;
  justify-content: space-around;
  padding-top: 35px;
}

.botones {
  width: 50%;
  height: 50px;
  margin: 15px;
  border-radius: 55px;
  font-size: larger;
  color: white;
  font-weight: 600;
  border: none;
  background-color: #3498db;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.botones:hover {
  background-color: #2980b9;
  transform: translateY(-5px);
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.botones:active {
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

#E {
  background-color: #379777;
}

#D {
  background-color: #f4ce14;
}

#L {
  background-color: #0a3871;
}

#copy {
  background-color: #604cc3;
}

/* Sección de resultado */
.section-resultado {
  background-color: white;
  width: 30%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5%;
  border-radius: 55px;
}

.contenedor-1,
.contenedor-2 {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 15px;
}

.contenedor-2 {
  display: none;
}

.img1 {
  width: 340px;
  height: 300px;
}

.mensaje-titulo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  padding-top: 35px;
}

.parrafo {
  font-size: 15px;
  margin-top: 5px;
  text-align: center;
}

/* Contenedor de notificaciones */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  color: #fff;
  font-size: large;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
}

.toast.show {
  opacity: 1;
}

.toast.hide {
  opacity: 0;
}

.toast.success {
  background-color: #3fa147a9; /* Verde para éxito */
}

.toast.error {
  background-color: #ff4d4d; /* Rojo para error */
}

/* Animación de desaparición */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Consultas de medios para tablets */
@media (max-width: 1200px) {
  .main {
    flex-direction: column;
    height: auto;
  }

  .section-input {
    width: 85%;
    margin: 20px;
  }
  .section-resultado {
    width: 95%;
    margin: 20px;
  }

  .texto-input {
    font-size: large;
  }

  .contenedor-botones {
    flex-wrap: wrap;
    height: auto;
    gap: 5px;
    padding: 50px;
  }

  .botones {
    width: 80%;
    margin: 10px 0;
  }
}

/* Consultas de medios para móviles */
@media (max-width: 480px) {
  .section-input,
  .section-resultado {
    width: 85%;
    padding: 15px;
  }

  .texto-input {
    font-size: medium;
    padding: 15px;
  }

  .contenedor-botones {
    height: auto;
  }

  .botones {
    width: 100%;
    margin: 10px 0;
  }

  .img1 {
    display: none;
  }

  .mensaje-titulo {
    font-size: 20px;
  }

  .parrafo {
    font-size: 16px;
  }
}
