/* Reset and base styles */
body, html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    background: linear-gradient(to bottom, #000000 0%, #808080 50%, #ffffff 100%) fixed;
    color: #e6e6e6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8), 3px 3px 6px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    margin: 4px;
    background-image: url('OG-11a.jpg'); 
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center;
}

/* Container styles */
.container {
    background-color: #1D0200;
    background-color: rgba(28, 28, 28, 0.8);
    border: 2px solid #d4af37;
    border-radius: 75px 75px 15px 15px;
    padding: 1px 20px;
    width: calc(100% - 44px); /* Adjust for padding and border */
    max-width: 675px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Navigation styles */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    position: absolute;
    left: 10px;
    z-index: 1001;
}

.bar1, .bar2, .bar3 {
    width: 25px;
    height: 3px;
    background-color: #d4af37;
    margin: 4px 0;
    transition: 0.4s;
}

.nav-items {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 10px;
}

.nav-links a {
    color: #FFEF99;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.3s ease;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
}

.nav-links a:hover {
    color: #f5f5f5;
}

@media (max-width: 600px) {
    .nav-links {
        justify-content: flex-start;
    }

    .hamburger-icon {
        display: block;
        top: 10px;
    }

    .nav-items {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100vh;
        background-color: #1c1c1c;
        background-color: rgba(28, 28, 28, 0.95);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        padding: 20px;
        transition: all 0.3s ease-in-out;
    }

    .nav-items.show {
        display: flex;
    }

    .nav-items a {
        font-size: 1.2em;
        margin: 10px 0;
        padding: 10px 20px;
        border-bottom: 1px solid #d4af37;
        border-bottom-color: rgba(212, 175, 55, 0.3);
        width: 80%;
        text-align: center;
    }

    .nav-items a:last-child {
        border-bottom: none;
    }

    .hamburger-icon.change .bar1 {
        transform: translate(0, 7px) rotate(-45deg);
    }

    .hamburger-icon.change .bar2 {
        opacity: 0;
    }

    .hamburger-icon.change .bar3 {
        transform: translate(0, -7px) rotate(45deg);
    }
}

/* ... (rest of the CSS) ... */

.modal .centered-nav-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content.nav-modal {
    background-color: #2c2c2c;
    border: 2px solid #ffd700;
    width: 90%;
    max-width: 500px;
}

.modal-content.nav-modal h2 {
    color: #ffd700;
    border-bottom: 1px solid #ffd700;
    padding-bottom: 10px;
}

.modal-content.nav-modal p {
    color: #e0e0e0;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	background-color: #1c1c1c !important;
}

/* CSS for required fields */
.required-icon {
    margin-left: 5px; /* Adjust the space between the title and the icon */
    vertical-align: middle; /* Align the icon with the middle of the text */
    fill: #8B0000; /* Red color for the fill */
    stroke: yellow; /* Yellow color for the stroke */
    filter: drop-shadow(1px 1px 2px #000000); /* Apply a shadow to the SVG icon */
    transition: opacity 0.3s ease; /* Smooth transition for hiding */
}

textarea:focus, select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #555;
    background-color: #FFF199; /* Change background color on focus */
    font-weight: 700;
}

textarea.valid, select.valid {
    background-color: #FFF199; /* Background color when valid */
}

textarea:not(:focus):invalid, select:not(:focus):invalid {
    background-color: #FFF199; /* Background color when invalid */
}

textarea.valid ~ .required-icon, select.valid ~ .required-icon {
    opacity: 0; /* Hide the icon when the field is valid */
}

textarea.invalid, select.invalid {
    background-color: #FFF199; /* Background color when invalid */
}


/* Header styles */
header {
    text-align: center;
    margin-bottom: 8px;
}

h1 {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: #ffd700;
    text-align: center;
    margin-bottom: 0;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 5px;
}

header p {
     font-size: 1.0rem;
    color: #E5DFDA;
    font-weight: bold;
    margin-bottom: 8px;
	margin-top:0;
}

