/* General styles */
html, body {
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden !important;
}

body {
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

/* Header styles */
.header {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgb(0, 0, 0);
    z-index: 1000;
}

.container {
    width: 98%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

h1 {
    margin: 0;
    padding: 0.25rem 0;
    font-size: 40.8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -5px;
}

/* Typography styles */
.eraserhead-font {
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -5px;
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
}

.eraserhead-font .letter {
    display: inline-block;
    transform: skew(-5deg, 0deg);
    position: relative;
}

.eraserhead-font .letter:nth-child(even) {
    transform: skew(5deg, 0deg);
}

.eraserhead-font .letter::before {
    content: attr(data-letter);
    position: absolute;
    left: 0;
    top: 0;
}

/* Animation styles */
.flicker-text {
    animation: 
        flicker-opacity 0.107s infinite alternate,
        flicker-shadow 0.214s infinite alternate,
        flicker-displacement 0.321s infinite alternate;
}

@keyframes flicker-opacity {
    0%, 100% { opacity: 1; }
    10%, 30%, 50%, 70%, 90% { opacity: 0.8875; }
    20%, 40%, 60%, 80% { opacity: 0.94375; }
}

@keyframes flicker-shadow {
    0%, 100% { text-shadow: 0 0 2.25px #fff, 0 0 4.5px #fff; }
    25%, 75% { text-shadow: none; }
    50% { text-shadow: 0 0 1.125px #fff; }
}

@keyframes flicker-displacement {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(0.5625px); }
    20% { transform: translateX(-0.5625px); }
    30% { transform: translateY(0.5625px); }
    40% { transform: translateY(-0.5625px); }
}

/* Navigation styles */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 12px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 13.8px;
    text-transform: uppercase;
    transition: all 0.2s;
    padding: 5px 10px;
}

nav ul li a:hover,
nav ul li a.active-nav-item {
    font-weight: bold;
    -webkit-text-stroke: 0.5px white;
    paint-order: stroke fill;
}

nav ul li a.active-nav-item {
    animation: 
        flicker-opacity 0.107s infinite alternate,
        flicker-shadow 0.214s infinite alternate,
        flicker-displacement 0.321s infinite alternate;
}

/* Social Icons Styles */
.social-icons {
    position: fixed;
    right: 30px;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 2000;
}

.social-icons a {
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.social-icons img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.social-icons a:hover {
    transform: scale(1.1);
}

@keyframes float-social {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.social-icons a:nth-child(1) {
    animation: float-social 4s infinite ease-in-out;
}

.social-icons a:nth-child(2) {
    animation: float-social 4s infinite ease-in-out 0.5s;
}

.social-icons a:nth-child(3) {
    animation: float-social 4s infinite ease-in-out 1s;
}

/* Art Page Styles */
.art-words-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-top: 100px;
    z-index: 2;
}

.glow {
    position: relative;
    padding: 5px 15px;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: bolder;
    color: black;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}

.flicker-light {
    animation: flicker-light 3s infinite;
}

@keyframes flicker-light {
    0%, 100% { text-shadow: 0 0 10px rgba(105, 105, 105, 0.7), 0 0 20px rgba(105, 105, 105, 0.7), 0 0 30px rgba(105, 105, 105, 0.7); }
    10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% { text-shadow: 0 0 8px rgba(105, 105, 105, 0.7), 0 0 16px rgba(105, 105, 105, 0.7), 0 0 24px rgba(105, 105, 105, 0.7); }
    15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% { text-shadow: 0 0 6px rgba(105, 105, 105, 0.7), 0 0 12px rgba(105, 105, 105, 0.7), 0 0 18px rgba(105, 105, 105, 0.7); }
}

/* Oval Layout Styles */
.oval-container {
    position: relative;
    width: 90vw;
    height: 100vw;
    max-width: 1200px;
    max-height: 1000px;
    margin: 100px auto 0;
    padding-bottom: 50px;
}

.oval-container .item {
    position: absolute;
    width: 140px;
    height: auto;
    margin: 30px;
    cursor: move;
}

.oval-container .item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    border: 2px solid white;
}

/* Custom scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    background-color: rgb(0, 0, 0);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 80px 80px rgba(0, 0, 0, 0.99);
    border: 1.25px solid red;
    width: 72vw;
    height: 72vh;
    max-width: 80vw;
    max-height: 80vh;
    overflow: hidden;
}

#lightbox-img {
    display: block;
    width: auto;
    height: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: auto;
    border: 2px solid white;
    border-radius: 10px;
    box-sizing: border-box;
}

.lightbox-caption {
    margin-top: 10px;
    color: #fff;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    z-index: 20;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.thumbnail-strip {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    border-color: #fff;
}

/* TV container and video player styles */
.tv-container {
    position: absolute;
    top: 225px;
    left: 130px;
    width: 800px;
    height: 800px;
    background: none;
}

.tv-frame-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
}

.video-player {
    position: absolute;
    top: 2.5% !important;
    left: 9.2% !important;
    width: 63% !important;
    height: 63% !important;
    object-fit: contain;
    border-radius: 15px;
    overflow: hidden;
    background: black;
    box-shadow: none;
    border: 5px solid #9a9b98;
}

/* Video Section Styles */
.video-section {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 20px;
    padding-right: 20px;
}

.playlist-container {
    position: absolute;
    top: 240px;
    left: 1000px;
    max-height: 460px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 1);
    border-radius: 10px;
    padding: 30px;
    width: 625px;
    border: 1.25px solid red;
}

