/* 
Author: Maisee Thao
Date: February 7, 2026
File Name: styles.css
*/

/* CSS Reset */
body, header, nav, main, footer, h1, h2, p, ul, li, a, img, section, aside, figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 14px;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 12px auto;
    border-radius: 14px;
}

/* Category images on homepage */
.category-img {
    width: 100%;
    border-radius: 14px;
    margin: 10px 0;
}

/* Style rule for box sizing applies to all elements */
* {
    box-sizing: border-box;
}

body {
    font-family: "Nunito", Arial, sans-serif;
    background: linear-gradient(to bottom, #fff7fb, #e6f7ff);
    color: #263238;
    line-height: 1.5;
}

.bubble-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bubble-bg span {
    position: absolute;
    bottom: -100px;
    background-color: rgba(173, 216, 230, 0.6);
    border-radius: 50%;
    animation: floatBubbles 18s linear infinite;
    box-shadow: 0 0 15px rgba(173, 216, 230, 0.6);
}

.bubble-bg span:nth-child(1) {
    left: 5%;
    width: 80px;
    height: 80px;
    animation-duration: 14s;
}

.bubble-bg span:nth-child(2) {
    left:15%;
    width: 25px;
    height: 25px;
    animation-duration: 18s;
}

.bubble-bg span:nth-child(3) {
    left: 30%;
    width: 100px;
    height: 100px;
    animation-duration: 12s;
}

.bubble-bg span:nth-child(4) {
    left: 50%;
    width: 40px;
    height: 40px;
    animation-duration: 16s;
}

.bubble-bg span:nth-child(5) {
    left: 70%;
    width: 120px;
    height: 120px;
    animation-duration: 15s;
}

.bubble-bg span:nth-child(6) {
    left: 85%;
    width: 20px;
    height: 20px;
    animation-duration: 20s;
}

.bubble-bg span:nth-child(odd) {
    opacity: 0.5;
}

.bubble-bg span:nth-child(even) {
    opacity: 0.8;
}

@keyframes floatBubbles {
    0% {
        transform: translateY(0);
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-110vh);
        opacity: 0;
    }
}

.floating-emojis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-emojis span {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: drift 6s ease-in-out infinite alternate;
}

.floating-emojis span:nth-child(1) {
    top: 15%;
    left: 10%;
}

.floating-emojis span:nth-child(2) {
    top: 50%;
    right: 10%;
}

.floating-emojis span:nth-child(3) {
    top: 75%;
    left: 40%;
}

@keyframes drift {
    from {
        transform: translateY(0px) rotate(0deg);
    }
    to {
        transform: translateY(-20px) rotate(8deg);
    }
}


/* Layout wrapper */
.wrapper {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 22px 0;
}

.brand {
    background-color: #ffffff;
    border: 2px dashed #ffd1dc;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
}

.brand h1 {
    font-family: "fredoka", Arial, sans-serif;
    font-size: 2rem;
    color: #546e7a;
}

/* Nav */
nav {
    margin-top: 14px;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 10px;
    border: 1px solid #f1d7ff;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

nav a { 
    display: inline-block;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    background-color: #f3f8ff;
    color: #263238;
    border: 1px solid #d9ecff;
    font-weight: 600;
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: #ffe0f0;
    transform: scale(1.05);
}

/* Main content */
main {
    padding: 18px 0 30px;
}

/* Paper card sections */
.card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 18px;
    border: 3px dashed #ffd6e7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Video styles */
.video-container {
    max-width: 500px;
    margin: 20px auto;
}

.video-container iframe {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    border: none;
}

/* Headings */
h2 { 
    font-family: "Fredoka", Arial, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ff6f91;
}

h3 {
    font-family: "Fredoka", Arial, sans-serif;
    font-size: 1.2rem;
    margin: 12px 0 8px;
    color: #6c5ce7;
}

.cute-header {
    font-family: "Fredoka", Arial, sans-serif;
    font-size: 1.8rem;
    text-align: center;
    color: #ff6f91;
    background: linear-gradient(135deg, #fff0f5, #e6f7ff);
    padding: 12px;
    border-radius: 20px;
    border: 3px dashed #ffd6e7;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Lists */
ul {
    margin-left: 18px;
    margin-top: 6px;
}

li { 
    margin: 6px 0;
}

/* Simple grid for resource pages */
.grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 14px;
}

/* Footer */
footer {
    padding: 18px 0 26px;
    text-align: center;
    color: #607d8b;
}

/* Numbers Page Styles */

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.number-grid figure {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.number-grid img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.number-grid figcaption {
    margin-top: 8px;
    font-weight: 600;
}

.number-grid .btn {
    display: inline-block;
    margin-top: 8px;
}


/* Tablet */
@media (min-width: 768px) {
    .brand h1 {
        font-size: 2.3rem;
    }
    
    .grid {
        grid-template-columns: 50% 50%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .wrapper {
        width: 88%;
    }
    
    .grid {
        grid-template-columns: 33.33% 33.33% 33.33%;
    }
    
    .features {
        grid-template-columns: 33.33% 33.33% 33.33%;
    }
}

.features {
    display: grid;
    grid-template-columns: 100%;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
    margin-top: 30px;
}

/* Cute Download Button */

.btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px; /* makes it pill-shaped */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #cfe8ff;
    background: linear-gradient(135deg, #dff1ff, #ffd6e7);
    color: #1a2b34;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #cfeaff, #ffd6e7);
    transform: translateY(-2px) scale(1.03);
}

.btn:active {
    transform: scale(0.97);
}

/* Worksheets Page Styles */

.worksheet-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.worksheet-grid figure {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.worksheet-grid img {
    width: 100%;
    max-width: 180px; 
    height: auto;
    border-radius: 10px;
}

.worksheet-grid figcaption {
    margin-top: 8px;
    font-weight: 600;
}

.worksheet-grid .btn {
    margin-top: 8px;
}

/* Alphabet Page Styles */

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.alphabet-grid figure {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alphabet-grid img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
}

.alphabet-grid figcaption {
    margin-top: 8px;
    font-weight: 600;
}

.alphabet-grid .btn {
    display: inline-block;
    margin-top: 8px;
}

/* Contact Page Styles */

.contact-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #6c5ce7;
    margin-bottom: 18px;
}

.contact-info a {
    color: #263238;
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ff6f91;
}

.contact-note {
    text-align: center;
}

.contact-info {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 16px;
    margin: 20px auto;
    max-width: 400px;
    border: 2px dashed #ffd6e7;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.2rem;
}