label {
	
    color: #FFF199;
    font-weight: bold;
    margin-bottom: 0;
	padding-left: 7px;
	padding-bottom: 0 !important;*/
	padding-top: 4px;
	font-size: 18px;
	

}
label[for="addNotes"] {
    /* Your styles here */
    color: #fff199;
    font-size: 14px;
    font-weight: bold;
	padding-left: 1px;
	padding-top: 3px;

}

/* Controls Container */
.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.control-item {
    flex: 0 1 auto;
    text-align: center;
    padding: 0 10px;
}

.control-item a, .control-item label {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    white-space: nowrap;
	font-weight: bold;
}

.control-item a:hover, .control-item label:hover {
    color: #fff199;
}

/* Specific style for Show Descriptions */
.control-item label.citem1 {
    color: #fff199; /* Change this to your desired color */
}

/* Hover state for Show Descriptions */
.control-item label.citem1:hover {
    color: #f5f5f5; /* Change this to your desired hover color */
}

/* Middle item (Show Descriptions) */
.control-item:nth-child(2) {
    margin: 0 15px;
}

/* Checkbox style */
#toggleDescriptions {
    margin-left: 5px;
    vertical-align: middle;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    .controls-container {
        flex-wrap: wrap;
    }

    .control-item {
        flex-basis: 100%;
        margin: 5px 0;
    }

    .control-item:nth-child(2) {
        margin: 5px 0;
    }
}

/* Style for the checkbox */
#toggleDescriptions {
    margin-left: 5px;
    vertical-align: middle;
}

.info-modal-link {
    color: #EDEADE;
    text-decoration: none;
    margin-bottom: 10px;
    margin-right: 30px;
    margin-left: 30px;
}

.info-modal-link:hover {
    text-decoration: none;
}

/* Form styles */
.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@supports (display: grid) {
    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.form-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

textarea, select, input[type="text"] {
    width: 100%;
    padding: 6px 10px; /* Adjust padding */
    background-color: #FFFFF0;
    color: #333;
    border: 1px solid #000;
    outline: 2px double #d4af37;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    resize: none;
    min-height: 40px;
    line-height: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    appearance: none;
    margin-top: 2px; /* Reduce top margin */
    font-weight: 700;
    font-size: 16px;
}

select {
font-family: Tahoma, Geneva, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: 
        url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>"),
        url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/></svg>");
    background-repeat: no-repeat, no-repeat;
    background-position: right 5px center, left 5px center;
    background-size: 20px, 20px;
    padding-right: 30px;
    padding-left: 30px;
	font-size: 16px;
	font-weight: 900;
}

select option {

	font-size: 16px;
	background-color: #fffff0; /* Light gray background */
	font-weight:bold;
}

textarea:focus, select:focus, input[type="text"]:focus {
    outline: none;
    border-color: #555;
    font-weight: 700;

}

textarea::placeholder, select::placeholder, input[type="text"]::placeholder {
    color: #7f7d7c;
font-size: 18px;
}

input[type="checkbox"] {
    accent-color: #FFE34C; /* Change this to your desired color */
}

.description {
    font-size: 0.95em;
    color: #FFFDD0;
    margin-top: 5px;
    text-align: left;
    display: none;
    font-weight: 600;
    background-color: #1c1c1c;
    opacity: 0.8;
    padding: 6px 10px;
    border: 4px solid #d4af37;
    border-radius: 10px;
}

/* Button styles */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1px;
    flex-wrap: wrap;
}

button {
    width: 150px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background-color: #000;
    color: #d4af37;
    margin-top: 10px;
    appearance: none;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px #d4af37;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
	font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif !important;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 70%, transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.5s ease-in-out;
}

button:hover {
    background-color: #d4af37; /* Elegant gold */
    color: #000; /* Black text */
    outline: 3px solid #000;
}

button:hover:before {
    left: 100%;
}

button:active {
    background-color: #b8860b; /* Slightly darker gold on active */
}

/* Checkbox styles */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

/* Utility classes */
.highlight-error {
    border: 2px solid red !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5) !important;
}

