body {
    background-color: #f4f6f8;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    margin-top: 80px;
}

h1 {
    color: #1a1a1a;
    font-size: 48px;
}

p {
    font-size: 22px;
    color: #444444;
}

button {
    background-color: #cc6333;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background-color: #b8c0cc;
    color: #56585e;
}
.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    max-width: 350px;
    margin: 40px auto;
}

#cardImage {

    width: 300px;

    border-radius: 12px;

    margin-bottom: 25px;

}
/* ============================
   Flashcard
   ============================ */

.flashcard-container {
    perspective: 1000px;
    width: 350px;
    height: 450px;
    margin: 40px auto 20px;
}

.flashcard {
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.flashcard.fade-change {
    opacity: 0;
}

.flashcard.fade-change .flashcard-inner {
    transition: none;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;

    transition: transform 0.6s;

    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;

    width: 100%;
    height: 100%;

    backface-visibility: hidden;

    z-index: 1;

    background-color: white;

    border-radius: 15px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);

    border: 3px solid #333333;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    padding: 20px;

    box-sizing: border-box;
}

.flashcard-back {
    transform: rotateY(180deg);
}

#cardImage {
    width: 300px;
    max-height: 300px;
    object-fit: contain;

    border-radius: 10px;

    margin-bottom: 20px;
}

.flashcard-front h2 {
    font-size: 24px;
}

.flashcard-back h2 {
    font-size: 36px;
    color: #8B0000;
}


/* ============================
   Card Controls
   ============================ */

.card-controls {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin: 20px auto;
}

.card-controls button {
    font-size: 16px;

    padding: 10px 15px;
}

#cardCounter {
    font-size: 18px;

    color: #555;

    margin-bottom: 20px;
}

/* ============================
   Mobile Layout
   ============================ */

#answerImage {
    width: 200px;
    max-width: 70%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {

    body {
        margin-top: 30px;
        padding: 0 15px;
    }

    h1 {
        font-size: 32px;
    }

    p {
        font-size: 18px;
    }

    .flashcard-container {
        width: 90vw;
        max-width: 350px;
        height: 430px;
        margin: 25px auto 20px;
    }

    .card-controls {
        gap: 6px;
    }

    .card-controls button {
        font-size: 14px;
        padding: 10px 12px;
    }

    #cardCounter {
        font-size: 16px;
    }

}

/* Note Values card layout */

#questionName,
#questionDuration {
    font-size: 20px;
    margin: 7px 0;
    text-align: center;
}

#answerName,
#answerDuration {
    font-size: 28px;
    margin: 4px 0;
}

#questionName,
#questionDuration {
    position: relative;
    top: -40px;
}

/* =========================================
   MUSIPRAXIS WEBSITE DESIGN
   ========================================= */

/* Site Header */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.nav-links a:hover {
    color: #8B0000;
}


/* Hero */

