: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: 100dvh;
    width: 100dvw;
    background-color: var(--color-primary);
    font-family: "Inter", serif;
}

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

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

/* Sección de entrada */
.input-section {
    display: flex;
    background-color: var(--color-secondary);
    border: 1px solid #000;
    border-radius: clamp(35px, 10dvw, 64px) clamp(35px, 10dvw, 64px) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    margin: auto;
    gap: 2rem;
    transition: border-radius 0.3s ease;
}

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

.result-list {
    font-size: 48px;
    font-family: "Merriweather", serif;
    font-weight: 900;
    color: #a1a1a1;
    font-style: italic;
    text-align: center;
}

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

.input-name {
    padding: 10px;
    border: 2px;
    border-style: solid;
    border-color: #000;
    border-radius: 25px 0 0 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 16px;
}

/* 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;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.button-add {
    background-color: var(--color-tertiary);
    color: var(--color-text);
}

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

.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-button);
    padding: 10px 40px;
    color: var(--color-white);
    font-size: 16px;
    border-radius:  0 25px 25px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #000;

    & img {
        margin-left: 20px;
    }
}

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

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

.list-section {
    display: flex;
    container: list / inline-size;
    justify-content: center;
    width: 100%;
    
    & .friend-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        background-color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        justify-content: center;
        padding: 1rem;
        gap: 1rem;
        width: 60%;
        margin-inline: auto;
        min-height: 128px;
        border: 2px solid #000;
        border-radius: 25px;
        transition: width 0.5s ease, margin-inline 0.5s ease;

        & li {
            color: white;
            background-color: #4B69FD;
            padding: 16px;
            width: fit-content;
            height: max-content;
            border-radius: 8px;
        }
    }

    @container list (width <= 1100px) {
        .friend-list {
            width: 100%;
            margin-inline: clamp(1rem, 5dvw, auto);
        }
    }
}

@media (width <= 630px) {
    .input-name {
        height: 48px;
        width: 100%;
        border-radius: 25px 25px 0 0;
    }
    
    .button-add {
        height: 48px;
        width: 100%;
    }
    
    .button-container {
        height: 48px;
        width: 100%;
        border-radius: 0 0 25px 25px;
    }

    .input-section {
        border-radius: 35px 35px 0 0;
    }
}

@media (width <= 780px) {
    .header-banner {
        flex-direction: column;
    }
}