* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #D2B48C;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    transition: background 3s cubic-bezier(0.4, 0.0, 0.2, 1);
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: fixed; /* Prevent mobile browser UI changes */
    touch-action: pan-x; /* Allow horizontal panning only */
    overscroll-behavior: none; /* Prevent pull-to-refresh and bounce */
}

/* Header alignment styles */
.navbar {
    align-items: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden; /* Prevent flicker */
    will-change: transform; /* Optimize for animations */
}

.navbar .container-fluid {
    align-items: center !important;
}

.navbar .row {
    align-items: center !important;
    width: 100%;
}

.header-desktop,
.nav-container,
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 1em;

}

.card-container {
    width: 100% !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.cards-scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    padding: 20px;
}

.location-card {
    position: absolute;
    width: 60%;
    height: 70%;
    cursor: grab;
    transform-style: preserve-3d;
    opacity: 1;
    visibility: visible;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
    /* Remove transitions to let GSAP handle animations */
}

/* Center Card Position */
.location-card[data-location="center"] {
      /* left: -45%;
  top: -0%;
    margin-left: -31%;  Half of card width (400px/2) */
    z-index: 10;
    transform: rotate(0deg) scale(1);
}

/* Right Queue Positions */
.location-card[data-location="right-1"] {
 /*    left: -45%;
    top: 14%;
     transform: rotate(15deg) translateZ(0);
  z-index: 20;
*/
  
}

.location-card[data-location="right-2"] {
 /*    left: -45%;
    top: 14%;
     transform: rotate(15deg) translateZ(0);
   display: none;
    z-index: 20;
*/ 


}

.location-card[data-location="right-3"] {
 /*    left: -45%;
    top: 14%;
  z-index: 20;

    transform: rotate(15deg) translateZ(0);
display: none;
*/
  

}

.location-card[data-location="right-4"] {




}

/* Left Queue Positions */
.location-card[data-location="left-1"] {
 /*    left: -45%;

    z-index: 9;
    top: 14%; transform: rotate(-15deg) translateZ(0);*/


}

.location-card[data-location="left-2"] {
 /*    left: -45%;
    top: 14%;
     transform: rotate(-15deg) translateZ(0);


display: none;

    z-index: 20;

*/

}

.location-card[data-location="left-3"] {

}



/* Hidden Cards */
.location-card[data-location="hide"] {
display: none;
}



.location-card:hover {
/*
    transform:  scale(1.2);

    z-index: 10 !important;

*/
}

.location-card[data-location="poneke"]:hover {
    transform: translateX(-50%) rotate(var(--rotation)) translateZ(20px) scale(1.05);
}

.location-card:active {
    cursor: grabbing;
}

.location-card.dragging {
    opacity: 0.9;
    transform: rotate(calc(var(--rotation) + 10deg)) scale(1.1);
    z-index: 1000;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.location-card[data-location="poneke"].dragging {
    transform: translateX(-50%) rotate(calc(var(--rotation) + 10deg)) scale(1.1);
}

.card-border {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.12);
    border: 4px solid #f8f8f8;
}