.counter {
    font-size: 1.0em;
    color: #FFF199;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.clear-link {
    color: #FFF199; /* Set the link color to match the counters */
    text-decoration: none; /* Add underline */
    font-weight: normal; /* Make the text bold */
    cursor: pointer; /* Change cursor to pointer on hover */
}

.clear-link:hover {
    color: #f5f5f5; /* Keep the color matching the counters on hover */
    text-decoration: none; /* Remove underline on hover */
}

.dynamic-textarea + .counter {
    text-align: right; /* Ensure alignment is correct for dynamic textareas */
}

.output-container {
    width: 100%;
}

/* Media queries for responsiveness */
@media (min-width: 601px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-item.full-width {
        grid-column: 1 / -1;
        width: 100%;
    }

    .button-container {
        grid-column: 1 / -1;
    }

    #textarea3 {
        width: 100%;
        min-height: 30px;
        margin-top: 4px;
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .button-row {
        flex-direction: column;
    }
}

/* More Info link styles */
.info-link {
font-family: font-family: Garamond, serif;
    float: right;
    color: #f5f5f5;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
	padding-right: 8px;
	padding-top:10px;

}

.info-link:hover {
    text-decoration: none;
    color: #fff199;
}

/* Modal styles */
/* Modal structure */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal content */
.modal-content {
    background-color: #1c1c1c;
    opacity: 0.9;

    padding: 25px;
    border: 2px solid #d4af37; /* Gold border */
    border-radius: 20px;
    width: 90%; /* Adjusted to better fit small screens */
    max-width: 600px;
    max-height: 90vh; /* Ensure the modal does not exceed the viewport height */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #f7eeb4; /* Light gold text */
    overflow-y: auto; /* Enable vertical scrolling if needed */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.9), 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Link styles within modal */
.modal-content a {
    color: #ffd700; /* Bright gold */
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.modal-content a:hover {
    text-decoration: none; /* Hide underline on hover */
    color: #d4af37; /* Darker gold on hover */
}

/* Close button */
.close {
    color: #d4af37; /* Gold */
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffd700; /* Bright gold on hover */
    text-decoration: none;
}

/* Modal content styles */
#modal-title {
    margin-top: 1px;
    color: #ffd700; /* Bright gold */
    margin-bottom: 10px;
}

.modal-content p {
    line-height: 1.4;
    margin-bottom: 10px;
}

h4 {
    line-height: 1.5;
    margin-bottom: 3px;
}

.modal-content ul {
    padding-left: 15px;
    margin-bottom: 10px;
}

.modal-content li {
    margin-bottom: 3px;
}

.quote {
    color: #d4af37; /* Gold */
    font-style: italic;
    margin: 15px 0;
    padding: 10px;
    border-left: 3px solid #ffd700; /* Bright gold */
}

.tip {
    background-color: #101010; /* Slightly lighter black */
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #ffd700; /* Gold */
    color: #f0e68c; /* Light gold text */
}

.key-point {
    font-weight: bold;
    color: #ffd700; /* Bright gold */
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 15px; /* Width of the scrollbar */
	
}

.modal-content::-webkit-scrollbar-track {
    background: #ffd700; /* Background of the track */
    border-radius: 0 20px 20px 0;

}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #444; /* Black color for the scrollbar thumb */
    border-radius: 0 20px 20px 0;
	border-top: 2px solid #d4af37;
	border-right: 1px solid #d4af37;
	border-bottom: 2px solid #d4af37;
	border-left: 1px solid #1c1c1c;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker grey on hover */
}

/* Notification container */
.notification-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Notification style */
.notification {
    display: inline-block;
    background-color: #333;
    color: #ffd700;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.2s, transform 0.3s !important;
    max-width: 80vw;
    box-sizing: border-box;
    border: 1px solid #ffd700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative; /* For positioning the close button */
}

/* Show notification */
.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Close button */
.notification .close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    display: none;
    border: none;
    color: #ffd700; /* Gold color for the close button */
    font-size: 16px;
    cursor: pointer;
    padding: 0; /* Remove any default padding */
    margin: 0; /* Remove any default margin */
    line-height: 1; /* Ensure line height does not affect size */
}

