/* Main CSS for GnoKids Web App */
/* Brand colors for GnoKids */
.gno-green {
    color: #2B906D;
}
.kids-pink {
    color: #EA6C92;
}

body {
    font-family: 'Poppins', 'Comic Sans MS', cursive, sans-serif;
    font-weight: 400;
    background-color: #F8F8F8;
    min-height: 100vh;
    padding: 1rem 1.5rem;
}

/* Wider container for single-line h1 */
.container {
    max-width: 752px;
    margin: 0 auto;
    text-align: center;
}

.title {
    color: #2c2b2b;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    transform: rotate(0deg);
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80%;
    height: 4px;
    background: #FBC800;
    border-radius: 50px;
    transform: translateX(-50%) rotate(0deg);
    opacity: 0.7;
}

.subtitle {
    color: #35424a;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.form-button {
    width: 100%;
    max-width: 28rem;
    height: 4rem;
    margin: 0 auto;
    color: #FFFFFF;
    border: 3px solid #1A1A1A;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual button styles */
.homework-btn {
    background-color: #7DBEE9;
    border-radius: 35px 35px 35px 35px;
    transform: rotate(0deg) scale(1);
    box-shadow: 4px 4px 0px #1A1A1A, 8px 8px 15px rgba(0,0,0,0.1);
}

.homework-btn:hover {
    background-color: #2885CD;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0px #1A1A1A, 12px 12px 20px rgba(0,0,0,0.15);
}

.phonics-btn {
    background-color: #FCCB00;
    border-radius: 35px 35px 35px 35px;
    transform: rotate(0deg) scale(1);
    box-shadow: 4px 4px 0px #1A1A1A, 8px 8px 15px rgba(0,0,0,0.1);
}

.phonics-btn:hover {
    background-color: #F7B100;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0px #1A1A1A, 12px 12px 20px rgba(0,0,0,0.15);
}

.vocabulary-btn {
    background-color: #E6409D;
    border-radius: 35px 35px 35px 35px;
    transform: rotate(0deg) scale(1);
    box-shadow: 4px 4px 0px #1A1A1A, 8px 8px 15px rgba(0,0,0,0.1);
}

.vocabulary-btn:hover {
    background-color: #DD007E;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0px #1A1A1A, 12px 12px 20px rgba(0,0,0,0.15);
}

.ondoku-btn {
    background-color: #B4D100;
    border-radius: 35px 35px 35px 35px;
    transform: rotate(0deg) scale(1);
    box-shadow: 4px 4px 0px #1A1A1A, 8px 8px 15px rgba(0,0,0,0.1);
}

.ondoku-btn:hover {
    background-color: #8DC220;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 6px 6px 0px #1A1A1A, 12px 12px 20px rgba(0,0,0,0.15);
}

/* Hand-drawn texture overlay */
.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.1) 2px,
        rgba(255,255,255,0.1) 4px
    );
    opacity: 0.1;
    pointer-events: none;
}

/* Button text */
.form-button span {
    position: relative;
    z-index: 10;
}

/* Decorative dots */
.form-button::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.form-button .dot-left {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    width: 0.375rem;
    height: 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 5;
}

/* Decorative elements */
.decorative-dots {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    opacity: 0.3;
}

.dot:nth-child(1) {
    background-color: #FF6B6B;
    transform: rotate(0deg) translateY(-2px);
}

.dot:nth-child(2) {
    background-color: #4ECDC4;
    transform: rotate(45deg) translateY(-2px);
}

.dot:nth-child(3) {
    background-color: #45B7D1;
    transform: rotate(90deg) translateY(-2px);
}

/* Responsive design */
@media (max-width: 640px) {
    .title {
        font-size: 2rem;
    }
    
    .form-button {
        height: 3.5rem;
        font-size: 1rem;
    }
}

