/* Reset and Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Old Standard TT', serif; /* A classic, western-style font */
    line-height: 1.6;
    margin: 20px;
    background-color: #F5F5DC; /* Beige background to mimic parchment paper */
}

/* Header Styles */
header {
    background: #8B4513; /* SaddleBrown color */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #A0522D; /* Sienna color for a rugged look */
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-family: 'Alfa Slab One', cursive; /* Bold, slab-serif font for titles */
    letter-spacing: 2px;
    text-shadow: 2px 2px #000;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background: #A0522D; /* Sienna color */
    padding: 15px 0;
    border-bottom: 3px solid #8B4513;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Old Standard TT', serif;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FFD700; /* Gold color on hover */
}

/* Section Styles */
section {
    margin: 30px 0;
    padding: 25px;
    background: #FFF8DC; /* Cornsilk background for an aged paper effect */
    border: 2px solid #D2B48C; /* Tan border */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: 'Alfa Slab One', cursive;
    text-align: center;
    color: #8B4513;
    text-shadow: 1px 1px #000;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 15px;
    background: #8B4513;
    color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 3px solid #A0522D;
}

/* Additional Styling */
a {
    color: #8B4513;
}

a:hover {
    color: #D2691E; /* Chocolate color on hover */
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

button {
    background-color: #8B4513;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Old Standard TT', serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #A0522D;
}

/* Forum Input Styles */
#forum input, #forum textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #D2B48C;
    border-radius: 5px;
    background-color: #FFF8DC;
    font-family: 'Old Standard TT', serif;
}

/* Comment Section Styles */
.comment-section {
    margin-top: 25px;
    background-color: #FAEBD7; /* AntiqueWhite background */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D2B48C;
}

.comment {
    border-bottom: 1px dashed #D2B48C;
    padding: 15px 0;
}

.comment:last-child {
    border-bottom: none;
}
/* CSS Variables for easy theming */
:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #2E7D32; /* Dark Green */
    --accent-color: #FFC107; /* Amber */
    --background-color: #f5f5f5; /* Light Gray */
    --text-color: #333333; /* Dark Text */
    --card-background: #ffffff; /* White */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: var(--card-background);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
}

h1 {
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: 40px;
    font-size: 2.5em;
}

/* Calculator Section */
.calculator {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

input[type="number"], select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

input[type="number"]:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

button {
    padding: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    font-family: var(--font-secondary);
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Results Section */
.results {
    background-color: #e8f5e9;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-top: 20px;
    transition: opacity var(--transition-speed);
}

.results.hidden {
    opacity: 0;
    display: none;
}

.results p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Information Section */
.information {
    margin-top: 50px;
    font-family: var(--font-secondary);
}

.information h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 2em;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.information h3, .information h4 {
    color: var(--primary-color);
    margin-top: 30px;
    font-size: 1.5em;
}

.information ul {
    list-style-type: disc;
    margin-left: 20px;
    line-height: 1.6;
}

.information ol {
    list-style-type: decimal;
    margin-left: 20px;
    line-height: 1.6;
}

.information p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    button {
        font-size: 1rem;
    }

    .information h2 {
        font-size: 1.8em;
    }

    .information h3, .information h4 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    button {
        padding: 12px;
        font-size: 0.95rem;
    }

    .information h2 {
        font-size: 1.5em;
    }

    .information h3, .information h4 {
        font-size: 1.1em;
    }
}