/* Notification types */
.notification-success {
    background-color: #d4af37;
    color: #000;
    /*text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);*/
    font-weight: 700;
    border: 1px solid #000;
	text-shadow: none;
}

.notification-error {
    background-color: #800000;
    color: #ffff00;
}

.notification-info {
    background-color: #800000;
    color: #fff;
}

footer {
    width: 100%;
    text-align: center;
    background-color: #1c1c1c;
    background: rgba(28, 28, 28, 0.3);
    color: #dab20d;
    padding-top: 12px;
    padding-bottom: 8px;
    border-top: 2px solid #d4af37; /* Gold top border */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    margin-bottom: 4px;
    margin-top: 1px;
}

footer a {
    color: #dab20d;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: none;
    color: #F0EAD6;
}

/* CSS for required fields */
.required-icon {
    margin-left: 5px; /* Adjust the space between the title and the icon */
    vertical-align: middle; /* Align the icon with the middle of the text */
    fill: #8B0000; /* Red color for the fill */
    stroke: yellow; /* Yellow color for the stroke */
    filter: drop-shadow(1px 1px 2px #000000); /* Apply a shadow to the SVG icon */
    transition: opacity 0.3s ease; /* Smooth transition for hiding */
}

/* Default styles for input fields */
textarea, select, input[type="text"] {
    background-color: #FFFFF0;
    outline: none;
    border-color: #555;
}

/* Styles for required fields */
#textarea1, #deliveryFormat,
#dynamicthematicFocus, #dynamictargetAudience,
#dynamiceverydayLifeThemes, #dynamicpopCultureReferences,
#dynamicculturalReferences, #dynamiclanguageStyle {
    background-color: #FFF199 !important;
}

/* Focus styles for most elements */
textarea:focus, select:focus, input[type="text"]:focus {
    background-color: #FFF199;
    font-weight: 700;
}

/* Specific styles for textarea2 */
#textarea2 {
    background-color: #FFFFF0 !important;
}

textarea2::placeholder {
 
}

#textarea2:focus, #textarea2:not(:placeholder-shown) {
    background-color: #FFF199;
}

/* Maintain background for deliveryFormat */
#deliveryFormat:focus, #deliveryFormat:active {
    background-color: #FFF199 !important;
}

/* Styles for valid/invalid states */
textarea.valid, select.valid,
textarea.invalid, select.invalid {
    background-color: #FFF199;
}

textarea.invalid, select.invalid {
    border-color: red;
}
textarea::placeholder {
  font-size:16px;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  line-height: 100%;
}

/* Styles for required icons */
.required-icon {
    transition: opacity 0.2s ease;
    opacity: 1;
}

.hide-icon, textarea.valid ~ .required-icon, select.valid ~ .required-icon {
    opacity: 0;
}

#textarea2 {
    background-color: #FFFFF0 !important;
}

#textarea2:focus, #textarea2:not(:placeholder-shown) {
    background-color: #FFF199;

}

.modal-title {
    display: flex;
    align-items: center;
}

.r-icon {
    width: 16px; /* Adjust size as needed */
    height: 16px; /* Adjust size as needed */
    margin-left: 5px; /* Space between the title and icon */
    vertical-align: middle; /* Align with text */
}
.form-header label {
    color: #FFF199;
    font-weight: bold;
    margin-bottom: 0 !important; /* Reduce bottom margin */
    font-size: 18px;
    padding-bottom: 0 !important; /* Remove padding */
	padding-left: 10px;
	
}

textarea::placeholder {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: normal;
    font-size: 16px;
    color: #7f7d7c;
}

textarea {
    display: flex;
    align-items: center;
    padding: 10px; /* Adjust padding as needed */
    height: auto; /* Ensure the height is set to auto for auto-resize */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    overflow: hidden; /* Hide scrollbars */
    resize: none; /* Prevent manual resizing */
}