@font-face {
    font-family: Sarah;
    src: url(media/fonts/Sarah-Regular-New.otf);
}

@media (min-width: 769px) {

h1 {
font-family: Sarah;
text-align: center;
}

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    p {
        font-family: Sarah;
    }

    #menu h1 {
        font-family: Sarah;
        font-size: 2vw;
        font-weight: 100;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .main_div {
        flex: 1;
    }

    #footer_div {
        background-color: none;
        text-align: center;
        position: static;
        width: 100%;
    }

    #menu a {
        transform: scale(1);
        transition: transform 0.1s ease-in;
    }

    #menu a:hover {
        transform: scale(1.2);
        transition: transform 0.1s ease-out;
    }

    #astronaut_gif {
        width: 110vw;
    }

    #astronaut_gif_div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    #logo {
        width: 4vw;
        display: inline-block;
        margin-left: 1vw;
        transform: scale(1);
        transition: transform .1s ease-in-out;
    }

    #logo:hover {
        transform: scale(1.2);
        transition: transform .1s ease-in-out;
    }

    #footer_boat {
        width: 10vw;
        display: inline-block;
    }

    #header {
        display: flex;
        width: 100%;
    }

    #header_left,
    #header_right,
    #header_center {
        width: 33%;
        height: 5vw;
        display: flex;
        align-items: center;
    }

    #header_center {
        text-align: center;
        /*background-color: red;*/
        justify-content: center;
    }

    #header_right {
        text-align: right;
        /*background-color: aqua;*/
        justify-content: flex-end;
    }

    #header_left {
        text-align: left;
        /*background-color: blue;*/
        justify-content: flex-start;
    }

    #menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 600px;
        /* Optional: limits menu width for better centering */
    }

    .release {
        display: flex;
        justify-content: center;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }

    .release_left,
    .release_center,
    .release_right {
        height: 33vh;
        align-items: center;
    }

    .release_left {
        width: 33vh;
    }

    .release_center {
        width: 66vh;
        margin-left: 1vw;
    }

    .release_right {
        width: 33vh;
    }

    #release_albumcover {
        height: 33vh;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #spotify_embed iframe {
        width: 100% !important;
        height: 33vh !important;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: none;
        display: block;
    }

    .release h2 {
        font-family: Sarah;
        font-size: 5vw;
        font-weight: 100;
        margin: 0;
    }

    .release p {
        font-family: Sarah;
        font-size: 2vw;
        font-weight: 100;
        margin: 0;
    }

    #bio_text p {
        font-family: Sarah;
        font-size: 1.3vw;
        margin-right: 2vw;
        text-justify: auto !important;
        text-align: justify;
    }

    #contact_text p {
        font-family: Sarah;
        font-size: 1.3vw;
    }

    #bio_left {
        width: 79.2vh;
    }

    #bio_right {
        width: 52.8vh;
    }

    #bio_div {
        display: flex;
        justify-content: center;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }

    #bio_div h1 {
        font-family: Sarah;
        font-size: 2vw;
        line-height: 0;
    }

    #bio_picture {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #store_main {
        width: 132vh;
        margin: 0 auto;
    }

    .store_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2vh;
    }

    .store_product {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 2vh;
        text-align: center;
        cursor: pointer;
        transition: box-shadow 0.2s;
    }

    .store_product:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .popup-image-container img {
        width: 50vw;
    }

    /* NEW: Image container for 1:1 ratio cropping */
    .store_product .image-container {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 1vh;
    }

    .store_product .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .store_popup img {
        width: 25vw !important;
    }

    /* Updated store product titles */
    .store_product h2 {
        font-family: Sarah;
        font-size: 1.5vw;
        margin: 1vh 0 0.5vh 0;
    }

    .store_price {
        font-family: Sarah;
        font-size: 2vw;
        font-weight: bold;
        margin: 1vh 0;
    }

    .store_popup_bg {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .store_popup {
        background: #fff;
        border-radius: 10px;
        padding: 3vh;
        max-width: fit-content;
        text-align: center;
        position: relative;
    }

    /* NEW: Popup image container - also cropped to square */
    .store_popup .popup-image-container {
        width: fit-content;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
        margin: 0 auto 2vh auto;
    }

    .store_popup .popup-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* Fallback for popup images without container */
    .store_popup img:not(.popup-image-container img) {
        max-width: 100%;
        border-radius: 10px;
    }

    .store_popup h2 {
        font-family: Sarah;
        font-size: 2.5vw;
        margin: 1vh 0;
    }

    .store_popup p {
        font-family: Sarah;
        font-size: 1.2vw;
        line-height: 1.4;
        margin: 1vh 0;
        text-align: center;
    }

    #store_description {
        max-width: 25vw;
        text-justify: auto;
    }

    #store_title {
        max-width: 25vw;
    }

    .store_popup_close {
        position: absolute;
        top: 1vh;
        right: 2vh;
        font-size: 2vw;
        cursor: pointer;
    }

    #social_media_icon {
        height: 2vw;
        transform: scale(1);
        transition: all .1s ease-in-out;
    }

    #social_media_icon:hover {
        height: 2vw;
        cursor: pointer;
        transform: scale(1.2);
        transition: all .1s ease-in-out;
    }

    .shopify_button {
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2vh;
    }

    /* NEW: Loading message styling */
    .loading-message {
        font-family: Sarah;
        font-size: 1vw;
        color: #666;
        padding: 1vh;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .store_popup .popup-image-container {
            width: 250px;
        }

        .store_popup h2 {
            font-size: 4vw;
        }

        .store_popup p {
            font-size: 2.5vw;
        }

        .store_product h2 {
            font-size: 3vw;
        }

        .loading-message {
            font-size: 2vw;
        }
    }

    #footer_div {
        margin-top: 3vh;
        z-index: -999999;
    }

    #header_mobile {
        display: none;
    }

}

