@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap');


/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #eeeeee;
    color: #213c51;
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}


/* ==================================================
   GELLY ML COLOR PALETTE
================================================== */

:root {
    --navy: #213c51;
    --blue: #6594b1;
    --pink: #ddaed3;
    --light: #eeeeee;

    --white: #ffffff;
}


/* ==================================================
   NAVIGATION
================================================== */

header {
    padding: 20px;
}

.navbar {
    max-width: 1150px;
    margin: auto;

    padding: 14px 20px;

    background: var(--white);

    border: 3px solid var(--navy);
    border-radius: 20px;

    box-shadow: 6px 6px 0 var(--navy);

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    position: relative;
    z-index: 100;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    font-family: "Baloo 2", sans-serif;

    font-size: 32px;
    font-weight: 800;
}

.logo img {
    width: 45px;
    height: 45px;

    object-fit: contain;

    border-radius: 10px;
}

.logo span {
    color: var(--pink);
}


/* NAV LINKS */

.nav-links {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}

.nav-links a {
    padding: 8px 14px;

    border-radius: 12px;

    font-weight: 700;

    transition: 0.2s;
}

.nav-links a:hover {
    background: var(--pink);

    transform: rotate(-2deg);
}


/* ==================================================
   PAGE SYSTEM
================================================== */

.page {
    display: none;
}

.page.active-page {
    display: block;
}


/* ==================================================
   HERO
================================================== */

.hero {
    max-width: 1150px;

    min-height: 650px;

    margin: auto;

    padding: 70px 20px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 40px;
}

.hero h1 {
    font-family: "Baloo 2", sans-serif;

    font-size: clamp(70px, 9vw, 120px);

    line-height: 1;
}

.hero h1 span {
    color: var(--pink);

    text-shadow: 5px 5px 0 var(--blue);
}

.hero-description {
    max-width: 550px;

    font-size: 21px;

    margin-top: 20px;
}

.eyebrow {
    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 30px;

    flex-wrap: wrap;
}

.button {
    padding: 13px 20px;

    border: 3px solid var(--navy);

    border-radius: 15px;

    font-weight: 800;

    box-shadow: 5px 5px 0 var(--navy);

    transition: 0.15s;
}

.button:hover {
    transform: translate(3px, 3px);

    box-shadow: 2px 2px 0 var(--navy);
}

.pink {
    background: var(--pink);
}

.blue {
    background: var(--blue);
}


/* ==================================================
   HERO ART
================================================== */

.hero-art {
    height: 450px;

    position: relative;
}

.blob {
    position: absolute;

    border: 4px solid var(--navy);

    border-radius: 50%;
}

.blob-pink {
    width: 300px;
    height: 280px;

    background: var(--pink);

    right: 40px;
    top: 80px;
}

.blob-yellow {
    width: 180px;
    height: 170px;

    background: var(--blue);

    right: 0;
    top: 0;
}

.blob-blue {
    width: 140px;
    height: 140px;

    background: var(--pink);

    left: 20px;
    bottom: 20px;
}

.hero-face {
    position: absolute;

    z-index: 5;

    right: 130px;
    top: 150px;

    font-size: 75px;

    font-weight: 800;

    transform: rotate(-8deg);
}

.star {
    position: absolute;

    font-size: 50px;
}

.star-one {
    right: 10px;
    bottom: 40px;

    color: var(--blue);
}

.star-two {
    left: 50px;
    top: 40px;

    color: var(--pink);
}

.star-three {
    right: 270px;
    top: 30px;

    color: var(--blue);
}


/* ==================================================
   SECTIONS
================================================== */

