
body {
    margin: 0;
    background-color: #FFF9FC;
    color: #49364A;
    font-family: "Macondo", cursive;
}

h1, h2, h3, .marquee-text {
    font-family: "DynaPuff", cursive;
}

/* Basic page settings */
body {
    margin: 0;
    background-color: #FFF9FC;
    color: #49364A;
    font-family: "Macondo", cursive;
}

h1, h2, h3, .marquee-text {
    font-family: "DynaPuff", cursive;
}
/* Top navigation */
header {
    background-color: #F8DCE8;
    padding: 20px;
    text-align: center;
}

.logo {
    display: block;
    margin-bottom: 18px;
    color: #49364A;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

nav a {
    display: inline-block;
    margin: 5px 10px;
    color: #49364A;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #A34F83;
    text-decoration: underline;
}

/* Homepage welcome section */
.hero {
    padding: 50px 20px;
    text-align: center;
    background-color: #DCD8FA;
}

.small-heading {
    font-size: 12px;
    letter-spacing: 2px;
}

h1 {
    margin: 15px 0;
    font-size: 52px;
    line-height: 1.1;
}

.intro {
    max-width: 500px;
    margin: 20px auto;
    line-height: 1.7;
}

.main-button {
    display: inline-block;
    margin: 15px;
    padding: 14px 24px;
    background-color: #F8DCE8;
    color: #49364A;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.main-button:hover {
    background-color: #FFF0BC;
}

/* Mystery box illustration */
.mystery-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 30px auto 0;
    background-color: #FFF0BC;
    border: 4px solid white;
    border-radius: 20px;
    box-shadow: 5px 5px 0 #B8A8E8;
}

.mystery-box span {
    font-size: 80px;
    font-weight: bold;
}

/* Explore section */
.explore {
    padding: 40px 20px;
    text-align: center;
}

.explore h2 {
    font-size: 30px;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.topic-card {
    box-sizing: border-box;
    width: 260px;
    padding: 25px;
    background-color: white;
    border: 2px solid #F1D5E6;
    border-radius: 18px;
    color: #49364A;
    text-decoration: none;
    transition: transform 0.2s;
}

.topic-card:hover {
    transform: translateY(-5px);
    background-color: #FFF0F6;
}

.card-icon {
    font-size: 42px;
    color: #A34F83;
}

.topic-card p {
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #F8DCE8;
    text-align: center;
    font-size: 13px;
}

/* Smaller screens */
@media (max-width: 600px) {
    h1 {
        font-size: 40px;
    }

    nav a {
        margin: 8px;
    }

    .topic-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Scrolling website title */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 18px 0;
    background-color: #F8DCE8;
}

.marquee-text {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #49364A;
    animation: scroll-title 18s linear infinite;
}

@keyframes scroll-title {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Navigation bar */
header nav {
    background-color: #DCD8FA;
    padding: 15px;
}

/* Reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
    .marquee-text {
        animation: none;
    }
}
.marquee-subtitle {
    text-align: center;
    font-family: "Macondo", cursive;
    font-size: 16px;
    color: #49364A;
    margin: 5px 0 15px;
}

/* Sonny Angel */
.logo-container {
    text-align: center;
    padding: 10px;
}

.logo-container img {
    width: 150px;
    height: auto;
}

.hero {
    position: relative;
    padding: 80px 20px 50px;
    text-align: center;
}
/* sparkle design */
.sparkle {
    width: 100px;
    height: auto;
}
.sonny-image {
    display: block;
    width: 115px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.small-heading {
    margin-top: 0;
}
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
}

.header-top img {
    width: 250px !important;
    height: auto !important;
    max-width: none !important;
    flex-shrink: 0;
}

.marquee {
    flex: 1;
    text-align: center;
}
.sonny-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.side-sparkle {
    width: 45px;
    height: auto;
}

.sonny-image {
    width: 120px;
    height: auto;
}
.mystery-box {
    background-color: #FFF0BC;
    width: 180px;
    min-height: 180px;
    margin: 30px auto;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 15px;
    transition: transform 0.3s;
}

.mystery-box:hover {
    transform: scale(1.05);
}

#mystery-symbol {
    font-size: 65px;
    font-weight: bold;
}

#mystery-figure {
    display: none;
    width: 130px;
    height: auto;
}

#mystery-message {
    font-size: 14px;
    text-align: center;
}

/* MEET THE COLLECTIBLES */

.collectibles {
    padding: 60px 7%;
    text-align: center;
    background-color: #FFF9FC;
}

.collectibles h2 {
    font-size: 32px;
    margin: 10px 0;
}

.collectibles-intro {
    margin-bottom: 35px;
    line-height: 1.7;
}

.collectible-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1050px;
    margin: auto;
}

.collectible-card {
    background-color: #F8DCE8;
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    width: calc((100% - 50px) / 3);
    box-sizing: border-box;
    transition: transform 0.3s;
}

.collectible-card:hover {
    transform: translateY(-6px);
}

.collectible-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #FFFFFF;
    border-radius: 12px;
}

.collectible-card h3 {
    font-size: 19px;
    margin: 15px 0 8px;
}

.collectible-card p {
    font-size: 14px;
    line-height: 1.6;
}

.collectible-card a {
    display: inline-block;
    margin-top: 10px;
    color: #49364A;
    font-weight: bold;
    text-decoration: none;
}

