@font-face {
    font-family: 'ABC Ginto Normal';
    font-weight: 700;
    src: url(../fonts/7d66dfcf8e39f27f163fba8d79577fd8.woff2);
}

@font-face {
    font-family: 'ABC Ginto Normal';
    font-weight: 500;
    src: url(../fonts/9491a199bd318f1fc38711fb5067f401.woff2);
}

html,body{ margin: 0; width: 100vw; height: 100vh; overflow: hidden;}

input:focus{
    outline: none;   
}

#loadingScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background: #2f3136;
    position: absolute;
    z-index: 20;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

#loadingScreen img {
    width: 200px;
}

#loadingScreen h1 {
    font-family: 'Whitney';
    color: white;
    font-size: 12px;
    margin: 0;
    text-transform: uppercase;
}

#loadingScreen p {
    font-family: 'Whitney Light';
    color: #dcddde;
    font-size: 16px;
    width: 300px;
    text-align: center;
}

.main {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

.serverList {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    height: 100%;
    background: #202225;
    user-select: none;
}

.serverInfoA {
    width: 240px;
    height: 48px;
    background: #2f3136;
    box-shadow: 0px 1px 1px #232428;
    position: absolute;
    top: 0;
}

.serverInfoB {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    width: -webkit-fill-available;
    height: -webkit-fill-available;
}

.serverInfoB h1 {
    font-size: 16px;
    margin: 0;
    font-family: 'ABC Ginto Normal';
    font-weight: 500;
    color: white;
    user-select: none;
}

.chat {
    position: relative;
    width: calc(100% - 240px);
    height: 100%;
    background: #36393f;
}

.memberList {
    width: 240px;
    height: 100%;
    background: #2f3136;
}

#wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    background: #35393e;
}

#side {
    background: #2f3136;
    width: 20vw;
    height: 100vh;
}

.emoji {
    height: 16px;
}

.channel.unread p {
    color: white;
}

.channel.unread {
    position: relative;
}

.channel.unread::before {
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    top: calc(50% - 5px);
    left: -22px;
    border-radius: 100%;
    background: white;
}

.channelInfo {
    width: calc(100% - 240px);
    box-sizing: border-box;
    height: 48px;
    background: #36393f;
    box-shadow: 0px 1px 1px #2b2d32;
    position: absolute;
    top: 0;
    left: 240px;
    z-index: 10;
    display: flex;
    align-items: center;
    user-select: none;
    padding: 0px 8px;
}

.channelName {
    display: flex;
    flex: 1 1 auto;
}

.channelName h1 {
    color: white;
    margin: 0;
    font-family: 'ABC Ginto Normal';
    font-size: large;
}

.channelName .hash {
    margin: 0px 8px;
    color: #b9bbbe;
}

.channelList {
    width: 240px;
    height: 100%;
    background: #2f3136;
    display: flex;
    align-items: flex-start;
}

.category {
    font-family: 'Whitney';
    font-weight: normal;
}

.category p {
    margin: 5px;
}

.category .channel {
    margin-left: 10px;
}

#channels {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 5px;
    flex-direction: column;
    padding: 58px 8px 10px 8px;
    overflow-y: scroll;
    box-sizing: border-box;
}

#channels::-webkit-scrollbar {
    display: none;
}

.channel {
    cursor: pointer;
    width: -webkit-fill-available;
    height: 34px;
    color: #96989d;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0px 8px;
    font-family: 'Whitney';
    font-weight: 400;
    border-radius: 5px;
}
.channel p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    user-select: none;
}
.channel svg, .channel img {
    margin-right: 6px;
}

.channel:hover {
    background: #42464d;

}
.channel:hover p {
    color: white;
}

.activeChannel {
    background: #42464d;
}

.activeChannel p {
    color: white;
}

.embedWrapper {
    margin: 2px 0px;
    max-width: 432px;
    border-left: 4px solid hsl(216,7.2%,13.5%);
    background: hsl(223,6.9%,19.8%);
    position: relative;
    display: grid;
    max-width: -webkit-max-content;
    max-width: -moz-max-content;
    max-width: max-content;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.375rem;
    white-space: pre-wrap;
    white-space: break-spaces;
    word-wrap: break-word;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    color: hsl(210,2.9%,86.7%);
}

.embedWrapper > div {
    max-width: 516px;
}

.embedWrapper > div > div {
    overflow: hidden;
    padding: .5rem 1rem 1rem .75rem;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
}

