@font-face {
    font-family: 'Bold';
    src: url('/public/src/fonts/mainfont.ttf');
}

@font-face {
    font-family: 'Light';
    src: url('/public/src/fonts/secondfont.ttf');
}

/* font setup */

* {
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

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

::selection {
    color: var(--selected-text);
    background-color: color-mix(in srgb, var(--selected-text-background) var(--selected-text-background-opacity), transparent);
}

::-moz-selection {
    color: var(--selected-text);
    background-color: color-mix(in srgb, var(--selected-text-background) var(--selected-text-background-opacity), transparent);
}

/* text selection and other setup */

#overlay {
    display: var(--overlay-toggle);
    position: fixed;
    backdrop-filter: blur(var(--overlay-blur));
    background-color: color-mix(in srgb, var(--overlay-color) var(--overlay-opacity), transparent);
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    justify-content: center;
    align-items: center;
    transition: .5s ease;
    z-index: 9999;
    pointer-events: auto;
}

.overlaybtn {
    color: var(--overlay-text);
    cursor: pointer;
    font-family: 'Light';
    font-size: 6vh;
    text-shadow:
    0 0 7px var(--overlay-text),
    0 0 10px var(--overlay-text),
    0 0 21px var(--overlay-text),
    0 0 42px var(--overlay-text),
    0 0 82px var(--overlay-text);
}

/* overlay setup */

body {
    background-color: var(--background-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* basic setup */

#user-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
}

/* will show when clicking on overlay */

.background {
    z-index: -1;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    object-fit: cover;
}

/* background image / gif / video setup */

.main-container {
    width: 550px;
    max-width: 80%;
    padding: 20px;
    border-radius: 25px;
    background-color: color-mix(in srgb, var(--maincontainer-color) var(--maincontainer-opacity), transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--maincontainer-shadow-color) var(--maincontainer-shadow-opacity), transparent);
    backdrop-filter: blur(var(--maincontainer-blur));
    overflow: visible;
}

/* user page setup */

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* container for pp / username / badges */

.pp {
    object-fit: cover;
    height: 110px;
    width: 110px;
    border-radius: 50%;
    box-shadow: 0 0 15px color-mix(in srgb, var(--profilepicture-shadow-color) var(--profilepicture-shadow-opacity), transparent);
}

/* pp display setup */

.username {
    font-family: 'Bold';
    font-size: 22px;
    color: var(--username-color);
    position: relative;
    display: inline-block;
    margin-top: 2vh;
    margin-bottom: 1vh;
}

.username::after {
    content: attr(data-tooltip);
    font-family: 'Light';
    font-size: 17px;
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    padding: 5px;
    background-color: rgba(17, 17, 17, 0.6);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    -webkit-text-fill-color: #fff;
}

.username:hover::after {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
}

/* username display setup */

.badges-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: default;
    position: relative;
    gap: 7px;
}

.badges {
    position: relative;
    width: 22px;
    height: 22px;
    background-size: 100%;
    display: inline-block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2vh;
}

.badges::after {
    content: attr(data-tooltip);
    font-family: 'Light';
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    padding: 6px;
    background-color: rgba(17, 17, 17, 0.7);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.badges:hover::after {
    transform: translateX(-50%) scaleY(1);
    opacity: 1;
}

/* badge display setup */

.bio-container {
    text-align: center;
    width: 80%;
    padding: 15px;
    background-color: color-mix(in srgb, var(--biocontainer-color) var(--biocontainer-opacity), transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--biocontainer-shadow-color) var(--biocontainer-shadow-opacity), transparent);
    border-radius: 15px;
    backdrop-filter: blur(var(--biocontainer-blur));
    max-width: 100%;
    overflow-wrap: break-word;
    margin-bottom: 2.5vh;
}

.bio {
    font-family: 'Light';
    font-size: 2vh;
    color: var(--bio-color);
    line-height: 1.5;
}

/* bio setup */

.line {
    background-color: color-mix(in srgb, var(--separation-color) var(--separation-opacity), transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--separation-shadow-color) var(--separation-shadow-opacity), transparent);
    width: 80%;
    height: 2px;
    border-radius: 10px;
}

/* separation line setup */

.links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2vh;
    padding-top: 2.5vh;
    padding-bottom: 2.5vh;
    max-height: 280px;
    overflow-y: auto;
    width: 600px;
}

.links-container::-webkit-scrollbar {
    display: none;
}

.links {
    background-color: color-mix(in srgb, var(--social-color) var(--social-opacity), transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--social-shadow-color) var(--social-shadow-opacity), transparent);
    border-radius: 15px;
    backdrop-filter: blur(var(--social-blur));
    height: 40px;
    width: 40px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo {
    fill: var(--logo-color);
    height: 70px;
    width: 70px;
}

