*{
    margin: 0;
    padding: 0;
}
body
{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f0f0;
    display: grid;
    place-content: center;
    height: 90vh;
    height: 90dvh;
}

main
{
    width: 70dvw;
    max-width: 100%;
    height: 70vh;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-bottom: 16px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

ul
{
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
}

.mensaje
{
    display: flex;
    flex-direction: column;
    margin: 4px 0;
    padding: 4px 8px;

    > span {
        width: 36px;
        height: 36px;
        background-color: #eee;
        font-size: 12px;
        font-weight: 500;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
    }

    > p {
        border-radius: 4px;
        padding: 4px 8px;
        margin-top: 6px;
    }

    &.user{
        align-self: flex-end;
        align-items: flex-end;
        p, span{
            background-color: #bde0fe;
        }
    }

    &.bot {
        align-self: flex-start;
        align-items: flex-start;
        p, span{
            background-color: #ffafcc;
        }
    }
}

form
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    input{
        border-radius: 999999999px;
        width: 50dvw;
        border: 0;
        padding: 8px;
        margin-right: 8px;
        border: 1px solid #ccc;
    }

    button{
        background-color: #09f;
        border: 0;
        color: wheat;
        border-radius: 6px;
        cursor: pointer;
        padding: 8px;
        transition: .3s ease;

        &[disabled]
        {
            background-color: #ccc;
            opacity: .6;
            pointer-events: none;
        }
        &:hover{
            background-color: rgb(5, 102, 167);
        }
    }
}

small
{
    font-size: 10px;
    color: #555;
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    width: 400px;
}

.seleccion
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1%;
}

select
{
    width: fit-content;
    border: none;
    background-color: transparent;
    font-size: 20px;

    &:hover{
        cursor: pointer;
    }
}

option:hover
{
    background-color: transparent;
}

.modal-container{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgb(144, 148, 150, 0.8);
}

.modal-content
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    width: 50dvw;
    height: 60dvh;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.35);   
}

.opciones{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;

    >button{
        font-size: 20px;
        background-color: #09f;
        border: 0;
        color: wheat;
        border-radius: 6px;
        cursor: pointer;
        padding: 8px;
        transition: .3s ease;

        &:hover{
            background-color: rgb(5, 102, 167);
        }
    }
}