/* Load BadaBoom BB font */
@font-face {
    font-family: 'BadaBoom BB';
    src: url('https://db.onlinewebfonts.com/t/1804b6bb29144f2c5fd68a85055b5c51.eot');
    src: url('https://db.onlinewebfonts.com/t/1804b6bb29144f2c5fd68a85055b5c51.eot?#iefix') format('embedded-opentype'),
         url('https://db.onlinewebfonts.com/t/1804b6bb29144f2c5fd68a85055b5c51.woff2') format('woff2'),
         url('https://db.onlinewebfonts.com/t/1804b6bb29144f2c5fd68a85055b5c51.woff') format('woff'),
         url('https://db.onlinewebfonts.com/t/1804b6bb29144f2c5fd68a85055b5c51.ttf') format('truetype'),
         url('https://db.onlinewebfonts.com/t/1804b6bb29144f2c5fd68a85055b5c51.svg#BadaBoom BB') format('svg');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    background-image: url('images/edoland_bglp.png');
    background-size: cover;
    background-position: center calc(0px + 80px); /* Shift down for header */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #000;
    transition: margin 0.3s ease;
    padding-top: 80px; /* Space for header */
}

body.menu-open {
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
}

.loading-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-stage.active {
    opacity: 1;
}

/* Stage 1: Black background */
#loadingStage1 {
    background: #000;
}

.loading-image {
    max-width: 400px;
    width: 100px;
    height: auto;
    animation:pulse 2s ease-in-out infinite;
}

/* Stage 2: White background */
#loadingStage2 {
    background: #fff;
}

.loading-logo {
    max-width: 400px;
    width: 150px;
    height: auto;
    animation: fadeIn 2s ease-in-out;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fixed background (unused, for deletion) */
.background-fixed {
    display: none;
}

/* PC Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(215, 215, 215, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #FFD700;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-link {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    font-size: 24px;
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
    text-decoration: none;
    filter: drop-shadow(1px 1px 10px rgba(100, 100, 100, 1));
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.header-link:hover {
    filter: drop-shadow(0 0 15px #E9C71C) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transform: translateY(-2px);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(215, 215, 215, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-bottom: 3px solid #c28111;
    align-items: center;
    justify-content: space-between;
}

.mobile-header-logo {
    height: 40px;
    width: auto;
}

.hamburger-btn {
    background: transparent;
    border: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 3px solid #FFD700;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 80px 30px 40px;
}

.mobile-logo {
    text-align: center;
    margin-bottom: 50px;
}

.mobile-logo img {
    max-width: 80%;
    height: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-link {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    font-size: 40px;
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 2px #000;
    text-stroke: 2px #000;
    paint-order: stroke fill;
    text-decoration: none;
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    transition: all 0.3s ease;
    padding: 15px;
}

.mobile-link:hover,
.mobile-link:active {
    filter: drop-shadow(0 0 15px #E9C71C) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* Content Wrapper */
.content-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
    padding-right: calc((100vw - 1440px) / 2 + 100px);
}

/* Mobile-sized Content Area (fixed width) */
.content-area {
    width: 480px;
    min-width: 360px; /* Minimum width to prevent text overflow */
    min-height: 100vh;
    background: rgba(60, 60, 70, 0.95);
    border-left: 10px solid #000;
    border-right: 10px solid #000;
    border-radius: 0;
    padding: 40px 15px 40px;
    box-shadow: none;
    margin: 0;
}

/* Scrollbar Styling */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

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

/* PLAY TO EARN Section */
.play-to-earn {
    text-align: center;
    margin-bottom: 60px;
}

.play-to-earn img {
    width: 100%;
    height: auto;
    display: block;
}

/* Spacer (for scrolling margin) */
.spacer {
    height: 50px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    margin: 40px 0;
}

.cta-title {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    font-size: 40px;
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    font-style: italic;
}

.cta-description {
    margin-bottom: 40px;
}

.cta-description p {
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    margin: 5px 0;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    font-size: 24px;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-style: italic;
    letter-spacing: 1px;
    display: inline-block;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #E9C71C 0%, #C26400 100%);
    color: #000;
    font-weight: bold;
    border: 3px solid #000;
    box-shadow: 0 4px 15px rgba(233, 199, 28, 0.4);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 199, 28, 0.6);
}

