
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

::-webkit-scrollbar {
    width: 10px;
  }
  
::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #202020;
}

::-webkit-scrollbar-thumb:hover {
    background: #303030;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: #131313;
    color: #FCFCFD;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.root{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 64px;
}

.head{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    border-bottom: 1px solid #202020;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 18px;
}

.head > b{
    font-size: 20px;
    font-weight: 400;
    opacity: 0.35;
}

.head .currentServer{
    display: block;
    margin-left: 12px;
    padding: 4px 12px;
    font-weight: 500;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.head .button{
    margin-left: auto;
    margin-right: 12px;
}

.sidebar{
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #202020;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 14px;
    user-select: none;
}

.sidebar.smaller{
    width: 160px;
}

.sidebar > a{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-left: 43px;
    height: 39px;
    position: relative;
    margin-bottom: 2px;
    transition: background 0.1s linear;
}

.sidebar > a:hover, .sidebar > a.active{
    background: #3c3c3c;
    cursor: pointer;
}

.sidebar > a.active{
    pointer-events: none;
}

.sidebar > a > svg, .sidebar > a > div{
    height: 24px;
    width: 24px;
    position: absolute;
    left: 12px;
    fill: #aaaaaa;
    opacity: 0.75;
    transition: opacity 0.1s linear;
}

.sidebar > a:hover > svg, .sidebar > a.active > svg, .sidebar > a:hover > div, .sidebar > a.active > div{
    opacity: 1;
}

.sidebar > a > div{
    background-color: white;
    display: flex;
    padding: 0px;
    height: 14px;
    width: 24px;
    background-size:     cover;
    background-repeat:   no-repeat;
    background-position: center center; 
}

.sidebar > a > span{
    font-size: 14px;
    font-weight: 500;
}

.sidebar b{
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
    opacity: 0.5;
}

.sidebar > div{
    flex: 1;
}

.sidebar div{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar .member{
    width: 100%;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0px 4px 4px 0px;
    margin-top: 6px;
    transition: background 0.1s linear;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    user-select: all;
}

.sidebar .member::after{
    content: "";
    position: absolute;
    right: 8px;
    height: 12px;
    width: 12px;
    background: #5e5e5e;
    border-radius: 64px;
}

.sidebar .member.online::after{
    background: #55b33e;
}

.sidebar .member:hover{
    background: #3c3c3c;
}

.sidebar .member.perm5{
    border-left: 2px solid rgba(255, 0, 0, 0.527);
}
.sidebar .member.perm4{
    border-left: 2px solid rgba(0, 110, 255, 0.527);
}
.sidebar .member.perm3{
    border-left: 2px solid rgba(0, 225, 255, 0.527);
}
.sidebar .member.perm2{
    border-left: 2px solid rgba(0, 255, 98, 0.527);
}
.sidebar .member.perm1{
    border-left: 2px solid rgba(229, 255, 0, 0.527);
}

main{
    flex: 1;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 32px;
}

main.noPadding{
    padding: 0px;
}

main.side{
   display: flex;
   min-width: 160px;
   flex: 0;
   flex-direction: row;
}

.contentDivider{
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%; 
   margin-bottom: 18px;
   user-select: none;
}

.contentDivider:hover{
    cursor: pointer;
}

.contentDivider > span{
    font-size: 20px;
    color: #fff;
    padding-right: 6px;
}

.contentDivider > svg{
    height: 18px;
    width: 18px;
    margin-right: 12px;
    transition: transform 0.1s linear;
}

.contentDivider.closed > svg{
    transform: rotateZ(-90deg);
}

.contentDivider > div{
    flex: 1;
    height: 1px;
    background: #f5f5f533;
}

.contentFields{
    display: grid;
    grid-gap: 1em;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    margin-bottom: 32px;
    user-select: none;
}

@media (max-width: 1280px) {
    .contentFields {
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
  }

.contentFields > div{
    background: #262626;
    min-height: 120px;
    border-radius: 8px;
    border: 1px solid #f5f5f51a;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 22px;
    transition: transform 0.2s linear;
}

.contentFields > div:hover{
    transform: translateY(-4px);
}

.contentFields > div > .title{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.contentFields > div > .title > .icon{
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    background: #141414;
    border-radius: 6px;
    margin-right: 8px;
    box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, 0.0784313725), 0px 0px 17.5px -7.5px rgba(0, 0, 0, 0.68);
}

.contentFields > div > .title > .icon > svg{
    height: 100%;
    width: 100%;
}

.contentFields > div > .title > a{
    font-size: 20px;
    font-weight: 500;
    color: #dddddd;
}

.contentFields > div > .title > a:hover{
    cursor: pointer;
}

.contentFields > div > span{
    padding-top: 12px;
    font-size: 15px;
    opacity: 0.5;
}

.dialogBox{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.1s linear;
}

.dialogBox.visible{
    opacity: 1;
}

.dialogBox > div{
    width: 500px;
    max-width: 100%;
    min-height: 150px;
    background: #262626;
    border-radius: 8px;
    border: 1px solid #f5f5f51a;
    box-shadow: 0px 0px 17.5px 7.5px rgba(0, 0, 0, 0.68);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.15s linear;
}

.dialogBox > div.visible{
    opacity: 1;
    transform: translateY(0px);
}

.dialogBox > div.closing{
    opacity: 0;
    transform: translateY(-25px);
}

.dialogBox > div > .title{
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border-bottom: 1px solid #f5f5f51a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialogBox > div > .title > span{
    opacity: 0.8;
}

.dialogBox > div > .title > a{
    margin-left: auto;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s linear;
}

.dialogBox > div > .title > a > svg{
    height: 30px;
    width: 30px;
    fill: #b94f4f;
    transition: fill 0.1s linear;
}

.dialogBox > div > .title > a:hover{
    cursor: pointer;
    transform: scale(1.15);
}

.dialogBox > div > .title > a:hover > svg{
    fill: #c93232;
}

.dialogBox > div > .content{
    flex: 1;
    width: 100%;
    padding: 12px; 
    padding-left: 18px;
    padding-right: 18px;
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.dialogBox > div > .footer{
    width: 100%;
    padding: 12px;
    font-size: 17px;
    border-top: 1px solid #f5f5f51a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.button{
    padding: 0px 15px;
    font-size: 18px;
    height: 34px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    border-radius: 8px;
    background: #0b7fc2;
    line-height: 1.2;
    transition: background 0.1s linear;
    margin-left: 4px;
    margin-right: 4px;
}

.button > svg{
    height: 34px;
    width: 34px;
    fill: #fff;
}

.button:hover{
    background: #1190d9;
    cursor: pointer;
}

.button.disabled{
    opacity: 0.5;
    pointer-events: none;
}

.selectable{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.1s linear;
    position: relative;
    margin-bottom: 12px;
}
.selectable:hover{
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
}
.selectable::after{
    content: "";
    position: absolute;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 24px;
    background: #262626;
}
.selectable:last-child{
    margin-bottom: 0px;
}

.toggle{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.toggle > input{
    display: block;
    width: 24px;
    margin-bottom: 0px;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  vertical-align: baseline;
  border: 0;
  outline: 0;
  color: #fff;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
  vertical-align: top;
  resize: none;
}

[placeholder]::-webkit-input-placeholder { color: rgba(255,255,255,.6); transition: color 0.1 linear; }
[placeholder]:hover::-webkit-input-placeholder { color: rgba(255,255,255,.4); }
[placeholder]:focus::-webkit-input-placeholder { color: transparent; }

[placeholder]::-moz-placeholder { color: rgba(255,255,255,.6); transition: color 0.1 linear }
[placeholder]:hover::-moz-placeholder { color: rgba(255,255,255,.4); }
[placeholder]:focus::-moz-placeholder { color: transparent; }

[placeholder]:-ms-input-placeholder { color: rgba(255,255,255,.6); transition: color 0.1 linear }
[placeholder]:hover:-ms-input-placeholder { color: rgba(255,255,255,.4); }
[placeholder]:focus:-ms-input-placeholder { color: transparent; }

form {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

input, textarea, select {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  font-size: 18px;
  padding: 8px 12px 10px 12px;
  border-radius: 0px 8px 8px 0px;
  background: #1c1c1c;
  border-left: 4px solid #424242;
}

input:last-child, textarea:last-child{
    margin-bottom: 4px;
}

label{
    color: #bbbbbb;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 4px;
    padding-left: 2px;
}

option{
    font-size: 16px;
}

option:nth-child(odd) {
    background-color: #292929;
}

option:nth-child(even) {
    background-color: #1c1c1c;
}

.notifications {
	position: fixed;
	top: 30px;
	right: 20px;
}

.notifications :where(.toast, .column) {
	display: flex;
	align-items: center;
}

.notifications .toast {
	width: 400px;
	position: relative;
	overflow: hidden;
	list-style: none;
	border-radius: 4px;
	padding: 16px 17px;
	margin-bottom: 10px;
	background: #3f3f3f;
	justify-content: space-between;
	animation: show_toast 0.3s ease forwards;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

@keyframes show_toast {
	0% {
		transform: translateX(100%);
	}
	40% {
		transform: translateX(-5%);
	}
	80% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-10%);
	}
}

.notifications .toast.hide {
	animation: hide_toast 0.3s ease forwards;
}

@keyframes hide_toast {
	0% {
		transform: translateX(-10%);
	}
	40% {
		transform: translateX(0%);
	}
	80% {
		transform: translateX(-5%);
	}
	100% {
		transform: translateX(calc(100% + 20px));
	}
}

.toast::before {
	position: absolute;
	content: '';
	height: 3px;
	width: 100%;
	bottom: 0;
	left: 0;
	animation: progress 2.5s linear forwards;
}

@keyframes progress {
	100% {
		width: 0%;
	}
}

.toast::before{
	background: #1190d9;
}

.toast .column span {
	font-size: 18px;
}

.toast > .closer{
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s linear;
}

.toast > .closer > svg{
    height: 30px;
    width: 30px;
    fill: #b94f4f;
    transition: fill 0.1s linear;
}

.toast > .closer:hover{
    cursor: pointer;
    transform: scale(1.15);
}

.toast > .closer:hover > svg{
    fill: #c93232;
}


@media screen and (max-width: 530px) {
	.notifications {
		width: 80%;
	}
	.notifications .toast {
		width: 100%;
		font-size: 1rem;
		margin-left: 20px;
	}
}

.spinner{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-items: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.68);
}

.spinner > div {
    width: 48px;
    height: 48px;
    border: 5px solid #28c0e6d0;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    animation: rotation 1s linear infinite;
    }

@keyframes rotation {
0% {
    transform: rotate(0deg);
}
100% {
    transform: rotate(360deg);
}
} 


.chatRoom{
    padding-bottom: 80px;
    position: relative;
}

.chatRoom .chatInput{
    position: absolute;
    left: 0;
    bottom: 0;
    height: 70px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
    border-top: 1px solid #202020;
}

.chatRoom .chatInput input, .chatRoom .chatInput select{
    border: none;
    border-radius: 8px;
    color: #e6e6e6;
    margin-bottom: 0px;
}

.chatRoom .chatInput input:first-child{
    margin-right: 0px;
    flex: 1;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.chatRoom .chatInput .button:nth-child(2){
    height: 42px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    margin: 0px;
    padding: 2px 12px;
}

.chatRoom .chatInput div:nth-child(3){
    height: 52px;
    width: 1px;
    background: #2c2c2c;
    margin-left: 12px;
    margin-right: 12px;
}

.chatRoom .chatInput input:nth-child(4){
    width: 15%;
    margin-right: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.chatRoom .chatInput select:nth-child(5){
    width: 30%;
    margin: 0px;
    border-radius: 0px;
    height: 42px;
    border-left: 1px solid #353535;
}

.chatRoom .chatInput .button:nth-child(6){
    height: 42px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    margin: 0px;
    padding: 2px 12px;
}

.messageContainer{
    display: flex;
    height: calc(100% - 70px);
    width:100%;
    flex-direction: column;
    overflow: auto;
    position: relative;
}

.message{
    display: flex;
    padding: 10px 15px;
    width: fit-content;
    flex-direction: row;
    border-radius: 8px;
    border-bottom-right-radius: 0px;
    margin: 5px;
    position: relative;
    font-size: 16px;
}
.you{
    background-color: #292929;
    color:#e9e9e9;
    text-align:left;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 0px;
}
.message b{
    color: #d1d1d1;
    display: inline-block;
    padding: 0px 8px;
    background: #3b3b3b;
    height: 23px;
    border-radius: 4px;
    margin-right: 5px;
    width: auto;
    border: 1px solid #373737;
    transition: all 0.1s linear;
}

.message b.adm{
    color: #ff2d2d;
}

.message b.smod{
    color: #459ee7;
}

.message b.mod{
    color: #00aff5;
}

.message b.gmd{
    color: #00aff5;
}

.message b.gm{
    color: #f3d737;
}


.message b:hover{
    background: #515151;
    color: #f5f5f5;
    cursor: pointer;
}

.message span{
    word-break: break-all;
    display: contents;
}