/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure all H1, H2 and H3 elements use Poppins font */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* Apply color to all H1, H2, and H3 elements */
h1, h2, h3 {
    color: #d74d1b;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: #000000;
    background-image: url('template/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Backdrop Video Styles - Force to background */
#backdrop-video-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -9999 !important;
    overflow: hidden !important;
    background: #000 !important;
    pointer-events: none !important;
}

/* Hide any YouTube branding or controls */
#backdrop-video-container iframe {
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Ensure video covers entire screen without gaps */
#backdrop-video-container iframe {
    width: 100vw !important;
    height: 56.25vw !important; /* 16:9 aspect ratio */
    min-height: 100vh !important;
    min-width: 177.77vh !important; /* 16:9 aspect ratio */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: -9999 !important;
}

#backdrop-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    opacity: 0.7 !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* Ensure video covers entire screen properly */
#backdrop-video {
    width: 100vw !important;
    height: 56.25vw !important; /* 16:9 aspect ratio */
    min-height: 100vh !important;
    min-width: 177.77vh !important; /* 16:9 aspect ratio */
    z-index: -9999 !important;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1000 !important;
    /* background: rgba(0, 0, 0, 0.3); */
    border-radius: 8px;
    /* backdrop-filter: blur(5px); */
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    background: transparent;
}

.welcome-screen.active {
    display: block;
}

.welcome-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.welcome-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
}

.welcome-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 110px;
    line-height: 93px;
    color: #d74d1b;
    text-transform: uppercase;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
}

.welcome-body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 23px;
    line-height: normal;
    color: white;
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.welcome-body p {
    margin-bottom: 1em;
    white-space: pre-wrap;
}

.welcome-button {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 22.318px;
    color: white;
    background: #ff7832;
    border: none;
    border-radius: 8px;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 120, 50, 0.3);
    margin: 0 auto;
    display: block;
}

.welcome-button:hover {
    background: #AF0023;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 0, 35, 0.4);
}

