/* Sense of Ten Page Styles */

html {
    background-color: #1a1a1a;
}

body.page-template-sense-of-ten {
    margin: 0;
    background-color: #1a1a1a !important;
    font-family: "Source sans 3", sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

.sense-of-ten-container {
    background-color: #1a1a1a;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100%;
}

/* Hide the native scrollbar (WebKit) */
body.page-template-sense-of-ten::-webkit-scrollbar {
    width: 0;
    height: 0;
}

canvas#card-canvas {
    position: fixed !important;
    width: 100% !important;
    height: 80% !important;
    /* center the fixed canvas horizontally and vertically */
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    outline: none;
    cursor: grab;
    z-index: 1;
}



/* Desktop: Canvas takes up 60% width, centered */
@media screen and (min-width: 769px) and (orientation: landscape) {
    canvas#card-canvas {
        width: 60% !important;
        height: auto !important;
        /* center the fixed canvas horizontally and vertically */
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}



#scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: #CC98FF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 8px; */
    opacity: 1;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

#scroll-indicator.hidden {
    opacity: 0;
}

#scroll-indicator span {
    font-family: 'BacteriaHandwrite', cursive;
    font-size: 2rem;
    letter-spacing: 0.5px;
    line-height: 1rem;
}

#scroll-indicator #scroll-arrow {
    font-size: 3rem;
    color: #CC98FF;
    animation: bob 2s ease-in-out infinite;
}

.right-text-section {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 100;
    color: #CC98FF;
    font-size: 3rem;
    line-height: 0.3;
    text-align: left;
    font-family: 'BacteriaHandwrite', cursive;
}

.right-text-section a {
    color: #CC98FF;
}

/* Popup Styles */
#introduction,
#artist-reflection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

#introduction.hidden,
#artist-reflection.hidden {
    display: none;
}

#introduction .popup-content,
#artist-reflection .popup-content {
    background-color: #2a2a2a;
    color: white;
    border-radius: 10px;
    width: 80%;
    text-align: left;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: scroll;
    scrollbar-color: var(--purple) #2a2a2a;
    scrollbar-width: thin;
    position: relative;
    font: 16px 'Helvetica', sans-serif;
    font-weight: 400;
    border: 1px solid var(--purple);
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #CC98FF;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#popup-close:hover {
    color: white;
}

#popup-title {
    font-family: 'BacteriaHandwrite', cursive;
    font-size: 2rem;
    font-weight: 400;
    -webkit-text-stroke: 0.3px #CC98FF;
    color: #CC98FF;
    margin-bottom: 20px;
}

#popup-body {
    font-family: 'Source sans 3', sans-serif;
    line-height: 1.6;
}

.credit-nac {
    margin-top: 100px;
}


@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}



/* Landscape orientation (horizontal) - width is greater than height */
@media screen and (orientation: landscape) {}

/* Portrait orientation (vertical) - height is greater than width */
@media screen and (orientation: portrait) {
    .right-text-section {
        position: fixed;
        top: 8%;
        transform: none;
        z-index: 100;
        color: #CC98FF;
        font-size: 2.5rem;
        line-height: 0.6;
        text-align: left;
        font-family: 'BacteriaHandwrite', cursive;
        z-index: 1;

    }

    .right-text-section p {

        margin-block-start: 0.6rem;
        margin-block-end: 0.6rem;
    }

}

/* Alternative: Using aspect-ratio media queries */
/* Landscape - aspect ratio greater than 1:1 (wider than tall) */
@media screen and (min-aspect-ratio: 1/1) {
    /* Your landscape styles here */
}

/* Portrait - aspect ratio less than 1:1 (taller than wide) */
@media screen and (max-aspect-ratio: 1/1) {
    /* Your portrait styles here */
}

/* More specific aspect ratios */
/* Very wide screens (like ultrawide monitors) */
@media screen and (min-aspect-ratio: 16/9) {
    /* Styles for very wide screens */
}

/* Square-ish screens */
@media screen and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 5/4) {
    /* Styles for nearly square screens */
}