.card-content {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-illustration {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.card-title {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    text-align: center;
    border-top: 2px solid #eee;
}

.card-title h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #333;
    margin: 0;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-title h2 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-title .card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.featured-title {
    background: transparent;
    border: none;
}

/* Canterbury Card - Brown/Tan Theme */
.location-card[data-location="canterbury"] .card-illustration {
    background: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
}

.building-skyline {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    height: 60%;
}

.building {
    position: absolute;
    background: #8B4513;
    border-radius: 2px 2px 0 0;
}

.building-1 {
    left: 20%;
    width: 15%;
    height: 70%;
    bottom: 0;
}

.building-2 {
    left: 40%;
    width: 20%;
    height: 85%;
    bottom: 0;
}

.building-3 {
    left: 65%;
    width: 12%;
    height: 60%;
    bottom: 0;
}

.clouds {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    height: 40%;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    opacity: 0.7;
}

.cloud-1 {
    left: 10%;
    top: 20%;
    width: 30px;
    height: 15px;
}

.cloud-2 {
    right: 15%;
    top: 30%;
    width: 25px;
    height: 12px;
}

/* Poneke Card - Coral/Red Theme */
.location-card[data-location="poneke"] .card-illustration {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    position: relative;
}

.enjoy-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fredoka One', cursive;
    color: white;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

.street-scene {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 60%;
}

.character {
    position: absolute;
    font-size: 2rem;
    bottom: 20%;
}

.character-1 {
    left: 25%;
    animation: bounce 2s infinite;
}

.character-2 {
    right: 25%;
    animation: bounce 2s infinite 0.5s;
}

.building-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
}

.street-building {
    position: absolute;
    background: #CC5555;
    height: 100%;
    width: 15%;
    border-radius: 2px 2px 0 0;
}

.street-building:first-child {
    left: 10%;
}

.street-building:last-child {
    right: 15%;
}

/* Ocean Card - Blue Theme */
.location-card[data-location="ocean"] .card-illustration {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 100%);
}

/* Forest Card - Green Theme */
.location-card[data-location="forest"] .card-illustration {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

.forest-scene {
 
    width: 100%;
    height: 100%;
}

.trees {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 60%;
}

.tree {
    position: absolute;
    font-size: 2.5rem;
    bottom: 0;
    animation: sway 4s infinite ease-in-out;
}

.tree-1 {
    left: 15%;
}

.tree-2 {
    left: 45%;
    animation-delay: 0.5s;
}

.tree-3 {
    right: 20%;
    animation-delay: 1s;
}

.forest-animals {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    height: 40%;
}

.deer {
    position: absolute;
    left: 30%;
    top: 60%;
    font-size: 1.5rem;
}

.owl {
    position: absolute;
    right: 25%;
    top: 20%;
    font-size: 1.3rem;
    animation: hoot 5s infinite;
}

/* Mountain Card - Purple Theme */
.location-card[data-location="mountain"] .card-illustration {
    background: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%);
}

.mountain-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.peaks {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
}

.peak {
    position: absolute;
    bottom: 0;
    background: #4B0082;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.peak-1 {
    left: 10%;
    width: 25%;
    height: 80%;
}

.peak-2 {
    left: 35%;
    width: 30%;
    height: 100%;
}

.peak-3 {
    right: 15%;
    width: 20%;
    height: 60%;
}

.mountain-elements {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    height: 50%;
}

.snow {
    position: absolute;
    left: 50%;
    top: 20%;
    font-size: 1.5rem;
    animation: snowfall 3s infinite;
}

.eagle {
    position: absolute;
    right: 20%;
    top: 30%;
    font-size: 1.8rem;
    animation: soar 6s infinite;
}

.ocean-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
}

.wave {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50% 50% 0 0;
    opacity: 0.8;
}

.wave-1 {
    left: 10%;
    bottom: 10%;
    width: 30%;
    height: 20px;
    animation: wave 3s infinite;
}

.wave-2 {
    left: 40%;
    bottom: 5%;
    width: 25%;
    height: 15px;
    animation: wave 3s infinite 0.5s;
}

.wave-3 {
    right: 15%;
    bottom: 15%;
    width: 20%;
    height: 18px;
    animation: wave 3s infinite 1s;
}

.sea-creatures {
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    height: 40%;
}

.fish {
    position: absolute;
    left: 30%;
    top: 40%;
    font-size: 1.5rem;
    animation: swim 4s infinite;
}

.octopus {
    position: absolute;
    right: 25%;
    top: 60%;
    font-size: 1.8rem;
    animation: float 3s infinite;
}



/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-5px) scaleY(1.2);
    }
}

@keyframes swim {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

@keyframes hoot {
    0%, 90%, 100% {
        transform: scale(1);
    }
    95% {
        transform: scale(1.1);
    }
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    100% {
        transform: translateY(10px) rotate(360deg);
    }
}

@keyframes soar {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(5deg);
    }
    75% {
        transform: translateX(-10px) rotate(-5deg);
    }
}