.hero {
    background: linear-gradient(135deg, #fff8f5, #f7f4ff);
    padding: 100px 25px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8B0000;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin: 0 auto 25px;
    color: #222222;
}

.hero-text {
    max-width: 680px;
    margin: 0 auto 35px;
    font-size: 20px;
    line-height: 1.7;
    color: #555555;
}


/* Buttons */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.primary-button {
    background-color: #8B0000;
    color: white;
}

.secondary-button {
    background-color: white;
    color: #8B0000;
    border: 2px solid #8B0000;
}


/* General Sections */

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 85px 25px;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2,
.feature-content h2,
.lessons-content h2,
.language-section h2 {
    font-size: 38px;
    line-height: 1.2;
    color: #222222;
    margin: 0 0 18px;
}

.section-heading p,
.feature-content p,
.lessons-content p,
.language-section p {
    font-size: 18px;
    line-height: 1.7;
    color: #555555;
}


/* Tool Cards */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tool-card {
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.tool-icon {
    font-size: 40px;
    margin-bottom: 18px;
}

.tool-card h3 {
    font-size: 24px;
    margin: 0 0 12px;
    color: #222222;
}

.tool-card p {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 22px;
}

.card-link,
.text-link {
    color: #8B0000;
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover,
.text-link:hover {
    text-decoration: underline;
}

.center-link {
    text-align: center;
    margin-top: 40px;
}


/* Feature Section */

.feature-section {
    background-color: #f5f5f5;
    padding: 85px 25px;
}

.feature-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.feature-content .button {
    margin-top: 20px;
}


/* Simple Cards */

.simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.simple-card {
    padding: 25px;
    background-color: #fafafa;
    border-radius: 12px;
}

.simple-card h3 {
    font-size: 20px;
    margin-top: 0;
}

.simple-card p {
    color: #555555;
    line-height: 1.6;
}


/* Violin Lessons Section */

.lessons-section {
    background-color: #fff8f5;
    padding: 90px 25px;
}

.lessons-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.lessons-content .button {
    margin-top: 20px;
}


/* Spanish Section */

.language-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 75px 25px;
    text-align: center;
}


/* Footer */

.site-footer {
    background-color: #222222;
    color: white;
    padding: 55px 25px 25px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-content h3 {
    font-size: 22px;
    margin-top: 0;
}

.footer-content p {
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: flex-start;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444444;
    text-align: center;
}

.footer-bottom p {
    color: #aaaaaa;
    font-size: 14px;
}


/* Mobile */

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 18px;
    }

    .section-heading h2,
    .feature-content h2,
    .lessons-content h2,
    .language-section h2 {
        font-size: 32px;
    }

    .content-section {
        padding: 65px 20px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .simple-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

}

/* Remove top spacing from Musipraxis website pages */

.site-header + main {
    margin-top: 0;
}

body:has(.site-header) {
    margin-top: 0;
    padding-top: 0;
}

/* =========================================
   MUSIPRAXIS BRAND REFRESH
   Orange • Black • White
   ========================================= */

:root {
    --mp-orange: #f26a21;
    --mp-orange-dark: #d95714;
    --mp-black: #171717;
    --mp-charcoal: #252525;
    --mp-cream: #fff8f2;
    --mp-light: #f6f6f6;
    --mp-gray: #666666;
    --mp-border: #e2e2e2;
}


/* =========================================
   GLOBAL SITE TYPOGRAPHY
   ========================================= */

body:has(.site-header) {
    margin: 0;
    padding: 0;
    color: var(--mp-black);
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

body:has(.site-header) h1,
body:has(.site-header) h2,
body:has(.site-header) h3,
body:has(.site-header) .logo {
    font-family: "Trebuchet MS", Arial, sans-serif;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    background-color: var(--mp-black);
    border-bottom: 4px solid var(--mp-orange);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo::first-letter {
    color: var(--mp-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--mp-orange);
}


/* =========================================
   HERO
   ========================================= */

.hero {
    background:
        linear-gradient(
            135deg,
            #171717 0%,
            #252525 65%,
            #3a2115 100%
        );
    padding: 105px 25px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-color: rgba(242, 106, 33, 0.10);
    right: -80px;
    bottom: -100px;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--mp-orange);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.08;
    margin: 0 auto 25px;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 20px;
    line-height: 1.7;
    color: #dddddd;
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary-button {
    background-color: var(--mp-orange);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(242, 106, 33, 0.25);
}

.primary-button:hover {
    background-color: var(--mp-orange-dark);
}

.secondary-button {
    background-color: transparent;
    color: var(--mp-orange);
    border: 2px solid var(--mp-orange);
}

.secondary-button:hover {
    background-color: var(--mp-orange);
    color: #ffffff;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 90px 25px;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading h2,
.feature-content h2,
.lessons-content h2,
.language-section h2 {
    font-size: 40px;
    line-height: 1.2;
    color: var(--mp-black);
    margin: 0 0 18px;
    letter-spacing: -0.7px;
}

.section-heading p,
.feature-content p,
.lessons-content p,
.language-section p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--mp-gray);
}


/* =========================================
   TOOL CARDS
   ========================================= */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tool-card {
    background-color: #ffffff;
    border: 1px solid var(--mp-border);
    border-top: 4px solid var(--mp-orange);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.tool-card h3 {
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--mp-black);
    letter-spacing: -0.3px;
}

.tool-card p {
    color: var(--mp-gray);
    line-height: 1.65;
    margin-bottom: 22px;
}

.card-link,
.text-link {
    color: var(--mp-orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover,
.text-link:hover {
    text-decoration: underline;
}


/* =========================================
   FEATURE SECTION
   ========================================= */

.feature-section {
    background-color: var(--mp-light);
    border-top: 1px solid var(--mp-border);
    border-bottom: 1px solid var(--mp-border);
    padding: 90px 25px;
}

.feature-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.feature-content .button {
    margin-top: 20px;
}


/* =========================================
   SIMPLE CARDS
   ========================================= */

.simple-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.simple-card {
    padding: 27px;
    background-color: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: 12px;
}

.simple-card h3 {
    font-size: 20px;
    margin-top: 0;
    color: var(--mp-black);
}

.simple-card p {
    color: var(--mp-gray);
    line-height: 1.6;
}


/* =========================================
   LESSONS SECTION
   ========================================= */

.lessons-section {
    background-color: var(--mp-cream);
    border-top: 4px solid var(--mp-orange);
    padding: 95px 25px;
}

.lessons-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.lessons-content .button {
    margin-top: 20px;
}


/* =========================================
   SPANISH SECTION
   ========================================= */

.language-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 80px 25px;
    text-align: center;
}

.language-section h2 {
    color: var(--mp-black);
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background-color: var(--mp-black);
    color: #ffffff;
    padding: 60px 25px 25px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-content h3 {
    font-size: 24px;
    margin-top: 0;
    color: #ffffff;
}

.footer-content p {
    color: #bbbbbb;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: flex-start;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--mp-orange);
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #444444;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    body:has(.site-header) {
        margin: 0;
        padding: 0;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 17px 20px;
    }

    .logo {
        font-size: 25px;
    }

    .nav-links {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        padding: 75px 20px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -0.8px;
    }

    .hero-text {
        font-size: 18px;
    }

    .section-heading h2,
    .feature-content h2,
    .lessons-content h2,
    .language-section h2 {
        font-size: 33px;
    }

    .content-section {
        padding: 70px 20px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .simple-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

}

/* Musipraxis brand logo */

.logo {
    color: #ffffff;
}

.logo::first-letter {
    color: var(--mp-orange);
}