.cta-btn-secondary {
    background: rgba(0, 0, 0, 0.8);
    color: #E9C71C;
    border: 3px solid #E9C71C;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 6px 20px rgba(233, 199, 28, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 30px;
    border-top: 2px solid rgba(233, 199, 28, 0.3);
    margin-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #E9C71C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px #E9C71C;
}

.footer-copyright {
    margin-top: 15px;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Game Section */
.game-section {
    margin: 40px 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.game-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sliced Section */
.section-sliced {
    display: flex;
    flex-direction: column;
}

.section-top,
.section-middle-bg,
.section-bottom {
    width: 100%;
    height: auto;
    display: block;
}

.section-middle {
    position: relative;
}

.section-middle-bg {
    display: block;
}

.section-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px;
}

.section-text-overlay p {
    margin: 3px 5px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    line-height: 1;
    font-family: Arial, sans-serif;
}

/* Single Image Section */
.single-image-section {
    display: flex;
    flex-direction: column;
}

.single-image-section img {
    width: 100%;
    height: auto;
    display: block;
}


/* Slide in from left */
.slide-in-left {
    transform: translateX(-100px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
    transform: translateX(100px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from bottom (Metsu specific) */
.slide-in-bottom {
    transform: translateY(100px);
}

.slide-in-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Metsu section specific styles */
.metsu-section .single-image-section {
    margin-left: 0px;
    margin-right: 0px;
}

.metsu-section .single-image-section img {
    width: calc(100% + 30px);
    margin-left: -15px;
}

/* Section Divider Text */
.section-divider {
    text-align: center;
    margin: 60px 0;
}

.divider-text {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    font-size: 50px;
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    letter-spacing: 2px;
    font-style: italic;
}

/* TOKUGAWA Section - Campaign Info Overlay */
.tokugawa-section .single-image-section {
    position: relative;
}

.tokugawa-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.campaign-info-text {
    font-family: 'BadaBoom BB', Arial, sans-serif;
    font-size: 50px;
    background: linear-gradient(to bottom, #E9C71C, #C26400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px #000;
    text-stroke: 1px #000;
    paint-order: stroke fill;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.9));
    letter-spacing: 3px;
    font-style: italic;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 1920px) {
    .content-wrapper {
        padding-right: calc((100vw - 1920px) / 2 + 200px);
    }
}

@media (max-width: 1440px) {
    .content-wrapper {
        padding-right: max(50px, calc((100vw - 1200px) / 2 + 80px));
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        padding-right: 50px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center top;
        padding-top: 63px; /* Mobile header space */
    }

    /* Hide PC header */
    .site-header {
        display: none;
    }

    /* Show mobile header */
    .mobile-header {
        display: flex;
    }

    .content-wrapper {
        justify-content: center;
        padding: 0;
    }

    .content-area {
        /* Keep width fixed */
        max-width: 95vw;
        padding-top: 20px;
    }

    .divider-text {
        font-size: 50px;
    }

    .campaign-info-text {
        font-size: 50px;
    }

    .loading-image {
        max-width: 250px;
    }

    .loading-logo {
        max-width: 300px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-link {
        font-size: 13px;
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-description p {
        font-size: 18px;
    }

    .cta-btn {
        font-size: 22px;
        padding: 12px 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 54px; /* Adjusted for smaller mobile header */
    }

    .content-area {
        /* Adjust padding slightly for smaller screens */
        max-width: 98vw;
    }

    .mobile-header {
        padding: 8px 15px;
    }

    .mobile-header-logo {
        height: 35px;
    }

    .hamburger-btn {
        width: 35px;
        height: 35px;
        padding: 6px;
    }

    .mobile-link {
        font-size: 40px;
        padding: 12px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-link {
        font-size: 20px;
    }

    .divider-text {
        font-size: 50px;
    }

    .campaign-info-text {
        font-size: 50px;
    }

    .loading-image {
        max-width: 200px;
    }

    .loading-logo {
        max-width: 250px;
    }

    .footer {
        padding: 30px 15px 25px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-copyright p {
        font-size: 11px;
    }

    .cta-section {
        padding: 40px 15px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-btn {
        font-size: 20px;
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
    }
}

