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

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

/* 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%; /* Lower the lightbox */
    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); /* Much stronger shadow effect */
    border: 1.25px solid red; /* Thin red border */
    width: 72vw; /* Decreased width for the lightbox */
    height: 72vh; /* Decreased height for the lightbox */
    max-width: 80vw; /* Ensure it does not exceed the viewport width */
    max-height: 80vh; /* Ensure it does not exceed the viewport height */
    overflow: hidden;
}

#lightbox-img {
    display: block;
    width: auto;
    height: 90%; /* Ensure the image scales properly within the container */
    max-height: 90%; /* Ensure the image stays within the container */
    object-fit: contain; /* Ensure the image maintains its aspect ratio */
    margin: auto;
    border: 2px solid white; /* Add a small white border around the image */
    border-radius: 10px; /* Round the corners of the images */
    box-sizing: border-box; /* Include the border in the element's dimensions */
}

.lightbox-caption {
    margin-top: 10px;
    color: #fff;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    padding: 10px;
    box-sizing: border-box;
    position: relative; /* Ensure it stays below the image */
    z-index: 10; /* Ensure it stays on top */
}

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

