:root {
    --color-primary: #5abbfc;
    --color-secondary: #FFF9EB;
    --color-tertiary: #C4C4C4;
    --color-button: #fd0100;
    --color-button-hover: #ed5151;
    --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;
    gap: 40px;
}

/* Sección de entrada */
.input-section {
    flex: 60%;
    background-color: var(--color-secondary);
    border: 3px 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: black;
    margin: 10px 0;
    text-align: center;
}

.imagenAmigo{
    width: 250px;
    height: auto;
}

/* 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-primary);
    color: var(--color-white);
    border-radius: 0 25px 25px 0;
}

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

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

li {
    margin: 5px;
    background-color: var(--color-primary);
    border: solid var(--color-text);
    color: var(--color-white);
    border-radius: 10px;
    padding: 5px 10px;
}

.result-list {
    margin-top: 15px;
    color: #000000;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    border: none;
    background-color: transparent;
}

/* 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);
}

.sorteado {
    background-color: #000000;  /* Verde brillante para resaltar */
    color: white;
    font-weight: bold;
    border: 2px solid #000;
    transition: background-color 0.5s ease, transform 0.3s ease;
    transform: scale(1.1);  /* Un pequeño aumento de tamaño */
}

.button-clear {
    display: flex;
    background-color: #584e4e;  /* Rojo claro */
    color: white;
    padding: 15px 40px;
    font-size: 16px;
    justify-content: space-around;
    border-radius: 25px;
    margin: 20px 0;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.button-clear:hover {
    background-color: rgb(56, 55, 55);  /* Rojo más intenso al pasar el mouse */
}
.input-valido {
    border: 2px solid green;
    background-color: #eaffea;
    transition: all 0.3s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.input-invalido {
    border: 2px solid red;
    background-color: #ffeaea;
    animation: shake 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.resultado-ganador {
    animation: fadeInScale 0.5s ease-out;
    color: var(--color-button);
    font-size: 24px;
    font-weight: bold;
}

.footer {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: "Inter", sans-serif;
    font-size: 18px;
    text-align: center;
    padding: 10px;
    align-items: center;
}


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

    .header-banner{
        flex-direction: column;
        gap: 10px;
    }
    .imagenAmigo{
        width: 100%;
    }
  }