:root {
    /* BACKGROUND */
    --gradient1: linear-gradient(180deg, #7B87FF 0%, #6BA3C4 100%);
    --gradient2: linear-gradient(92.32deg, #7B87FF 1.46%, #6BA3C4 95.84%);

    /* COLORS */
    --color-dark: #282a32;
    --color-black: #1b1c1e;
    --color-grey: #929292;
    --color-primary: #7B87FF;
    --color-yellow: #F9F885;
    --color-green: #7AACB3;
    --color-darkgrey: #4A4C4E;
    --color-red: #B75C70;

    /* RADIUS */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    /* FONT SIZE */
    --text-sm: 12px;
    --text-base: 16px;
    --text-md: 22px;
    --text-lg: 28px;
    --text-xl: 48px;
}

/* FONTS */
@font-face {
    font-family: "Aeonic-Regular";
    src: url("../fonts/AeonikTRIAL-Regular.otf") format("opentype");
}

@font-face {
    font-family: "Aeonic-Light";
    src: url("../fonts/AeonikTRIAL-Light.otf") format("opentype");
}

@font-face {
    font-family: "Aeonic-Bold";
    src: url("../fonts/AeonikTRIAL-Bold.otf") format("opentype");
}


/* ===================================== BASE (ELEMENTS, TAGS, EXTRA CLASSES) */
body {
    margin: 0;
    padding: 0;

    font-family: "Aeonic-Bold", sans-serif;
    font-weight: 700;
    background-color: var(--color-black);
    overflow-x: hidden
}

pre {
    font-family: "Aeonic-Bold", sans-serif !important;
    /* word-wrap: break-word; */
    white-space: pre-wrap;
}

* {
    box-sizing: border-box;
}

.btn {
    transform: translateY(0px);
    transition: transform 250ms ease;
}

button {
    outline: none;
    border-width: 0px;
}

.btn:hover {
    transform: translateY(-2px);
}

.font-weight-400 { font-weight: 400; }
.font-weight-300 { font-weight: 300; }
.font-weight-700 { font-weight: 700; }

.bg-gradient1 { background: var(--gradient1); }
.bg-gradient2 { background: var(--gradient2); }
.gradient-black {
    background: linear-gradient(90.18deg, rgba(26, 28, 31, 0.3) 0.66%, rgba(47, 51, 55, 0.3) 99.34%);
}
.gradient-deep-purple {
    background: linear-gradient(92.32deg, rgba(131, 130, 253, 0.2) 1.46%, rgba(164, 110, 155, 0.2) 95.84%);
}

.text-gradient {
    background: var(--gradient2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-gradient {
    position: relative;
}

.border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: var(--gradient2); 
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; 
}

.card-width { width: 376px; }
.card-image-height { height: 250px; }

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

input::-webkit-calendar-picker-indicator {
    filter: invert(100%);
}

/* ===================================== ELEMENTS */
.switch {
    width: 42px;
    border-radius: 18px;
    display: flex;
    justify-content: start;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.switch::after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 18px;
    width: 20px;
    height: 20px;
    border-radius: 100%;
}

.switch.checked::after {
    right: 0;
}

.progressbar {
    height: 15px;
    width: 100%;
    border-radius: 24px;
    position: relative;
}

.progress {
    height: 15px;
    border-radius: 24px;
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    z-index: 1;
}

@media (max-width: 550px) {
    .progress {
        height: 10px;
    }

    .progressbar {
        height: 10px;
    }
}

.edit {
    width: 100%;
    outline: none;
}

.edit:hover {
    cursor: text;
}

.edit[placeholder]:empty:before {
    content: attr(placeholder);
    color: var(--color-darkgrey);
}


/* ===================================== MENU */
.menu-active > i {
    color: var(--color-black);
    position: relative;
    z-index: 1;
}

.menu-active::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background-color: #fff;
    height: 100%;
    width: 80%;
    z-index: 0;
    border-radius: 0px 20px 20px 0px;
}


/* ===================================== FORMS */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url('data:image/svg+xml;utf8,<svg width="19" height="8" viewBox="0 0 19 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.1926 0.65582C18.0562 0.555925 17.873 0.5 17.6823 0.5C17.4916 0.5 17.3085 0.555925 17.1721 0.65582L9.53503 6.2368L1.8995 0.65582C1.76308 0.555925 1.57995 0.5 1.38925 0.5C1.19855 0.5 1.01541 0.555925 0.878988 0.65582C0.812466 0.704376 0.759594 0.76243 0.723492 0.826556C0.687389 0.890682 0.668791 0.95958 0.668791 1.02918C0.668791 1.09879 0.687389 1.16769 0.723492 1.23181C0.759594 1.29594 0.812466 1.35399 0.878988 1.40255L9.00186 7.33742C9.14451 7.44166 9.33583 7.5 9.53503 7.5C9.73424 7.5 9.92556 7.44166 10.0682 7.33742L14.1296 4.36999L18.1911 1.40255C18.2576 1.35399 18.3105 1.29594 18.3466 1.23181C18.3827 1.16769 18.4013 1.09879 18.4013 1.02918C18.4013 0.95958 18.3827 0.890682 18.3466 0.826556C18.3105 0.76243 18.2576 0.704376 18.1911 0.65582H18.1926Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
}

input[type="file"]::-webkit-file-upload-button { display: none; }


/* ===================================== VIDEO STYLES */
.video-dimensions {
    height: 100%;
    width: 100%;
}

.video-js .vjs-big-play-button {
    border-width: 0px !important;
    background-color: var(--color-dark) !important;
}

video, .vjs-poster {
    border-radius: var(--radius-md);
    outline: none;
}

.vjs-poster {
    background-size: cover !important;
}

.video-js .vjs-big-play-button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto !important;
}


/* ===================================== MODAL WINDOW */
.modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    overflow: scroll;
    transition: visibility 0s linear, backdrop-filter 300ms, opacity 300ms;

    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0px);
}

