/*
    Sources used:
    - https://static.tumblr.com/zlim8hm/29yn6561z/force-cursor.png (cursor),
    - https://github.com/google/fonts/blob/main/ofl/poppins (font)

    Font Weights:
    - SemiBold 600
    - Black 900
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

html, body {
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor.png') 5 3, default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #111118;
    margin: 0;
    padding: 0;
    color: #8c64dc;
}

a {
    text-decoration: none;
    color: #8c64dc;
}

a:hover {
    color: #ac76ff;
}

@media only screen and (max-device-width: 480px) {
    iframe {
        width: 90%;
    }
    #image1, #image2, #image3 {
        width: 90%;
        height: 90%
    }
}

/*  ============================================= 
                        BUTTONS
    ============================================= */

.button {
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 25px;
    margin: 4px 2px;
    border-radius: 8px;
    max-width: 99%;
    max-height: 99%;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
}

.discord {
    background-color: #5865F2;
    color: #d1dce6;
    border: 2px solid #5865F2;
}

.discord:hover {
    background-color: #111118; /* Same as page background color */
    color: #d1dce6;
    border: 2px solid #5865F2;
}

.instagram {
    background-color: #833AB4;
    color: #d1dce6;
    border: 2px solid #833AB4;
}

.instagram:hover {
    background-color: #111118; /* Same as page background color */
    color: #d1dce6;
    border: 2px solid #833AB4;
}

.youtube {
    background-color: #FF4444;
    color: #d1dce6;
    border: 2px solid #FF4444;
}

.youtube:hover {
    background-color: #111118; /* Same as page background color */
    color: #d1dce6;
    border: 2px solid #FF4444;
}

.twitch {
    background-color: #6441A5;
    color: #d1dce6;
    border: 2px solid #6441A5;
}

.twitch:hover {
    background-color: #111118; /* Same as page background color */
    color: #d1dce6;
    border: 2px solid #6441A5;
}

.steam {
    background-color: #1B2838;
    color: #d1dce6;
    border: 2px solid #1B2838;
}

.steam:hover {
    background-color: #111118; /* Same as page background color */
    color: #d1dce6;
    border: 2px solid #1B2838;
}

.spotify {
    background-color: #0DD452;
    color: #d1dce6;
    border: 2px solid #0DD452;
}

.spotify:hover {
    background-color: #111118; /* Same as page background color */
    color: #d1dce6;
    border: 2px solid #0DD452;
}

/*  ============================================= 
                    LANYARD STATUS
    ============================================= */

#lanyardImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lanyard-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

@media only screen and (max-width: 480px) {
    #lanyardImage {
        width: calc(100vw - 30px) !important;
        max-width: calc(100vw - 30px) !important;
        height: auto !important;
        margin: 15px auto !important;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        object-fit: contain;
        object-position: left;
    }
    .lanyard-container {
        width: 100%;
        padding: 0 15px;
        margin: 0;
        display: block;
    }
}

/*  ============================================= 
                    BURGER MENU
    ============================================= */

header {
    top: 0;
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav {
    position: fixed;
    right: 0;
    width: 100%;
    max-width: 16rem;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #0c0c11;
    z-index: 100;
    align-items: stretch;
    gap: 2rem;
    transform: translateX(100%);
    transition: all 0.2s;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
    padding-left: 3%;
}

.nav-open {
    transform: translateX(0%);
}

.nav a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
}

.nav li {
    list-style: none;
    font-size: 1.39rem;
    padding: 0;
    color: white;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
}

.nav li:nth-child(1) {
    margin-top: 10vh;
}

/* Burger Icon */
#burger {
    width: 50px;
    height: 50px;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    z-index: 1000;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccccc80;
    box-sizing: border-box;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#burger:hover {
    background-color: #1a1a1a;
}

#burger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 60%;
    background: #ffffff;
    border-radius: 9px;
    opacity: 1;
    transition: opacity 0.3s ease;
    left: 50%;
    transform: translateX(-50%);
}

#burger span:nth-child(1) { top: 16px; }
#burger span:nth-child(2) { top: 24px; }
#burger span:nth-child(3) { top: 32px; }

#burger.open span:nth-child(1),
#burger.open span:nth-child(3) {
    opacity: 0;
}

#burger.open span:nth-child(2) {
    width: 60%;
    height: 3px;
    background: transparent;
    position: relative;
}

#burger.open::before,
#burger.open::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background: #ffffff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#burger.open::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#burger.open::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#burger.open::before,
#burger.open::after {
    opacity: 1;
}

/* Mobile scaling */
@media only screen and (max-device-width: 480px) {
    #burger.container-open {
        width: 35px;
        height: 35px;
        transform: scale(0.8);
        opacity: 0.7;
    }
    #burger:not(.container-open) {
        width: 50px;
        height: 50px;
        transform: scale(1);
        opacity: 1;
    }
    #burger.container-open span:nth-child(1) { top: 10px; }
    #burger.container-open span:nth-child(2) { top: 16px; }
    #burger.container-open span:nth-child(3) { top: 22px; }
}

/* Force proper sizing on desktop */
@media only screen and (min-width: 481px) {
    #burger {
        width: 50px !important;
        height: 50px !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }

    #burger span {
        width: 60% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    #burger.open span:nth-child(2) {
        transform: translateX(-50%) rotate(45deg) !important;
    }

    #burger.open span:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg) !important;
    }
}

