/* Font Faces */
@font-face {
    font-family: 'DDin';
    src: url('fonts/D-DIN-Bold.otf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DDin';
    src: url('fonts/D-DIN-Italic.otf');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'DDin';
    src: url('fonts/D-DIN.otf');
    font-weight: normal;
    font-style: normal;
}

/* Base Styles */
* { 
    font-family: sans-serif; /* fallback font */
    font-family: 'DDin', sans-serif;
    box-sizing: border-box;
}

html {
    background-image: url(img/deepdip_tower.png);
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100%;
}

html, body {
    height: 100%;
    padding: 0rem;
    margin: 0rem;
    line-height: 1.6;
}

/* Background overlay for enhanced pages */
body.enhanced::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 15, 35, 0.85) 0%, 
        rgba(15, 30, 60, 0.8) 50%, 
        rgba(0, 20, 40, 0.9) 100%);
    z-index: -1;
}

/* Typography */
h1 {
    font-weight: bold;
}

h2 {
    margin-top: 0;
}

/* Navigation Styles */
/* Enhanced Navigation for About Page */
nav {
    background-color: rgba(0,0,0,0.7);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav * {
    font-size: 1.25rem;
}

nav h1 {
    color: white;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    gap: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: #64b5f6;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    max-width: 25%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

/* Main Content - Original Home Page Style */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

main h1 {
    color: white;
    font-size: 5rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

main p {
    color: white;
    font-size: 3rem;
    margin: 0;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Temporary Notice Change */
#notice {
   max-width: 50%;
}

body.enhanced {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Enhanced Main Content for About Page */
body.enhanced main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
    min-height: auto;
    display: block;
}

/* About Page Specific Styles */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.content-section {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-section h2 {
    font-size: 2.5rem;
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
    margin-top: 0rem;
    border-bottom: 2px solid rgba(100, 181, 246, 0.3);
}

.content-section p {
    font-size: 1.2rem;
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    text-align: center;
}

.mappers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mapper-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mapper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.2);
    background: rgba(100, 181, 246, 0.1);
}

.mapper-card img {
    width: 150px;
    height: 150px;
    border-radius: 10%;
    object-fit: cover;
    border: 3px solid rgba(100, 181, 246, 0.3);
    transition: border-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mapper-card:hover img {
    border-color: rgba(100, 181, 246, 0.8);
    transform: scale(1.05);
}

.mapper-card h3 {
    font-size: 1.8rem;
    color: #64b5f6;
    margin: 0;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.3);
}

.mapper-card .floor {
    font-size: 1rem;
    color: #bbbbbb;
    margin-bottom: 1rem;
    font-style: italic;
}

.mapper-card p {
    font-size: 1rem;
    text-align: left;
}

#dinkle:active {
    transform: scale(0.95);
    filter: brightness(0.75);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(100, 181, 246, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.stat-card .number {
    font-size: 3rem;
    font-weight: bold;
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}

.stat-card .label {
    font-size: 1.2rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.highlight {
    color: #64b5f6;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
}

/* Rankings Page Specific Styles */
.rankings-main {
    flex: 1;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    display: block;
}

.rankings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: #64b5f6;
    text-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(100, 181, 246, 0.3);
    padding-bottom: 1rem;
}

/* Tower Status Styles */
.tower-display {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.player-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.player-status.connected {
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.1);
}

.player-status.disconnected {
    border-color: rgba(244, 67, 54, 0.3);
    opacity: 0.7;
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.player-name {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.status-dot.offline {
    background-color: #f44336;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
}

.status-text {
    color: white;
    font-size: 0.9rem;
}

.tower-progress {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.height-text, .percentage-text {
    color: #64b5f6;
    font-weight: bold;
    font-size: 1.1rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #64b5f6);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.3);
}

.floor-markers {
    position: relative;
    margin-top: 0.5rem;
    height: 20px;
}

.floor-marker {
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
}

.floor-number {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.floor-marker.passed .floor-number {
    color: #64b5f6;
    font-weight: bold;
}

.session-info {
    margin-top: 1rem;
    text-align: center;
}

.session-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.no-players {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    padding: 2rem;
}

/* Leaderboard Styles */
.leaderboard-display {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dev-title {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    border-bottom-color: rgba(255, 107, 53, 0.3);
}

.dev-display {
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
}

.dev-entry {
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
}

.dev-entry:hover {
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2);
}

.dev-entry .achievement-value {
    color: #00ff95;
}

.dev-entry .mini-progress-fill {
    background: linear-gradient(90deg, #00ffaa, #0066ff);
}

.dev-icon {
    font-size: 1.5rem;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    transform: translateX(5px);
    background: rgba(100, 181, 246, 0.1);
    box-shadow: 0 5px 20px rgba(100, 181, 246, 0.2);
}

.leaderboard-entry.rank-1 {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.leaderboard-entry.rank-2 {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.2);
}

.leaderboard-entry.rank-3 {
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.2);
}

.rank-number {
    min-width: 60px;
    text-align: center;
    margin-right: 1rem;
}

.rank-icon {
    font-size: 2rem;
}

.rank-number-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #64b5f6;
}

.player-details {
    flex-grow: 1;
    margin-right: 1rem;
}

.leaderboard-name {
    color: white;
    font-size: 1.4rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.achievement-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.achievement-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.achievement-value {
    color: #64b5f6;
    font-weight: bold;
    margin-left: 0.5rem;
}

.leaderboard-progress {
    min-width: 100px;
}

.mini-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #64b5f6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.no-records {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    padding: 2rem;
}

/* Special Thanks Section Styles */
.thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.thanks-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
}

.thanks-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.15);
    background: rgba(100, 181, 246, 0.08);
}

.thanks-card h3 {
    color: #64b5f6;
    font-size: 1.5rem;
    margin-top: 0rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.3);
}

.thanks-card p {
    padding-bottom: 1rem;
}

.thanks-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.thanks-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.thanks-list li:last-child {
    border-bottom: none;
}

.thanks-list li:hover {
    color: #64b5f6;
}

.thanks-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    margin: 0;
}

/* Footer Styles */
.site-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    color: white;
}

