.field-meta label{
    white-space: break-spaces;
    padding-left: 0px;
padding-right: 0px;
}

/* Set font to AppState standards */
body {
    font-family: "Arial Bold", Times, serif !important;
}

#content #contribute{
    display: none;
}

.item-set-showcase{
   /* display: none;*/
}

/* This makes the d3 graph lines thick */
#d3-graph line {
    stroke: #000; /* Make lines black */
    stroke-width: 5px; /* Thicker lines */
}

.kl-timeline .tl-timenav {
    flex-direction: column-reverse;
}

/* This styles the headers on the analytics page */
#content h4 {
    color: #FFCC00 !important; /* AppState Gold */
}

/* This hides the special analytics page */
#hidden-link {
        text-decoration: none;
        color: inherit;
        cursor: pointer;
        font-size: inherit;
    }

#hidden-link:hover {
    text-decoration: none !important; /* Ensures no underline on hover */
    color: inherit !important; /* Keeps text color unchanged */
}

/* This makes the required form fields obvious */
input[required], textarea[required] {
    border: 2px solid gray;
}

/* Stuff needed for mobile look good */
@media (max-width: 768px) {
    /* Adjust header font sizes */
    h1 {
        font-size: 1.8rem; /* Adjust as needed */
    }

    h2 {
        font-size: 1.6rem; /* Adjust as needed */
    }

    h3 {
        font-size: 1.4rem; /* Adjust as needed */
    }

    h4, h5, h6 {
        font-size: 1.2rem; /* Uniform for smaller headings */
    }

    /* Adjust paragraph font size */
    p {
        font-size: 1rem; /* Ensure readability */
        line-height: 1.5; /* Improve spacing */
    }

    /* Fine-tune navigation/menu text */
    nav a {
        font-size: 1rem;
    }
}

/* Default styling for all thumbnail containers */
.thumbnail-container {
    display: inline-block;
    overflow: hidden;
}

/* Blur and dim non-public thumbnails */
.thumbnail-container.non-public img {
    filter: blur(10px); /* Apply a blur effect */
    opacity: 0.6; /* Dim the image */
    transition: filter 0.001s ease, opacity 0.001s ease; /* Smooth effect */
}

/* Warning unapproved message */
.approval-warning {
    color: red;
}

/* Ensure public thumbnails display normally */
.thumbnail-container.public img {
    filter: none;
    opacity: 1;
}

/* Admin panel: hide or cover thumbnails for non-public items */
.media-thumbnail {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* General Table Styling */
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed; /* Ensures even distribution */
}

/* Style all table cells */
table td {
    border: 2px solid black !important; /* Bolder lines */
    padding: 2px !important;
    text-align: center !important;
    vertical-align: top !important; /* Ensures text is top-aligned */
    word-wrap: break-word !important;
    font-weight: normal !important;
}

