:root {
    --color-primary: #021024;
    --color-secondary: #04204F;
    --color-secondary-rgb: 4, 32, 79; 
    --color-tertiary: #C4C4C4;
    --color-title:#8ac1ff;
    --color-button: #5482B3;
    --color-button-hover: #345272;
    --color-text: #76b4ff;
    --color-white: #FFFFFF;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

/* Banner */
.header-banner {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0;
}

/* Sección de entrada */
.input-section {
    flex: 0 0 50%;
    background-color: rgba(var(--color-secondary-rgb), 0.5);
    border: 1px  solid var(--color-text);
    border-radius: 64px 0 0 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

/* Títulos */
.main-title {
    font-size: 60px;
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: italic;
    color: var(--color-title);
}

.section-title {
    font-family: "Inter", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-title);
    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: 15px;
    border: 2px solid #000;
    border-radius: 25px 0 0 25px;
    font-size: 22px;
    background-color: var(--color-primary);
}

.input-name:focus {
    background-color: var(--color-tertiary); 
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); 
}

.input-name:active {
    background-color: var(--color-tertiary); 
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3); 
}

.button-container {
    display: flex;
    flex-direction: row;
    width: 500px;
    justify-content: center;
    gap: 20px
}

/* 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-primary);
    border-radius: 0 25px 25px 0;
}

.button-add:hover {
    background-color: #8b8b8b;
}

/* Listas */
ul {
    list-style-type: none;
    color: var(--color-white);
    font-family: "Inter", sans-serif;
    font-size: 20px;
    margin: 20px 0;
}

.result-list {
    margin-top: 15px;
    color: #05DF05;
    font-size: 35px;
    font-weight: bold;
    text-align: center;
}

/* Botón de sortear título */
.button-draw, .button-new-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:disabled, .button-new-draw:disabled {
    background: #898989;
    opacity: 0.7; /* Reduce la opacidad */
    cursor: not-allowed; /* Cambia el cursor */
}
.button-draw:disabled:hover , .button-new-draw:disabled:hover {
    background: #898989;
    opacity: 0.7; /* Reduce la opacidad */
    cursor: not-allowed; /* Cambia el cursor */
}

.button-draw img, .button-new-draw img {
    margin-right: 10px;
    width: 35px;
    filter: invert(1);
}

.button-draw:hover, .button-new-draw:hover {
    background-color: var(--color-button-hover);
}

/*Imagen*/
img {
    max-width: 90%;
    max-height: auto;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column; 
        gap: 30px;
    }
    
    .header-banner {
        flex: 0 0 60%;
    }

    .input-section {
        flex: 0 0 40%;
        border-radius: 64px 64px 0 0; 
    }

    .button-container{
        flex-direction: column;
        width: 450px; /* Ancho para pantallas de hasta 1200px */
    }

    .button-draw, .button-new-draw{
        justify-content: center;
    }


    .main-title {
        font-size: 50px;
    }

    /* Estilos específicos para pantallas de hasta 768px */
    @media (max-width: 768px) {
        .button-container{
            width: 300px; 
        }
    }

    @media (max-width: 350px) {
        .main-title {
            font-size: 40px;
        }
    }
}