:root{
    --darkgray: rgb(40,40,40);
    --bggradient: rgb(20,20,20);/*linear-gradient(rgb(50,0,0), rgb(20,0,0))*/
    --accentred: rgb(200, 0, 30);
    --amadypink: rgb(255,0,255);
    --amadyyellow: rgb(255,255,0);
    --icon-color: #C1C1C1;
    font-family: ClashGrotesk-Regular;
}
#bkg{
    top: 0px;
    left: 0px;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bggradient);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
#upper{
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 60px;
    background-color: var(--darkgray);
    border-radius: 16px;
    display: flex;
    color: white;
}
#upper h1{
    transition: all .3s ease;
    font-family: ClashGrotesk-Bold;
    height: 100%;
    top: 0px;
    transform: translate(0px, -20%);
    position: absolute;
    left: 70px;
    user-select: none;
    background: linear-gradient(white, white);
  background-clip: text;
  color: transparent;
}
#upper h1:hover{
    background: linear-gradient(var(--amadypink), var(--amadyyellow));
  background-clip: text;
  color: transparent;
}
#content{
    position: fixed;
    top: 70px;
    left: 0px;
    width: 100%;
    height: calc(100% - 70px);
    display: flex;
    gap: 10px;
}
#left-pnl{
    min-width: 300px;
    width: 25%;
    height: 100%;
    background-color: var(--darkgray);
    border-radius: 16px;
}
#inner-pnl{
    top: 0px;
    min-width: 100px;
    flex-grow: 1;
    height: 100%;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    gap: 10px;
}
#chat{
    background-color: var(--darkgray);
    min-width: 100px;
    flex-grow: 1;
    flex-direction: column;
    scroll-behavior: smooth;
    gap: 10px;
    display: flex;
    border-radius: 16px;
    overflow-y: auto;
    overflow-x: hidden;
}
#user{
    position: absolute;
    right: 0px;
    width: auto;
    height: 100%;
    background-color: rgb(0,0,0,.2);
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    transition: all .3s ease;
    overflow: hidden;
    gap: 10px;
}
#user #pfp{
    transition: all .3s ease;
    border-radius: 100%;
    border: solid 2px black;
    transform: scale(0.9);
    background-color: rgb(0,0,0,.1);
}
#user h2{
    transition: all .3s ease;
}
@media (max-width: 700px) {
    #user h2{
        opacity: 0;
    }
    #user{
        width: 60px;
    }
    .shrinkable span{
        opacity: 0;
    }
}
.grau{
    color: gray;
}
.btnsmol{
    aspect-ratio: 1 / 1;
    min-width: 50px;
    background: rgb(0,0,0,.1);
    border: none;
    border-radius: 16px;
    color: white;
    position: relative;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.btnsmol img{
    pointer-events: none;
    user-select: none;
    
}
.btnsmol:hover{
    background-color: rgb(0,0,0,.3);
}
.btnsmol:active{
    transform: scale(0.9);
}
#settings-btn:hover img{
    animation: spin 2s infinite ease-out;
}
@keyframes spin{
    0%{transform: rotate(0deg);}
    100%{transform: rotate(360deg);}
}
.button{
    border-radius: 5px;
    border: none;
    background-color: rgb(0,0,0,.2);
    color: white;
    padding: 20px;
    font-size: 25px;
    display: flex;
    gap: 20px;
    line-height: 0px;
    text-align: center;
    align-items: center;
    transition: all .2s ease;
    overflow: hidden;
    position: relative;
    word-break: break-word;
    white-space: normal;
    height: fit-content;
}
.button::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0px;
    aspect-ratio: 1 / 1;
    height: auto;
    background-color: white;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    transition: all .15s ease;
}
.button img{
    height: 50px;
}
.button span{
    mix-blend-mode: difference;
}
.button:hover{
    background-color: rgb(0,0,0,.3);
}
.button:active{
    transform: scale(0.9);
}
.button:active img{
    mix-blend-mode: difference;
}
.button:active::before{
    width: 100%;
}
.btn{
    border-radius: 5px;
    border: none;
    background-color: rgb(0,0,0,.2);
    color: white;
    padding: 40px;
    font-size: 25px;
    display: flex;
    gap: 20px;
    line-height: 0px;
    text-align: center;
    align-items: center;
    transition: all .2s ease;
    overflow: hidden;
    position: relative;
}
.btn:hover{
    background-color: rgb(0,0,0,.3);
}
.btn:active{
    transform: scale(0.9);
}
.btn img{
    height: 50px;
}
.btn-nohover{
    border-radius: 5px;
    border: none;
    background-color: rgb(0,0,0,.2);
    color: white;
    padding: 20px;
    font-size: 25px;
    display: flex;
    gap: 20px;
    line-height: 0px;
    text-align: center;
    align-items: center;
    transition: all .2s ease;
    overflow: hidden;
    position: relative;
}
.btn-nohover img{
    height: 50px;
}
.fs{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}
.popup{
    min-width: 50%;
    aspect-ratio: 2 / 1;
    background-color: rgb(30,30,30);
    box-shadow: 0px 0px 10px black;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    z-index: 10;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    transition: all .3s ease;
}
.close{
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
    background-color: transparent;
    background-image: url('./img/close.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border: none;
    position: absolute;
    border-radius: 5px;
    right: 0px;
    transition: all .2s ease;
}
.close:hover{
    background-color: rgb(0,0,0,.15);
}
.close:active{
    transform: scale(0.9);
}
input[type="text"]{
    width: 70%;
    height: 55px;
    background-color: rgb(0,0,0,.3);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: ClashGrotesk-Regular;
    font-size: 40px;
    transition: all .2s ease;
    outline: solid 0px black;
    padding: 15px;
}

input[type="text"]:focus{
    outline: solid 0px black;
}
input[type="text"]:hover{
    outline: solid 3px black;
}

textarea{
    width: 70%;
    height: 55px;
    background-color: rgb(0,0,0,.3);
    border: none;
    border-radius: 16px;
    color: white;
    font-family: ClashGrotesk-Regular;
    font-size: 40px;
    transition: all .2s ease;
    outline: solid 0px black;
    padding: 15px;
    resize: none;
    z-index: 100;
}

textarea:focus{
    outline: solid 0px black;
}
textarea:hover{
    outline: solid 3px black;
}
.err_notification{
    position: absolute;
    top: 0px;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100px;
    min-height: 50px;
    transform: translate(-50%, 0px);
    background-color: rgb(255, 63, 63);
    border-radius: 16px;
    box-shadow: 0px 0px 10px black;
    color: white;
    font-size: 25px;
    text-align: center;
    z-index: 20;
    line-height: 45px;
    animation: appear .5s ease;
}
@keyframes appear{
    0%{transform: translate(-50%, -100px);}
    100%{transform: translate(-50%, 0px);}
}
.message {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    min-height: fit-content;
    color: white;
    display: flex;
    align-items: flex-start;
    font-size: calc(8px + 1vw);
    gap: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    flex-wrap: wrap;
    
}

.pfp {
    width: 60px;
    height: 60px;
    border-radius: 100%;
}

.message-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.message label {
    font-size: calc(12px + 1vw);
    line-height: 1.2;
    margin-bottom: 5px;
}

.message p, .message img {
    margin: 0;
    font-size: calc(8px + 1vw);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.message img:not(.pfp) {
    height: auto;
    max-width: 300px;
    max-height: 300px;
    border-radius: 16px;
}



::-webkit-scrollbar {
   width: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #434343;
  border-radius: 16px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333333;
} 
hr{
    width: 100%;
    height: 3px;
    border: none;
    background-color: #C1C1C1;
    border-radius: 16px;
}
#settings{
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    position: absolute;
    background-color: rgb(30,30,30);
    z-index: 10;
    transition: all .3s ease;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
#settings h1{
    font-size: 7vh;
}
#sett-profile{
    background-color: rgb(0,0,0,.2);
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
    border-radius: 16px;
    box-shadow: 0px 0px 10px black;
    
}
#sett-profile img{
    border-radius: 100%;
    background-color: rgb(0,0,0,.2);
    transition: all .3s ease;
    position: relative;;
}
#sett-profile img:hover{
    opacity: 0.6;
}
#sett-profile img:hover + .info {
    opacity: 1;
}
#sett-profile .info{
    opacity: 0;
    top: 0px;
}
#gifs{
    position: absolute;
    bottom: 110px;
    right: 0px;
    width: 40%;
    height: 70%;
    background-color: rgb(35,35,35);
    border-radius: 16px;
    align-items: center;
    border: solid 1px rgb(50, 50, 50);
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    resize: both;
    transition: all .2s ease;
}
#gif-cont{
    flex-grow: 1;
    width: 100%;
    background-color: rgb(0,0,0,.2);
    border-radius: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    flex: 1 1 auto;
}
#gif-cont img{
    padding: 20px;
    background-color: rgb(0,0,0,.1);
    border-radius: 16px;
    max-width: 250px;
    object-fit: cover;
    transition: all .3s ease;
}
#gif-cont img:hover{
    opacity: 0.6;
}