/* Assign Colors to Each Column */
table td:nth-child(1) { background-color: #ffffff !important; } 
table td:nth-child(2) { background-color: #ffffff !important; } 
table td:nth-child(3) { background-color: #ffffff !important; } 
table td:nth-child(4) { background-color: #ffffff !important; } 
table td:nth-child(5) { background-color: #ffffff !important; }

/* Stack all tables vertically on smaller screens */
@media (max-width: 768px) {
    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table td {
        text-align: left !important; /* Align text for readability */
        border-bottom: 2px solid black; /* Separate rows visually */
    }
}

table:has(p strong:contains("Notice")) td {
    border: none !important; /* Removes borders from table cells */
}

h3 span a {
    color: #03659c; /* Slightly darker gold for contrast */
}

h5 span a {
    color: #537a6b; /* Slightly darker gold for contrast */
}

/* Target only the links inside the tag section */
.properties.tag a {
    color: #537a6b !important; /* Set to the requested color */
}

.properties.tag a:hover {
    color: #3f5e4d !important; /* Darker shade on hover */
}

button.fa.fa-tag::before {
    content: none !important; /* Remove any auto-added icon */
    display: none !important; /* Ensures it is hidden */
}

button.fa.fa-tag {
    font-family: inherit !important; /* Prevents FontAwesome from applying */
    background-image: none !important; /* Removes any background icon */
}

.item-set-info {
    color: #b2b3b3 !important; /* Gray color */
   text-align: center;
}

#skip{
   color: black !important;
    display: inline-block;
    font-size: 16px;
    background-color: #FFCC00; /* Requested color */
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
   margin-top: 0 !important;
margin-bottom: 20px !important;
}

#skip:hover {
    background-color: #d7a527; /* Slightly darker on hover */
    border-color: #a99b75;
}

/* Remove extra spacing from the file upload input */
input[type="file"] {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Also target its surrounding field container */
.field:has(input[type="file"]) {
    margin-bottom: 0 !important;
    padding-bottom: 30px !important;
}

/* Buttons on landing page */
#browse-button{
    text-decoration: underline !important;
    color: black !important;
    display: inline-block;
    font-size: 16px;    background-color: #FFCC00; /* Requested color */
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    margin-top: 0 !important;
margin-bottom: 20px !important;
}

#browse-button:hover {
    background-color: #d7a527; /* Slightly darker on hover */
    border-color: #a99b75;
}

#contribute-button {
    text-decoration: underline !important;
    color: black !important;
    display: inline-block;
    font-size: 16px;    background-color: #FFCC00; /* Requested color */
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
   margin-top: 0 !important;
   margin-bottom: 20px !important;
}

#contribute-button:hover {
    background-color: #d7a527; /* Slightly darker on hover */
    border-color: #a99b75;
}

#contact-button{
    text-decoration: underline !important;
    color: black !important;
    display: inline-block;
    font-size: 16px;    background-color: #FFCC00; /* Requested color */
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    margin-top: 0 !important;
margin-bottom: 20px !important;
}

#contact-button:hover {
    background-color: #d7a527; /* Slightly darker on hover */
    border-color: #a99b75;
}

#welcome-button{
    text-decoration: underline !important;
    color: black !important;
    display: inline-block;
    font-size: 16px;    background-color: #FFCC00; /* Requested color */
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    margin-top: 0 !important;
margin-bottom: 20px !important;
}

#welcome-button:hover {
    background-color: #d7a527; /* Slightly darker on hover */
    border-color: #a99b75;
}

@media screen and (min-width: 641px) { /* Non-mobile screens */
#contribute-button {
   margin: 10px !important;
}

#contact-button {
   margin: 10px !important;
}

#welcome-button {
   margin: 10px !important;
}

.top-bar-left .site-title {
        display: none !important; /* Hide logo in top-bar-left on non-mobile */
    }

    .top-bar-right .site-title {
        display: flex !important; /* Ensure logo in top-bar-right is shown */
        justify-content: center !important;
        align-items: center !important;
    }

.top-bar {
        display: flex !important;
        justify-content: space-between !important; /* Ensures left and right stay apart */
        align-items: center !important;
        width: 100% !important;
    }

    .top-bar-left {
        display: flex !important;
        justify-content: flex-end !important; /* Moves logo closer to the right */
        align-items: center !important;
        flex: 0 1 auto !important; /* Shrinks to fit the logo */
        max-width: auto !important;
    }

    .site-title {
        display: flex !important;
        justify-content: flex-end !important; /* Ensures logo hugs the menu */
        align-items: center !important;
        max-width: auto !important;
    }

    .top-bar-right {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex: 1 !important; /* Allows it to shrink and not push left */
        max-width: auto !important;
    }

    #responsive-menu {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-grow: 1 !important; /* Ensures full centering */
    }

.banner + * {
     transform: translateY(-76px) !important; 
}

.call-to-action .cta-container {
        margin-bottom: 0px !important;
}
.call-to-action .action-button {
        margin-bottom: 0px !important;
}

}

