:root {
    --popup-transition-speed: 0.5s;
}


body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: 'Quicksand', Helvetica, Arial, sans-serif;
    font-weight: 500;
    background-color: #111;
    display: flex;
    flex-direction: column;
}

a:link {
    color: #ff35f2;
}

a:visited {
    color: #b041ff;
}

.main-content {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

#glcanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: 0;
    z-index: 1;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 5px solid rgba(100, 100, 255, 0.8);
    border-top: 5px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

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

#loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: rgb(187, 187, 187);
    padding: 15px 25px;
    flex-shrink: 1;
    height: 50px;
    box-sizing: border-box;
    z-index: 10;
    cursor: crosshair;
    pointer-events: none;
}

.site-header .profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.site-header .logo {
    height: 35px;
    width: auto;
}

.site-header .paragraph-description {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    margin-left:auto;
    text-align: right;
}

.popup {
    position: fixed;
    z-index: 20;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    transition: transform var(--popup-transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px 25px;
    flex-shrink: 0;
}

.popup-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    line-height: 30px;
    text-align: center;

    position: static;
}

.popup-header h2 {
    margin: 0;
    color: #efefef;
    max-width: 80%;
}

.popup.visible {
    transform: translate(0, 0);
}


.popup-content {
    padding: 0 25px 25px 25px;
    overflow-y: auto;
}

.popup-content h2 {
    margin-top: 0;
    color: #efefef;
}

.popup-content p {
    line-height: 1.6;
    color: #ccc;
}

.popup-content img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.soundcloud-player {
    width: 100%;
    height: 120px;
    border: none;
    border-radius: 4px;
    margin-top: 20px;
}

@media (orientation: landscape) {
    .popup {
        top: 0;
        right: 0;
        width: 30vw;
        min-width: 380px;
        height: 100vh;
        transform: translateX(100%);
    }
}

@media (orientation: portrait) {
    .popup {
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 50vh;
        transform: translateY(100%);
    }
}