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

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

.highlight {
    color: #ffffff;
    text-shadow:
        0 0 42px #ffffff,
        0 0 82px #ffffff;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    background-color: #000;
}

.overlaybtn {
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    border: transparent;
    font-family: 'Light';
    font-size: 6vh;
    text-shadow:
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #fff,
        0 0 82px #fff;
}


body {
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}


#user-page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 98vh;
}


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


.main-container {
    width: 275px;
    max-width: 80%;
    padding: 20px;
    border-radius: 25px;
    background-color: rgba(17, 17, 17, 0.26);
    box-shadow: 0 0 10px rgba(97, 97, 97, 0.5);
    backdrop-filter: blur(3px);
    overflow: visible;
    perspective: 800px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

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


.username-wrapper {
    position: relative;
    display: inline-block;
}

.username-gif {
    position: absolute;
    top: 0;
    margin-top: 20%;
    left: 0;
    width: 100%;
    height: 65%;
    pointer-events: none;
    z-index: 2;
}

.pfp-wrapper {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
}

.pp {
    object-fit: cover;
    height: 110px;
    width: 110px;
    border-radius: 50%;
    box-shadow: 0 0 15px #000;
}

.pp-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 50%;
    z-index: 2;
}


.username {
    font-family: 'Bold';
    font-size: 22px;
    color: #fff;
    position: relative;
    display: inline-block;
    margin-top: 2vh;
    margin-bottom: 1vh;
    filter: drop-shadow(#c18be000 1px 0 7px) !important;
}

.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);
    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;
}

.badges-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: default;
    position: relative;
    gap: 15px;
    background-color: #31251300;
    border-radius: 50px;
    padding: 14px 30px;
    margin-bottom: 2vh;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: default;
    position: relative;
}

.badges {
    position: relative;
    width: 22px;
    height: 22px;
    background-size: 100%;
    display: inline-block;
    color: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(#ffffff 1px 0 7px) !important;
}

.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;
}

.bio-container {
    text-align: center;
    width: 80%;
    padding: 15px;
    background-color: rgba(22, 22, 22, 0.075);
    box-shadow: 0 0 10px rgba(122, 122, 122, 0.178);
    border-radius: 15px;
    backdrop-filter: blur(3px);
    max-width: 100%;
    overflow-wrap: break-word;
    margin-bottom: 1.5vh;
    min-height: 29px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.bio {
    font-family: 'Light';
    font-size: 2vh;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    filter: drop-shadow(#ffffff 1px 0 7px) !important;
}


.bioline {
    background-color: rgba(10, 10, 10, 0.61);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    height: 2px;
    border-radius: 10px;
}

.linksline {
    background-color: rgba(10, 10, 10, 0.61);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    height: 2px;
    border-radius: 10px;

}


.links-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 1.5vh;
    max-height: 280px;
    overflow-y: auto;
    width: 300px;

}

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

.links {
    border-radius: 15px;
    height: 45px;
    width: 45px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

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

.links:hover {
    transform: scale(1.2);
}


.views-container {
    font-family: 'Light';
    font-size: 20px;
    color: #fff;
    fill: #C18be0;
    margin-top: 2vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.views-container svg {
    padding-bottom: 6px;
    height: 25px;
    width: 25px;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(#c18be0 1px 0 7px) !important;
}

#view-count {
    filter: drop-shadow(#ffffff 1px 0 7px) !important;
}


.pic-badge {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center center;
}


.mutebutton {
    font-family: 'Light';
    color: #fff;
    position: fixed;
    bottom: 0;
    right: 2vh;
    text-align: center;
    cursor: pointer;
    transition: text-shadow 0.5s ease-in-out;
}

.mutebutton:hover {
    text-shadow:
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px #fff;
}


.breathing {
    background: linear-gradient(90deg, transparent 30%, #fff 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%;
    }
}


.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 #C18be0,
    }

    to {
        text-shadow: 0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #C18be0,
            0 0 35px #C18be0,
            0 0 40px #C18be0;
    }
}


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

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


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

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

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

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


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

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


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

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


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

#mainDiv {
    width: 375px;
}

#mainDiv .bio img {
    padding-top: 14px;
}

@media (max-width:576px) {

    #mainDiv {
        width: 275px;
    }

    .pre-container img {
        transform: scale(0.725);
        height: auto;
        display: block;
    }
}

.pre-container {
    text-align: center;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
    overflow-wrap: break-word;
}

.pre {
    font-family: 'Light';
    font-size: 2vh;
    color: #fff;
    line-height: 1.5;
}