@media (max-width: 768px) {

    html,
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    p {
        font-family: Sarah;
    }

    #menu h1 {
        font-family: Sarah;
        font-size: 2vw;
        font-weight: 100;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .main_div {
        flex: 1;
    }

    #footer_div {
        background-color: none;
        text-align: center;
        position: static;
        width: 100%;
    }

    #menu a {
        transform: scale(1);
        transition: transform 0.1s ease-in;
    }

    #menu a:hover {
        transform: scale(1.2);
        transition: transform 0.1s ease-out;
    }

    #astronaut_gif {
        width: 110vw;
    }

    #astronaut_gif_div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    #logo {
        width: 4vw;
        display: inline-block;
        margin-left: 1vw;
        transform: scale(1);
        transition: transform .1s ease-in-out;
    }

    #logo:hover {
        transform: scale(1.2);
        transition: transform .1s ease-in-out;
    }

    #footer_boat {
        width: 10vw;
        display: inline-block;
    }

    #header {
        display: none;
        width: 100%;
    }

    #header_left,
    #header_right,
    #header_center {
        width: 33%;
        height: 5vw;
        display: flex;
        align-items: center;
    }

    #header_center {
        text-align: center;
        /*background-color: red;*/
        justify-content: center;
    }

    #header_right {
        text-align: right;
        /*background-color: aqua;*/
        justify-content: flex-end;
    }

    #header_left {
        text-align: left;
        /*background-color: blue;*/
        justify-content: flex-start;
    }

    #menu {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 600px;
        /* Optional: limits menu width for better centering */
    }

    .release {
        display: flex;
        justify-content: center;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }

    .release_left,
    .release_center,
    .release_right {
        height: 33vh;
        align-items: center;
    }

    .release_left {
        width: 33vh;
    }

    .release_center {
        width: 66vh;
        margin-left: 1vw;
    }

    .release_right {
        width: 33vh;
    }

    #release_albumcover {
        height: 33vh;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #spotify_embed iframe {
        width: 100% !important;
        height: 33vh !important;
        border-radius: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: none;
        display: block;
    }

    .release h2 {
        font-family: Sarah;
        font-size: 5vw;
        font-weight: 100;
        margin: 0;
    }

    .release p {
        font-family: Sarah;
        font-size: 2vw;
        font-weight: 100;
        margin: 0;
    }

    #bio_text p {
        font-family: Sarah;
        font-size: 1.3vw;
        margin-right: 2vw;
        text-justify: auto !important;
        text-align: justify;
    }

    #contact_text p {
        font-family: Sarah;
        font-size: 1.3vw;
    }

    #bio_left {
        width: 79.2vh;
    }

    #bio_right {
        width: 52.8vh;
    }

    #bio_div {
        display: flex;
        justify-content: center;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }

    #bio_div h1 {
        font-family: Sarah;
        font-size: 2vw;
        line-height: 0;
    }

    #bio_picture {
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #store_main {
        width: 132vh;
        margin: 0 auto;
    }

    .store_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2vh;
    }

    .store_product {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 2vh;
        text-align: center;
        cursor: pointer;
        transition: box-shadow 0.2s;
    }

    .store_product:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .popup-image-container img {
        width: 50vw;
    }

    /* NEW: Image container for 1:1 ratio cropping */
    .store_product .image-container {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 1vh;
    }

    .store_product .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .store_popup img {
        width: 25vw !important;
    }

    /* Updated store product titles */
    .store_product h2 {
        font-family: Sarah;
        font-size: 1.5vw;
        margin: 1vh 0 0.5vh 0;
    }

    .store_price {
        font-family: Sarah;
        font-size: 2vw;
        font-weight: bold;
        margin: 1vh 0;
    }

    .store_popup_bg {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .store_popup {
        background: #fff;
        border-radius: 10px;
        padding: 3vh;
        max-width: fit-content;
        text-align: center;
        position: relative;
    }

    /* NEW: Popup image container - also cropped to square */
    .store_popup .popup-image-container {
        width: fit-content;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
        margin: 0 auto 2vh auto;
    }

    .store_popup .popup-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* Fallback for popup images without container */
    .store_popup img:not(.popup-image-container img) {
        max-width: 100%;
        border-radius: 10px;
    }

    .store_popup h2 {
        font-family: Sarah;
        font-size: 2.5vw;
        margin: 1vh 0;
    }

    .store_popup p {
        font-family: Sarah;
        font-size: 1.2vw;
        line-height: 1.4;
        margin: 1vh 0;
        text-align: center;
    }

    #store_description {
        max-width: 25vw;
        text-justify: auto;
    }

    #store_title {
        max-width: 25vw;
    }

    .store_popup_close {
        position: absolute;
        top: 1vh;
        right: 2vh;
        font-size: 2vw;
        cursor: pointer;
    }

    #social_media_icon {
        height: 2vw;
        transform: scale(1);
        transition: all .1s ease-in-out;
    }

    #social_media_icon:hover {
        height: 2vw;
        cursor: pointer;
        transform: scale(1.2);
        transition: all .1s ease-in-out;
    }

    .shopify_button {
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
        margin-top: 2vh;
    }

    /* NEW: Loading message styling */
    .loading-message {
        font-family: Sarah;
        font-size: 1vw;
        color: #666;
        padding: 1vh;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .store_popup .popup-image-container {
            width: 250px;
        }

        .store_popup h2 {
            font-size: 4vw;
        }

        .store_popup p {
            font-size: 2.5vw;
        }

        .store_product h2 {
            font-size: 3vw;
        }

        .loading-message {
            font-size: 2vw;
        }
    }

    #footer_div {
        margin-top: 3vh;
        z-index: -999999;
    }

    #header_mobile {
        position: relative;
    }

    #menu_mobile {
        width: 0%;
        position: fixed;
        z-index: 10000;
        background-color: white;
        opacity: 80%;
        height: 90vh;
        transition: all 0.3s ease-in-out;
        overflow-x: hidden;
        font-family: Sarah;
    }

    #menu_mobile a:hover, a:focus {
        transform: scale(1.2);
        transition: transform 0.1s ease-out;
    }

    #open_menu_button_mobile {
        position: absolute;
                margin-top: -3vh;
                margin-left: 2vw;
    }

    #astronaut_gif {
        width: 200vw;
    }

    #astronaut_gif_div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        min-height: calc(100vh - header_height);
    }

    #logo_mobile {
        display: flex;
        position: relative;
        width: 15vw;
        transform: scale(1);
        transition: transform .1s ease-in-out;
        margin-left: auto;
        margin-right: auto;
        margin-top: 1vh;
        justify-content: center;
        align-items: center;
    }

}