:root {
    --color-primary: #ffc5cf;
    --color-secondary: #FFF9EB;
    --color-tertiary: #fcc2c2;
    --color-quaternary: #f38898;
    --color-button: #ff7088;
    --color-button-hover: #ff6c84;
    --color-text: #444444;
    --color-white: #ffffff;
}

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

.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;
}

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

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

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

/* Contêineres de entrada e botão */
.input-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.input-name {
    width: 100%;
    padding: 10px;
    border: 2px solid #f3758a;
    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 #e78b9a;
    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ão */
button {
    padding: 15px 30px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    border: 2px solid #f3758a;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(255, 132, 153, 0.74);
    cursor: pointer;
}

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

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

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

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

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

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

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

@media screen and (max-width: 800px) {
    body {
        display: block;
        flex-direction: column;
        max-width: 100%;
        height: auto; 
        align-items: center; /* centraliza os elementos no body */
    }

    .img {
        display: block;
        margin: 0 auto;
        max-width: 100%;
        height: auto;

    }

    .main-title {
        margin: 20px 0;        /* menos margem, evita cortes */
        font-size: 28px;       /* tamanho ajustado para caber bem no mobile */
        line-height: 1.2;      /* melhora a leitura se quebrar em 2 linhas */
        text-align: center;    /* centraliza o texto */
        word-wrap: break-word; /* evita estouro de palavra grande */
        max-width: 90%;        /* não deixa o texto colar na borda */
    }
}