.modal-card::-webkit-scrollbar {
    width: 0;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
}

.modal-card {
    transform: translateY(-80vh);
    transition: all 300ms;
}

.modal-card.show {
    transform: translateY(0);
}

/* .modal-card::before {
    content: '';
    height: 20px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(2px);
    margin: 0 28px;
} */


/* ===================================== TIPPY THEME */
.tippy-box[data-theme~='dark'] {
    background-color: var(--color-dark);
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0px 0px 10px 8px rgba(0, 0, 0, .2);
}

.tippy-box[data-theme~='dark'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: white;
}
.tippy-box[data-theme~='dark'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: white;
}
.tippy-box[data-theme~='dark'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: white;
}
.tippy-box[data-theme~='dark'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: white;
}


/* ===================================== NOTIFICATIONS */
.notify_client {
    position: absolute;
    top: -4rem;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    z-index: 2000;
    color: #FFFFFF;

    background-color: var(--color-dark);
    padding: 15px 30px;
    border-radius: var(--radius-lg);
    width: 250px;
    text-align: center;
}

.notify_show {
    /* display: block; */
    -webkit-animation: fadeOut .4s linear forwards;
    -moz-animation: fadeOut .4s linear forwards;
    -o-animation: fadeOut .4s linear forwards;
    -ms-animation: fadeOut .4s linear forwards;
    animation: fadeOut .4s linear forwards;
}

.notify_close {
    -webkit-animation: fadeIn .4s linear forwards;
    -moz-animation: fadeIn .4s linear forwards;
    -o-animation: fadeIn .4s linear forwards;
    -ms-animation: fadeIn .4s linear forwards;
    animation: fadeIn .4s linear forwards;
}

@keyframes fadeOut {
    0% {
        top: -3rem;
    }
    25% {
        top: -2rem
    }
    50% {
        top: 0rem;
    }
    75% {
        top: 2rem;
    }
    100% {
        top: 3rem;
    }
}

@keyframes fadeIn {
    0% {
        top: 3rem;
    }
    25% {
        top: 2rem
    }
    50% {
        top: 0rem;
    }
    75% {
        top: -2rem;
    }
    100% {
        top: -4rem;
    }
}

/* ===================================== CONFERENCES */
.controls-block {
    position: fixed;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    z-index: 1000;
}

video {
    transition: .2s all;
}

.video-container {
    background-color: var(--color-dark);
    /* height: 500px; */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-lg);
    position: relative;
    transition: all .3s;

}

.video-player {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border-radius: var(--radius-lg);
}

.agora_video_player, .video-player > div {
    border-radius: var(--radius-lg);
}

@media (max-width: 600px) {
    .controls-block {
        width: 90%;
    }
}

.chat_block {
    height: 500px;
    overflow: scroll;
}

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

.participant-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 100%;
}

.striped, .striped:hover {
    text-decoration: line-through !important;
}


/* ======= beautiful arrangement of windows ====== */
.big-container, .medium-container, .small-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* .user-block {
    user-select: none;
} */

/* .user-block:last-child {margin-right: 0;} */
.user-block.scaled {width: 100% !important;}
.user-block video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}
.user-block.scaled .video-container {height: 600px !important;}
.user-block.scaled video {object-fit: contain !important;}

@media (max-width: 1400px) {
    .user-block.scaled .video-container {
        height: 550px !important;
    }
}

@media (max-width: 1200px) {
    .user-block.scaled .video-container {
        height: 500px !important;
    }
}

.big-container .user-block {margin-bottom: 30px;}
.medium-container .user-block {margin-bottom: 20px;}
.small-container .user-block {margin-bottom: 20px;}

.big-container .user-block {width: 49%;}
.big-container .user-block .video-container {height: 550px;}
.big-container .user-block .avatar-block {
    width: 110px;
    height: 110px;
    object-fit: cover;
}

.medium-container .user-block {width: 32%;}
.medium-container .user-block .video-container {height: 370px;}
.medium-container .user-block .avatar-block {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.small-container .user-block {width: 24%;}
.small-container .user-block .video-container {height: 270px;}
.small-container .user-block .avatar-block {
    width: 70px;
    height: 70px;
    object-fit: cover;
}


@media (max-width: 992px) {
    .big-container .user-block {width: 100%;}
    .medium-container .user-block {width: 49%;}
    .small-container .user-block {width: 32%;}
}

@media (max-width: 768px) {
    .medium-container .user-block .video-container {height: 300px;}
    .user-block.scaled .video-container {
        height: 380px !important;
    }
}

@media (max-width: 720px) {
    .small-container .user-block {width: 49%;}
}

@media (max-width: 574px) {
    .big-container .user-block .video-container {height: 400px;}
    .medium-container .user-block {width: 100%;}
    .small-container .user-block {width: 100%;}

    .container-lg {
        padding: 0px 2rem;
    }

    .user-block.scaled .video-container {
        height: 300px !important;
    }
}


#demos {
    width: 100%;
    height: 600px;
    background-color: var(--color-dark);
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}


@keyframes record {
    20% {
        transform: scale(1.1, 1.1);
        opacity: .9;
    }

    50% {
        transform: scale(1.2, 1.2);
        opacity: .7;
    }

    70% {
        transform: scale(1.1, 1.1);
        opacity: .9;
    }

    90% {
        transform: scale(1, 1);
        opacity: 1;
    }
}

.recording {
    animation: record 2s linear infinite;
}