html,body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1% 3%;
    font-size: 1.5em;
    font-family: 'Sixtyfour', sans-serif;
}
#header-left{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#header img{
    border-radius: 50%;
    width: 2em;
    height: 2em;
}

#header-right{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 1em;
}

@media (max-width: 1000px){
    #header {
        flex-direction: column; /* Stack children vertically */
        align-items: center; /* Center-align items */
        padding: 1%; /* Increase padding for spacing */
    }

    #header-left {
        justify-content: center; /* Center-align the items inside */
        margin-bottom: 1em; /* Add spacing between stacked elements */
    }

    #header-right {
        justify-content: center; /* Center-align the right section */
    }

    #header-left a {
        font-size: 1em; /* Adjust size for better readability */
    }
}

@media (max-width: 500px){
    #header-right {
        flex-direction: column-reverse;
    }
}

a {
    text-decoration: none;
    color: #fdfefe;
}

#welcome {
    font-family: 'Sixtyfour', sans-serif;
    text-align: left;
    font-size: 4vw;
    margin-top: 7vw;
}

body {
    background-color: #28282B;
    color:  #fdfefe;

    display: flex;
    flex-flow: column;
    margin-left: 5%;
    margin-right: 5%;
}

footer {
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: row;
}
#footer-left {
    flex-grow: 1;
    margin: auto;
    font-size: 1.5em;
}

#footer-right {
    display: flex;
    flex-flow: row;
    gap: 0.8em;
}

#content {
    margin-top: 5%;
    margin-left: 2%;
    margin-right: 2%;
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: 'Roboto', 'sans-serif';
}

#content p{
    overflow-wrap: break-word;
    text-wrap: pretty;
}

h1 {
    text-align: center;
    font-family: 'Sixtyfour', sans-serif;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    max-width: 500px;
    margin: 2em auto 0 auto;
    background: #232326;
    border-radius: 1em;
    padding: 2em 1.5em 1em 1.5em;
    box-shadow: 0 2px 16px 0 #0004;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 0.7em;
}

.chat-message.lisa .chat-avatar {
    font-size: 1.7em;
    margin-bottom: 0.2em;
}

.chat-bubble {
    background: #393943;
    color: #fdfefe;
    padding: 0.7em 1.2em;
    border-radius: 1.2em 1.2em 1.2em 0.4em;
    font-size: 1.1em;
    max-width: 80%;
    word-break: break-word;
    box-shadow: 0 1px 6px 0 #0002;
}

.chat-input-form {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 1.5em;
}

.chat-input {
    flex: 1;
    padding: 0.7em 1em;
    border-radius: 1.5em;
    border: none;
    background: #32323a;
    color: #fdfefe;
    font-size: 1em;
    outline: none;
    transition: background 0.2s;
}

.chat-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.chat-send-btn {
    background: #393943;
    border: none;
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    opacity: 0.7;
    transition: background 0.2s;
    padding: 0;
}

.chat-send-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}