/* Main App */
.main-app {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.app-header {
    display: none !important;
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1001 !important;
}

.app-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #d74d1b;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.app-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: white;
    font-weight: 400;
    mix-blend-mode: difference;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.header-nav {
    margin-top: 15px;
}

.gallery-link {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.gallery-link:hover {
    background: rgba(255, 107, 53, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0);
    padding: 20px;
    /* border-radius: 8px; */
    /* border: 1px solid rgba(255, 255, 255, 0.2);
    bac */
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 20%;
}

.progress-text {
    text-align: center;
    font-weight: 300;
    color: white;
    font-size: 1rem;
    mix-blend-mode: difference;
    letter-spacing: 0.5px;
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
    background: transparent;
    border-radius: 0;
    /* padding: 40px; */
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 10px;
    width: 100%;
    /*max-width: 1000px; */
}

@media (max-width: 480px) {
    .screen {
        margin-bottom: 5px;
    }
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen-content h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 48px;
    color: #d74d1b;
    margin-bottom: 40px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.screen-description {
    font-family: 'Inter', sans-serif;
    text-align: center;
    font-size: 16px;
    color: white;
    margin-bottom: 30px;
    line-height: 1.6;
    mix-blend-mode: none;
    font-weight: 400;
    font-style: normal;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    background: #FF7832;
    color: #ffffff;
    border-color: #FF7832;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card.selected {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.option-card.selected::before {
    opacity: 1;
}

.option-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: white;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    mix-blend-mode: none;
    letter-spacing: 0.5px;
}

/* Input Container */
.input-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.input-container input {
    font-family: 'Inter', sans-serif;
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 400;
    font-style: normal;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    mix-blend-mode: difference;
}

.input-container input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

/* Inspiration Examples */
.inspiration-examples {
    text-align: center;
}

.inspiration-examples h3 {
    font-family: 'Poppins', sans-serif;
    color: #d74d1b;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.example-tag {
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-style: normal;
}

.example-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Your Choices Section - Outside the details box */
.choices-summary-outer {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.choices-summary-outer h3 {
    font-family: 'Poppins', sans-serif;
    color: #d74d1b;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

/* Results Container */
.results-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Final Screen Two-Column Layout */
.final-screen-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.final-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.choices-summary {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.choices-summary h1 {
    font-family: 'Poppins', sans-serif;
    color: #d74d1b;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
}

.choices-summary h3 {
    font-family: 'Poppins', sans-serif;
    color: #d74d1b;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.choice-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.choice-item:last-child {
    border-bottom: none;
}

.choice-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: white;
    mix-blend-mode: none;
    font-size: 16px;
    font-style: normal;
}

.choice-value {
    font-family: 'Inter', sans-serif;
    color: white;
    font-weight: 400;
    text-align: right;
    max-width: 60%;
    mix-blend-mode: none;
    font-size: 16px;
    font-style: normal;
}

/* Image Container */
.image-container {
    text-align: center;
}

.loading-spinner {
    padding: 40px;
    text-align: center;
}

.loading-spinner h2 {
    font-family: 'Poppins', sans-serif;
    color: #d74d1b;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 28px;
    text-transform: uppercase;
}

.loading-spinner p {
    font-family: 'Inter', sans-serif;
    color: white;
    mix-blend-mode: none;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.5px;
    font-style: normal;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.generated-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.image-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Prompt Display */
.prompt-display {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.prompt-display h3 {
    font-family: 'Poppins', sans-serif;
    color: #d74d1b;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.prompt-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: white;
    white-space: pre-wrap;
    mix-blend-mode: none;
    font-weight: 400;
    font-style: normal;
}

/* Buttons */
.btn-primary, .btn-secondary {
    font-family: 'Poppins', sans-serif;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #FF7832;
    color: #ffffff;
    border-color: #FF7832;
}

.btn-primary:hover {
    background: #AF0023;
    border-color: #AF0023;
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: #AF0023;
    color: white;
    border-color: #AF0023;
}

.btn-secondary:hover {
    background: #8B001A;
    border-color: #8B001A;
    transform: translateY(-1px);
}

/* Navigation Button Styles - Text with Images */
.nav-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
}

.nav-btn:hover:not(:disabled) {
    color: #FF7832;
    transform: translateY(-2px);
}

.nav-btn:disabled,
.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.3);
}

.nav-btn:disabled:hover,
.nav-btn.disabled:hover {
    color: rgba(255, 255, 255, 0.3);
    transform: none;
}

.nav-btn .hand-icon {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
}

.nav-btn:hover:not(:disabled) .hand-icon {
    transform: scale(1.1);
}

.nav-btn.prev .hand-icon {
    background-image: url('/template/hand-left.png');
}

.nav-btn.next .hand-icon {
    background-image: url('/template/hand-right.png');
}

.nav-btn.generate .hand-icon {
    background-image: url('/template/hand-right.png');
}

/* Generate New Button Styling */
.generate-new-container {
    margin-top: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.generate-new-btn {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF7832, #AF0023);
    color: white;
    border: 1px solid #FF7832;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 120, 50, 0.3);
    min-width: 250px;
    justify-content: center;
}

.generate-new-btn:hover {
    background: linear-gradient(135deg, #AF0023, #FF7832);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 0, 35, 0.4);
}

.generate-new-hand-icon {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/template/hand-left.png');
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.generate-new-hand-icon:hover {
    transform: scale(1.1);
}

.btn-share {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FF7832, #AF0023);
    color: #ffffff;
    border: 1px solid #FF7832;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 120, 50, 0.3);
}

.btn-share:hover {
    background: linear-gradient(135deg, #AF0023, #FF7832);
    border-color: #AF0023;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(175, 0, 35, 0.4);
}

/* Gallery Link Button */
.gallery-link-container {
    margin-top: 20px;
    text-align: center;
}

.btn-gallery {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #ffffff;
    border: 1px solid #4CAF50;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.btn-gallery:hover {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    border-color: #2E7D32;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0);
    padding: 20px 30px;
    /* border-radius: 8px; */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(10px); */
    width: 100%;
    /* max-width: 1000px; */
    margin: 0 auto;
}

.nav-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.navigation .nav-btn.prev {
    justify-content: flex-start;
}

.navigation .nav-btn.next {
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }
    
    .app-container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .app-header h1 {
        font-size: 2rem;
        font-weight: 900;
    }
    
    .screen {
        padding: 1px;
    }
    
    .screen-content h2 {
        font-size: 1.8rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .results-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .choices-summary-outer {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    /* Final screen mobile layout */
    .final-screen-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .final-left-column,
    .final-right-column {
        width: 100%;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    .input-container input {
        min-width: auto;
    }
    
    .navigation {
        flex-direction: row;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .nav-left, .nav-center, .nav-right {
        justify-content: center;
    }
    
    /* Reduce button sizes for mobile */
    .nav-btn {
        font-size: 14px;
        padding: 8px 0;
        gap: 6px;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-btn .hand-icon {
        width: 40px;
        height: 40px;
        margin: 0 0 4px 0;
    }
    
    .image-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-link-container {
        margin-top: 15px;
    }
    
    .btn-gallery {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 180px;
    }
    
    /* Welcome Screen Mobile */
    .welcome-text {
        padding: 0 15px;
    }
    
    .welcome-heading {
        font-size: 60px;
        line-height: 60px;
        margin-bottom: 30px;
    }
    
    .welcome-body {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .welcome-button {
        font-size: 18px;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        min-height: 100vh;
    }
    
    .app-header h1 {
        font-size: 1.8rem;
    }
    
    .screen-content h2 {
        font-size: 1.5rem;
    }
    
    .option-card {
        padding: 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-icon {
        font-size: 2.5rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    /* Welcome Screen Small Mobile */
    .welcome-heading {
        font-family: 'Poppins', sans-serif;
        font-size: 40px;
        line-height: 45px;
        margin-bottom: 20px;
    }
    
    .welcome-body {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .welcome-button {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    /* Further reduce navigation button sizes for very small screens */
    .navigation {
        padding: 10px 15px;
        gap: 5px;
    }
    
    .nav-btn {
        font-size: 12px;
        padding: 6px 0;
        gap: 4px;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-btn .hand-icon {
        width: 35px;
        height: 35px;
        margin: 0 0 2px 0;
    }
    
    .btn-gallery {
        font-size: 0.85rem;
        padding: 8px 16px;
        min-width: 160px;
    }
}

/* Halloween Theme Enhancements */
.option-card:nth-child(1) { animation-delay: 0.1s; }
.option-card:nth-child(2) { animation-delay: 0.2s; }
.option-card:nth-child(3) { animation-delay: 0.3s; }
.option-card:nth-child(4) { animation-delay: 0.4s; }

.option-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Success animation for final screen */
.generated-image {
    animation: successPulse 0.8s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Error Screen Styles */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.error-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.error-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: #d74d1b;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.error-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ff7832;
    margin-bottom: 20px;
}

.error-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: white;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-restart-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding: 15px 40px;
    background: linear-gradient(135deg, #FF7832, #AF0023);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 120, 50, 0.3);
    min-width: 200px;
}

.error-restart-btn:hover {
    background: linear-gradient(135deg, #AF0023, #FF7832);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 0, 35, 0.4);
}

/* Mobile Error Screen */
@media (max-width: 768px) {
    .error-container {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .error-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .error-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .error-subtitle {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .error-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .error-restart-btn {
        font-size: 18px;
        padding: 12px 30px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .error-title {
        font-size: 28px;
    }
    
    .error-subtitle {
        font-size: 16px;
    }
    
    .error-description {
        font-size: 14px;
    }
}

/* Additional mobile fixes for background coverage */
@media (max-width: 320px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        min-height: 100vh;
    }
    
    .app-container {
        min-height: 100vh;
    }
    
    /* Ultra-compact navigation for very small screens */
    .navigation {
        padding: 8px 10px;
        gap: 3px;
    }
    
    .nav-btn {
        font-size: 11px;
        padding: 4px 0;
        gap: 3px;
        letter-spacing: 0.5px;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-btn .hand-icon {
        width: 30px;
        height: 30px;
        margin: 0 0 1px 0;
    }
}

/* Ensure background covers full height on all mobile devices */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
    }
}

/* Pounce Logo Styles */
.pounce-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 95px;
    height: auto;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.pounce-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.pounce-logo img {
    width: 100%;
    height: auto;
    /*border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); */
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

.pounce-logo:hover img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .pounce-logo {
        top: 15px;
        right: 15px;
        width: 75px;
    }
}

@media (max-width: 480px) {
    .pounce-logo {
        top: 10px;
        right: 10px;
        width: 60px;
    }
}

/* Terms Button Styles */
.terms-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 120, 50, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-button:hover {
    background: rgba(175, 0, 35, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(175, 0, 35, 0.4);
}

/* Terms Overlay Styles */
.terms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.terms-overlay.active {
    display: flex;
}

.terms-modal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    max-width: 800px;
    max-height: 80vh;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.terms-header {
    background: linear-gradient(135deg, #FF7832, #AF0023);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terms-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: 300;
}

.terms-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.terms-content {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.terms-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

/* Mobile responsive terms */
@media (max-width: 768px) {
    .terms-button {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 10px;
    }
    
    .terms-modal {
        max-width: 95vw;
        max-height: 85vh;
        margin: 10px;
    }
    
    .terms-header {
        padding: 15px 20px;
    }
    
    .terms-header h2 {
        font-size: 20px;
    }
    
    .terms-close {
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    .terms-content {
        padding: 20px;
        max-height: 65vh;
    }
    
    .terms-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .terms-button {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 9px;
    }
    
    .terms-header h2 {
        font-size: 18px;
    }
    
    .terms-content {
        padding: 15px;
    }
    
    .terms-content p {
        font-size: 13px;
    }
}
