:root {
    --bg-gradient: linear-gradient(135deg, #f9c5d1, #f3a7d9, #b28adf);
    --accent-teal: #2bb7a8;
    --accent-gold: #f7c86b;
    --accent-purple: #7b4fd6;
    --tile-bg: #fffaf7;
    --text-main: #3b2442;
    --text-soft: #6b4b7a;
    --radius-large: 24px;
    --radius-medium: 16px;
    --shadow-soft: 0 18px 40px rgba(60, 20, 80, 0.25);
    --shadow-tile: 0 8px 20px rgba(60, 20, 80, 0.18);
    --transition-fast: 0.2s ease-out;
}


@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Greatest Script';
    font-style: normal;
    font-weight: 100;
    src: url('../woff/Greatest Script/Greatest Script.woff') format('woff'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Greatest Script', cursive;
    font-weight: 100;
    margin: 0;
}

.hero-text h1 {
    font-size: 6rem;
}

h1 {
    font-size: 72px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

h6 {
    font-size: 14px;
}





/* Global reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top left, #ffeef7 0, #fdf5ff 40%, #f7f0ff 100%), url("mahjong-table-texture.png");
    background-size: cover;
    background-blend-mode: soft-light;
}


/* Hero */

.hero {
    background: var(--bg-gradient);
    color: #fff;
    /*padding: 2.5rem 1.5rem 3.5rem;*/
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    /*	font-size: clamp(2.4rem, 4vw, 3.4rem);
	letter-spacing: 0.04em;*/
    text-shadow: 0 4px 16px rgba(60, 20, 80, 0.4);
    margin: 0 0 0.75rem;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    margin: 0 0 0.5rem;
}

.hero-sub {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 1.5rem;
}

.hero-cta {
    border: none;
    border-radius: 999px;
/*    padding: 0.8rem 1.8rem;*/
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
    color: #3b2442;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .hero-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 45px rgba(60, 20, 80, 0.35);
    }

/* Tiles */

.hero-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    justify-items: center;
}

.tile {
    width: 140px;
    height: 190px;
    background: var(--tile-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-tile);
    position: relative;
/*    padding: 0.75rem;*/
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    transform: rotate(-2deg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .tile:nth-child(2),
    .tile:nth-child(4) {
        transform: rotate(3deg);
    }

    .tile::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(243, 167, 217, 0.35), transparent 60%);
        opacity: 0.9;
    }

.tile-label {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

/* Simple “illustration” hints via borders */

.tile-flower {
    border: 4px solid #f3a7d9;
    background: url("svg/tile-flower.svg") center/contain no-repeat;
}

.tile-bamboo {
    border: 4px solid #2bb7a8;
    background-image: url("art/bamboo.png");
    background-size: auto;
}

.tile-dragon {
    border: 4px solid #f7c86b;
}

.tile-peacock {
    border: 4px solid #7b4fd6;
}

/* Content */

.content {
    max-width: 1100px;
    margin: 0 auto;
    /*padding: 2.5rem 1.5rem 3rem;*/
}

/* Lesson cards */

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.lesson-card {
    background: #ffffff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.4rem 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .lesson-card h2 {
        margin: 0.6rem 0 0.4rem;
        font-size: 2.8rem;
    }

    .lesson-card p {
        margin: 0 0 1.2rem;
        font-size: 0.95rem;
        color: var(--text-soft);
    }

/* Icons as abstract shapes */

.lesson-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    margin: 0 auto;
    position: relative;
}

/*.lesson-icon-cap {
  background: radial-gradient(circle at top, #f7c86b, #f3a7d9);
}*/
/*.lesson-icon-dice {
  background: radial-gradient(circle at top, #7b4fd6, #f7c86b);
}*/
/*.lesson-icon-cup {
  background: radial-gradient(circle at top, #2bb7a8, #f3a7d9);
}*/

/*.lesson-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}*/

/* Lesson CTA */

.lesson-cta {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(60, 20, 80, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .lesson-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(60, 20, 80, 0.35);
    }

/* Highlight strip */

.highlight-strip {
    margin-top: 2.5rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-medium);
    background: linear-gradient(135deg, rgba(243, 167, 217, 0.2), rgba(123, 79, 214, 0.2));
    text-align: center;
    color: var(--text-soft);
    font-weight: 500;
}

/* Footer */

.footer {
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* Responsiveness */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-tiles {
        order: -1;
    }

    .lesson-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2rem 1.1rem 2.6rem;
    }

    .lesson-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tile {
        width: 120px;
        height: 160px;
    }
}

.tile img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}



html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAi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DE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}