html {
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
}

body {
    min-height: 100dvh;
    min-height: 100vh;
    margin: 0;
    font-family: "Roboto", sans-serif;
    background-color: #8ED2C9;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

.page-wrapper {
    width: 100%;
    height: 100%;
}

.app-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background-color: #8ED2C9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    background-color: #347474;
    color: #FFFFFF;
    padding-top: max(25px, env(safe-area-inset-top));
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    gap: 15px;
    line-height: 20px;
    border-radius: 0;
}

.logo {
    width: 80px;
}

.atom-status {
    font-weight: 400;
    margin-top: -10px;
}

.chat-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
}

.chat-box::-webkit-scrollbar {
    width: 10px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
    background-color: #085F63;
    border-radius: 5px;
    border: 2px solid #8ED2C9;
}

.atom-response {
    background-color: #347474;
    color: #FFFFFF;
    width: fit-content;
    padding: 20px;
    border-radius: 20px;
    align-self: flex-start;
    max-width: 75%;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.2);
    line-height: 26px;
    font-size: 18px;
}

.typing-indicator {
    background-color: #085F63;
    width: fit-content;
    padding: 20px;
    border-radius: 20px;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    order: 99;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    background-color: #8ED2C9;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-of-type(2) {
    animation-delay: -1.0s;
}

.typing-indicator span:nth-of-type(3) {
    animation-delay: -0.8s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.user-response {
    background-color: #FFFFFF;
    color: #062925;
    width: fit-content;
    padding: 20px;
    border-radius: 20px;
    align-self: flex-end;
    max-width: 75%;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container {
    flex-shrink: 0;
    background-color: #FFBD59;
    padding-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
}

.question-input {
    flex-grow: 1;
    border: none;
    border-radius: 30px;
    padding: 18px;
    background-color: #FFFFFF;
    color: #004548;
    font-size: 18px;
}

.question-input:focus {
    outline-color: #085F63;
}

.question-input::placeholder {
    color: #39989D;
    font-size: 22px;
}

.send-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.send-button img {
    width: 55px;
}

@media (max-width: 767.98px) {
    .logo {
        width: 50px;
    }

    .chat-header h1 {
        font-size: 30px;
    }

    .atom-status {
        font-size: 20px;
        margin-top: -5px;
    }

    .chat-box {
        padding: 15px;
        gap: 15px;
    }

    .atom-response,
    .user-response {
        padding: 12px 18px;
        font-size: 16px;
        line-height: 22px;
        max-width: 90%;
    }


    .input-container {
        padding-top: 15px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .question-input {
        padding: 16px 18px;
        font-size: 18px;
    }

    .question-input::placeholder {
        font-size: 18px;
    }

    .send-button img {
        width: 45px;
    }
}