* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f9faef;
    display: grid;
    place-content: center;
    height: 100vh;
    height: 100dvh;
}
header {
    border-bottom: 1px solid #ccc;
    background: #7b8f63;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    a {
        color: black;
    }
}
main {
    padding: 35px;
    width: 600px;
    max-width: 100%;
    height: 70vh;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-y: auto;
}

ul {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0;
    padding: 10px;

    > span {
        padding: 8px;
        width: 36px;
        height: 36px;
        background: #92928c;
        font-size: 12px;
        font-weight: 500;
        display: flex;
        justify-content: center;
        border-radius: 100%;
    }

    > p {
        border-radius: 4px;
        padding: 4px 8px;
    }

    &.user {
        align-self: flex-end;
        align-items: flex-end;
        span, p {
            background: #7b8f63;
        }
    }

    &.bot {
        align-self: flex-start;
        span, p {
            background: #a9dcd9;
        }
    }
}

form {
    display: flex;
    
    input {
        border-radius: 10px;
        flex-grow: 1;
        padding: 10px;
        margin-right: 10px;
        border: 1px solid #ccc;
    }
}

button {
    background: #7b8f63;
    border: 0;
    color: white;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;

    &[disabled] {
        background: #ccc;
        opacity: .6;
        pointer-events: none;
    }
    &:hover {
        background: rgb(72, 85, 56);
    }
}

small {
    font-size: 10px;
    color: #555;
    bottom: 10px;
    position: fixed;
    left: 0;
    right: 0;
    margin: auto;
    width: 400px;
}
@media (max-width: 640px) {
    body {
        padding: 10px;
        height: auto;
    }
    main {
        height: 60vh;
        padding: 20px;
    }
    small {
        width: 90%;
        font-size: 8px;
    }
}

.config-panel {
    background-color: #515e41;
    z-index: 10;
    padding: 10px;
    position: absolute;
    width: 300px;
    border-radius: 10px;
    box-shadow: #555 0px 0px 1px;
    display: none;
    animation: scale-up-ver-top 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;

    >label {
        color: rgba(172, 171, 171, 0.768);
    }
}

.config-panel.activate {
    display: block;
}

@keyframes scale-up-ver-top {
  0% {
    transform: scaleY(0.4);
    transform-origin: 100% 0%;
  }
  100% {
    transform: scaleY(1);
    transform-origin: 100% 0%;
  }
}