.playlist-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.playlist-container li {
    padding: 10px;
    cursor: pointer;
    color: #fff;
    border-bottom: 1px solid #444;
    transition: background 0.3s;
}

.playlist-container li:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for playlist */
.playlist-container::-webkit-scrollbar {
    width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(80, 79, 79, 0.979);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.7);
    transition: background 0.3s ease;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0, 0.7);
}

.navigation-buttons {
    position: absolute;
    top: 255px;
    left: 712px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12.5px;
    z-index: 1001;
}

.nav-button {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-button:hover {
    transform: scale(1.1);
}

.volume-slider-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    transform: rotate(-90deg);
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* For Firefox */
.volume-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
}

/* For IE and Edge */
.volume-slider::-ms-track {
    width: 200px;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.volume-slider::-ms-fill-lower,
.volume-slider::-ms-fill-upper {
    background: rgba(255, 255, 255, 0.2);
}

.volume-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: 0;
}

/* Glitch effect styles */
.glitch-effect {
    position: absolute;
    top: 2.5%;
    left: 9.2%;
    width: 63%;
    height: 63%;
    background: black;
    animation: glitch 0.5s linear;
    z-index: 1000;
    display: none;
}

@keyframes glitch {
    0% { opacity: 1; }
    25% { opacity: 0; }
    50% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 1; }
}

/* Hides the loading spinner on the video player */
.video-player::-webkit-media-controls-panel {
    display: none !important;
}

.video-player::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-player::-webkit-media-controls-loading-panel {
    display: none !important;
}

/* Additional CSS to target loading spinner across all browsers */
.video-player::cue {
    display: none !important;
}

.video-player::-moz-progress-bar {
    display: none !important;
}

.video-player::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Highlight the currently playing video title */
.playlist-container li.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
    border-bottom: 2px solid #ff0000;
    transition: background-color 0.3s, color 0.3s;
}

/* Fade transition for video player */
.video-player.fade {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.video-player.show {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px; /* Width of the rectangle */
    height: 10px; /* Height of the rectangle */
    background: #a9a9a9; /* Darker grey color */
    cursor: pointer;
    transform: rotate(90deg); /* Rotate the rectangle to be perpendicular */
}

.volume-slider::-moz-range-thumb {
    width: 30px; /* Width of the rectangle */
    height: 10px; /* Height of the rectangle */
    background: #a9a9a9; /* Darker grey color */
    cursor: pointer;
    border: none;
    transform: rotate(90deg); /* Rotate the rectangle to be perpendicular */
}

.volume-slider::-ms-thumb {
    width: 30px; /* Width of the rectangle */
    height: 10px; /* Height of the rectangle */
    background: #a9a9a9; /* Darker grey color */
    cursor: pointer;
    margin-top: 0;
    transform: rotate(90deg); /* Rotate the rectangle to be perpendicular */
}

.playlist-container li.active {
    background-color: rgba(255, 255, 255, 0.1); /* Highlight the active item */
    color: #fff; /* Ensure the text color is white */
    font-weight: bold; /* Make the font bold */
    border-bottom: none; /* Remove the underline */
    transition: background-color 0.3s, color 0.3s;
}

/* Hide scrollbars while allowing content to overflow */
body {
    overflow: hidden; /* Hide both horizontal and vertical scrollbars */
}

body, html {
    /* Use overflow properties that hide scrollbars */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}
