/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', serif; /* Rustic feel font */
    line-height: 1.5;
    background: #f5efe0; /* Light parchment color */
    color: #4a3b31; /* Earthy text color */
    background-image: url('https://storage.googleapis.com/www.bchowl.com/hosted%20resources/wood_tex.png'); /* Replace with actual path */
    background-size: cover;
}

/* Header */
header {
    background: #8b5e34; /* Dark rustic brown */
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 4px solid #654321;
    font-family: 'Playfair Display', serif; /* Elegant rustic font */
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8); /* Slightly transparent overlay */
    border: 1px solid #d2b48c; /* Tan border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Controls Section */
.controls {
    width: 100%;
    background: #fffbe6;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #d4a373;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .controls h2 {
        margin-bottom: 1rem;
        color: #6b4226;
    }

.option-group label {
    display: block;
    margin: 0.5rem 0;
    font-weight: bold;
    color: #4e3629;
}

/* Rounded Checkboxes */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid #6b4226;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    input[type="checkbox"]:checked {
        background-color: #8b5e34;
        border-color: #654321;
    }

/* Buttons */
/* Common Base Style for Buttons */
button {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

    /* Style for "Generate Environment" and "Generate NPC" Buttons */
    button#generateBtn,
    button#generateNpcBtn {
        background: #8b5e34; /* Rustic brown */
        color: #fff;
        border-radius: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

        button#generateBtn:hover,
        button#generateNpcBtn:hover {
            background: #654321; /* Darker brown for hover */
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
        }

    /* Complementary Style for "Describe Random NPC" and "Environment" Buttons */
    button#describeNpcBtn,
    button#backToEnvironmentBtn {
        background: #d4a373; /* Lighter, complementary tan */
        color: #4a3b31; /* Darker text for contrast */
        border-radius: 12px; /* Slightly less rounded for variety */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

        button#describeNpcBtn:hover,
        button#backToEnvironmentBtn:hover {
            background: #b08a5b; /* Slightly darker tan for hover */
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
        }




button#generateBtn {
    padding: 0.8rem 1.5rem;
    background: #8b5e34;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

    button#generateBtn:hover {
        background: #654321;
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }

/* Results Section */
.results {
    background: #fffbe6;
    padding: 1rem;
    border: 1px solid #d4a373;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .results h2 {
        color: #6b4226;
    }

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #8b5e34;
    color: #fff;
    font-size: 0.9rem;
    border-top: 4px solid #654321;
}