.embedWrapper > div > div > .embedTitle {
    font-family: 'Whitney';
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    grid-column: 1/1;
    margin-top: 8px;
}

.embedWrapper > div > div > .embedDescription {
    font-family: 'Whitney Light';
    color: hsl(210,2.9%,86.7%);;
    font-size: 0.875rem;
    line-height: 1.125rem;
    font-weight: 400;
    white-space: pre-line;
    grid-column: 1/1;
    margin-top: 8px;
}

.msgBox-outer {
    background: #36393f;
    padding: 15px;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    bottom: 0;
    padding-bottom: 25px;
}

.msgBox-inner {
    display: flex;
    background: #40444b;
    border-radius: 8px;
}

.msgBox-fileUpload {
    margin: 10px 5px 10px 10px;
    display: flex;
    background: #40444b;
    border: #40444b;
    color: #b9bbbe;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.msgBox-fileUpload:hover {
    color: #cfd2d6;
}

.msgBox-input {
    background: #40444b;
    border: #40444b;
    color: #dcddde;
    min-width: 1px;
    font-family: Whitney;
    font-size: large;
    font-weight: 300;
    width: calc(100% - 32px);
    border-radius: 8px;
}

.msgBox-innerReplyActive {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.msgBox-replyDiv {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 40px;
    width: 100%;
    background: #292b2f;
    display: flex;
    align-items: center;
    padding: 0px 15px;
    box-sizing: border-box;
}

.msgBox-replyDiv > span {
    display: flex;
    flex: 1 1 auto;
}

.msgBox-replyDiv > span{
    white-space: pre;
    font-family: 'Whitney Light';
    margin: 0;
    color: #b9bbbe;
}

.msgBox-replyDiv > span > p {
    white-space: pre;
    font-family: 'Whitney';
    margin: 0;
    color: unset;
}

.msgBox-replyDiv > div {
    display: flex;
    align-items: center;
}

.msgBox-replyDiv > div > svg {
    color: rgb(0, 175, 244);
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.msgBox-replyDiv > div > p {
    font-family: 'Whitney';
    font-weight: bolder;
    color: rgb(0, 175, 244);
}

.divider-reply {
    height: 20px;
    width: 1px;
    margin: 0px 15px;
    background: #424447;
}

.replyCloseButton {
    color: rgb(185, 187, 190);
    aspect-ratio: 1;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.replyCloseButton:hover {
    color: rgb(220, 221, 222);
}

#whatsNewWrapper {
    z-index: 20;
    position: absolute;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(1px);
    background: rgb(0 0 0 / 25%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsNewMenu {
    border-radius: 5px;
    min-height: 250px;
    max-height: 650px;
    width: 490px;
    margin: 5vh 0px;
    padding: 72px 0px 50px 0px;
    height: -webkit-fill-available;
    background: #36393f;
    position: relative;
}

.whatsNewHeader {
    padding: 16px;
    width: 100%;
    height: 72px;
    background: #36393f;
    position: absolute;
    top: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    border-bottom: 2px solid #2f3136;
}

.whatsNewHeaderText {
    flex: 1 1 auto;
}

.whatsNewHeaderText h1 {
    color: white;
    font-family: 'ABC Ginto Normal';
    font-weight: 500;
    margin: 0;
    font-size: 20px;
    line-height: 24px;
}

.whatsNewHeaderText h2 {
    color: #b9bbbe;
    font-family: 'ABC Ginto Normal';
    font-weight: 400;
    margin: 0;
    font-size: 12px;
    line-height: 16px;
}

.whatsNewHeaderCloseButton {
    margin-left: 10px;
    width: auto;
    padding: 4px;
    height: 36px;
    aspect-ratio: 1;
    background: transparent;
    color: #b9bbbe;
    border: none;
    width: auto;
    cursor: pointer;
}

.whatsNewHeaderCloseButton:hover {
    color: white;
}

.whatsNewHeaderCloseButton svg {
    width: 100%;
    height: 100%;
}

.whatsNewContent {
    height: 100%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-family: 'Whitney';
}

.whatsNewContent h1 {
    font-weight: bolder;
    font-style: italic;
    margin: 0;
}

.whatsNewContent p {
    font-weight: 100;
}

.whatsNewBottom {
    width: 100%;
    height: 50px;
    background: #2f3136;
    position: absolute;
    bottom: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}



.messages {
    height: calc(100% - 152px);
    margin: 48px 0px 86px 0px;
    width: 100%;
    position: relative;
}

.messageHolder {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    gap: 20px;
    bottom: 0;
    flex-direction: column;
    overflow: hidden scroll;
    padding: 10px 0px;
}

.messageHolder > .message:nth-child(1) {
    margin-top: auto;
}

.messageHolder::-webkit-scrollbar {
    display: none;
}

.message {
    position: relative;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px 48px 0px 10px;
}

.message:hover {
    background: #32353b;
}

.messageActions {
    top: -14px;
    position: absolute;
    right: 10px;
    display: none;
    transition: box-shadow 0.2s ease-in-out, -webkit-box-shadow 0.2s ease-in-out;
}

.messageActions button {
    display: flex;
    width: 32px;
    aspect-ratio: 1;
    height: 32px;
    padding: 6px;
    border: none;
    background: hsl(220,7.7%,22.9%);
    color: #b9bbbe;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.messageActions button:nth-child(1) {
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.messageActions button:nth-child(4) {
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.messageActions button:hover {
    background: #4f545c66;
    color: #dcddde;
}

.messageActions:has(button:hover) {
    -webkit-box-shadow: 0 3px 5px -2px black;
    box-shadow: 0 3px 5px -2px black;
}

.message:hover > .messageActions {
    display: flex;
    border: 1px #2c2e33 solid;
    border-radius: 3px;
}

.avatarHolder {
    margin: 5px 0px;
    height: 40px;
    aspect-ratio: 1 / 1;
}

.avatarHolder img {
    position: absolute;
    border-radius: 50%;
    height: 40px;
}

.messageContent {
    display: flex;
    flex-direction: column;
    padding: 5px 0px 5px 5px;
    margin-left: 10px;
}

.messageAuthor {
    font-family: 'Whitney';
    color: white;
    font-size: large;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.messageTimestamp {
    color: grey;
    font-size: small;
    padding-left: 5px;
}

.messageContent p {
    line-height: 1.3;
    margin: 0;
    font-family: 'Whitney Light';
}

.messageData {
    color: white;
    font-size: medium;
    font-weight: 100;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
}

.messageData .emoji {
    margin: 0 5px;
    height: 16px;
}

img.messageImage {
    margin-top: 5px;
    aspect-ratio: auto;
    width: 30%;
    border-radius: 10px;
}

a {
    transition: color 0.1s ease-in-out;
    color: #9acd32;
}

a:visited {
    color: #9acd32;
}

a:hover {
    color: #6c9123;
}

#settingsScreen {
    display: none;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: #36393f;
    z-index: 11;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.settingsSidebar {
    width: 35vw;
    height: 100vh;
    background: #2f3136;
    display: flex;
    justify-content: flex-end;
}

.settingsOptionWrapper {
    width: 30%;
    padding: 10px;
    display: flex;
    gap: 5px;
}

.settingsOption {
    cursor: pointer;
    width: -webkit-fill-available;
    height: 34px;
    color: #96989d;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0px 8px;
    font-family: 'Whitney';
    font-weight: 400;
    border-radius: 5px;
}

.settingsOption:hover {
    color: white;
    background: #3c3f45;
}

.settingsLogOut {
    color: #ad2e30;
}

.settingsLogOut:hover {
    color: #cc4141;
}

.closeSettings {
    cursor: pointer;
    width: 42px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid grey;
    position: relative;
}

.closeSettings .closeX {
    color: grey;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.closeSettings::after {
    content: 'ESC';
    font-family: 'Whitney';
    font-weight: 700;
    color: grey;
    position: absolute;
    width: -webkit-fill-available;
    text-align: center;
    bottom: -25px;
}

.closeSettings:hover {
    border-color: lightgrey;
}

.closeSettings:hover::after {
    color: lightgrey;
}

.closeSettings:hover .closeX {
    color: lightgrey;
}

.settingsMenu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px;
    width: 65vw;
    height: 100vh;
    background: #36393f;
}

.channelInfo div:not(.channelName) {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channelInfo input {
    background: #222325;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Whitney';
}

.channelInfo input::placeholder {
    color: white;
}

.channelInfo button {
    cursor: pointer;
    margin-left: 10px;
    background: #5865F2;
    height: 36px;
    aspect-ratio: 1;
    border-radius: 5px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.channelInfo input:disabled {
    color: red;
}