@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f7f9fa;
    color: #222;
    margin: 0;
    padding: 0;
}

nav {
    background: #222;
    color: #fff;
    padding: 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: #4CAF50;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links li a:hover {
    color: #4CAF50;
}

.hero {
    background: linear-gradient(120deg, #4CAF50 0%, #2196F3 100%);
    color: #fff;
    padding: 60px 0 40px 0;
    text-align: center;
}
.hero-content {
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 32px;
}
.cta-button {
    background: #fff;
    color: #2196F3;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    transition: background 0.2s, color 0.2s;
}
.cta-button:hover {
    background: #2196F3;
    color: #fff;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px;
    margin-bottom: 0;
}

h2 {
    color: #2196F3;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

textarea {
    width: 100%;
    max-width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 12px;
    margin-top: 8px;
    resize: vertical;
    font-family: 'Roboto', Arial, sans-serif;
}

button {
    padding: 10px 28px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.2s;
    margin-bottom: 8px;
}
button:hover {
    background-color: #1769aa;
}

#romanizedOutput {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f7f9fa;
    min-height: 32px;
    font-size: 1.1rem;
    word-break: break-word;
}

section ul {
    list-style-type: disc;
    padding-left: 24px;
    margin-bottom: 0;
}
section ul li {
    margin: 6px 0;
}

/* Table Styles */
table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: center;
    font-size: 1.1rem;
}
th {
    background-color: #2196F3;
    color: white;
    font-weight: 700;
}
tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}
tbody tr:hover {
    background-color: #e3f2fd;
}

.faq-item {
    margin-bottom: 18px;
}
.faq-item h3 {
    margin-bottom: 6px;
    color: #4CAF50;
    font-size: 1.1rem;
}

footer {
    background: #222;
    color: #fff;
    padding: 24px 0 16px 0;
    margin-top: 48px;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-links a {
    color: #4CAF50;
    text-decoration: none;
    margin: 0 6px;
    font-weight: 500;
}
.footer-links a:hover {
    text-decoration: underline;
}

.romanizer-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.romanizer-buttons button {
    flex: none;
}

.stroke-demo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 16px;
}
.stroke-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5em;
    gap: 6px;
}

.worksheet-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}
.worksheet-cell {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 12px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    min-height: 120px;
    font-size: 2em;
    gap: 10px;
}
.worksheet-char {
    font-size: 2.5em;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
}
.worksheet-trace {
    color: #bbb;
    opacity: 0.4;
    font-size: 2.2em;
    border-bottom: 1px dashed #ccc;
    width: 1em;
    text-align: center;
    margin-bottom: 4px;
}
@media (max-width: 700px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 8px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    main {
        padding: 16px 4px 0 4px;
    }
    .card {
        padding: 18px 8px;
    }
    table {
        font-size: 0.95rem;
    }
    .stroke-demo-grid, .worksheet-grid {
        gap: 10px;
    }
    .worksheet-cell {
        min-width: 40px;
        min-height: 80px;
        font-size: 1.2em;
        padding: 8px 4px;
    }
    .worksheet-char {
        font-size: 1.5em;
    }
    .worksheet-trace {
        font-size: 1.2em;
    }
} 