.links:hover {
    box-shadow:
    0 0 15px color-mix(in srgb, var(--hover-shadow-color) var(--social-shadow-opacity), transparent);
    fill: var(--hover-color);
    transform: scale(1.1);
}

/* socials container setup */

.views-container {
    font-family: 'Light';
    font-size: 20px;
    color: #fff;
    fill: #C18be0;
    margin-top: 2vh;
}

/* views container setup */

.pic-badge {
    background-size: 100%;
    background-repeat: no-repeat; 
    background-position: center center;
    fill: var(--badge-color);
    filter: drop-shadow(var(--badge-color) 1px 0 7px)
}

.custom-badge {
    height: 22px;
    width: 22px;
    filter: drop-shadow(var(--custombadge-glow-color) 1px 0 7px);
}

/* badge setup */

.mutebutton {
    display: var(--overlay-toggle);
    position: fixed;
    top: 2vh;
    left: 2vh;
    cursor: pointer;
    transition: width 0.5s ease-in-out;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid var(--volumeslider-color);
    padding: 1vh;
    height: 30px;
    width: 30px;
    overflow: hidden;
}

.mutebutton:hover {
    width: 220px;
    display: flex;
}

.muteIcons {
    position: absolute;
    margin-left: 2px;
}

.sliderAudio {
    position: absolute;
    margin-left: 5vh;
    margin-top: 6px;
}

input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 160px;
    height: 7px;
    margin-top: 12px;
    background: transparent;
    border-radius: 3px;
    outline: none;
    vertical-align: middle;
    background-image: linear-gradient(to right, var(--volumeslider-color) 50%, #7c7c7c 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 5px;
    width: 14px;
    border-radius: 50%;
    background: #7c7c7c;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

input[type=range]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    border: 2px solid #424242;
    background: #ffffff;
    cursor: pointer;
}


/* mute button setup */

.breathing {
    background: linear-gradient(90deg, transparent 30%, var(--breathing-color) 50%, transparent 70%);
    background-size: 200%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: breathing 2s linear infinite;
}

@keyframes breathing {
    0% {
        background-position: 150%;
    }
    100% {
        background-position: -50%;
    }
}

/* breath effect setup */

.pulsing {
    color: #fff;
    text-align: center;
    animation: pulse 2s ease-in-out infinite alternate;
    backface-visibility: hidden;
}
    
@keyframes pulse {
    from {
    text-shadow: 0 0 10px #fff,
           0 0 20px #fff,
           0 0 30px #fff,
           0 0 40px var(--pulsing-color),
    }
    to {
    text-shadow: 0 0 5px #fff,
           0 0 10px #fff,
           0 0 15px #fff,
           0 0 20px var(--pulsing-color),
           0 0 35px var(--pulsing-color),
           0 0 40px var(--pulsing-color);
    }
}

/* pulsing effect setup */

.sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.sparkles {
    position: relative;
    z-index: 1;
}

.red_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/red_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.red_sparkles {
    position: relative;
    z-index: 1;
}

.orange_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/orange_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.orange_sparkles {
    position: relative;
    z-index: 1;
}

.yellow_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/yellow_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.yellow_sparkles {
    position: relative;
    z-index: 1;
}

.green_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/green_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.green_sparkles {
    position: relative;
    z-index: 1;
}

.aqua_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/aqua_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.aqua_sparkles {
    position: relative;
    z-index: 1;
}

.blue_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/blue_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.blue_sparkles {
    position: relative;
    z-index: 1;
}

.purple_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/purple_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.purple_sparkles {
    position: relative;
    z-index: 1;
}

.pink_sparkles::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/pink_sparkles.gif');
    z-index: 1;
    pointer-events: none;
}

.pink_sparkles {
    position: relative;
    z-index: 1;
}

/* sparkles effect setup */

.leaves::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/leaves1.gif');
    background-size: 100%;
    z-index: 1;
    pointer-events: none;
}

.leaves {
    position: relative;
    z-index: 1;
}

/* leaves effect setup */

.sakura::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/sakura2.gif');
    background-size: 100%;
    z-index: 1;
    pointer-events: none;
}

.sakura {
    position: relative;
    z-index: 1;
}

/* sakura effect setup */

.comet::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/blue-comet.gif');
    background-size: 100%;
    z-index: 1;
    pointer-events: none;
}

.comet {
    position: relative;
    z-index: 1;
}

/* comet effect setup */

.thunder::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://r2.wya.lol/white-lightning.gif');
    background-size: 100%;
    z-index: 1;
    pointer-events: none;
}

.thunder {
    position: relative;
    z-index: 1;
}

/* thunder effect setup */

canvas {
   position: absolute;
   top: 0;
   left: 0;
   z-index: -1;
}