.collectible-card a:hover {
    color: #A34F83;
    text-decoration: underline;
}

/* MOBILE LAYOUT */

@media (max-width: 700px) {
    .collectible-card {
        width: calc((100% - 25px) / 2);
    }
}

@media (max-width: 450px) {
    .collectible-card {
        width: 100%;
    }
}

/* WHY WE LOVE BLIND BOXES */

.popularity-page {
    background-color: #D9F0FA;
    padding: 60px 7%;
    text-align: center;
}

.popularity-page h1 {
    font-size: 34px;
    margin: 12px 0;
}

.popularity-intro {
    line-height: 1.7;
    margin-bottom: 40px;
}

.popularity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 850px;
    margin: auto;
}

.popularity-card {
    background-color: #FFF9FC;
    padding: 25px;
    border-radius: 18px;
}

.popularity-icon {
    font-size: 38px;
    color: #A34F83;
}

.popularity-card h2 {
    font-size: 21px;
}

.popularity-card p {
    line-height: 1.7;
    font-size: 15px;
}

.popularity-note {
    background-color: #F8DCE8;
    padding: 25px;
    border-radius: 18px;
    max-width: 800px;
    margin: 40px auto 0;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .popularity-grid {
        grid-template-columns: 1fr;
    }
}

/* FUN FACTS PAGE */

.fun-facts {
    background-color: #D9F0FA;
    padding: 60px 7%;
    text-align: center;
}

.fun-facts h1 {
    font-size: 34px;
    margin: 12px 0;
}

.facts-intro {
    line-height: 1.7;
    margin-bottom: 40px;
}

.facts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

.fact-card {
    background-color: #FFF0BC;
    padding: 25px;
    border-radius: 18px;
    text-align: left;
}

.fact-number {
    font-size: 24px;
    font-weight: bold;
    color: #A34F83;
}

.fact-card h2 {
    font-size: 20px;
}

.fact-card p {
    font-size: 15px;
    line-height: 1.7;
}

.facts-reminder {
    background-color: #DCD8FA;
    padding: 25px;
    border-radius: 18px;
    max-width: 800px;
    margin: 40px auto 0;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .facts-container {
        grid-template-columns: 1fr;
    }
}
.fact-card:nth-child(5) {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
}

/* TRY YOUR LUCK PAGE */

.try-your-luck {
    background-color: #FFF0BC;
    padding: 60px 20px;
    text-align: center;
}

.try-your-luck h1 {
    font-size: 36px;
    margin: 12px 0;
}

.luck-intro {
    max-width: 550px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.luck-box {
    background-color: #D9F0FA;
    width: 230px;
    min-height: 230px;
    margin: 30px auto 20px;
    padding: 20px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    box-sizing: border-box;
}

.luck-box:hover {
    transform: scale(1.05);
}

#lucky-question {
    font-size: 90px;
    font-weight: bold;
}

#lucky-figure {
    display: none;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

#lucky-message {
    font-size: 14px;
    line-height: 1.5;
}

.luck-button {
    background-color: #DCD8FA;
    color: #49364A;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-family: "DynaPuff", cursive;
    font-size: 16px;
    cursor: pointer;
}

.luck-button:hover {
    background-color: #F8DCE8;
}

.luck-note {
    margin-top: 30px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .try-your-luck h1 {
        font-size: 28px;
    }
}
/* Main page background */
body {
    background-color: #FFFFFF;
    color: #49364A;
}

/* Baby blue section backgrounds */
.popularity-page,
.collectibles,
.facts-page,
.luck-page {
    background-color: #D9F0FA;
}

/* Card backgrounds */
.popularity-card,
.collectible-card,
.fact-card {
    background-color: #FFFFFF;
}

/* Buttons */
button {
    background-color: #D9F0FA;
    color: #49364A;
}
body {
    background-image: url("img/bg.JPG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #FFF9FC;
}
html, body {
    margin: 0;
    padding: 0;
}
.popularity-page,
.collectibles,
.fun-facts,
.facts-page,
body:has(.fun-facts) .hero {
    background-color: rgba(255, 255, 255, 0.78) !important;
}

/* Floating mystery box animation */
.mystery-box,
.luck-box {
    animation: floatBox 2s ease-in-out infinite;
}

@keyframes floatBox {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}
/* Enlarge website logo on all pages */
header .header-top img {
    width: 220px !important;
    height: auto !important;
    max-width: none !important;
    flex-shrink: 0;
}
/* Soft background behind section headings */
.explore h2 {
    background-color: rgba(255, 255, 255, 0.65);
    display: table;
    margin: 15px auto;
    padding: 12px 25px;
    border-radius: 18px;
}
/* Illustration Slideshow */

.illustration-gallery {
    background-color: #DCD8FA;
    padding: 30px 20px;
    margin: 30px auto;
    width: 90%;
    max-width: 750px;
    border-radius: 20px;
    text-align: center;
}

.illustration-gallery h2 {
    font-family: "DynaPuff", cursive;
    color: #49364A;
}

.illustration-gallery p {
    color: #49364A;
}

.slideshow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.slideshow img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    background-color: #FFF9FC;
    border-radius: 20px;
}

.slide-btn {
    background-color: #F8DCE8;
    color: #49364A;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
}

.slide-btn:hover {
    background-color: #F5BFD8;
}

#slide-counter {
    font-weight: bold;
}
