/* --- Global Styles --- */
body {
    color: rgba(239, 239, 239, 1);
    background-color: black;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
}

body,
button,
input,
select,
optgroup,
textarea {
    font-family: var(--font-selection);
}

h1,
h2 {
    width: 100%;
    font-family: "museo", serif;
    font-weight: 500;
    font-style: normal;
    text-align: left;
    padding: 0;
    margin: 0; /* Consolidated margin-top and margin-bottom */
    font-size: 36px;
    color: white;
}

h2 {
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    line-height: 160%;
    margin-bottom: 10px; /* Specific margin for h2 */
    color: rgba(255, 255, 255, 0.85);
}

a:focus {
    outline: none;
}

/* --- Link Styles --- */
li a,
li a:link,
li a:visited {
    padding: 10px;
    display: block;
    text-align: right;
    color: #ffffff;
    text-decoration: none;
}

a.icon {
    color: black;
}

a:hover {
    text-decoration: underline;
}

/* --- Icon Wrapper --- */
.icon-wrapper {
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 700ms ease-in-out;
}

.icon-wrapper:hover {
    background-color: rgba(127, 127, 127, 0.5);
}

.icon-wrapper svg {
    fill: white;
    width: 100%;
    height: 100%;
}

/* --- Popup Fade Out --- */
#fade-out {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease-in-out;
}

#fade-out-content-wrapper {
    background-color: rgba(33, 33, 33, 1);
    border-radius: 10px;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    color: white;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background-color: transparent;
    padding: 0;
    color: white;
    cursor: pointer;
}

/* --- Website Heading --- */
#website_heading {
    display: flex;
    flex-direction: column;
    padding-left: 40px;
}

#website_heading #row1 {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* Changed from 'start' to 'flex-start' for consistency */
    align-items: center;
}

#website_heading #row1 h1 {
    font-size: 36px;
    width: auto;
    display: flex;
    margin: 0;
}

#website_heading #row1 h2 {
    display: flex;
    margin: 0;
    width: auto;
}

#website_heading #row2 h2 {
    font-style: normal;
}

/* --- Menu Container & Navigation --- */
#menu_container {
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 0;
    flex-grow: 0;
    left: 0;
    width: 100%;
    z-index: 101;
    height: 80px;
    transition: 700ms ease-in-out;
}

#always-visible-menu {
    z-index: 102;
    transition: 700ms ease-in-out;
}

#menu-bar {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    list-style: none;
    border-radius: 8px;
    transition: 700ms ease-in-out;
}

#menu-bar li {
    position: relative;
}

#menu-bar li::after {
    content: '';
    position: absolute;
    right: 0;
    top: 21%;
    height: 58%;
    width: 1px;
    background-color: #efefef;
}

#hamburger_nav {
    z-index: 101;
    list-style: none;
    text-align: right;
    transition: 700ms ease-in-out;
}

#hamburger {
    position: absolute;
    top: 0;
    right: 0;
}

.fa-bars {
    font-size: 2em;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 700ms ease-in-out, color 0ms;
}

#menu {
    position: relative;
    z-index: 101;
    list-style: none;
    margin: 4px auto 0; /* Consolidated margin */
    padding: 0;
    text-align: right;
    border-radius: 8px;
    transition: 700ms ease-in-out;
}

#menu li {
    padding: 4px 8px 4px 4px;
    margin: 0 auto;
}

#menu li a,
#menu li a:link,
#menu li a:visited {
    padding: 0 !important;
}

.hidden {
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in;
}

.visible {
    opacity: 1;
    height: auto;
    width: auto;
    overflow: visible;
    transition: opacity 0.5s ease-in;
}

.menu-item {
    margin-right: -10px;
}

#menu-bar li:last-child::after {
    display: none;
}

#menu-bar > h1,
#menu-bar > h2,
#menu-bar > li a {
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

/* --- Page Containers --- */
.container_0 {
    height: 100vh;
    outline: none;
    display: flex; /* Moved from section_artists */
    vertical-align: middle; /* Moved from section_artists */
    min-height: 67vh; /* Moved from section_artists */
    height: auto; /* Moved from section_artists */
    max-height: 300vh; /* Moved from section_artists */
}

.page_container {
    position: relative;
    top: 0;
    padding: 20px 0 0 40px;
    height: 100%;
    width: 100%;
    z-index: 3;
    align-self: center; /* Moved from section_artists */
}