#emotes{
    position: absolute;
    bottom: 110px;
    right: 0px;
    width: 40%;
    height: 70%;
    background-color: rgb(35,35,35);
    border-radius: 16px;
    align-items: center;
    border: solid 1px rgb(50, 50, 50);
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    resize: both;
    transition: all .2s ease;
}
#emoji-cont{
    flex-grow: 1;
    width: 100%;
    background-color: rgb(0,0,0,.2);
    border-radius: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
    flex: 1;
}
#emoji-cont span{
    padding: 10px;
    line-height: none;
    background-color: rgb(0,0,0,.1);
    border-radius: 16px;
    width: 50px;
    height: 50px;
    text-align: center;
    max-width: 50px;
    max-height: 50px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: all .3s ease;
    font-size: 25px;
    user-select: none;
}
#emoji-cont span:hover{
    opacity: 0.6;
}
#emoji-cont img{
    height: 100%;
    pointer-events: none;
}
#convoptions{
    background-color: var(--darkgray);
    min-width: 100px;
    min-height: 75px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    color: white;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: normal;
}
#splash{
    position: fixed;
    z-index: 11;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: var(--darkgray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
    transition: all .3s ease;
}
#splash h1{
    background: linear-gradient(rgb(255,0,255),rgb(255,255,0));
    background-clip: text;
    color: transparent;
    font-family: ClashGrotesk-SemiBold;
    user-select: none;
}
#splash h3{
    color: gray;
    line-height: 0px;
}
@keyframes zoom{
    0%{transform: scale(1);}
    50%{transform: scale(1.2);}
    100%{transform: scale(1);}
}
#splash img{
    width: 20vh;
    transform: scale(1);
    transition: all .3s ease;
    animation: zoom 4s infinite ease;
}
.floatingfile{
    position: absolute;
}