@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#enter-btn {
    background: none;
    border: none;
    color: #A1CBCC;
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.25em;
    cursor: pointer;
    margin-top: 24px;
    padding: 8px 20px;
    animation: flash 1.2s ease-in-out infinite;
}

@keyframes slide-up {
    from {height : 100%;
    width:100%;}
    to {height : 20%;
    width:100%;}
}

@keyframes resize-sc-img {
    from {width: 30%;}
    to {width: 10%;}
}


@media screen and (min-width: 800px){
    body {
        font-family: 'Arial Black', 'Arial Bold', "Gadget", "sans-serif";
        background-color: white;
        margin:0px;
        height:100vh;
        width:100vw%;
    }

  #splash-screen{
        will-change:height;
        position:static;
        width:  100%;
        height: 100%;
        background-color: white;
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-grow: 1fr 1fr;
        transition: height 500ms;
        animation-fill-mode: forward;
    }

    #splash-screen > h1 {
        font-size:8vw;
        font-weight: bold;
        display: inline;
        margin:0px;
    }

    #splash-screen > p {
        font-size:3vw;
        margin:0px;
        transition:all 1000ms;
    }
    #music-player {
        display: none;
        height:100%;
        width:100%;
        flex-grow:2;
        align-items:center;
        justify-content:center;
    }
    #music-player > iframe {
        height:88px;
    }
    #drop-down {
        display:none;
        height:100%;
        width:100%;
        flex-grow:2;
        align-items:center;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr;
    }
    #drop-down-icon-container{
        width:100%;
        grid-column-start:3;
        grid-column-end:4
        display:grid;
        align-items:center;
        justify-content:center;
        height:50px;
        width:50px;
        justify-self:first;
    }
    #cart {
        display: none;
        cursor: pointer;
        font-family: 'Arial Black', 'Arial Bold', "Gadget", "sans-serif";
        font-weight: bold;
        font-size: 0.85em;
        white-space: nowrap;
        background-color: #A1CBCC;
        color: white;
        padding: 6px 12px;
        border-radius: 0;
    }
    #cart-counter {
        border-left: 1px solid white;
        padding-left: 8px;
        margin-left: 6px;
    }
    #cart:hover {
        opacity: 0.6;
    }
    #splash-screen > img {
        width: 30%;
    }

    #content-area {
        display:none;
        margin:auto;
        align-items:center;
        justify-content:center;
        width:100%;
    }
    .slideshow-arrow {
        width:3%;
    }
    .slideshow-arrow:hover {
        cursor:pointer;
        color:red;
    }
    #main-content {
        width: 523px;
        height:400px;
        overflow:hidden;
        display:flex;
    }

    #navigation {
        display:none;
        position:sticky;
        background-color: white;
        bottom:0px;
        flex-direction: column;
        align-items:center;
        justify-content:center;
        gap: 0;
        height:20%;
        width:100%;
    }

    #nav-items {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    #nav-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding-bottom: 10px;
    }

    #nav-instagram {
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    #nav-instagram img {
        width: 22px;
        height: 22px;
        opacity: 0.75;
        transition: opacity 200ms;
    }

    #nav-instagram:hover img {
        opacity: 1;
    }

    #nav-policies {
        font-size: 0.75em;
        color: black;
        text-decoration: none;
        cursor: pointer;
        opacity: 0.75;
        transition: opacity 200ms;
    }

    #nav-policies:hover {
        opacity: 1;
    }

    .pagenav {
        display:flex;
        flex-direction:column;
        align-items:center;
        padding:10px;
    }

    .pagenav:hover {
        cursor:pointer;
    }

    .pagenav h2 {
        transition: color 200ms;
    }

    .pagenav:has(img) h2 {
        color: #A1CBCC;
    }

    #product-slideshow {
        display:flex;
        width:910px;
        height:400px;
        margin:auto;
        align-items:center;
        justify-content:center;
    }

    #product-slideshow > #main-content {
        margin : 10px;
        padding: 10px.
    }

    #product-slideshow > #main-content:hover {
        cursor : pointer;
        background-color : rgba(0,0,0,0.05);
        border-radius : 20px;
    }
    .product {
        flex-direction:column;
        width:523px;
        height:100%;
        align-items:center;
        justify-content:center;
        display:flex;
        position:relative;
        flex-shrink:0;
        flex-shrink:0;
    }

    .product:hover {
        background-color: rgba(161, 203, 204, 0.3);
        cursor: pointer;
    }

    .product > h1 {
        text-align : center;
        margin: 0;
    }
    .product-price {
        margin: 0;
        text-align: center;
        font-size: 1em;
    }
    .product-img{
        width:250px;
    }

    #product-display {
        display: block;
    }

}

