/* Reset and base styles */
body {
    font-family: 'Minecraft', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    overflow-x: hidden;
}
h1 {
    color: #333;
    text-align: center;
    margin-top: 2rem;
}
.group-photo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
    max-width: 100vw;
    /* Prevent zoom from causing horizontal scroll */
    overflow: hidden;
}

/* Header styles */
.blurred-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 135px; /* was 120px, now 15px bigger */
    z-index: 100;
    background: linear-gradient(
        to bottom,
        rgba(60,60,60,0.25) 0%,
        rgba(60,60,60,0.12) 60%,
        rgba(60,60,60,0.01) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.2) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-wrap: wrap;
    min-width: 0;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    pointer-events: none;
}
#logo-link, .blurred-header #logo {
    position: relative;
    z-index: 101;
    pointer-events: auto;
}
#logo-link {
    margin-left: 0;
    margin-right: 24px;
    display: flex;
    align-items: center;
}
.blurred-header #logo {
    width: 240px;
    height: auto;
    max-width: 360px;
    cursor: pointer;
    transition: transform 0.2s;
}
.main-nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
    margin-right: 32px;
    flex-wrap: wrap;
    max-width: 90vw;
    overflow-x: visible;
    justify-content: center;
    min-height: 60px;
    align-items: flex-end;
    pointer-events: auto;
}
.main-nav .nav-link {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.25rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 8px 10px;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.main-nav .nav-link:hover {
    color: #222;
    background: #fff;
    transform: translateY(-2px) scale(1.07);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-img {
    width: 32px;
    height: 32px;
    margin-top: 4px;
    object-fit: contain;
    display: block;
    transition: filter 0.2s;
}
.main-nav .nav-link:hover .nav-img {
    filter: invert(1);
}

/* Start Exploring button */
.start-exploring-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -180px;
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
}
.start-exploring-btn {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    background: transparent;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 16px;
    padding: 16px 36px 12px 36px;
    cursor: pointer;
    box-shadow: 0 2px 24px 0 rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
    position: relative;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.start-exploring-btn:hover, .start-exploring-btn:focus {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: #fff;
    transform: translateY(2px) scale(1.04);
    box-shadow: 0 4px 32px 0 rgba(255,255,255,0.18);
}
.start-exploring-btn span {
    font-family: 'Minecraft';
    font-weight: bold;
}
.start-exploring-arrow {
    width: 32px;
    height: 32px;
    margin-top: 4px;
    display: block;
    object-fit: contain;
    filter: invert(1) drop-shadow(0 2px 0 #222);
}

/* What is Freaky SMP section */
.section-what {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 48px;
    margin-bottom: 48px;
}
.what-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 1300px;
    width: 100%;
    gap: 60px;
    padding: 32px 24px;
}
.what-text {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    padding: 48px 40px;
    flex: 2 1 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 340px;
    max-width: 700px;
    transition: box-shadow 0.18s;
    /* no transform here, handled by GSAP */
}
.what-text h2 {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 2.2rem;
    margin: 0 0 22px 0;
    color: #222;
}
.what-text p {
    font-size: 1.18rem;
    color: #333;
    margin: 0 0 18px 0;
    line-height: 1.7;
}
.what-image-stack {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.what-image-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-end;
}
.what-image-col img {
    max-width: 600px;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    background: #eaeaea;
    width: 100%;
    object-fit: cover;
}
.img-hover-wrap {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure image stays within its container */
}
.img-hover-wrap img {
    display: block;
    width: 100%;
    height: 100%; /* Fill the container vertically */
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.28s cubic-bezier(.77,0,.18,1), filter 0.18s;
    will-change: transform;
}
.img-hover-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(30,30,30,0.92);
    color: #fff;
    font-family: 'Minecraft', Arial, sans-serif;
    font-size: 1.1rem;
    padding: 8px 18px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: none;
    z-index: 2;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    white-space: nowrap;
}

/* Mobile menu toggle button */
#menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    top: auto;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: #222;
    border: none;
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    transition: background 0.2s;
}
#menu-toggle.open {
    background: #444;
}
.menu-bar {
    display: block;
    width: 22px;
    height: 4px;
    margin: 4px auto;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
}
#menu-toggle.open .menu-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
#menu-toggle.open .menu-bar:nth-child(2) {
    opacity: 0;
}
#menu-toggle.open .menu-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile nav styles */
@media (max-width: 900px) {
    #menu-toggle,
    .main-nav,
    .nav-item,
    .main-nav .nav-link {
        display: none !important;
    }
    .blurred-header {
        justify-content: center;
        align-items: center;
        flex-direction: row;
        height: 95px;
        padding: 0 0 0 0;
    }
    #logo-link {
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .blurred-header #logo {
        width: 120px;
        max-width: 160px;
        margin: 0 auto;
        display: block;
    }
    .start-exploring-container {
        display: none !important;
    }
    /* Make player boxes smaller on mobile */
    .players-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px 6px;
        max-width: 98vw;
    }
    .player-main {
        padding: 10px 8px 8px 8px;
        min-height: 0;
    }
    .player-avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    .player-name {
        font-size: 1rem;
    }
    .player-toggle {
        font-size: 1.1rem;
        padding: 2px 6px;
    }
    .player-dropdown-inner {
        min-width: 0;
        max-width: 96vw;
        width: 100%;
        padding: 12px 8px 10px 8px;
        font-size: 0.97rem;
    }
}
@media (max-width: 600px) {
    .players-grid {
        grid-template-columns: 1fr;
        gap: 8px 0;
    }
    .player-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 5px 6px 5px;
        min-height: 0;
    }
    .player-avatar {
        margin-bottom: 6px;
        margin-right: 0;
    }
    .player-toggle {
        align-self: flex-end;
        margin-left: 0;
        margin-right: 0;
    }
    .player-dropdown-inner {
        min-width: 0;
        max-width: 98vw;
        width: 100%;
    }
}