.page_container_2 {
    position: relative; /* Changed from absolute for better flow */
    margin: 0 auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding-left: 8px;
    padding-right: 8px;
    margin-top: -20px;
    height: auto;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Flexbox & Content Blocks --- */
.flexbox {
    display: inline-flex;
}

.content-text {
    flex: 0 0 auto;
    flex-basis: 500px;
    padding-top: 10px;
    max-width: 500px;
}

.content-image {
    flex: 0 0 auto;
    flex-basis: 500px;
    max-width: 500px;
}

.content-image img {
    max-height: 400px !important;
    width: auto;
    border: 2px solid rgba(0, 0, 0, 0);
    border-radius: 4px;
}

.content-right {
    padding-right: 1em;
}

.content-image.content-left figure {
    float: right;
    padding-right: 1em;
}

.content-image.content-right {
    float: left;
    padding-left: 1em;
}

.content-center {
    justify-content: space-around;
}

/* --- Donate Button --- */
#donate_button_container {
    display: flex;
    margin: auto;
    max-width: fit-content;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 4px;
    background-color: white;
    transition: 0.3s ease-in-out;
}

#donate_button_container:hover {
    border: 2px solid rgba(255, 241, 120, 1);
    background-color: rgba(255, 241, 120, 1);
}

#donate_button_container a {
    padding: 10px 30px;
    color: rgba(0, 0, 0, 0.75) !important;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

#donate_button_container a:hover {
    /* Kept for explicit transition, though inherited from parent */
}

/* --- Artist Table --- */
#artist-table {
    display: grid;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(110px, 30%));
    flex-wrap: wrap;
}

.artist-table-section {
    display: flex;
    flex-direction: column;
}

.instrument {
    display: flex;
    flex-direction: row;
}

.instrument h2 {
    margin: 0;
    padding: 0;
}

.artist-list {
    height: auto;
    display: flex;
    flex-direction: row;
    row-gap: 5px;
    flex-wrap: wrap;
    align-items: flex-start; /* Changed from 'left' */
    margin: 0 0 10px 0; /* Consolidated margin */
    padding: 0;
}

.artist {
    min-width: 110px;
    padding: 0 0 0 5px;
    margin: 2px 0 0 0; /* Consolidated margin */
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.artist p {
    margin: 0;
    padding: 0;
    font-size: 1em;
}

.artist a:visited {
    color: #fff178;
}

/* --- Survey Styles --- */
#surveyContainer {
    background-color: rgba(0, 0, 0, 0);
}

.sd-root-modern__wrapper {
    top: 0;
    position: relative;
}

.sd-item {
    padding: calc(1 * (var(--sjs-base-unit, var(--base-unit, 8px)))) 0;
}

/* --- Copyright --- */
.copyright {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 12px;
    text-align: center;
    display: table; /* Consolidated */
    margin: 0 auto; /* Consolidated */
}

.copyright img {
    vertical-align: bottom;
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
}

/* --- Mailchimp Styles --- */
#mc_embed_signup {
    background: white;
    color: #111111;
    clear: left;
    font: 14px Helvetica, Arial, sans-serif;
    width: 500px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    padding: 5px 10px 0; /* Consolidated padding-top, padding-left, padding-right */
}

#mc_embed_signup h2 {
    font-weight: normal;
    margin-bottom: 0;
    color: #494949; /* Consolidated from separate rule */
}

#mc_embed_signup label {
    color: #494949; /* Consolidated from separate rule */
}

#mc_embed_signup .button {
    margin-top: 14px;
    width: 168px;
}

#mc_embed_signup .helper_text {
    display: none;
}

#mc_embed_signup .brandingLogo {
    margin-bottom: 7px;
}

#mc_embed_signup img {
    height: 32px;
    max-width: 1000px;
}

#mc_embed_signup .mc-field-group {
    margin-top: 8px;
}

#mc_embed_signup input.mce_inline_error {
    border-color: #6B0505;
}

#mc_embed_signup div.mce_inline_error {
    margin: 0 0 1em 0;
    padding: 5px 10px;
    background-color: #6B0505;
    font-weight: bold;
    z-index: 1;
    color: #fff;
}

.indicates-required {
    color: #494949; /* Consolidated from separate rule */
}