.collapsible-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media only screen and (max-device-width: 480px) {
    .collapsible-button.container-open {
        width: 35px;
        height: 35px;
        transform: scale(0.8);
        opacity: 0.7;
    }

    .collapsible-button.container-open .pc-icon {
        width: 20px;
        height: 20px;
    }

    .collapsible-button:not(.container-open) {
        width: 50px;
        height: 50px;
        transform: scale(1);
        opacity: 1;
    }

    .collapsible-button:not(.container-open) .pc-icon {
        width: 28px;
        height: 28px;
    }
}

@media only screen and (min-width: 481px) {
    .collapsible-button {
        width: 50px !important;
        height: 50px !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

/*  ============================================= 
                    PRELOADER
    ============================================= */

#preloader {
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    display: flex;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(77.28deg, rgba(82, 225, 226, 1)2.24%, rgba(157, 77, 196, 1) 104.45%);
    animation: animate 0.5s linear infinite;
    margin-top: 100px;
    margin-bottom: 100px;
}

.loader span {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(77.28deg, rgba(82, 225, 226, 1)2.24%, rgba(157, 77, 196, 1) 104.45%);
    animation: animate 0.5s linear infinite;
}

.loader span:nth-child(1) {
    filter: blur(5px);
}

.loader span:nth-child(2) {
    filter: blur(10px);
}

.loader span:nth-child(3) {
    filter: blur(25px);
}

.loader span:nth-child(4) {
    filter: blur(50px);
}

.loader::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background-color: #161616;
    border-radius: 50%;
}

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

/*  ============================================= 
                        FOOTER
    ============================================= */

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #0c0c11;
    color: white;
    text-align: center;
    padding: 5px 0;
}

.content {
    margin-bottom: 100px;
}

/*  ============================================= 
                    NOTIFICATIONS
    ============================================= */

#notification {
    position: fixed;
    bottom: 16px;
    left: 20px;
    padding: 10px;
    background: #1d1d29;
    color: white;
    border-radius: 5px;
    z-index: 9999;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(100%);
    opacity: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    pointer-events: none;
}

/*  ============================================= 
                        CAMERAS
    ============================================= */

.camera-container {
    position: fixed;
    bottom: 10px;
    left: 12px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.camera-container:hover {
    opacity: 1;
}

.camera-button {
    border: none;
    background-color: #000;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccccc80;
    box-sizing: border-box;
}

.camera-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAmUlEQVR4nO2TUQqDMAxA8+Fp3DEE8VbubCu7wfwThe53d3hD5iBIFToTmOD7ammTR5tE5ORvARrgST5xik0l7IAWKOf9dPFXYkqgeXwXkv/ydJxK/tIm+ZzdgWAlKIB6IQjAzU3g/kXWAuaOMhd0wBW4uLTpyqBFs0HLAehVwn5XshRApQSVeMBaMY8kGLcqbVWHwU1wIla8AagyR3vXSnr+AAAAAElFTkSuQmCC');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    margin: 0 auto;
}

.camera-content-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    width: calc(95% - 40px);
    max-width: 700px;
    max-height: 75vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.90em;
    overflow-y: auto;
    transition: width 0.3s ease, padding 0.3s ease;
    border: 1px solid #cccccc80;
    opacity: 0;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    transform: translate(-50%, -50%) scale(0.9);
}

.camera-content-box.show {
    display: flex !important;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.camera-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.camera-content iframe,
.camera-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.camera-content iframe {
    width: calc(50% - 10px);
    height: 248px;
}

.password-box {
    display: none;
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
    padding: 10px;
    background-color: #0c0c11;
    border: 1px solid #242433;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 198px;
    display: flex;
    align-items: center;
}

.password-box.fade-in {
    display: flex;
    opacity: 1;
}

.password-box input[type="password"] {
    flex: 1;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #1a1a1f;
    color: white;
}

.password-box .close-button {
    cursor: pointer;
    color: white;
    font-size: 16px;
}

@media (max-width: 768px) {
    .camera-content img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        margin: 0;
        border-radius: 5px;
    }
}

/*  ============================================= 
                    SETUP BUTTON
    ============================================= */

.collapsible-container {
    position: relative;
}

.collapsible-button {
    border: none;
    background-color: #000;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccccc80;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-button:hover {
    background-color: #1a1a1a;
}

.pc-icon {
    width: 28px;
    height: 28px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 17h20V5c0-1.1-.9-2-2-2zm0 12H4V5h16v10zm-6 3v1h-4v-1h-2v2h8v-2h-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    margin: 0 auto;
}

.close-button {
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: url('https://raw.githubusercontent.com/NobiteK/Website/main/assets/Images/cursor-pointer.png') 5 3, pointer;
    font-size: 30px;
    color: #fff;
    background-color: rgba(30, 30, 30, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #cccccc80;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1001;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: rgba(50, 50, 50, 0.9);
}

.content-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    color: #fff;
    border-radius: 15px;
    padding: 20px;
    width: calc(95% - 40px);
    max-width: 700px;
    max-height: 75vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 0.90em;
    overflow-y: auto;
    border: 1px solid #cccccc80;
    opacity: 0;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    transform: translate(-50%, -50%) scale(0.9);
}

.content-box.show {
    display: block !important;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.content-scrollable ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-scrollable ul ul {
    padding-left: 20px;
}

/*  ============================================= 
                    OTHER DIVS
    ============================================= */

.responsive-img {
    max-width: calc(100% - 15px);
    height: auto;
    margin-right: 15px;
}

#js-warning {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*  ============================================= 
                    SCROLLBAR
    ============================================= */

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

/* 
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #111118; }
::-webkit-scrollbar-thumb { background: #1d1d29; border-radius: 10px; } 
*/
