* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.control-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #495057;
}

select, button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: white;
    font-size: 1rem;
    cursor: pointer;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    font-weight: bold;
}

button:hover {
    background-color: #2980b9;
}

.font-size-controls {
    display: flex;
    gap: 10px;
}

.font-size-controls button {
    flex: 1;
}

.content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.content h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .container,
body.dark-mode .content {
    background-color: #1e1e1e;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .control-panel {
    background-color: #2d2d2d;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: #f0f0f0;
}

body.dark-mode select,
body.dark-mode button {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode button {
    background-color: #2980b9;
}

/* Font Style Classes */
.font-serif {
    font-family: 'Times New Roman', Times, serif;
}

.font-sans-serif {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.font-monospace {
    font-family: 'Courier New', Courier, monospace;
}