.home-section,
.listing-page,
.game-page,
.comic-page {
    max-width: 1150px;

    margin: auto;

    padding: 80px 20px;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading h1,
.section-heading h2 {
    font-family: "Baloo 2", sans-serif;

    font-size: 60px;

    line-height: 1;

    margin: 10px 0;
}


/* ==================================================
   CARDS
================================================== */

.cards {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.card {
    display: block;

    background: var(--white);

    border: 3px solid var(--navy);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 7px 7px 0 var(--navy);

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-7px) rotate(-1deg);
}

.card-image {
    height: 240px;

    display: grid;

    place-items: center;

    font-size: 90px;

    border-bottom: 3px solid var(--navy);

    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.game-image {
    background: var(--blue);
}

.comic-image {
    background: var(--pink);
}

.blue-image {
    background: var(--blue);
}

.yellow-image {
    background: var(--pink);
}

.card-content {
    padding: 25px;
}

.card-content h2 {
    font-family: "Baloo 2", sans-serif;

    font-size: 32px;

    margin: 8px 0;
}

.card-content p {
    margin-bottom: 5px;
}

.tag {
    display: inline-block;

    padding: 5px 10px;

    background: var(--navy);

    color: white;

    border-radius: 8px;

    font-size: 11px;

    font-weight: 800;
}

.playable {
    background: var(--blue);

    color: var(--navy);
}

.card-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--blue);

    font-weight: 800;
}

.coming-soon {
    cursor: default;
}

.coming-soon:hover {
    transform: none;
}


/* ==================================================
   GAME PAGE
================================================== */

.game-page h1 {
    font-family: "Baloo 2", sans-serif;

    font-size: 65px;

    line-height: 1;
}

.game-subtitle {
    margin-bottom: 30px;
}

.back-link {
    display: inline-block;

    margin-bottom: 25px;

    font-weight: 800;

    color: var(--blue);
}

.back-link:hover {
    text-decoration: underline;
}

.game-container {
    width: 100%;

    aspect-ratio: 16 / 9;

    background: #111;

    border: 4px solid var(--navy);

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 8px 8px 0 var(--navy);
}

.game-container iframe {
    width: 100%;
    height: 100%;

    border: 0;

    display: block;
}


/* ==================================================
   GAME CONTROLS
================================================== */

.game-controls {
    margin-top: 20px;

    text-align: right;
}

.game-controls button {
    padding: 10px 18px;

    background: var(--blue);

    border: 3px solid var(--navy);

    border-radius: 12px;

    box-shadow: 4px 4px 0 var(--navy);

    font-weight: 800;

    cursor: pointer;

    transition: 0.15s;
}

.game-controls button:hover {
    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 var(--navy);
}


/* ==================================================
   DESCRIPTION
================================================== */

.description-box {
    margin-top: 50px;

    padding: 35px;

    background: var(--white);

    border: 3px solid var(--navy);

    border-radius: 20px;

    box-shadow: 7px 7px 0 var(--navy);
}

.description-box h2 {
    font-family: "Baloo 2", sans-serif;

    font-size: 38px;

    margin: 8px 0 15px;
}

.description-box h3 {
    margin-top: 25px;

    margin-bottom: 5px;
}

.description-box p {
    margin-bottom: 15px;
}


/* ==================================================
   COMICS
================================================== */

.comic-page {
    max-width: 950px;
}

.comic-heading {
    text-align: center;

    margin-bottom: 30px;
}

.comic-page h1 {
    font-family: "Baloo 2", sans-serif;

    font-size: 65px;

    line-height: 1;
}


/* ==================================================
   EPISODE NAVIGATION
================================================== */

.episode-navigation {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;
}

.episode-navigation button {
    padding: 12px 18px;

    background: var(--pink);

    border: 3px solid var(--navy);

    border-radius: 12px;

    box-shadow: 4px 4px 0 var(--navy);

    font-weight: 800;

    cursor: pointer;

    transition: 0.15s;
}

.episode-navigation button:hover:not(:disabled) {
    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 var(--navy);
}

.episode-navigation button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


/* ==================================================
   COMIC READER
================================================== */

.comic-reader {
    background: var(--navy);

    padding: 15px;

    border: 4px solid var(--navy);

    border-radius: 20px;

    box-shadow: 8px 8px 0 var(--navy);
}

.comic-reader img {
    display: block;

    width: 100%;

    height: auto;

    margin: 0 auto;
}


/* ==================================================
   LIKE + BOOKMARK
================================================== */

.reader-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 30px;

    flex-wrap: wrap;
}

.reader-actions button {
    padding: 11px 18px;

    border: 3px solid var(--navy);

    border-radius: 12px;

    background: white;

    box-shadow: 4px 4px 0 var(--navy);

    font-weight: 800;

    cursor: pointer;

    transition: 0.15s;
}

