@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Cairo:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-image: url("/static/images/background-account.56e6ed74b0af.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh; /* 🔥 Ensures background stretches full height */
}


/* Full-Page Side Panels Layout */
.comic-page-container {
    display: flex;
    min-height: 100vh;
    margin-top: 5vh;
}

/* Main Centered Content */
.comic-main-content {
    flex: 2;
    display: flex;
    justify-content: center;
    overflow-y: auto;
}

.comic-wrapper {
    max-width: 60vw; /* 900px converted (900/19.2 ≈ 46.88vw) */
    width: 100%;
    padding: 1vw; /* 20px ≈ 1.04vw, rounded to 1vw */
    text-align: center;
}

/* HERO TITLE - Improved Readability */
.comic-title {
    font-family: 'Bangers', cursive;
    font-size: 3vw;
    color: white ;
    text-shadow: 0.16vw 0.16vw 0.31vw rgba(0, 0, 0, 0.8);
    margin-bottom: 0.52vw; /* 10px */
    text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
    display: inline-block;
}

/* Highlighted Words */
.comic-highlight {
    background-color: yellow;
    color: #1a1a1a;
    padding: 0.26vw 0.52vw; /* 5px 10px */
    border-radius: 1vw; /* 5px */
}

/* General Text Styling for Readability */
p, h2, h3 {
    /* Removed black background */
    color: #1a1a1a;
    padding: 0.52vw; /* 10px */
    border-radius: 1vw; /* 10px */
    display: inline-block;
}

/* BUTTON - Better Visibility */
.comic-btn {
    background-color: #D4AF37;
    padding: 1vw 2vw; /* Converted from 1.2rem 2.4rem */
    text-decoration: none;
    text-shadow: 0.10vw 0.10vw 0.26vw black;
    color: #1a1a1a;
    font-size: 1vw; /* Converted from 1.5rem */
    border-radius: 1vw; /* 10px */
    font-weight: bold;
    transition: transform 0.3s, background-color 0.3s;
    display: block; /* Forces buttons to stack */
    margin: 0.52vw auto; /* Converted from 10px auto */
}

.comic-btn:hover {
    background-color: #FFD700;
    transform: scale(1.03);
}

/* CARDS - Improved Box Shadows */
.comic-card {
    background-color: #fdfaf5;
    padding: 1.3vw; /* Converted from 2rem */
    border-radius: 1vw; /* Converted from 15px */
    box-shadow: 0.52vw 0.52vw 0vw #8B0000; /* Converted from 10px */
    margin-bottom: 1.67vw; /* Converted from 2rem */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-top: 1vw; /* Converted from 2rem */

}

.comic-card:hover {
    transform: translateY(-0.26vw); /* Converted from -5px */
    box-shadow: 0.63vw 0.63vw 0 #8B0000; /* Converted from 12px */
}

/* Ensuring Labels Stack Instead of Going Side-by-Side */
.comic-category-grid {
    display: flex;
    flex-direction: column;
    gap: 0.2vw; /* 10px */
    align-items: center;
}





/* Play Now Section - Better Text Clarity */
.comic-playnow-section {
    padding: 2vw; /* Converted from 5rem */
    min-height: 15vh; /* Converted from 30rem */
    border: 0.16vw solid black; /* Converted from 3px */
    box-shadow: 0.52vw 0.52vw 0vw #8B0000; /* Converted from 10px */
}

/* Hero Title in Play Now */
.comic-playnow-section .comic-title {
    margin-top: -1.67vw; /* Converted from -2rem */
    margin-bottom: 0.83vw; /* Converted from 1rem */
    padding: 0.78vw; /* Converted from 15px */
    border-radius: 1vw; /* 10px */
}

/* Play Now Text */
.comic-playnow-section .comic-tagline {
    /* Removed black background */
    color: white;
    font-size: 2vw;
    padding: 0.5vw; /* Converted from 1.2rem */
    border-radius: 1vw; /* 10px */
    margin-top: 1vw; /* Converted from 2rem */
    text-shadow: 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000, -2px 0 0 #000;
}

/* Play Now Button */
.comic-playnow-section .comic-btn {
    background-color: #D4AF37;
    color: #1a1a1a;
    font-size: 1.5vw; /* Converted from 2rem */
    margin-top: 1vw; /* Converted from 3rem */
    padding: 1.25vw 2.5vw; /* Converted from 1.5rem and 3rem */
    border-radius: 1vw; /* Converted from 12px */
    border: 0.1vw solid black; /* Converted from 2px */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.comic-playnow-section .comic-btn:hover {
    background-color: #ffe347;
    transform: scale(1.03);
}

/* Updated: Stack hero sections vertically */
.hero-sections {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    justify-content: center;
    align-items: stretch;

}

/* Each hero section will now occupy its natural width and center horizontally */
.hero-sections > .comic-card {
    background-size: auto 100%;      /* Scale the image so that its height fills the container */
    background-position: center center; /* Center the image both horizontally and vertically */
    background-repeat: no-repeat;    /* Prevent the image from repeating */
    background-color: rgba(0, 0, 0, 0.1); /* 60% dark overlay */
    background-blend-mode: multiply;
    flex: none;
    margin: 0 auto;

}

/* MEDIA QUERY: DETECT NARROW (PHONE) ASPECT RATIOS */
/* Typically phones in portrait have width/height <= ~0.75. Adjust as needed. */
@media screen and (max-aspect-ratio: 6/4) {
    body {
        background-size: cover; /* Fill the screen without leaving blank space */
    }

    .comic-wrapper {
        max-width: 80vw; /* Allow full screen width */
        padding: 2vw;
    }

    .hero-sections {
        display: flex;
        flex-direction: column; /* Keep them side by side */
        gap: 2vw;
        justify-content: center;
        align-items: stretch;
    }

    .hero-sections > .comic-card {
        flex: 0 0 45%; /* Each card ~half the screen width */
        margin: 0;
    }

    .comic-playnow-section {
        padding: 4vw;    /* Less padding on small screens */
        min-height: 60vw; /* Make each card longer/taller */
    }

    .comic-title {
        font-size: 6vw; /* Larger title text */
    }

    /* Increase tagline size (black text with white outline) */
    .comic-playnow-section .comic-tagline {
        font-size: 5vw;
        font-weight: 1200;
    }

    .comic-playnow-section .comic-btn {
        font-size: 4vw;
        padding: 3vw 5vw;
    }

    /* Optional: Increase paragraph headings, etc. */
    p, h2, h3 {
        font-size: 4vw;
        padding: 1vw;
    }
    .comic-btn {
        font-size: 4vw;   /* Increase font size */
        padding: 3vw 5vw; /* Increase padding */
    }
}
@media screen and (min-width: 1024px) {
    .hero-sections {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
    }
    .hero-sections > .comic-card {
        margin: 0; /* Remove auto margins so grid items fill the space */
    }
}
