/* GLOBAL */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111;
}

/* HERO */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('assets/header.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    color: #fff;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.2rem;
    margin: 0;
    color: #FDB927;
}

.hero-sub {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #ffffff;
}

/* Make hero text a bit smaller on phones */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero-sub {
        font-size: 1rem;
    }
    .hero {
        background-position: center top;
    }
}

/* BURGER */
.burger {
    position: fixed;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    color: white;
    z-index: 40;
    cursor: pointer;
}

/* SIDE NAV - now uses translateX instead of right:-240px */
.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 240px;
    height: 100%;
    background: #552583;
    color: white;
    padding: 60px 20px;
    transform: translateX(100%);   /* hidden off-screen */
    transition: transform 0.3s ease;
    z-index: 50;
}

.side-nav.open {
    transform: translateX(0);      /* slide in */
}

.side-nav a {
    display: block;
    margin: 18px 0;
    color: #FDB927;
    text-decoration: none;
    font-size: 1.2rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 45;
}

.overlay.show {
    display: block;
}

/* SECTIONS */
.section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    background: #ffffff;
}

.section h2 {
    color: #552583;
}

/* Social Links */
.social-links a {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: #FDB927;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border-radius: 6px;
}

/* Meme Generator Layout */
.meme-generator {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.meme-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meme-controls label {
    font-weight: bold;
    color: #552583;
}

.meme-controls input[type="text"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.meme-controls input[type="range"] {
    width: 100%;
}

.meme-controls .hint {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Canvas area */
.meme-canvas-wrapper {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#memeCanvas {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: #000;
}

/* Download button */
.download-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #FDB927;
    color: #111;
    font-weight: bold;
    font-size: 1rem;
}

/* Larger screens: side-by-side layout */
@media (min-width: 800px) {
    .meme-generator {
        flex-direction: row;
        align-items: flex-start;
    }

    .meme-controls {
        max-width: 260px;
    }
}

/* FOOTER */
.footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 25px 10px;
}

.footer .disc {
    font-size: 0.75rem;
    margin-top: 10px;
    opacity: 0.7;
}
/* FAQ Section */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: #552583;
    color: #FDB927;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 15px;
    background: #f8f8f8;
    color: #111;
    border-top: 1px solid #ccc;
}

.faq-item.active .faq-answer {
    display: block;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px 45px 15px 15px; /* extra right padding for icon */
    background: #552583;
    color: #FDB927;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: bold;
    color: #FDB927;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: translateY(-50%) rotate(45deg); /* makes + turn into × */
}