.footer-section h3 {
    color: #64b5f6;
    font-size: 1.3rem;
    margin-top: 0rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.3);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
    text-align: left;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 1rem;
}

.footer-links a:hover {
    color: #64b5f6;
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
}

.footer-credits {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-credits p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: center;
}

.dev-credit {
    color: #64b5f6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.dev-credit:hover {
    color: #81c9f7;
    text-shadow: 0 0 5px rgba(100, 181, 246, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    body.enhanced main {
        padding: 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .mappers-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card .number {
        font-size: 2rem;
    }

    /* Original home page responsive */
    main h1 {
        font-size: 3rem;
    }

    main p {
        font-size: 2rem;
    }

    /* Rankings responsive */
    .rankings-main {
        padding: 1rem;
    }

    .rankings-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tower-display,
    .leaderboard-display {
        padding: 1.5rem;
    }

    .player-status,
    .leaderboard-entry {
        padding: 1rem;
    }

    .leaderboard-entry {
        flex-direction: column;
        text-align: center;
    }

    .rank-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .player-details {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .achievement-info {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .floor-markers {
        display: none; /* Hide floor markers on mobile for cleaner look */
    }

        .footer-content {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 1rem 1rem;
        text-align: center;
    }
    
    .footer-section p {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
    
    .thanks-grid {
        grid-template-columns: 1fr;
    }
    
    .thanks-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    /* Original home page responsive */
    main h1 {
        font-size: 2rem;
    }

    main p {
        font-size: 1.5rem;
    }

    /* Rankings responsive */
    .progress-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .achievement-info {
        grid-template-columns: 1fr;
    }

        .footer-content {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    .footer-credits p {
        font-size: 0.8rem;
    }
    
    .thanks-card {
        padding: 1rem;
    }
    
    .thanks-card h3 {
        font-size: 1.3rem;
    }
    
    .thanks-card p {
        font-size: 0.9rem;
    }
}

.server-connect {
    text-align: center;
    margin: 2rem 0;
}

.connect-command {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(100, 181, 246, 0.3);
    flex-wrap: wrap;
}

.connect-command code {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #00ff95;
    background: transparent;
    padding: 0;
    border: none;
    text-shadow: 0 0 8px rgba(0, 255, 149, 0.3);
    user-select: all;
}

.copy-btn {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 80px;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.connect-instructions {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 1rem;
}

.workshop-link-container {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: auto;
}

.workshop-link-container img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.workshop-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(23, 26, 33, 0.8), rgba(16, 20, 31, 0.9));
    color: white;
    text-decoration: none;
    padding: 2rem;
    margin: 0;
    border-radius: 15px;
    border: 1px solid rgba(100, 181, 246, 0.2);
    transition: all 0.3s ease;
    max-width: 500px;
    width: 100%;
}

.workshop-link h3 {
    margin: 0;
    color: #64b5f6;
    font-size: 1.4rem;
}

.workshop-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.2);
    border-color: rgba(100, 181, 246, 0.5);
}

.workshop-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.workshop-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: left;
}

.external-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(100, 181, 246, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.3);
    border-color: rgba(100, 181, 246, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 10px;
    padding: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    margin-left: -60px;
}

.lightbox-next {
    margin-right: -60px;
}

/* Auto-refresh indicator styles */
.refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #00ff00;
    font-weight: normal;
}

.refresh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff00;
    animation: pulse 2s infinite;
}

