/* static/css/main.css */

body.parchment-bg {
    background-color: #f4ece1;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.site-header {
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 800px;
}

.site-title {
    color: #b02a2a;
    font-size: 3.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.tagline {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.top-nav {
    margin-bottom: 30px;
}

.top-nav a {
    margin: 0 15px;
    color: #b02a2a;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.top-nav a:hover {
    text-decoration: underline;
}

.content {
    width: 100%;
    max-width: 600px;
    background: #fdfbf8;
    padding: 40px;
    border: 1px solid #c9b9a3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.curse-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.curse-form label {
    font-weight: bold;
    color: #444;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #c9b9a3;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.mode-select {
    border: 1px solid #e0d5c5;
    padding: 15px;
    background: #f9f4ed;
}

.mode-select legend {
    padding: 0 10px;
    font-weight: bold;
    color: #b02a2a;
}

.primary-button {
    background-color: #b02a2a;
    color: white;
    padding: 18px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

.primary-button:hover {
    background-color: #8a2121;
}

/* Loading Styles */
.loading-container {
    text-align: center;
    margin-top: 100px;
}

.book-animation img {
    max-width: 300px;
    height