:root {
    --primary-color-light: #7391cb;
    --primary-color: #5f7eb8;
    --primary-color-dark: #2d436c;

    --accent-color: #7391cb;
    /* --accent-color: #c65c5c; */
    --own-message: #cadae8;
    --other-message: #ebebeb;

    --chat-bg-color: #fff;
    --chat-bg-color-alt: #ddd;
    --chat-text-color: #000;

    --font-color: black;
    --font-color-neg: white;

    --purple: #481f79;
    --pink: #b857ae;
    --red: #c65c5c;
    --orange: #ddec62;
    --yellow: #c9bb59;
    --yellow-dark: #b1a44a;
    --lime: #9f9949;
    --green: #5a6c32;
    --turqoise: #729f9d;
    --gray: #bdbdbd;
    --gray2: #bdbdbd48;

    --darker-gray: #ada9a9;

    --font-size: 14px;
    --emoji-size: 8px;

    --border-radius: 5px;
    --box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    --text-shadow: 2px 2px 16px #000000;

    --fadein: fadein 0.1s;

    --chat-info-height: 75px;

    --icon-size: 16px;

    --rb0: rgba(255, 0, 0, 1) 0%;
    --rb10: rgba(255, 154, 0, 1) 10%;
    --rb20: rgba(208, 222, 33, 1) 20%;
    --rb30: rgba(79, 220, 74, 1) 30%;
    --rb40: rgba(63, 218, 216, 1) 40%;
    --rb50: rgba(47, 201, 226, 1) 50%;
    --rb60: rgba(28, 127, 238, 1) 60%;
    --rb70: rgba(95, 21, 242, 1) 70%;
    --rb80: rgba(186, 12, 248, 1) 80%;
    --rb90: rgba(251, 7, 217, 1) 90%;
    --rb100: rgba(255, 0, 0, 1) 100%;

    --grid-cell-size: 42px;

    --flash-color: var(--accent-color);

    --online: #8bd072;

    --code-bg: #2d2f32;
    --code-bg-light: #393c40;
    --code-bg-dark: #202224;
    --code-color: #ededed;
    --code-keyword: #ffe0bc;
}

:root[data-theme='light'] {
    --primary-color-light: #345080;
    --primary-color: #2B446E;
    --primary-color-dark: #203455;

    --chat-bg-color: #f2f2f2;
    --chat-bg-color-alt: #e7e7e7;
    --chat-text-color: #000;

    --font-color: #2e2e2e;
    --font-color-neg: #E6E6ED;

    --gray: #cccccc;
    --gray2: #5c5c5c;

    --code-bg: #ffffff;
    --code-bg-light: #e7eff5;
    --code-bg-dark: #cedeec;
    --code-color: #000000;
    --code-keyword: #0000ad;
}

:root[data-theme='dark'] {
    --primary-color-light: #616060;
    --primary-color: #4e4e4e;
    --primary-color-dark: #343333;

    --chat-bg-color: #343333;
    --chat-bg-color-alt: #2d2c2c;
    --chat-text-color: #E6E6ED;

    --font-color: #E6E6ED;
    --font-color-neg: #E6E6ED;

    --gray: #5c5c5c;

    --own-message: #2d2c2c;
    --other-message: #3f3d3d;
}

:root[data-theme='cookie'] {
    --primary-color-light: #584d4d;
    --primary-color: #453d3d;
    --primary-color-dark: #322c2c;

    --chat-bg-color: #322c2c;
    --chat-bg-color-alt: #252121;
    --chat-text-color: #E6E6ED;

    --font-color: #E6E6ED;
    --font-color-neg: #E6E6ED;

    --gray: #5c5c5c;

    --own-message: #252121;
    --other-message: #3b3535;
}

@keyframes flash {
    50% {
        background-color: var(--flash-color);
    }
}

html {
    font-family: 'Segoe Ui';
    font-size: var(--font-size);
    caret-color: var(--red);
}

textarea {
    font-family: 'Segoe Ui';
}

*::-webkit-scrollbar {
    width: 12px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 20px;
    box-shadow: inset var(--box-shadow);
    background-color: var(--line-color);
}

::-webkit-scrollbar-corner {
  background: rgba(0,0,0,0);
}

.svg-inline--fa {
    font-size: var(--icon-size);
    align-self: center;
}

.center {
    align-self: center;
}

.column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.row {
    display: flex;
    flex-direction: row;
    height: 100%;
}

a {
    transition: color 0.2s;
    color: var(--red);
}


.chat_input {
    outline: none;
    border: none;
    background-color: var(--chat-bg-color-alt);
    border-radius: var(--border-radius);
    color: var(--font-color);
    padding: 4px;
    box-shadow: var(--box-shadow);
    padding: 8px;
}

.chat_input[type="number"] {
    width: 60px;
}

.chat_input[type="number"]::-webkit-outer-spin-button,
.chat_input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.chat_checkbox {
    user-select: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.chat_checkbox:hover {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    color: var(--font-color-neg);
    border-color: var(--font-color-neg);
}

.chat_checkbox:hover::before {
    color: var(--font-color-neg);
}


.chat_checkbox.checked::before {
    color: var(--primary-color);
    display: block;
    content: "✓";
    margin-left: 4px;
    margin-top: -1px;
}

#notification_container {
    display: flex;
    flex-direction: column-reverse;
    position: absolute;
    z-index: 1000;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 65px;
}

.notification_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 4px;
    padding: 8px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--font-color-neg);
    box-shadow: var(--box-shadow);
    -webkit-animation: var(--fadein);
    -moz-animation: var(--fadein);
    -ms-animation: var(--fadein);
    -o-animation: var(--fadein);
    animation: var(--fadein);
}

.notification_bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    word-break: break-all;
}

.notification_title {
    font-weight: bold;
    margin-bottom: 8px;
}

.notification_close {
    position: absolute;
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    cursor: pointer;
    user-select: none;
    right: 8px;
    top: 0px;
    font-size: 24px;
}

.spinning {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

img {
    visibility: collapse;
}

img[src] {
    visibility: visible;
}