#contribute-button {
   margin: 20px !important;
}

#contact-button {
   margin: 20px !important;
}

#welcome-button {
   margin: 20px !important;
}

.banner {
    clip-path: inset(12px 0px 76px 0px) !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

/* Reduce padding between banner and first block or page title */
.banner + #content {
   padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.top-bar {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    margin-left: 0 !important;
}

.site-title a img {
    pointer-events: none !important;  /* Prevents any interaction with the image */
    filter: none !important;          /* Removes hover brightness/contrast effects */
    transition: none !important;      /* Stops any hover animations */
    opacity: 1 !important;            /* Ensures no fade effects */
    transform: none !important;       /* Prevents scaling or movement */
    box-shadow: none !important;      /* Removes hover glow/shadow */
    text-decoration: none !important; /* Prevents underline or styling */
}

/* Explicitly disable hover styles */
.site-title a img:hover {
    pointer-events: none !important;
    filter: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

h2 {
    padding-top: 10px !important;  /* Reduce padding as needed */
    margin-top: 0px !important;    /* Remove any extra margin pushing it down */
    top: 0px !important; /* Move it closer to the top */
}

/* Target ONLY the Show Tutorial button inside the correct div */
.block.block-html dl dt {
    background-color: #EDEDED !important; /* Grey background */
    display: inline-block !important; /* Ensures it only covers content */
    width: fit-content !important; /* Prevents full-width stretching */
    border-radius: 16px !important; /* Rounded edges for better look */
    cursor: default !important;
}

/* Target ONLY the text inside the Show Tutorial button */
.block.block-html dl dt a {
    font-size: 16px !important;
    font-weight: normal !important;
    color: black !important;
    text-decoration: none !important;
    cursor: zoom-in !important;
    display: block !important;  /* TESTING */
    width: 100% !important; /* TESTING */
    height: 100% !important; /* TESTING */
    text-align: center !important; /* TESTING */
}

.block.block-html dl dt a:hover {
    border-radius: 16px !important; /* Keep it rounded on hover */
}

/* EXCLUDE the properties (Title, Description, etc.) */
dl.property-group dt {
    background: none !important;
    font-weight: bold !important;
    cursor: default !important;
}

/* Ensure only the Terms of Service gets styled */
div > div > div > dl dt span {
    font-weight: normal !important;
    color: #4c4847 !important;
    /*padding: 1px !important;*/
    cursor: default !important;
    text-align: left !important;
    user-select: none !important;
    display: inline-block !important; /* Keeps it within the correct width */
    float: left !important;
}

/* Ensure the next elements start on a new line */
div > div > div > dl dd {
background-color: #EDEDED !important; /* Grey background */
    display: block !important; /* Forces it onto the next line */
    width: 100% !important; /* Prevents floating issues */
    margin-top: 10px !important; /* Adds space between click box and content */
    clear: both !important; /* Ensures nothing sits next to it */
}

/* Hide only the Terms of Service dd initially */
div > div > div > dl dd {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.1s ease-out, padding 0.001s ease-out !important;
    padding: 0 !important;
    margin-top: 0px !important;
    opacity: 0 !important;
}

/* Fix: Ensure the functionality ONLY applies to the Terms of Service */
div > div > div > dl dt:focus-within + dd,
div > div > div > dl dt:active + dd {
    display: inline-block !important;
    max-height: 100% !important; 
    /*padding: 5px !important; */
    opacity: 1 !important;
}

/*  Ensures a proper break between the click box and next elements */
div > div > div > dl::after {
    content: "";
    display: block !important;
    clear: both !important;
    height: 10px !important; /* Adds space below the entire <dl> */
}

/* Block the toggle functionality from applying to metadata properties */
.property dt,
.item-sets dt,
.media-list dt {
    pointer-events: none !important;
    cursor: default !important;
}

/* Prevent dd elements inside metadata from being affected */
.property dd,
.item-sets dd,
.media-list dd {
    max-height: unset !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Ensure checkboxes and labels align horizontally */
.field:has(input[type="checkbox"]) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 20px !important; /* Adds spacing between checkboxes */
    flex-wrap: nowrap !important; /* Prevents them from stacking */
}

/* Force checkboxes and labels to sit in one line */
.field input[type="checkbox"] {
    display: inline-block !important;
    margin-right: 30px !important; /* Ensures space between checkbox and label */
}

/* Mobile Fix: Stack Checkboxes on Small Screens */
@media (max-width: 768px) {
    .field:has(input[type="checkbox"]) {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* Apply Side-by-Side Layout to All Relevant Text Fields */
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(1),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(2),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(4),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(5),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(6),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(7),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(8),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(9) {
    display: inline-block !important;
    width: calc(50% - 5px) !important; /* Dynamically set width */
    vertical-align: top !important; /* Keeps them aligned properly */
    box-sizing: border-box !important; /* Ensures width includes padding */
    margin-right: 5px !important;
}

/* Remove right margin from the second column in each row */
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(2),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(5),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(7),
form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(9) {
    margin-right: 0 !important;
}

/* Mobile Responsive: Stack Side-by-Side Fields to Full Width */
@media (max-width: 768px) {
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(1),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(2),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(4),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(5),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(6),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(7),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(8),
    form[id^="collecting_form"] > div:not(:has(input[type="checkbox"])):nth-of-type(9) {
        width: 100% !important; /* Full width on small screens */
        display: block !important;
        margin-right: 0 !important;
    }
}

dl dd a[href="#toggle-tips"] {
    cursor: zoom-out !important;
}

.sharing-buttons {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 0;
    gap: 16px !important; /* Default gap for desktop */
}

/* Ensure sharing buttons align properly */
.sharing-buttons li {
    text-align: left;
}

/* Adjust font size for sharing buttons */
#sharing-block .sharing-buttons a {
    font-size: 16px !important; /* Adjust size as needed */
}

/* Mobile: Force Three Per Row & Remove Excess Gaps */
@media (max-width: 768px) {
    .sharing-buttons {
        gap: 0px !important; /* Removes extra space that was breaking three per row */
    }

    .sharing-buttons li {
        width: 32% !important; /* Ensures exactly three per row */
        text-align: center !important;
    }

.call-to-action .action-button {
    margin-bottom: 30px !important;
}

.call-to-action .cta-container {
    margin-bottom: 30px !important;
}
}

/* Reduce the height of the inner container */
.call-to-action .cta-container {
height: auto !important;
   display: flex !important; /* MARKER HERE */
    align-items: left !important;
    justify-content: left !important; /* Centers content horizontally */
   float: left !important; /*test*/
    padding: 0px 0px !important; /* Minimize space */
    /*margin-bottom: 0px !important; */
padding-bottom: 0px !important;
}

/* Target the Reset button */
.call-to-action .action-button {
   margin: 0px !important;
    /* padding: 2px 8px !important; */
    /*display: flex !important;*/
    align-items: left !important;
    justify-content: center !important;
    min-height: 20px !important;
    text-align: left !important;
font-weight: normal !important;
text-decoration: none;
    border: 2px solid #7b541e !important; /* Adjust thickness and color */
    border-radius: 18px !important; /* Optional: Rounds the corners */
transition: background-color 0.2s ease-in-out !important; /* Smooth transition */
    color: #000 !important; /* Ensure text remains readable */
    /*margin-bottom: 0px !important; */
    /* padding-bottom: 0px !important; */
}

/* Change Background Color on Hover */
.call-to-action .action-button:hover {
    background-color: #fafafa !important; /* Change to desired hover color */
    color: #000 !important; /* Ensure text remains readable */
}

.call-to-action .cta-container .action-button {
    padding: 0px 0px !important; /* Ensure proper padding applies */
   padding-left: 4px !important; /* Ensure proper padding applies */
    padding-right: 4px !important; /* Ensure proper padding applies */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .call-to-action .cta-container {
        height: auto !important;
        min-height: 30px !important;
}
}

/* Reduce excessive whitespace above footer */
.call-to-action {
    margin-top: 0px !important; /* Shrinks spacing between CTA and footer */
    margin-bottom: 0px !important; /* Shrinks spacing between CTA and footer */
    padding-bottom: 0px !important;
}

/* Standard Tutorial Button (Everywhere Else) */
.block.block-html dl dt {
    background-color: #EDEDED !important;
    display: inline-block !important;
    width: fit-content !important;
    border-radius: 16px !important;
    cursor: default !important;
}

/* Browse Preview Tutorial Button */
#browse-preview-tutorial {
    background-color: #EDEDED !important; /* Same style as the others */
    display: inline-block !important;
    width: fit-content !important;
    border-radius: 16px !important;
    cursor: default !important;
    margin-bottom: 0 !important; /* DEBUG HERE */
}

/* Target Clickable Text Inside Browse Preview Tutorial Button */
#browse-preview-tutorial a {
    font-size: 16px !important;
    font-weight: normal !important;
    color: black !important;
    text-decoration: none !important;
    cursor: zoom-in !important;
display: block !important;  /* TESTING */
    width: 100% !important; /* TESTING */
    height: 100% !important; /* TESTING */
    text-align: center !important; /* TESTING */
}

#browse-preview-tutorial a:hover {
    border-radius: 16px !important; /* Keep it rounded on hover */
}

