@font-face {
    font-family: hsrfont;
    src: url("font/DIN_Medium.ttf");
}
/* @font-face {
    font-family: hsrfont;
    src: url(font/DIN_Black.ttf);
    font-weight: 800;
}
@font-face {
    font-family: hsrfont;
    src: url(font/DIN_Bold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: hsrfont;
    src: url(font/DIN_Medium.ttf);
    font-weight: 400;
} */

html {
    height: 100%;
    width: 100%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

body {
    margin: 0;
    overflow: hidden;
    transition: 0.3s;
    font-family: hsrfont;
    height: 100%;
    position: absolute;
    width: 100vw;
}

button {
    cursor: pointer;
}

#main {
    width: 100%;
    z-index: 1;
    height: 100%;
    background-size: cover !important;
    background-position-x: center !important;
    background-position-y: center !important;
    overflow: hidden;
}

.header {
    margin: 20px 40px;
    font-size: 1.3em;
    display: flex;
}
.header .subtext {
    height: fit-content;
    margin: auto 0;
}
.header img {
    width: 40px;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(84%) sepia(17%) saturate(603%) hue-rotate(351deg) brightness(103%) contrast(98%);
}
.header .name-change {
    text-align: end;
    margin: auto 0 auto auto;
    height: fit-content;
    font-size: 0.7em;
}
.header #name-change-btn {
    cursor: pointer;
    color: #b7b7b7;
    font-size: 0.8em;
    transition: 0.7s;
    margin-left: 5px;
}
.header #name-change-btn:hover {
    color: #fff
}

.content {
    width: 100%;
    height: 100%;
    display: inline-flex;
}

.c1 {
    width: 30%;
    padding: 20px 0 0 0;
    margin-left: 20px;
    color: #fff;
    overflow: auto;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    max-height: 80%;
}

.c1 .char-item button {
    display: flex;
    background-color: rgba(29, 30, 46, 0.6);
    outline: none;
    padding: 12px 20px;
    color: rgb(188,189,191);
    font-size: 1.2em;
    width: 100%;
    transition: 0.3s;
    font-weight: 400;
    border: solid 2px rgb(95,97,105);
    margin-bottom: 15px;
    background-image: url(icons/express.png);
    background-position: right;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    background-origin: border-box;
    background-size: contain;
}

.c1 .char-item button:hover,
.c1 .char-item button.selected {
    background-color: rgba(29, 30, 46, 0.8);
    border: solid 2px rgb(169,168,170);
}

.c1 #char-list {
    padding: 0 15px;
}

.c1 .char-item .char-pic {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-width: 60px;
    max-height: 60px;
    min-width: 60px;
    max-height: 60px;
    /* object-fit: contain; */
    object-fit: cover;
    background-color: rgb(58,58,58);
}

.c1 .char-item .char-name {
    margin: auto 0 auto 10px;
    text-align: left;
}

.c1 .char-item .char-arrow {
    height: fit-content;
    margin: auto 0 auto auto;
    color: rgb(95,97,105);
}

.c2-shadow {
    z-index: 0;
    border-left: solid 1px #575757;
    border-bottom: solid 1px #575757;
    position: fixed;
    width: 60%;
    height: 80%;
    left: calc(30% + 20px);
    margin-top: 5px;
    margin-left: 15px;
}

.c2 {
    z-index: 1;
    width: 60%;
    height: 80%;
    color: #000;
    background-color: rgb(216, 213, 218);
    border-radius: 0 30px 0 0;
    margin: 0 0 0 20px;
    /* box-shadow: -7px 6px 0px rgba(0,0,0,0.5), -8px 5px 0px #b7b7b7, -8px 7px 0 #b7b7b7; */
}