/* Fun hover animations for decorative dots */
/*.decorative-dots .dot {
    transition: transform 0.3s ease;
}

.decorative-dots:hover .dot:nth-child(1) {
    animation: bounce1 0.6s ease infinite alternate;
}

.decorative-dots:hover .dot:nth-child(2) {
    animation: bounce2 0.6s ease infinite alternate;
    animation-delay: 0.2s;
}

.decorative-dots:hover .dot:nth-child(3) {
    animation: bounce3 0.6s ease infinite alternate;
    animation-delay: 0.4s;
}

@keyframes bounce1 {
    to { transform: rotate(0deg) translateY(-8px); }
}

@keyframes bounce2 {
    to { transform: rotate(45deg) translateY(-8px); }
}

@keyframes bounce3 {
    to { transform: rotate(90deg) translateY(-8px); }
} */

footer {
    background: #FFFFFF;
    color: #1e1e1e;
    text-align: center;
    /* Side padding keeps the text clear of the DEV button on the right */
    padding: 6px 56px;
    box-sizing: border-box;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    font-size: 1em;
    letter-spacing: 1px;
    box-shadow: 0 -2px 8px rgba(228, 0, 127, 0.10);
    border-top: 4px solid #333131;
}

/* Phones in portrait: smaller footer text so it fits on one line */
@media (max-width: 480px) {
    footer {
        font-size: 0.75em;
        letter-spacing: 0.5px;
        padding: 4px 44px;
    }
}

.uc-flex-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0rem;
    margin-top: 0rem;
}

.uc-back-btn {
    margin: 0 0 0 0; /* Example: only left margin */
    /* Or set any margin you want */
}
/* ---------- DEV mode entry (index.html) ---------- */
/* Small button inside the footer (right side) that opens dev.html */
.dev-fab {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #14161b;
    color: #39e6a4;
    border: 2px solid #1A1A1A;
    box-shadow: 2px 2px 0 #1A1A1A;
    font: 600 12px 'JetBrains Mono', monospace;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: .35;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.dev-fab:hover,
.dev-fab:active {
    opacity: 1;
    transform: translateY(calc(-50% - 2px));
    box-shadow: 2px 4px 0 #1A1A1A, 0 0 14px rgba(57, 230, 164, .6);
}

@media (max-width: 480px) {
    .dev-fab {
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

/* Title can be tapped 5x to open DEV mode */
#title {
    user-select: none;
    -webkit-user-select: none;
}

/* "3 more taps to DEV mode…" hint */
.dev-toast {
    position: fixed;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%) translateY(20px);
    background: #14161b;
    color: #39e6a4;
    font: 13px 'JetBrains Mono', monospace;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: 0;
    transition: all .25s;
    z-index: 60;
    pointer-events: none;
}
.dev-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dark circle wipe shown while opening DEV mode */
.dev-boot {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #0b0d10;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at var(--x, 100%) var(--y, 100%));
    transition: clip-path .55s ease-in;
    font: 15px/1.7 'JetBrains Mono', monospace;
    color: #39e6a4;
    text-align: left;
    pointer-events: none;
}
.dev-boot.on {
    clip-path: circle(150% at var(--x, 100%) var(--y, 100%));
    pointer-events: auto;
}
.dev-boot pre {
    margin: 0;
    min-width: 280px;
}

/* ===== Form links from Firestore (scripts/form-links.js) ===== */

/* Gray shimmer while the links load; can't be clicked yet */
.form-button.loading {
    background-color: #E5E7EB;
    color: #9CA3AF;
    border-color: #C7C9D1;
    box-shadow: 4px 4px 0px #C7C9D1;
    cursor: progress;
    pointer-events: none;
    transform: none;
}
.form-button.loading::before {
    opacity: 1;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: form-links-shimmer 1.1s infinite linear;
}
@keyframes form-links-shimmer {
    from { background-position: 150% 0; }
    to { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .form-button.loading::before { animation: none; }
}

/* "Coming soon" tag when a link is empty.
   .form-button prefix beats ".form-button span" above. */
.form-button .coming-soon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
}

/* Message when links can't load */
.form-links-note {
    display: none;
    max-width: 28rem;
    margin: -1.5rem auto 2rem;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #1A1A1A;
    box-shadow: 3px 3px 0 #1A1A1A;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}
.form-links-note.show { display: block; }
.form-links-note.warn { background: #FFF7D6; }
.form-links-note.err { background: #FFE4EC; }
