html,
body,
body > header {
    height: 100%;
    margin: 0;
    padding: 0;
}

.form-signin {
    border-radius: 7px;
    background-color: rgba(7, 7, 7, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 330px;
    padding: 15px;
}

@media screen and (min-height: 350px) {
    .form-signin {
        position: absolute !important;
        bottom: 15% !important;
    }
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

input:focus + label {
    color: #c0c0c0;
}

input + label {
    color: #c0c0c0;
}

.error-message {
    color: #fff;
    background-color: #a82222;
}

a,
a:visited {
    color: white;
}

body {
    background-color: rgb(99, 111, 117);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    min-width: 355px;
}

hr {
    margin-top: 20px;
}

input[type="text"]:focus,
input[type="text"] {
    background-color: rgba(20, 20, 20, 0.55);
    border: 1px solid #0a53be;
    color: #fff;
}

#messages {
    padding-left: 0px;
    padding-right: 10px;
    min-height: 150px;
    height: calc(100% - 70px);
    scroll-behavior: smooth;
}

.speaker-icon {
    width: 20px;
    height: 20px;
    float: right;
    position: relative;
    bottom: 20px;
    cursor: pointer;
    opacity: 0.6;
}

.card-body {
    transition:
        background-color 1s,
        backdrop-filter 1s,
        -webkit-backdrop-filter 1s;
    background-color: rgba(7, 7, 7, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding-left: 15px;
    padding-right: 0px;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

@media screen and (min-width: 576px) {
    .client-message-sender {
        margin-left: 10px !important;
    }

    .client-message {
        margin-left: 10px !important;
    }

    .error-message,
    .info-message {
        margin-left: 10px !important;
    }

    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .card-body {
        padding-left: 2px;
        padding-right: 2px;
        padding-top: 24px;
        padding-bottom: 35px;
    }

    .controls-box {
        padding-left: 30px !important;
        padding-right: 30px !important;
        padding-top: 20px !important;
        padding-bottom: 10px !important;
    }

    .chat-body {
        min-height: 400px;
        height: 100%;
        margin: 0 auto !important;
    }

    #messages {
        padding-left: 20px;
        padding-right: 20px;
        height: calc(100% - 60px);
    }

    /*
    #chat-form {
        margin-top: 1rem !important;
        padding-right: 0px !important;
    }
    */
}

html {
    font-size: 1.3em;
}

@media screen and (max-width: 576px) {
    .dyna-padding {
        padding-bottom: 1rem;
    }
}

@media screen and (min-width: 920px) {
    .card-body {
        transition:
            background-color 1s,
            backdrop-filter 1s,
            -webkit-backdrop-filter 1s;
        background-color: rgba(7, 7, 7, 0.65);
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        border-radius: 7px;
    }
    body {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

@media screen and (min-width: 940px) {
    body {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    html {
        font-size: 1em;
    }
    .card-body {
        padding-bottom: 24px;
    }
}

.controls-box {
    border-radius: 10px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 20px;
}

.chat-body {
    max-width: 900px;
    min-height: 400px;
    height: 100%;
    margin: 0 auto;
}

.client-message {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: fit-content;
    min-width: 200px;
    color: #fff;
    background-color: #2e3757a0;
    padding-top: 15px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 50px;
    margin-left: 0px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.client-message:not(:last-child) {
    margin-bottom: 40px;
}

.client-message:last-child {
    margin-bottom: 15px;
}

.server-message {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    float: right;
    width: fit-content;
    min-width: 200px;
    max-width: 80%;
    color: #fff;
    background-color: #57273fa0;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding-top: 15px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 10px;
    margin-left: 50px;
}

.error-message p,
.info-message p {
    margin-bottom: 0px;
}

.server-message p {
    margin-bottom: 8px;
}
.client-message p {
    margin-bottom: 8px;
}

/*
#chat-form {
    margin-top: 0.5rem;
    padding-right: 15px;
}
*/

.error-message,
.info-message {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    clear: right;
    border-radius: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0px;
    margin-right: 10px;
    margin-bottom: 25px;
}

.server-message:not(:last-child) {
    margin-bottom: 40px;
}

.server-message:last-child {
    margin-bottom: 15px;
}

.client-message-sender {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    clear: right;
    font-weight: bold;
    margin-left: 0px;
    width: fit-content;
    padding-top: 1px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    white-space: nowrap;
}

.server-message-sender {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    clear: right;
    width: fit-content;
    max-width: 80%;
    font-weight: bold;
    text-align: right;
    margin-right: 10px;
    margin-left: auto;
    padding-top: 1px;
    padding-left: 15px;
    padding-right: 15px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    white-space: nowrap;
}

.source {
    margin-top: 5px;
    font-size: 0.8em;
}

.white-svg {
    filter: invert(100%) sepia(0%) saturate(1%) hue-rotate(156deg)
        brightness(102%) contrast(101%);
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        color: #0d6efd;
    }
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(99, 111, 117, 0.3);
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(99, 111, 117);
}

pre {
    white-space: pre-wrap;
}

h1 {
    font-size: 1.0em
}

h2 {
    font-size: 1.0em
}

h3 {
    font-size: 1.0em
}

h4 {
    font-size: 1.0em
}