/* Legend
    TO BE MODIFIED: Sections that can be modified as per the design requirements
    DO NOT TOUCH: Sections that should not be modified for AR functionality
    MODIFY IF NEEDED: Will be mentioned in designs if any modifications are needed
    NEW: Newly added code
    IGNORE: Code that is not relevant to the current project
*/

:root {
    size: 16px;
    color: #ffffff;
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    --primary-color: #104235;
    --accent-color: #FFC935;
    --Text-Body-White: #FFFFFF;
    --Text-Body-Black: #1F1F1F;
}

body {
    margin: 0;
    background: var(--primary-color);
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    color: var(--Text-Body-White);
    margin: 0px;
}

/* TO BE MODIFIED: This is where the hero section creative would go */
#heroSection {
    /* display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center; */
    width: 100%;
    aspect-ratio: 1/1;
    text-align: center;
    background: url(heroSection-mobile-alt.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media screen and (min-width: 768px){
    #heroSection {
        aspect-ratio: 2/1;
        background: url(heroSection-iPad-alt.png);
        /* background-size: contain; */
        background-position: center;
        background-repeat: no-repeat;
    }
}
@media screen and (min-width: 1024px) and (orientation: landscape){
    #heroSection {
        aspect-ratio: 3/1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}
@media screen and (min-width: 1024px) and (orientation: portrait){
    #heroSection {
        aspect-ratio: 2/1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

#logoContainer{
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 24px 0px;
}

#logoContainer img{
    height: 68px; 
    width: auto;
}
@media screen and (min-width: 768px) and (orientation: portrait) {
    #logoContainer{
        display: flex; 
        justify-content: center; 
        align-items: center; 
        padding: 32px 0px;
    }
    #logoContainer img{
        height: 80px; 
        width: auto;
    }
}
@media screen and (min-width: 1024px){
    #logoContainer{
        display: flex; 
        justify-content: center; 
        align-items: center; 
        padding: 32px 0px;
    }
    #logoContainer img{
        height: 88px; 
        width: auto;
    }
}

#contentContainer {
    display: flex;
    padding: 24px 16px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    align-self: stretch;
    border-radius: 24px 24px 0 0;
    background: #000000;
}

.hashTags {
    font-family: 'manofa', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 0px;
}

/* Book Ticket Button in Webpage, not to be confused with Book Ticket but in AR mode */
#bookTicket {
    display: flex;
    min-width: 144px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    border: 1px solid #000000;
    background: #ffffff;
    text-decoration: none;
    color: var(--Text-Body-Black);
    font-weight: 600;
    font-family: 'source sans 3', sans-serif;
}
#bookTicket:active{
    background: #000000;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* TO BE MODIFIED: TEXTURE BACKGROUND */
#bgTexture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
    background: url(texture.jpg);
    /* background-size: cover; */
    background-repeat: repeat;
    mix-blend-mode: overlay;
}


/* All outbound links are styled here */
.link-button {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
}
.link-button:hover,
.link-button:active {
    text-decoration: underline;
}


/* AR SET UP - Essential Tags */

/* TO BE MODIFIED: For regular HTML Tags to appear around the page, the a-scene tag was set to embed */
#ar-scene-container {
    width: 100%;
    height: 66px;
    /* Manually set to fit around button, since we can't create an AR Entry button out of the a-scene tag and canvas is behaving weirdly */
    display: block;
    margin: 0;
}

/* TO BE MODIFIED: Based on Design Styling */
#expCtnr {
    margin: 24px 0px;
}

/* DO NOT TOUCH: Canvas must be set to Transparent */
canvas {
    background: transparent;
    height: 100%;
}

/* DO NOT TOUCH: hide default A-Frame enter-vr button (we use a custom button) */
.a-enter-vr-button {
    display: none !important;
}

/* Styled around the design */
#enter-ar,
#quicklookButton {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--Text-Body-Black);
    border: 1px solid #000000;
    text-align: center;
    font-family: 'manofa', sans-serif;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 1.25rem;
    white-space: nowrap;
    z-index: 10000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}
#enter-ar:hover,
#quicklookButton:hover {
    background: #0C3127;
    color: var(--accent-color);
    border-color: 1px solid var(--accent-color);
}

/* NEW: Prevent selection and mobile tap highlight for AR entry UI */
#enter-ar,
#enter-ar * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* remove tap highlight on mobile */
    touch-action: manipulation; /* prefer immediate click behavior, avoid double-tap zoom */
}

/* MODIFY IF NEEDED: custom AR Exit button: white fill, black text */
#exit-ar,
#book-ticket-ar {
    position: absolute;
    top: 24px;
    background: var(--accent-color);
    color: #000000;
    border: 2px solid #000000;
    border-radius: 6px;
    padding: 12px 12px;
    font-weight: 600;
    pointer-events: auto;
    text-decoration: none;
}

#exit-ar:active,
#book-ticket-ar:active {
    background: #000000;
    color: var(--accent-color);
    border-color: 2px solid var(--accent-color);
}
/* NEW Button for AR Mode: Reset Position */
#resetPos{
    position: absolute;
    top: 28px;
    left: 108px;
    transform: translateX(-50%);
}

/* DO NOT TOUCH */
#overlay {
    position: absolute;
    padding: 0;
    pointer-events: none;
    /* allow AR overlay clicks to pass through unless elements set pointer-events */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10001;
}

#manipulator-instructions{
    position: absolute; 
    bottom: 128px; 
    display: flex; 
    flex-direction: row; 
    justify-content: center;
    width: 100%; 
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* keeps it non-intrusive */
}
#manipulator-instructions.visible {
  opacity: 1;
}
#scale-rotate-instructions{
    display: flex; 
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 16px; 
    background: rgba(0, 0, 0, 0.6); 
    border-radius: 6px;
}

#promoText {
    position: absolute;
    bottom: 0px;
    padding: 12px 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
}

/* MODIFY IF NEEDED: DOM overlay message shown while scanning for surfaces */
.ar-overlay-instruction {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    z-index: 10002;
    font-weight: bold;
    width: 60%;
}

/* MODIFY IF NEEDED */
.ar-overlay-lottie {
    width: auto;
    height: 150px;
    margin: 0 auto;
}

/* AR SET UP END */

/* Google Symbols Import */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}