.reader-actions button:hover {
    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 var(--navy);
}

.reader-actions button:first-child {
    background: var(--pink);
}

.reader-actions button:last-child {
    background: var(--blue);
}


/* ==================================================
   COMMENTS
================================================== */

.comments-section {
    margin-top: 60px;
}

.comments-section h2 {
    font-family: "Baloo 2", sans-serif;

    font-size: 42px;
}

.comment-note {
    margin-bottom: 25px;
}

.comment-form {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 35px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;

    padding: 13px;

    border: 3px solid var(--navy);

    border-radius: 12px;

    background: white;

    font-size: 16px;

    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--blue);

    box-shadow: 3px 3px 0 var(--blue);
}

.comment-form textarea {
    min-height: 130px;

    resize: vertical;
}

.comment-form button {
    align-self: flex-start;

    padding: 12px 20px;

    background: var(--pink);

    border: 3px solid var(--navy);

    border-radius: 12px;

    box-shadow: 4px 4px 0 var(--navy);

    font-weight: 800;

    cursor: pointer;
}

.comment-form button:hover {
    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 var(--navy);
}

.comment {
    padding: 20px;

    margin-bottom: 15px;

    background: white;

    border: 3px solid var(--navy);

    border-radius: 15px;
}

.comment-header {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}

.comment-header span {
    font-size: 13px;

    opacity: 0.6;
}

.no-comments {
    padding: 25px;

    background: white;

    border: 3px dashed var(--navy);

    border-radius: 15px;
}


/* ==================================================
   ABOUT
================================================== */

.about-page {
    max-width: 1000px;

    margin: auto;

    padding: 120px 20px;

    display: grid;

    grid-template-columns: 300px 1fr;

    align-items: center;

    gap: 60px;
}

.about-page h1 {
    font-family: "Baloo 2", sans-serif;

    font-size: 60px;

    line-height: 1;

    margin: 10px 0 20px;
}

.about-page p {
    margin-bottom: 15px;
}

.about-logo {
    width: 280px;

    height: 280px;

    border-radius: 50%;

    background: var(--pink);

    border: 4px solid var(--navy);

    box-shadow: 8px 8px 0 var(--navy);

    display: grid;

    place-items: center;

    text-align: center;

    font-family: "Baloo 2", sans-serif;

    font-size: 50px;

    font-weight: 800;

    transform: rotate(-5deg);
}

.about-logo span {
    color: var(--blue);
}


/* ==================================================
   SOCIALS
================================================== */

.socials {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 25px;
}

.social-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    background: var(--white);

    border: 3px solid var(--navy);

    border-radius: 12px;

    box-shadow: 4px 4px 0 var(--navy);

    font-weight: 700;

    transition: 0.15s;
}

.social-button:hover {
    background: var(--pink);

    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 var(--navy);
}


/* ==================================================
   KOFI
================================================== */

.kofi-section {
    max-width: 700px;

    margin: 40px auto;

    padding: 30px;

    text-align: center;

    background: var(--white);

    border: 3px solid var(--navy);

    border-radius: 20px;

    box-shadow: 6px 6px 0 var(--navy);
}

.kofi-section h2 {
    font-family: "Baloo 2", sans-serif;

    font-size: 35px;

    margin-bottom: 8px;
}


/* ==================================================
   FOOTER
================================================== */

footer {
    margin-top: 60px;

    padding: 40px 20px;

    text-align: center;

    background: var(--navy);

    color: var(--light);
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 800px) {

    .navbar {
        flex-direction: column;

        align-items: flex-start;
    }

    .nav-links {
        width: 100%;

        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;

        padding-top: 40px;
    }

    .hero-art {
        height: 330px;

        order: -1;
    }

    .hero-face {
        right: 90px;

        top: 110px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .section-heading h1,
    .section-heading h2,
    .game-page h1,
    .comic-page h1,
    .about-page h1 {
        font-size: 45px;
    }

    .about-page {
        grid-template-columns: 1fr;

        text-align: center;

        padding-top: 70px;
    }

    .about-logo {
        margin: auto;
    }

    .episode-navigation {
        flex-wrap: wrap;
    }

    .episode-navigation button {
        flex: 1;
    }

    .comic-reader {
        padding: 5px;
    }
}