@media screen and (max-width: 799px){
    #enter-btn {
        color: #A1CBCC;
    }
    * {
        font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    }
    input, textarea, select, button {
        font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
        -webkit-appearance: none;
    }
    body {
        font-family: 'Arial Black', 'Arial Bold', "Gadget", "sans-serif";
        background-color: white;
        margin:0px;
        height:100vh;
        width:100vw;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }

    #splash-screen{
        position: relative;
        width:100%;
        height:100%;
        background-color: white;
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: height 500ms;
        flex-wrap: nowrap;
    }

    #splash-screen > h1 {
        font-family: 'Arial Black', 'Arial Bold', "Gadget", "sans-serif";
        font-size:12vw;
        font-weight: bold;
        margin:0px;
        text-align: center;
        padding: 0 10px;
        display: none;
    }

    #splash-screen > p {
        font-family: 'Arial Black', 'Arial Bold', "Gadget", "sans-serif";
        font-size:5vw;
        margin:0px;
        text-align: center;
        padding: 0 15px;
        display: none;
    }

    #splash-screen > img {
        width: 50%;
        max-width: 200px;
        max-height: 85%;
        flex-shrink: 0;
        display: block;
        object-fit: contain;
        margin: 0 auto;
    }

    #music-player {
        display: none;
    }

    #music-player > iframe {
        display: none;
    }

    #drop-down {
        display: none;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        padding: 5px 10px;
        margin: 0;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    #drop-down-icon-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: fit-content;
    }

    #drop-down svg, #drop-down img {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        flex-shrink: 0;
    }

    #cart {
        display: none;
        cursor: pointer;
        font-family: 'Arial Black', 'Arial Bold', "Gadget", "sans-serif";
        font-weight: bold;
        font-size: 0.8em;
        white-space: nowrap;
        background-color: #A1CBCC;
        color: white;
        padding: 5px 10px;
        border-radius: 0;
    }

    #content-area {
        display: none;
        width: 100%;
        padding: 0;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
    }

    #main-content {
        width: 100%;
        height: auto;
        min-height: 250px;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-direction: row;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: center;
    }

    #main-content::-webkit-scrollbar {
        display: none;
    }

    #product-slideshow {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        height: auto;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .slideshow-arrow {
        display: none;
    }

    #main-content .product {
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 10px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        scroll-snap-align: center;
    }

    #main-content .product > h1 {
        font-size: 1.5em;
        text-align: center;
        margin: 0;
    }

    #main-content .product-price {
        margin: 0;
    }

    .product-img{
        width:80%;
        max-width: 250px;
    }

    #navigation {
        display:none;
        position:sticky;
        background-color: white;
        bottom:0px;
        height: auto;
        flex-direction: column;
        align-items: center;
        padding: 10px 10px 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: visible;
        gap: 0;
        justify-content: center;
    }

    #nav-items {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        gap: 15px;
        justify-content: center;
        scrollbar-width: none;
        width: 100%;
        padding: 10px 0 6px;
    }

    #nav-items::-webkit-scrollbar {
        display: none;
    }

    #nav-footer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 4px 0 8px;
        width: 100%;
    }

    #nav-instagram {
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    #nav-instagram img {
        width: 20px;
        height: 20px;
    }

    #nav-policies {
        font-size: 0.75em;
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .pagenav {
        padding: 10px 18px;
        font-size: 0.75em;
        flex-shrink: 0;
        min-width: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .pagenav h2 {
        margin: 5px 0;
        font-size: 1.2em;
        white-space: nowrap;
        text-align: center;
        font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
        transition: color 200ms;
    }

    .pagenav:has(img) h2 {
        color: #A1CBCC;
    }

    .pagenav img {
        width: 65px !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px){
    #splash-screen > h1 {
        display: none;
    }

    #splash-screen > p {
        display: none;
    }

    #splash-screen > img {
        width: 40%;
        flex-shrink: 0;
    }

    #music-player {
        display: none;
    }

    #music-player > iframe {
        display: none;
    }

    #drop-down {
        padding: 5px 2px;
    }

    #drop-down-icon-container {
        width: fit-content;
    }

    #drop-down svg, #drop-down img {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        flex-shrink: 0;
    }

    .product > h1 {
        font-size: 1.2em;
    }

    .product-img{
        width:90%;
    }

    .pagenav {
        font-size: 0.8em;
    }
}

/* Loading bar */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #A1CBCC;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: width 0.4s ease;
}
#loading-bar.active {
    opacity: 1;
}

/* Error state */
#error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
}
#error-state p {
    margin-bottom: 20px;
    font-size: 1em;
}
#error-state button {
    background: #A1CBCC;
    color: white;
    border: none;
    padding: 10px 24px;
    cursor: pointer;
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    font-size: 0.9em;
}

/* Product breadcrumb */
#product-breadcrumb {
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    font-size: 0.8em;
    color: #888;
    margin-bottom: 8px;
    padding: 0;
    text-align: center;
    width: 100%;
}
#breadcrumb-shop {
    cursor: pointer;
    text-decoration: underline;
}
#breadcrumb-shop:hover {
    color: #A1CBCC;
}

/* Stock status */
#stock-status {
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    font-size: 0.8em;
    margin: 6px 0;
}
.in-stock { color: #5a9e6f; }
.out-of-stock { color: #c0392b; }