/* Disable clicking on images in item pages */
.media-render.file a {
    pointer-events: none !important;
}

/* Make the contact us form look more like the rest of site */
.newsletter-block .field.required .field-meta::after,
    .contact-us-block .field.required .field-meta::after {
        content: none !important;
        color: black !important;
    }
.newsletter-block .field.required .field-meta::before,
    .contact-us-block .field.required .field-meta::before {
        content: "*";
        color: black !important;
     background-color: #E6E6E6;
padding-top: 1px;
padding-bottom: 1px;
    }

/* Remove any spacing that might be caused by other elements */
.contact-us-block .field-meta {
    display: flex;
    align-items: center; /* Ensures label and asterisk align properly */
    gap: 0px; /* Removes unnecessary spacing between label and asterisk */
}

/* Standardize the position of the first block */
    .blocks-inner > .block:first-child {
        position: relative !important;
        top: 0px !important; /* Adjust this value for alignment */
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.call-to-action::after {
    content: none !important;
    display: none !important;
   margin-top: 0px !important;
margin-bottom: 0px !important;
}

#content{
  padding-bottom: 0px !important;
margin-bottom: 0px !important;
}

footer {
     margin-top: 0px !important; /* Pulls footer closer to CTA */
    padding-top: 0px !important;
    margin-bottom: 0px !important; /* Pulls footer closer to CTA */
    padding-bottom: 0px !important;
}

@media screen and (max-width: 640px) {
.title-bar .menu-toggle {
     margin: 0 !important;
}

#contribute-button {
   margin: 0px !important;
}

#contact-button {
   margin: 0px !important;
}

#welcome-button {
   margin: 0px !important;
}
}

/* Ensure the submit button is always on a new line */
form input[type="submit"] {
    display: block !important;  /* Forces it onto its own line */
    width: auto !important;  /* Prevents full-width stretching */
    margin-top: 10px !important;  /* Adds space above the button */
    clear: both !important;  /* Ensures nothing sits next to it */
}

a.important-button {
background-color: #FC0;
display: inline-block;
padding: 0.3em 1em;
margin-bottom: 0.1em;
}

footer p {
font-family: "Arial", sans-serif;
text-align: center;
font-size: 0.8em;
margin: 0.25em;
}

footer .needhelp {
font-weight: bold;
}