/* Responsive styles */
@media (max-width: 900px) {
    .blurred-header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    .main-nav {
        max-width: 100vw;
        width: 100%;
        gap: 10px;
        margin-left: 0;
        margin-right: 0;
        margin-top: 8px;
        justify-content: flex-start;
    }
    .main-nav .nav-link {
        font-size: 1.1rem;
        padding: 7px 8px;
    }
    .section-what {
        justify-content: center;
    }
    .what-content {
        flex-direction: column;
        gap: 24px;
        padding: 18px 6vw;
        max-width: 100vw;
        align-items: center;
    }
    .what-text {
        padding: 28px 12px;
        max-width: 100%;
    }
    .what-image-stack {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .what-image-col {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }
    .what-image-col img {
        max-width: 100%;
        max-height: 140px;
    }
}

/* About section */
.section-about {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 48px;
    margin-bottom: 48px;
}
.about-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 900px;
    width: 100%;
    gap: 40px;
    margin: 0 24px;
}
.about-image {
    flex: 0 0 420px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.about-image-big {
    width: 420px;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.10);
    background: #eaeaea;
    display: block;
}
.about-text {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    padding: 48px 40px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.18s;
    /* no transform here, handled by GSAP */
}
.about-text h2 {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 2.2rem;
    margin: 0 0 22px 0;
    color: #222;
}
.about-text p {
    font-size: 1.18rem;
    color: #333;
    margin: 0;
    line-height: 1.7;
}
@media (max-width: 900px) {
    .section-about {
        justify-content: center;
    }
    .about-content {
        flex-direction: column;
        gap: 18px;
        max-width: 100vw;
        padding: 0 6vw;
    }
    .about-image {
        justify-content: center;
        align-items: center;
    }
    .about-image-big {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .about-text {
        padding: 28px 12px;
        max-width: 100%;
    }
}

/* Players section */
.section-players {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    margin-bottom: 48px;
}
.players-intro {
    max-width: 700px;
    margin-bottom: 32px;
    text-align: center;
}
.players-intro h2 {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 2.2rem;
    margin: 0 0 18px 0;
    color: #222;
}
.players-intro p {
    font-size: 1.15rem;
    color: #333;
    margin: 0;
}
.players-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.player-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    background: none;
    box-shadow: none;
    padding: 0;
}
.player-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    padding: 18px 18px 12px 18px;
    display: flex;
    align-items: center;
    min-height: 72px;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.18s, transform 0.18s;
}
.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-right: 18px;
    object-fit: cover;
    background: #eaeaea;
    box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
    transition: transform 0.18s;
}
.player-main:hover .player-avatar {
    transform: scale(1.09);
}
.player-name {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 1.18rem;
    color: #222;
    flex: 1 1 auto;
}
.player-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 12px;
    transition: transform 0.18s;
    padding: 4px 8px;
    border-radius: 6px;
    outline: none;
    align-self: center;
    margin-right: 0;
    margin-left: auto;
    order: 3;
    z-index: 3;
}
.player-box.open .player-toggle {
    transform: rotate(180deg);
}
.player-dropdown {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.18s, max-height 0.28s cubic-bezier(.77,0,.18,1);
    position: relative;
    z-index: 1;
}
.player-box.open .player-dropdown {
    pointer-events: auto;
    opacity: 1;
    max-height: 200px;
    margin-top: 8px;
}
.player-dropdown-inner {
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 1px 8px 0 rgba(0,0,0,0.07);
    padding: 18px 18px 14px 18px;
    min-width: 220px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    font-size: 1rem;
    color: #222;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 1100px) {
    .players-grid {
        max-width: 98vw;
        gap: 18px 12px;
    }
}
@media (max-width: 900px) {
    .players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 10px;
    }
}
@media (max-width: 600px) {
    .players-grid {
        grid-template-columns: 1fr;
        gap: 12px 0;
    }
    .player-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 10px 10px 10px;
        min-height: 0;
    }
    .player-avatar {
        margin-bottom: 8px;
        margin-right: 0;
    }
    .player-toggle {
        align-self: flex-end;
        margin-left: 0;
        margin-right: 0;
    }
    .player-dropdown-inner {
        min-width: 0;
        max-width: 98vw;
        width: 100%;
    }
}

