:root {
    --color-primary: #4B69FD;
    --color-secondary: #FFF9EB;
    --color-tertiary: #C4C4C4;
    --color-button: #fe652b;
    --color-button-hover: #e55720;
    --color-text: #444444;
    --color-white: #FFFFFF;
    --highlight-color: rgba(255, 255, 255, 0.4);
}

/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.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;
    animation: slideDown 1s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-title {
    font-size: 48px;
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-style: italic;
    color: var(--color-white);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1.2s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    60% {
        transform: translateY(10px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Seção 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%;
    animation: slideUp 1s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-title {
    font-family: "Inter", serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Esconde o texto fora da máscara */
    animation: reveal 1s ease forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    top: 0;
    left: -100%;
    animation: slideInMask 1.5s ease forwards;
}

@keyframes slideInMask {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

/* Botões com efeito de luz */
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;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-button);
    color: var(--color-white);
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, var(--highlight-color), transparent);
    transition: left 0.4s ease-in-out;
    z-index: 1;
}

button:hover::before {
    left: 100%;
}

.button-add {
    background-color: var(--color-tertiary);
    color: var(--color-text);
    border-radius: 0 25px 25px 0;
}

.button-add:hover {
    background-color: #a1a1a1;
}

/* Listas */
ul {
    list-style-type: none;
    color: var(--color-text);
    font-family: "Inter", sans-serif;
    font-size: 18px;
    margin: 20px 0;
    animation: fadeIn 1s ease-in-out;
}

li {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.5s ease-in-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-list {
    margin-top: 15px;
    color: #05DF05;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

.button-draw {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 40px;
    color: var(--color-white);
    font-size: 16px;
    transition: transform 0.3s ease-in-out;
}

.button-draw img {
    margin-right: 40px;
}

.button-draw:hover {
    transform: scale(1.1);
}
/* Alinhamento do input e botão */
.input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center; /* Garante o alinhamento vertical */
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.input-name {
    width: 70%; /* Ajusta a largura proporcional */
    padding: 15px; /* Aumenta o padding para corresponder ao botão */
    border: 2px solid var(--color-tertiary);
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
    font-family: "Inter", sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s ease-in-out;
    height: 50px; /* Define uma altura fixa */
    box-sizing: border-box; /* Garante que padding não afete o tamanho total */
}

.button-add {
    height: 50px; /* Mesma altura do input */
    background-color: var(--color-tertiary);
    color: var(--color-text);
    border-radius: 0 25px 25px 0;
    padding: 0 20px; /* Ajusta o padding interno */
    font-size: 16px;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    cursor: pointer;
    border: none; /* Remove bordas extras */
    transition: background-color 0.3s, transform 0.3s ease;
}

/* Hover no botão */
.button-add:hover {
    background-color: #a1a1a1;
    transform: scale(1.05);
}
