@import url('$lib/styles/fontawesome/css/all.min.css');


@font-face {
    font-family: 'Com';
    src: url('$lib/fonts/comic-webfont.woff2') format('woff2');
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;
    font-family: 'Com', sans-serif;
    color: var(--text-color);
    caret-color: var(--text-color);
    user-select: none;
    scrollbar-width: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;

    //disable user drag
    -webkit-user-drag: none;
}

::-webkit-scrollbar {
    display: none;
}

html{
    font-size: 16px;
}

:root{
    --red-color: #e8534f;
    --primary-dark-color: #111d2a;
    --text-color: #ebf2f9;
    --glass-color: #ffffff17;
    --shadow-color: #0000007a;
    --blue-grey-color: #7e9ebb;
    --transparent-white-color: #ffffff78;
    --dark-color: #26485e;
    --dark-color-hover: #3f6476;
    --amplitude: 0px;
    --positionForStickers: relative;
}

.back-blur{
    backdrop-filter: blur(15px);
}

//disable image drag
img{
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.virtual::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.emoji{
    filter: saturate(0.7);
    transition: all 100ms ease-in-out;
    transform-origin: bottom;
    cursor: pointer;

    &:hover{
        transform: translateY(-5px);
        filter: saturate(1) drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
    }
}

.cap {
    text-transform: capitalize;
}

.upper {
    text-transform: uppercase;
}

input{
    padding: 10px;
}

i[class^=fa-] {
    font-size: 1rem;
    transition: transform 200ms;
}

.fa-paper-plane, .fa-paperclip, .fa-face-laugh-wink, .sendIcon {
    font-size: 1.5rem !important;
    padding: 5px;
    color: var(--secondary-dark);
    cursor: pointer;
}

.fa-xmark {
    color: var(--red-color) !important;
}

.fa-microphone {
    color: var(--secondary-dark) !important;
}

.fa-link, .fa-clone, .fa-location-dot, .fa-reply, .fa-pen-to-square, .fa-download, .fa-arrow-down, .fa-gear {
    color: var(--secondary-dark);
}

button {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    color: inherit;
    font-size: 0.9rem;

    &.blackButton:hover{
        filter: contrast(0.9);
    }
}

.button {
    display: flex;
    flex-direction: row;
    gap: 5px;
    border-radius: 10px;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer !important;
    font-size: 0.9rem;

    &:hover{
        filter: brightness(0.90);
    }
}



.button-animate {
    transition: 100ms ease-in-out;
}

.button-animate[data-pressed="true"] {
    transform: scale(0.98);
}

.clickable{
    cursor: pointer;
}

.hover:hover{
    filter: brightness(0.90);
}

.roundedBtn {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    aspect-ratio: 1/1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 25px !important;
}

.capsule{
    border-radius: 25px !important;
}

.hoverShadow{
    transition: 100ms ease-in-out;
}

.hoverShadow:hover{
    background: rgba(255, 255, 255, 0.0392156863) !important;
}

button[disabled]{
    filter: brightness(0.7) !important;
    cursor: not-allowed !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: none;
  -webkit-text-fill-color: rgb(255, 255, 255);
  box-shadow: 0 0 0px 1000px var(--modal-color) inset !important;
  -webkit-transition: background-color 5000s ease-in-out 0s;
  transition: background-color 5000s ease-in-out 0s;
}

input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.fa-ghost, .fa-play, .fa-pause, .fa-stop{
    color: var(--text-color) !important;
}

.fa-triangle-exclamation, .fa-circle-exclamation{
    color: orange !important;
}

.centerItems{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-shadow{
    box-shadow: 10px 10px 35px var(--shadow-color);
}

.monospace{
    font-family: monospace;
}

.user-select{
    user-select: text;
}

body{
    color: ghostwhite;
    font-family: 'Com', sans-serif;
    background-color: #111d2a;
}

html, body{
    height: 100%;
    width: 100%;
    display: flex;
    overscroll-behavior-y: none;
    align-items: flex-start;
    justify-content: center;
}

.select {
    -webkit-tap-highlight-color: initial !important;
    -webkit-touch-callout: initial !important;
    -webkit-user-select: initial !important;
    -moz-user-select: initial !important;
    -ms-user-select: initial !important;
    user-select: initial !important;
}

*:not(input, textarea) {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.err{
    font-size: 0.7rem !important;
    color: orangered;
    width: 100%;
    word-wrap: break-word;
    i{
        font-size: 0.7rem !important;
    }
}

.shake{
    animation: shake 300ms;
}

@keyframes bubble{
    0% {
        transform: scale(0.7);
    }
    
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.9);
    }
}


@keyframes bubbleUp {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    25% {
        opacity: 0.5;
        transform: scale(1.3);
    }
    50% {
        opacity: 1;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bubbleUp2 {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes bouncing {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0);
    }
}

//blink animation
@keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pop {
    0%{
        transform: scale(0.5);
    }
    50%{
        transform: scale(1.2);
    }
    100%{
        transform: scale(1);
    }
}

@keyframes popup {
    0%{
        transform: scale(1) translateY(0px);
        opacity: 0;
    }
    100%{
        transform: scale(1.6) translateY(-10px);
        opacity: 1;
    }
}

@keyframes shake{
    0% {
        transform: translateX(1px);
    }
    
    10% {
        transform: translateX(-1px);
    }
    20% {
        transform: translateX(-3px);
    }
    30% {
        transform: translateX(3px);
    }
    40% {
        transform: translateX(1px);
    }
    50% {
        transform: translateX(-1px);
    }
    60% {
        transform: translateX(-3px);
    }
    70% {
        transform: translateX(3px);
    }
    80% {
        transform: translateX(-1px);
    }
    90% {
        transform: translateX(1px);
    }
    100% {
        transform: translateX(1px);
    }
}



@keyframes loader-ripple {
    0% {
        height: 50px;
        width: 50px;
        opacity: 1;
    }

    100% {
        height: 100px;
        width: 100px;
        opacity: 0;
    }
}

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

    80% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}