/* Gallery section */
.section-gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 48px;
    margin-bottom: 48px;
}

.gallery-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-gallery h2 {
    font-family: 'Minecraft', Arial, sans-serif;
    font-weight: bold;
    font-size: 2.2rem;
    margin: 0 0 18px 0;
    color: #222;
}

.gallery-intro {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.gallery-videos, .gallery-images, .gallery-funny {
    width: 100%;
    margin-bottom: 32px;
}

.gallery-videos-grid, .gallery-images-grid, .gallery-funny-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.gallery-video iframe {
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    background: #eaeaea;
    width: 360px;
    height: 202px;
    max-width: 100vw;
}

.gallery-img {
    width: 220px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    background: #eaeaea;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s;
}
.gallery-img:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    z-index: 2;
}
.gallery-images h3,
.gallery-videos h3,
.gallery-funny h3 {
    text-align: center;
}

/* Show More/Less button fix */
#show-more-screenshots,
#show-less-screenshots {
    display: inline-block;
    /* ...existing inline styles from HTML will be overridden by this if needed... */
}

/* Lightbox styles */
.gallery-lightbox-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(20,20,20,0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInLightbox 0.25s;
}
@keyframes fadeInLightbox {
    from { opacity: 0; }
    to { opacity: 1; }
}
.gallery-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28);
    background: #222;
    animation: popInLightbox 0.25s;
    display: block;
    position: relative;
}
.gallery-lightbox-label {
    position: absolute;
    left: 50%;
    top: 32px;
    bottom: auto;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.92);
    color: #fff;
    font-family: 'Minecraft', Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: normal; /* was bold, now normal */
    padding: 18px 38px;
    border-radius: 14px;
    pointer-events: none;
    opacity: 1;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.18);
    white-space: pre-line;
    z-index: 10001;
    transition: opacity 0.22s, transform 0.22s;
}
.gallery-lightbox-backdrop:hover .gallery-lightbox-label,
.gallery-lightbox-backdrop:focus .gallery-lightbox-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.gallery-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
    filter: drop-shadow(0 2px 8px #000);
    transition: color 0.18s;
}
.gallery-lightbox-close:hover {
    color: #ff5252;
}
.gallery-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(30,30,30,0.55);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.18);
    user-select: none;
}
.gallery-lightbox-arrow-left {
    left: 24px;
}
.gallery-lightbox-arrow-right {
    right: 24px;
}
.gallery-lightbox-arrow span {
    font-family: 'Minecraft', Arial, sans-serif;
    font-size: 2.2rem;
}
.gallery-lightbox-arrow:hover {
    background: #fff;
    color: #222;
}
.gallery-lightbox-close span {
    font-family: 'Minecraft', Arial, sans-serif;
    font-size: 2.2rem;
}