.refresh-indicator.updating {
    color: #ffaa00;
}

.refresh-indicator.updating .refresh-dot {
    background-color: #ffaa00;
    animation: spin 1s linear infinite;
}

.refresh-indicator.error {
    color: #ff4444;
}

.refresh-indicator.error .refresh-dot {
    background-color: #ff4444;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions for content updates */
.tower-display, .leaderboard-display {
    transition: opacity 0.3s ease-in-out;
}

/* Connection status styles */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.connection-status.connected {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.connection-status.disconnected {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

.connection-status.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

@media (max-width: 768px) {
    .connect-command {
        flex-direction: column;
        gap: 0.5rem;
    }

    .connect-command code {
        font-size: 1rem;
        word-break: break-all;
        text-align: center;
    }

    .workshop-link {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .workshop-text p {
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lightbox-prev {
        margin-left: 10px;
    }

    .lightbox-next {
        margin-right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Streams Page Styles */
.streams-main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
    min-height: calc(100vh - 80px);
    display: block;
}

.featured-icon {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes sparkle {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

.featured-stream-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.stream-card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 181, 246, 0.2);
}

.featured-stream {
    max-width: 900px;
    width: 100%;
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.featured-stream:hover {
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

.stream-embed {
    position: relative;
    width: 100%;
}

.stream-embed iframe {
    border-radius: 15px 15px 0 0;
}

.stream-info {
    padding: 1.5rem;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stream-title {
    color: #64b5f6;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.3);
}

.stream-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-game {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.stream-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.stream-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .streams-main {
        padding: 1rem;
    }

    .streams-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-stream {
        margin: 0;
    }

    .stream-embed iframe {
        height: 250px;
    }

    .community-stream .stream-embed iframe {
        height: 200px;
    }

    .stream-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stream-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .featured-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .featured-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .streams-grid {
        grid-template-columns: 1fr;
    }

    .stream-embed iframe {
        height: 200px;
    }

    .community-stream .stream-embed iframe {
        height: 180px;
    }

    .no-streams {
        padding: 2rem 1rem;
    }

    .no-streams-icon {
        font-size: 3rem;
    }
}

.progress-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
}

.player-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-navigation {
    margin-bottom: 20px;
}

.back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #adadad;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #64b5f6;
    margin-bottom: 5px;
}

.stat-subtext {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}

.chart-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #64b5f6;
    text-align: center;
    text-shadow: 0 0 15px rgba(100, 181, 246, 0.5);
    border-bottom: 2px solid rgba(100, 181, 246, 0.3);
    padding-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 400px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.session-history {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.session-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.session-entry.best-session {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.session-date {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.date-text {
    font-weight: 600;
    color: #64b5f6;
}

.time-text {
    color: rgba(255, 255, 255, 0.7);
}

.session-achievement {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.session-progress {
    margin-bottom: 10px;
}

.session-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.session-progress-fill {
    background: linear-gradient(90deg, #4caf50, #64b5f6);
    height: 100%;
    transition: width 0.3s ease;
}

.best-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.best-badge {
    background: #FFD700;
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.no-sessions {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 40px;
}

@media (max-width: 768px) {
    .progress-container {
        padding: 10px;
    }

    .player-header, .chart-section, .session-history {
        padding: 20px;
    }

    .player-title {
        font-size: 2em;
    }

    .session-achievement {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .chart-container {
        height: 300px;
        padding: 10px;
    }
}

.player-name-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.player-name-link:hover {
    color: #64b5f6;
    text-shadow: 0 0 8px rgba(100, 181, 246, 0.4);
}

.player-name-link:hover::after {
    content: " 📊";
    opacity: 0.7;
    font-size: 0.8em;
}

/* Ensure the current players section also has hover effects */
.player-status .player-name-link:hover {
    color: #81c9f7;
}

/* Add a subtle underline on hover for better UX */
.leaderboard-name .player-name-link:hover {
    border-bottom: 2px solid #64b5f6;
    padding-bottom: 2px;
}
