/* DESPLANDIA Gallery Page CSS */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 0, 193, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(0, 193, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(193, 255, 0, 0.08) 0%, transparent 30%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px;
    color: #FFFFFF;
    min-height: 100vh;
    position: relative;
    
    /* Edge-to-center glow effect */
    animation: edge-glow 5s ease-in-out infinite;
}

/* Edge glow animation - flows from window edges inward */
@keyframes edge-glow {
    0% {
        box-shadow: 
            inset 0 0 50px rgba(0, 193, 255, 0.2),
            inset 0 0 100px rgba(0, 193, 255, 0.1);
    }
    25% {
        box-shadow: 
            inset 0 0 60px rgba(193, 255, 0, 0.3),
            inset 0 0 120px rgba(193, 255, 0, 0.15);
    }
    50% {
        box-shadow: 
            inset 0 0 55px rgba(255, 0, 193, 0.2),
            inset 0 0 110px rgba(255, 0, 193, 0.1);
    }
    75% {
        box-shadow: 
            inset 0 0 65px rgba(255, 102, 0, 0.3),
            inset 0 0 130px rgba(255, 102, 0, 0.15);
    }
    100% {
        box-shadow: 
            inset 0 0 50px rgba(0, 193, 255, 0.2),
            inset 0 0 100px rgba(0, 193, 255, 0.1);
    }
}

/* Main title styling */
.main-title {
    font-family: 'Bungee', cursive;
    text-shadow: 
        3px 3px 0px #000000,
        0 0 15px #FF00C1,
        0 0 25px #FF00C1;
    animation: title-pulse 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes title-pulse {
    from {
        text-shadow: 
            3px 3px 0px #000000,
            0 0 15px #FF00C1,
            0 0 25px #FF00C1;
    }
    to {
        text-shadow: 
            3px 3px 0px #000000,
            0 0 10px #FF00C1,
            0 0 20px #FF00C1,
            0 0 30px #FF00C1;
    }
}

.subtitle {
    font-family: 'Righteous', cursive;
    text-shadow: 2px 2px 4px #000000;
    position: relative;
    z-index: 2;
}

.section-header {
    font-family: 'Alfa Slab One', cursive;
    text-shadow: 2px 2px 4px #000000;
}

/* Navigation link */
.nav-link {
    color: #C1FF00;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    font-weight: bold;
    padding: 8px 15px;
    display: block;
    position: relative;
    z-index: 2;
}

.nav-link:hover {
    color: #000000;
    background-color: #C1FF00;
    text-shadow: none;
}

/* Main gallery container */
.gallery-container {
    width: 80%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.9);
    border: 4px ridge #808080;
    margin: 20px auto;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.gallery-header {
    background: linear-gradient(135deg, #00C1FF, #0099CC);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #404040;
}

.gallery-content {
    padding: 20px;
}

.image-item {
    margin: 20px 0;
    text-align: center;
    padding: 10px;
    border: 2px solid rgba(193, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.image-item:hover {
    border-color: #C1FF00;
    background: rgba(193, 255, 0, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(193, 255, 0, 0.3);
}

.image-item img {
    max-width: 100%;
    height: auto;
    border: 2px solid #404040;
    transition: all 0.3s ease;
}

.image-item img:hover {
    border-color: #FF00C1;
    filter: brightness(1.1) contrast(1.1);
}

/* Footer styling */
.footer-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px !important;
    position: relative;
    z-index: 2;
}

/* Blink animation */
blink {
    animation: blink-text 1.5s infinite;
}

@keyframes blink-text {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Table styling */
table {
    border-collapse: separate;
    border-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* General font effects */
font[color="#FF00C1"] {
    text-shadow: 1px 1px 2px #000000, 0 0 8px #FF00C1;
}

font[color="#C1FF00"] {
    text-shadow: 1px 1px 2px #000000, 0 0 8px #C1FF00;
}

/* Responsive design */
@media (max-width: 768px) {
    .gallery-container {
        width: 95%;
    }
    
    .gallery-content {
        padding: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .image-item {
        margin: 15px 0;
        padding: 8px;
    }
}