/* Background color classes for body */
.bg-ocean {
        background-color:#00a2e2;
        transition: background-color 0.4s ease-in-out;
  
}

.bg-mountain {
        background-color:#8A2BE2;
        transition: background-color 0.4s ease-in-out;
  
}

.bg-forest {
        background-color:#e33c55;
        transition: background-color 0.4s ease-in-out;
}

.bg-city {
        background-color:#ef5269;
        transition: background-color 0.4s ease-in-out;
    }

.bg-desert {

        background-color: #32CD32;
        transition: background-color 0.4s ease-in-out;
}



.interaction-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Responsive design 
@media (max-width: 1400px) {
    .cards-scene {
        padding: 15px;
    }

}



@media (max-width: 1200px) {
    .cards-scene {
        padding: 10px;
    }
    
    .location-card {
        width: 300px;
        height: 200px;
    }
    
    .card-title h2 {
        font-size: 1.6rem;
    }
}
*/

@media (max-width: 900px) {
    .location-card {
       /* width: 260px;*/
        height: 180px;
    }
    
    .card-title h2 {
        font-size: 1.4rem;
    }
    
    /* Adjust positioning for smaller screens */
    .location-card[data-location="left-1"] {
        left: -60px;
    }
    
    .location-card[data-location="right-1"] {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .location-card {
        width: 240px;
        height: 160px;
    }
    
    .card-title h2 {
        font-size: 1.3rem;
    }
    
    .location-card[data-location="left-1"] {
        left: -50px;
    }
    
    .location-card[data-location="right-1"] {
        right: -50px;
    }
    
    .location-card[data-location="left-2"] {
        left: -70px;
    }
    
    .location-card[data-location="right-2"] {
      /*  right: -70px;*/
    }
}

@media (max-width: 600px) {
    .location-card {
        width: 200px;
        height: 140px;
    }
    
    .card-title h2 {
        font-size: 1.1rem;
    }
    
    .location-card[data-location="center"] {
        margin-left: -100px; /* Half of new width */
    }
}

@media (max-width: 480px) {
    .cards-scene {
        padding: 5px;
    }
    
    .location-card {
        width: 180px;
        height: 120px;
    }
    
    .card-title h2 {
        font-size: 1rem;
    }
    
    .location-card[data-location="center"] {
        margin-left: -90px; /* Half of new width */
    }
    
    /* Hide more distant cards on very small screens */
    .location-card[data-location="left-3"],
    .location-card[data-location="left-4"],
    .location-card[data-location="right-3"],
    .location-card[data-location="right-4"] {
        display: none;
    }
}

@media (max-height: 500px) {
    .location-card {
        height: 72vh;
    }
    
    .card-title h2 {
        font-size: 0.9rem;
    }
    
    .card-title {
        padding: 8px 10px;
    }
}

/* Ocean Theme - Card 1 */
.ocean-theme .card-illustration {
    background: linear-gradient(135deg, #4682B4 0%, #87CEEB 100%);
}

.ocean-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.ocean-scene .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
}

.ocean-scene .wave {
    position: absolute;
    font-size: 1.5rem;
    animation: wave 3s infinite;
}

.ocean-scene .wave-1 {
    left: 10%;
    bottom: 30%;
    animation-delay: 0s;
}

.ocean-scene .wave-2 {
    left: 40%;
    bottom: 20%;
    animation-delay: 1s;
}

.ocean-scene .wave-3 {
    right: 15%;
    bottom: 35%;
    animation-delay: 2s;
}

.ocean-scene .sea-creatures {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    height: 60%;
}

.ocean-scene .fish {
    position: absolute;
    left: 20%;
    top: 40%;
    font-size: 1.3rem;
    animation: swim 4s infinite;
}

.ocean-scene .octopus {
    position: absolute;
    right: 25%;
    top: 60%;
    font-size: 1.5rem;
    animation: float 3s infinite;
}

.ocean-scene .whale {
    position: absolute;
    left: 50%;
    top: 70%;
    font-size: 1.8rem;
    animation: swim 6s infinite;
}

/* Mountain Theme - Card 2 */
.mountain-theme .card-illustration {
    background: linear-gradient(135deg, #9370DB 0%, #8A2BE2 100%);
}

.mountain-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.mountain-scene .peaks {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
}

.mountain-scene .peak {
    position: absolute;
    font-size: 2rem;
    bottom: 0;
}

.mountain-scene .peak-1 {
    left: 15%;
    bottom: 20%;
}

.mountain-scene .peak-2 {
    left: 45%;
    bottom: 10%;
}

.mountain-scene .peak-3 {
    right: 20%;
    bottom: 25%;
}

.mountain-scene .mountain-elements {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    height: 60%;
}

.mountain-scene .snow {
    position: absolute;
    left: 30%;
    top: 20%;
    font-size: 1.2rem;
    animation: snowfall 3s infinite;
}

.mountain-scene .eagle {
    position: absolute;
    right: 20%;
    top: 30%;
    font-size: 1.5rem;
    animation: soar 6s infinite;
}

.mountain-scene .cloud {
    position: absolute;
    left: 60%;
    top: 10%;
    font-size: 1.3rem;
    animation: float 4s infinite;
}

/* Forest Theme - Card 3 (existing) */
.forest-theme .card-illustration {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

.forest-scene .butterfly {
    position: absolute;
    left: 60%;
    top: 30%;
    font-size: 1.2rem;
    animation: flutter 2s infinite;
}

/* City Theme - Card 4 */
.city-theme .card-illustration {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.city-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.city-scene .buildings {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
}

.city-scene .building {
    position: absolute;
    font-size: 1.8rem;
    bottom: 0;
}

.city-scene .building-1 {
    left: 15%;
    bottom: 20%;
}

.city-scene .building-2 {
    left: 45%;
    bottom: 10%;
}

.city-scene .building-3 {
    right: 20%;
    bottom: 15%;
}

.city-scene .city-elements {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    height: 30%;
}

.city-scene .car {
    position: absolute;
    left: 25%;
    bottom: 5%;
    font-size: 1.3rem;
    animation: drive 4s infinite;
}

.city-scene .person {
    position: absolute;
    left: 60%;
    bottom: 5%;
    font-size: 1.2rem;
    animation: walk 2s infinite;
}

.city-scene .streetlight {
    position: absolute;
    right: 30%;
    bottom: 0%;
    font-size: 1.1rem;
    animation: blink 3s infinite;
}

/* Desert Theme - Card 5 */
.desert-theme .card-illustration {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.desert-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.desert-scene .dunes {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
}

.desert-scene .cactus {
    position: absolute;
    font-size: 2rem;
    bottom: 10%;
}

.desert-scene .cactus-1 {
    left: 20%;
}

.desert-scene .cactus-2 {
    right: 25%;
}

.desert-scene .sun {
    position: absolute;
    right: 15%;
    top: 15%;
    font-size: 2.5rem;
    animation: glow 4s infinite;
}

.desert-scene .desert-animals {
    position: absolute;
    bottom: 5%;
    left: 0;
    right: 0;
    height: 30%;
}

.desert-scene .camel {
    position: absolute;
    left: 50%;
    bottom: 5%;
    font-size: 1.5rem;
    animation: walk 5s infinite;
}

.desert-scene .lizard {
    position: absolute;
    left: 70%;
    bottom: 15%;
    font-size: 1rem;
    animation: scurry 3s infinite;
}

.desert-scene .snake {
    position: absolute;
    right: 40%;
    bottom: 10%;
    font-size: 1.2rem;
    animation: slither 4s infinite;
}

/* New Animations */
@keyframes flutter {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

@keyframes drive {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(15px); }
}

@keyframes walk {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

@keyframes blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

@keyframes glow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes scurry {
    0%, 100% { transform: translateX(0) scaleX(1); }
    50% { transform: translateX(10px) scaleX(-1); }
}

@keyframes slither {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

/* Animation for background transitions */
@keyframes backgroundShift {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.background-changing {
    animation: backgroundShift 0.8s ease;
}


