/* General body and layout styles */
body,
html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
}

* {
    box-sizing: border-box;
    /* Ensures padding and border are included in the width/height */
}

header {
    background-color: #f8cf6d;
    /* Your branding color */
    color: #333;
    /* Updated text color for better readability */
    padding: 20px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligns items to the start of the header */
}

header a img {
    background-color: #2e75b6;
    margin-right: 0px;
    /* Space between logo and header content */
    height: 60px;
    /* Bigger logo size */
    border: 2px solid black;
    /* Black outline around the logo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for transform and shadow */
}

header a img:hover {
    transform: translateY(-5px);
    /* Makes the logo float up when hovered */
    box-shadow: 0 0 15px #2e75b6;
    /* Adds a glow effect around the logo */
}

.header-content {
    flex-grow: 1;
    /* Allows the header content to take up the rest of the space */
}

h1 {
    text-align: center;
    /* Centers the title */
    margin-bottom: 10px;
    /* Space between title and navigation */
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 40px;
    /* Increased padding for more space inside */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1,
h2 {
    color: #333;
    margin-bottom: 20px;
    /* Adds space below headers for better visual separation */
}

/* Navigation styles */
nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    /* Aligns properly with the edge of the header */
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #333;
    /* Updated text color for links to dark for contrast */
    text-decoration: none;
    font-size: 18px;
}

nav a:hover {
    text-decoration: underline;
    color: #555;
    /* Darken on hover for a subtle effect */
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: bold;
}

input[type="number"],
textarea,
select,
button {
    width: 100%;
    /* This now correctly fits within the parent due to box-sizing */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="number"],
textarea,
select {
    background-color: #f8f8f8;
}

button {
    background-color: #7289DA;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #5b6eae;
}

/* Utility and link styles */
a.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: #7289DA;
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

a.btn:hover {
    background-color: #5b6eae;
}

nav li a div {
    position: relative;
    /* Establishes the position context */
    display: inline-block;
    /* Keeps the block inline with text */
    width: 100%;
    /* Ensures the div occupies the full width of the anchor tag */
}

nav li a div span {
    position: absolute;
    /* Positions the span over the parent div */
    top: 0;
    /* Aligns the top of the span with the top of the div */
    left: 0;
    /* Aligns the left of the span with the left of the div */
    background-color: rgba(255, 0, 0, 0.8);
    /* Semi-transparent red background */
    color: white;
    /* White text color */
    font-size: small;
    /* Smaller font size for the overlay text */
    padding: 2px 5px;
    /* Small padding around the text */
    transform: rotate(-45deg);
    /* Rotates the text for visual effect */
    z-index: 1;
    /* Ensures the span appears above the link text */
}

.voice-donation-page main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.voice-donation-page .container {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    /* Adjust if necessary */
    margin-bottom: 30px;
    /* Space between containers */
}

.voice-donation-page .option-divider {
    border-right: 2px solid #ccc;
    /* Adds a grey line as a divider */
    padding-right: 20px;
    /* Adds padding to the right of the content before the border */
    margin-right: 20px;
    /* Adds margin to the right of the border, separating the two options */
}

.voice-donation-page .option-section {
    width: 48%;
    /* Adjusts width to less than half to account for padding and borders */
    box-sizing: border-box;
    /* Includes padding and border in the width calculation */
}

.voice-donation-page #audioPlayback {
    max-width: 100%;
    /* Ensures the audio control does not exceed its container width */
    display: block;
    /* Ensures it takes up its own line if needed */
    margin-bottom: 10px;
    /* Provides spacing below the control */
}