/* --- Section Specific Overrides --- */
#section_artists .flexbox {
    flex-direction: column;
}

#section_artists h1,
#section_artists h2,
#section_artists h3,
#section_artists h4 {
    text-align: center;
}

#section_contact h1,
#section_contact h2,
#section_contact p {
    text-align: center;
}

#section_contact .container_0 {
    min-height: 800px;
    height: 100vh;
}

/* --- Media Queries --- */

/* Tablet Landscape and Desktop Small */
@media only screen and (min-width: 801px) and (max-width: 1120px) {
    li a,
    li a:link,
    li a:visited {
        padding: 4px;
    }

    .page_container {
        width: calc(100% - 89px);
    }

    .page_container_2 {
        justify-content: center;
        width: 100%;
    }

    .content-text,
    .content-image {
        flex-shrink: 1;
    }

    .content-text.content-big {
        min-width: 350px;
    }

    .content-text.content-small {
        min-width: 250px;
    }

    .content-image.content-tall {
        min-width: 300px;
    }

    .content-image.content-wide {
        min-width: 350px;
    }

    #section_support .content-image {
        display: none;
    }

    #section_about {
        background-position: top;
    }

    #menu {
        position: relative;
        z-index: 101;
        list-style: none;
        padding: 0;
        text-align: right;
    }

    #always-visible-menu li {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Mobile and Tablet Portrait */
@media only screen and (max-width: 800px) {
    p {
        font-size: 14px;
    }

    h1,
    h2 {
        display: block;
        font-size: 26px;
        margin-bottom: 5px;
        text-align: center;
    }

    h2 {
        font-size: 18px;
    }

    #website_heading {
        padding-left: 0;
    }

    #website_heading #row1 {
        justify-content: center;
    }

    #website_heading #row1 h1 {
        font-size: 32px;
    }

    .page_container {
        margin: 0 auto;
        padding: 20px 1em 0; /* Consolidated padding and margin */
        max-width: 100%;
        width: 100%; /* Consolidated */
    }

    .page_container_2 {
        justify-content: center;
    }

    #menu {
        position: relative;
        z-index: 101;
        list-style: none;
        padding: 0;
        text-align: right;
    }

    #fp-nav.fp-right {
        right: 20px;
    }

    li a,
    li a:link,
    li a:visited {
        padding: 2px;
        text-decoration: none;
    }

    .fp-right {
        display: none;
    }

    .flexbox {
        width: 100%;
        display: block;
    }

    .content-text {
        max-width: 100%;
        width: 100%;
        padding-right: 0;
    }

    #section_support .content-text {
        max-width: 499px;
        padding-right: 0;
        margin: 0 auto;
    }

    .content-image {
        justify-self: center;
    }

    .content-image.content-left,
    .content-image.content-right {
        float: none;
        padding: 0;
    }

    .content-image.content-left figure {
        float: none;
        padding: 0;
    }

    #mc_embed_signup {
        width: 100% !important;
    }

    .instrument h2 {
        text-align: left;
        font-size: 1em;
    }
}

/* Mobile Small */
@media only screen and (max-width: 560px) {
    h1 {
        font-size: 20px;
    }

    #website_heading #row1 {
        flex-direction: column;
        padding-bottom: 10px;
    }

    #website_heading #row1 h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 14px;
    }
}

/* Mobile Extra Small */
@media only screen and (max-width: 420px) {
    #left_placeholder {
        display: none;
    }

    h1 {
        font-size: 20px;
    }

    #website_heading h1 {
        font-size: 24px;
    }

    #menu-bar li::after {
        display: none;
    }
}

/* Specific Height Media Queries */
@media screen and (max-height: 667px) and (min-width: 801px) {
    #section_about .page_container_2 {
        display: flex;
    }

    #section_support h1 {
        font-size: 26px;
    }

    #section_support p {
        margin-top: 4px;
        margin-bottom: 4px;
    }
}

@media screen and (max-height: 667px) and (max-width: 800px) {
    #section_about .page_container_2 {
        display: flex;
    }

    #section_support h1 {
        font-size: 26px;
    }

    #section_support p {
        margin-top: 4px;
        margin-bottom: 4px;
    }
}

@media only screen and (max-height: 1013px) {
    #artist-table {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .artist {
        width: auto;
    }
}
