@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap');

body {
    height: 100vh; /* Fallback for browsers that do not support Custom Properties */
    height: calc(var(--vh, 1vh) * 100);

    margin: 0;
    padding: 0;

    background-color: #dee2e6;

    font-family: "Noto Sans", sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    width: 30em;

    padding: 1em;
    border-radius: 0.5em;

    background: #f1f3f5;
}

.modal h2 {
    margin: 0.5em;
}

.prompt {
    display: none;
}

hr {
    color: #dee2e6;

    border: 1px #dee2e6 solid;
}

.padded {
    padding: 0.5em;

    display: flex;
}

.client-id {
    margin: 0 0.5em 0 0.5em;

    line-height: 1.5em;
}

.green {
    background-color: #38d9a9;
}

.red {
    background-color: #d6336c;
}

.circle {
    height: 1.5em;
    width: 1.5em;

    border-radius: 1.5em;

    display: flex;
}

button {
    background-color: #4dabf7;

    color: #f1f3f5;

    border: 0;

    border-radius: 1em;

    cursor: pointer;

    transition: background-color 0.1s ease-in-out;
}

button:hover {
    background-color: #339af0;
}

.prompt button {
    padding: 1em;

    border-radius: 0.5em;

    float: right;
}

.overlay {
    height: 100%;
    width: 100%;

    background-color: rgba(0, 0, 0, 0.5);

    position: fixed;

    /* display: none; */
    display: none;
    justify-content: center;
    align-items: center;

    transition: opacity 0.5s ease-in-out;
}

.r-space {
    margin-right: 1em;
}

#message-container {
    height: 80%;
    width: 50em;

    display: none;

    border-radius: 0.5em;

    background: #f1f3f5;

    /* display: flex; */
    flex-direction: column;
}

.header, .input-container {
    box-sizing: border-box;

    height: 5em;

    padding: 1em;
}

.header {
    border-bottom: 1px #dee2e6 solid;

    display: flex;
}

.input-container {
    border-top: 1px #dee2e6 solid;

    padding: 1em;
}

.input-container input {
    box-sizing: border-box;

    font-family: "Noto Sans", monospace;

    width: 100%;
    height: 100%;

    background-color: #dee2e6;

    padding: 1em;

    border-radius: 0.5em;

    border: 1px #dee2e6 solid;
}

input:focus {
    outline: none;
}

.header p {
    height: 100%;

    flex-grow: 1;
}

.header button {
    padding: 0 2em 0 2em;
}

#messages-container {
    flex-grow: 1;

    padding: 1em 10% 1em 10%;

    overflow-y: scroll;
}

.message {
    padding: 1em;

    margin-bottom: 1em;

    border-radius: 0.5em;

    max-width: 100%;
    word-wrap: break-word;

    width: fit-content;

    background-color: #dee2e6;
}

.user-message {
    color: #f1f3f5;

    background-color: #339af0;
}

.message-container {
    width: 100%;

    display: flex;
}

.pusher {
    flex-grow: 1;
}

@media screen and (max-width: 1000px) {
    .modal {
        width: 85%;
    }

    #message-container {
        height: 95%;
        width: 90%;
    }
}