.c2.unselected {
    background-color: rgba(83, 83, 83, 0.3);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.c2.unselected .chat-info {
    border-bottom: none;
}

.chat-list-wrapper {
    height: 87%;
    display: flex;
    flex-direction: column;
}

.c2 .chat-unselected {
    height: 92%;
    color: #96989d;
    margin: auto;
    text-align: center;
    align-content: center;
}
.c2 .chat-unselected img {
    width: 70px;
    height: 70px;
    margin-bottom: 40px;
}

.c2 .chat-info {
    border-bottom: solid 2px #b7b7b7;
    height: 8%;
    padding: 20px 25px 12px;
    line-height: 1.3;
}

.c2 .chat-name {
    display: flex;
    align-items: center;
    font-size: 1.3em;
}

.c2 .chat-signature {
    color: rgb(101, 101, 101);
}

.c2 .chat-list {
    margin: 0 20px 0 20px;
    padding: 0 30px;
    overflow: auto;
    max-height: 95%;
}

.c2 .chat-list .chat-ts {
    font-size: 0.9em;
    margin: 15px auto;
    width: fit-content;
}

.c2 .chat-list .chat-notif {
    margin: 15px auto;
    width: fit-content;
    color: #898989;
    align-content: center;
    align-items: center;
    display: flex;
    font-size: 0.95em;
}
.c2 .chat-list .chat-notif img {
    margin-right: 10px;
    width: 22px;
    height: 22px;
    margin-top: -1px;
}
.c2 .chat-list .chat-end {
    border-bottom: solid 2px #b7b7b7;
    width: 100%;
    text-align: center;
    display: block;
    padding-bottom: 20px;
}

.c2 .chat-list .chat-bubble {
    display: flex;
    margin: 20px 0;
}
.c2 .chat-list .chat-bubble.in .left,
.c2 .chat-list .chat-bubble.out .left {
    margin-right: 10px;
}

.c2 .chat-list .chat-bubble {
    font-size: 1.1em;
    /* align-items: center; */
}
.c2 .chat-list .chat-bubble .char-pic {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    object-fit: cover;
    /* background-color: rgb(58,58,58); */
}
.c2 .chat-list .chat-bubble .char-name {
    font-size: 0.9em;
    color: rgb(101, 101, 101);
}
.c2 .chat-list .chat-bubble .message {
    line-height: 1.5;
    background-color: #fff;
    padding: 10px 15px 5px;
    border-radius: 0 10px 10px 10px;
    margin: 5px 0;
    font-size: 1em;
    width: fit-content;
    box-shadow: -1px 2px rgb(145, 145, 145);
}
.c2 .chat-list .chat-bubble .edited {
    color: rgb(101, 101, 101);
    font-size: 0.6em;
    margin-left: 5px;
}
.c2 .chat-list .chat-bubble .emote {
    height: 100px;
    margin-top: 10px;
}
.c2 .chat-list .chat-bubble .pic {
    width: 300px;
    border-radius: 10px;
    margin: 10px;
}

.c2 .chat-list .chat-bubble.out {
    justify-content: end;
}
.c2 .chat-list .chat-bubble.out .left {
    text-align: end;
}
.c2 .chat-list .chat-bubble.out .message {
    background-color: rgb(206,190,154);
    margin: 5px 0 5px auto;
    box-shadow: 1px 2px rgb(145, 145, 145);
    border-radius: 10px 0 10px 10px;
}

.c2 .choice-list {
    position: relative;
    padding: 10px 30px;
    height: fit-content;
    bottom: 0;
    background-color: rgb(201, 201, 201);
    border-top: solid 2px #b7b7b7;
    margin: auto 0 0 0;
}
.c2 .choice-list.flex {
    display: flex;
}

.c2 .call-list {
    padding: 20px 30px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 5px;
    overflow: auto;
    height: 90%;
}

.c2 .choice-list .choice-btn {
    width: 100%;
    margin: 5px 0;
    font-size: 1.1em;
    background-color: rgb(231,230,233);
    padding: 5px 10px;
    border: none;
    border-radius: 2px;
    text-align: center;
    transition: 0.3s;
    font-family: hsrfont;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.2);
}
.c2 .choice-list.row .choice-btn {
    width: fit-content;
    margin-right: 10px;
}
.c2 .choice-list .choice-btn:hover {
    background-color: rgb(203, 203, 203);
}
.c2 .choice-list .choice-btn.emote {
    text-align: center;
}
.c2 .choice-list .choice-btn.emote img {
    height: 100px;
}
.c2 .choice-list.flex .choice-btn {
    margin-right: 20px;
}

.c2 .call-list {
    height: 90%;
    text-align: center;
}

.c2 .call-timer {
    font-size: 1.1em;
    color: rgb(112 112 129);
    padding-top: 20px;
    text-align: center;
    background-color: rgba(0,0,0,0.3);
    padding-bottom: 10px;
    border-bottom: solid 3px;
}

.c2 .call-list .tray {
    display: flex;
    width: fit-content;
    margin: auto auto 20px;
}

.c2 .call-list .tray .icon img {
    height: 30px;
    width: 30px;
    padding: 5px;
    margin: 0;
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    margin: 0 5px;
}
.c2 .call-list .tray .icon.off img {
    background-color: rgb(76,82,92);
}

.c2 .call-list .message {
    margin-bottom: 10px;
}

.c2 .call-list .message.out {
    font-style: italic;
    color: rgb(112 112 129);
    margin: 20px 0;
}

.credits {
    bottom: 10px;
    right: 10px;
    color: #fff;
    vertical-align: bottom;
    font-size: 0.6em;
    text-align: end;
    position: fixed;
}

#version {
    position: fixed;
    font-size: 0.6em;
    left: 10px;
    bottom: 10px;
    vertical-align: bottom;
    text-align: start;
    color: rgb(205,178,130);
}

a {
    color: #ddd;
    transition: 0.5s;
}
a:hover {
    color: #fff;
}
a:visited {
    color: #ddd;
}

.hidden {
    display: none;
}
