:root {
    --main : rgb(160, 100, 200);
    --light : rgb(180, 160, 200);
    --dark : rgb(60, 20, 80);
    --darker : rgb(16, 10, 20);
    --font-size: 15pt;
}

@font-face {
  font-family: A;
  src: url('assets/A.ttf');
}

/* style scrollbar */
*::-webkit-scrollbar {width:0; height:0}
*::-webkit-scrollbar-track {display: none;}
*::-webkit-scrollbar-thumb {
  background: var(--main);
  border: .01px solid var(--main);
  border-radius: 5px;
  box-shadow: 0 0 .3rem dark;
}
*:hover::-webkit-scrollbar {width:.5vw; height:.5vw;}
/* ////// */

* {
    font-family: A;
    max-width: 100vw;
    margin: auto;
    outline: 0;
    font-size: var(--font-size);
    color: var(--light); 
    background: none center no-repeat;
    background-size: cover;
}
*:hover, *:active, *:focus {
  -webkit-tap-highlight-color: transparent;
  outline-style: none;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

header {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 2rem;
    z-index: 1000000;
}

main {
    height: 100%;
    display: flex;
    overflow: hidden;
}

a {color: var(--main);}
button {
    border: none;
    background-color: var(--main);
    border-radius: 1rem; 
    margin: 4px;
}
a:active, button:active, a:hover, button:hover, .clickable:hover {
    color: var(--light);
    cursor: pointer;
}

button:hover, input:hover, textarea:hover, *[contenteditable="true"]:hover, .clickable:hover {transform: scale(1.1);}

input:not([type="file"]), textarea, *[contenteditable="true"] {
    border: none;
    border-radius: 1rem; 
    text-align: center;
    margin: 4px;
}

textarea, *[contenteditable="true"] {min-width:9rem; min-height:25pt;}

.main {background-color: var(--main) !important;}
.light {background-color: var(--light) !important; color: var(--darker) !important;}
.dark {background-color: var(--dark) !important; color: var(--light) !important;}
.dark p {color: var(--light) !important;}
.er {background-color: var(--darker) !important;}

.flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.flex.row {
    flex-direction: row !important;
}
.flex:not(form)>* {position: absolute;}

.circle {
    border-radius: 50% !important;
}
.s:not(img) {padding:50px}
img.s {width:100px; height:100px}
.xs:not(img) {padding:1rem}
img.xs {width:2rem; height:2rem}
.h, *[hidden] {display:none;}

.loading {
    padding: 2vw;
    background: none !important;
    border: solid var(--light);
    /* -webkit-mask-image: linear-gradient(30deg, red 45% 50%, #0000 50%),
        linear-gradient(4deg, #0000 50%, red 50% 65%, #0000 65%),
        linear-gradient(-38deg, #0000 33%, red 33% 50%, #0000 50%),
        linear-gradient(300deg, #0000 50%, red 50%),
        linear-gradient(50% 50% at center, #0000 70%, #0002); */
    border-width: .5vw;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 80%;
    animation: rotate 1.8s linear infinite;
}
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }    
}

.widearrow {
    bottom: 70%;
    transform: rotate(135deg) rotate3d(1,1,0,40deg);
}
.widearrow, .widearrow::before, .widearrow::after {
    position: absolute;
    border-bottom: 3px solid var(--main);
    border-left: 3px solid var(--main);
    padding: 1rem;
    transition: .5s;
}
.widearrow::before, .widearrow::after {
    content: '';
    top: 0;
    right: 0;
}
.widearrow:hover::before {
    top: 1.1vw;
    right: 1.1vw;
    opacity: 50%;
}
.widearrow:hover::after {
    top: 2.2vw;
    right: 2.2vw;
    opacity: 20%;
}

#myworld {
    margin-bottom: -5em;
    padding: 5rem;
    transition: 1s transform;
    z-index: 1000000;
}

#media-container {
    position: fixed;
    padding: 0;
}

#media-container>* {
    width: 10rem;
    height: 10rem;
    background-color: rgba(16,10,20,0.5);
    overflow: hidden;
    bottom: 5rem;
    transform-origin: 50% 16rem;
    background: none center no-repeat;
    background-size: cover;
    transition: 1s;
}
#media-container>*, .mborder {
    border-bottom: 1rem solid var(--darker);
    border-radius: 1rem;
}
#media-container>* * {
    width: 100%;
}
#media-container>*:active, #media-container>*.active {
    background-color: var(--darker);
    transform: none !important;
    width: 20rem !important;
    height: 20rem !important;
    z-index: 1000000 !important;
}

.msgs-container {
    position: absolute; 
    width: 100%; 
    height: 30vh;
    overflow: scroll;
    text-align: center; 
    top: 5rem;
    transition: 1s;
    z-index: 1;
}
.msgs-container:hover ~ #myworld {opacity:10%; z-index:0;}
.msgs-container p {
    white-space: pre-wrap;
}
.msgs-container p:not(:last-child)>a {
    opacity: 50%;
}
.msgs-container p:not(:last-child)>a button {
    background-color: unset;
    color: var(--main);
}
.msgs-container #editable {opacity: 50%; padding-right:1rem;}
.msgs-container * {transition: 1s;}
.msgs-container form, .msgs-container form *:not(.emoji) {
    position: fixed;
    top: 10rem;
    right: -9rem;
    z-index: 10000000 !important;
}
.msgs-container #editable.focus, .msgs-container #editable:focus {
    right: 1rem !important;
    opacity: 100%;
}
.msgs-container #editable.focus ~ button, .msgs-container #editable:focus ~ button {
    right: 1% !important;
    z-index: 100000000 !important;
}