/* Basic reset and body styling */
body {
    font-family: 'Georgia', serif;
    background-image: url('./bg.png'); /* Path to the background image */
    background-size: cover; /* Cover the entire background */
    background-position: center; /* Center the background image */
    background-attachment: fixed; /* Fix background during scrolling */
    color: #333;
    margin: 0;
    padding: 20px;
}

form {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background for the form */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #3e424b;
}

fieldset {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
}

legend {
    color: #5a5a66;
    font-size: 1.2em;
    padding: 0 10px;
    border-bottom: none;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Makes sure the padding doesn't affect the width */
}

button {
    background-color: #4a504b;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #3e424b;
}

/* Specific styles to enhance the fantasy theme */
fieldset {
    background-color: #e8e8e8;
    border: 2px groove #dadada;
}

legend {
    background-color: #b0b2b8;
    color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #4a504b;
}

.roll-info {
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
}
