:root {
  --color-primary: #4b69fd;
  --color-secondary: #fff9eb;
  --color-tertiary: #c4c4c4;
  --color-button: #fe652b;
  --color-button-hover: #e55720;
  --color-text: #444444;
  --color-white: #ffffff;
}

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

body {
  height: 100vh;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Banner */
.header-banner {
  flex: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 0;
}

/* Sección de entrada */
.input-section {
  flex: 60%;
  background-color: var(--color-secondary);
  border: 1px solid #000;
  border-radius: 64px 64px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  width: 100%;
}

/* Títulos */
.main-title {
  font-size: 48px;
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-style: italic;
  color: var(--color-white);
}

.section-title {
  font-family: "Inter", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 10px 0;
  text-align: center;
}

/* Contenedores de entrada y botón */
.input-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
}

.input-name {
  width: 100%;
  padding: 10px;
  border: 2px solid #000;
  border-radius: 25px 0 0 25px;
  font-size: 16px;
}

.button-container {
  width: 300px;
  justify-content: center;
}

/* Estilos de entrada de texto */
.input-title {
  flex: 1;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #333;
  border-right: none;
  border-radius: 25px 0 0 25px;
  font-family: "Merriweather", serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Estilos de botón */
button {
  padding: 15px 30px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  border: 2px solid #000;
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.button-add {
  background-color: var(--color-tertiary);
  color: var(--color-text);
  border-radius: 0 25px 25px 0;
}

.button-add:hover {
  background-color: #a1a1a1;
}

/* Estilos para el feedback visual */
.feedback-message {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  transition: opacity 0.5s ease-in-out;
  opacity: 0; /* Por defecto, el mensaje está oculto */
}

/* Clases de tipo para los mensajes */
.feedback-message.info {
  color: #4b69fd;
  background-color: #e6e9ff;
}

.feedback-message.error {
  color: #cc0000;
  background-color: #ffe6e6;
}

.feedback-message.exito {
  color: #05df05;
  background-color: #e6ffe6;
}

/* Listas */
ul {
  list-style-type: none;
  color: var(--color-text);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  margin: 20px 0;
  text-transform: capitalize;
}

.result-list {
  margin-top: 15px;
  color: #05df05;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

/* Botón de sortear título */
.button-draw {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 40px;
  color: var(--color-white);
  background-color: var(--color-button);
  font-size: 16px;
}

.button-draw img {
  margin-right: 40px;
}

.button-draw:hover {
  background-color: var(--color-button-hover);
}

/* Estilos para el botón de reiniciar */
.button-reiniciar {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 40px;
  color: var(--color-text);
  background-color: var(--color-tertiary);
  font-size: 16px;
  justify-content: center;
}

.button-reiniciar:hover {
  background-color: #a1a1a1;
}

/* Estilos para el botón de eliminar */
.boton-eliminar {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
  line-height: 20px;
  text-align: center;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: none;
}

.boton-eliminar:hover {
  background-color: #cc0000;
}

/* Ajuste opcional para los LI si el botón se desalinea */
.name-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  border-bottom: 1px dashed var(--color-tertiary);
}

.tachado {
  text-decoration: line-through;
  color: #888; /* Opcional: Un color gris para que se note que está inhabilitado */
}

/* Animación para el nombre sorteado */
@keyframes parpadeo {
  0% {
    transform: scale(1);
    color: inherit;
  }

  50% {
    transform: scale(1.1);
    color: var(--color-button);
  }

  100% {
    transform: scale(1);
    color: inherit;
  }
}

.sorteado-animacion {
  animation: parpadeo 1.5s ease-in-out;
}
