/* Jurassic Farm Landing Page Styles */
@font-face {
    font-family: 'Sinclair';
    src: url('../jurassic-farm/assets/fonts/FS-Sinclair-Normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sinclair';
    src: url('../jurassic-farm/assets/fonts/FS-Sinclair-Bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Sinclair';
    src: url('../jurassic-farm/assets/fonts/FS-Sinclair-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
body {
    margin: 0;
    background-color: #f5f5f5;
}

/* Mobile Container Wrapper for larger screens */
.jurassic-mobile-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.jurassic-main {
    background-color: white;
    min-height: 100vh;
    position: relative;
    overflow-y: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

/* On larger screens, constrain to tablet-like width */
@media (min-width: 769px) {
    .jurassic-main {
        max-width: 480px;
        min-height: 100vh;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        border-radius: 0;
    }
    
    /* Ensure the mobile wrapper takes full height on desktop */
    .jurassic-mobile-wrapper {
        min-height: 100vh;
    }
}

.jurassic-main-welcome {
    background-color: #FFEDD0;
}

.jurassic-container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
}

/* Title Section */
.jurassic-title-section {
    text-align: center;
    z-index: 10;
    margin-top: 60px;
}

.jurassic-title {
    font-family: 'Sinclair', 'Arial Black', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.jurassic-subtitle {
    font-family: 'Sofia Pro', 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #5a5a5a;
    margin: 10px 0 0 0;
    letter-spacing: 1px;
}

/* Center Text */
.jurassic-center-text {
    text-align: center;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
}

.jurassic-question {
    font-family: 'Sofia Pro', 'Arial', sans-serif;
    font-size: 1.4rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Bottom Section */
.jurassic-bottom-section {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Sun */
.jurassic-sun {
    position: absolute;
    left: 15%;
    bottom:20%;
    width: 200px;
    height: auto;
    z-index: 2;
}

/* Dinosaurs */
.jurassic-dino-one {
    position: absolute;
    bottom: 120px;
    left: 0;
    width: 150px;
    height: auto;
    z-index: 3;
}

.jurassic-dino-two {
    position: absolute;
    bottom: 120px;
    right: -50px;
    width: 65%;
    height: auto;
    z-index: 3;
}

/* Grass */
.jurassic-grass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 4;
    object-fit: cover;
    min-height: 250px;
}

/* Start Button */
.jurassic-start-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.jurassic-btn {
    background-color: #073138;
    color: white;
    font-family: 'Sinclair', 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 15px 40px;
    border: none;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
    display: inline-block;
    transform: skewX(-12deg);
}

.jurassic-btn span {
    display: inline-block;
    transform: skewX(12deg); 
}

    /* Left stripe */
    .jurassic-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -20px;
        width: 14px;
        height: 100%;
        background: #04323A;
      }
  
      /* Right stripe */
      .jurassic-btn::after {
        content: "";
        position: absolute;
        top: 0;
        right: -20px;
        width: 14px;
        height: 100%;
        background: #04323A;
      }

.jurassic-btn:hover {
    background-color: #0a4a54;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: skewX(-12deg) translateY(-2px);
}

.jurassic-btn:hover::before {
    background: #0a4a54;
}

.jurassic-btn:hover::after {
    background: #0a4a54;
}

.jurassic-btn:active {
    transform: skewX(-12deg) translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .jurassic-title-section {
        margin-top: 40px;
    }

    .jurassic-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .jurassic-subtitle {
        font-size: 1.3rem;
    }

    .jurassic-question {
        font-size: 1.1rem;
    }

    .jurassic-grass {
        min-height: 180px;
    }

    .jurassic-btn {
        font-size: 1.2rem;
        padding: 12px 30px;
        letter-spacing: 1px;
    }

    .jurassic-start-container {
        bottom: 60px;
    }
}

/* Instructions Page Styles */
.jurassic-instructions-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    flex-grow: 1;
    padding: 20px 20px;
    text-align: center;
}

.jurassic-instructions-title {
    font-family: 'Sinclair', 'Arial Black', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: 2px;
}

.instruction-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.instruction-text {
    font-family: 'Sinclair', 'Arial Black', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.instruction-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.jurassic-continue-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Mobile Responsive for instructions */
@media (max-width: 768px) {
    .jurassic-instructions-title {
        font-size: 2.2rem;
    }
    
    .instruction-step {
        margin-bottom: 35px;
    }
    
    .instruction-text {
        font-size: 1.1rem;
    }
    
    .instruction-icon {
        width: 60px;
        height: 60px;
    }
    
    .jurassic-continue-btn {
        font-size: 1.2rem;
        padding: 12px 30px;
        letter-spacing: 1px;
    }
    
    .jurassic-continue-container {
        bottom: 60px;
    }
}

/* Collection Page Styles */
.jurassic-collection-container {
    padding: 10px 20px;
    justify-content: space-between;
}

.jurassic-collection-progress {
    text-align: center;
    z-index: 10;
}

.jurassic-collection-title {
    font-family: 'Sinclair', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c3e50;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.jurassic-collection-subtitle {
    font-family: 'Sofia Pro', 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #5a5a5a;
    margin: 0;
    letter-spacing: 1px;
}

.jurassic-collection-dna-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* DNA Strand Styles */
#dna {
    position: relative;
    height: 600px;
    width: 240px;
    perspective: 1000px;
}

#dna div {
    position: relative;
    left: 50%;
    top: 20px;
    width: 160px;
    height: 2px;
    margin-left: -80px;
    margin-top: 20px;
    background-color: #cccccc;
    transform-style: preserve-3d;
    animation: dna-rotation 8s linear infinite;
    transition: background-color 0.3s ease;
}

#dna div.dna-active {
    background-color: #F6DA39;
}

#dna div::before {
    content: "";
    position: absolute;
    left: -10px;
    top: -4px;
    bottom: -4px;
    width: 10px;
    background-color: #cccccc;
    border-radius: 5px;
    animation: dna-rotation 8s linear infinite reverse;
    z-index: 1;
    transition: background-color 0.3s ease;
}

#dna div.dna-active::before {
    background-color: #F6DA39;
}

#dna div::after {
    content: "";
    position: absolute;
    right: -10px;
    top: -4px;
    bottom: -4px;
    width: 10px;
    background-color: #cccccc;
    border-radius: 5px;
    animation: dna-rotation 8s linear infinite reverse;
    z-index: 1;
    transition: background-color 0.3s ease;
}

#dna div.dna-active::after {
    background-color: #F6DA39;
}

/* DNA Animation Delays for 20 segments (2 per stop) */
#dna div:nth-child(1) { animation-delay: -0s; }
#dna div:nth-child(1)::before { animation-delay: -0s; }
#dna div:nth-child(1)::after { animation-delay: -0s; }

#dna div:nth-child(2) { animation-delay: -0.4s; }
#dna div:nth-child(2)::before { animation-delay: -0.4s; }
#dna div:nth-child(2)::after { animation-delay: -0.4s; }

#dna div:nth-child(3) { animation-delay: -0.8s; }
#dna div:nth-child(3)::before { animation-delay: -0.8s; }
#dna div:nth-child(3)::after { animation-delay: -0.8s; }

#dna div:nth-child(4) { animation-delay: -1.2s; }
#dna div:nth-child(4)::before { animation-delay: -1.2s; }
#dna div:nth-child(4)::after { animation-delay: -1.2s; }

#dna div:nth-child(5) { animation-delay: -1.6s; }
#dna div:nth-child(5)::before { animation-delay: -1.6s; }
#dna div:nth-child(5)::after { animation-delay: -1.6s; }

#dna div:nth-child(6) { animation-delay: -2.0s; }
#dna div:nth-child(6)::before { animation-delay: -2.0s; }
#dna div:nth-child(6)::after { animation-delay: -2.0s; }

#dna div:nth-child(7) { animation-delay: -2.4s; }
#dna div:nth-child(7)::before { animation-delay: -2.4s; }
#dna div:nth-child(7)::after { animation-delay: -2.4s; }

#dna div:nth-child(8) { animation-delay: -2.8s; }
#dna div:nth-child(8)::before { animation-delay: -2.8s; }
#dna div:nth-child(8)::after { animation-delay: -2.8s; }

#dna div:nth-child(9) { animation-delay: -3.2s; }
#dna div:nth-child(9)::before { animation-delay: -3.2s; }
#dna div:nth-child(9)::after { animation-delay: -3.2s; }

#dna div:nth-child(10) { animation-delay: -3.6s; }
#dna div:nth-child(10)::before { animation-delay: -3.6s; }
#dna div:nth-child(10)::after { animation-delay: -3.6s; }

#dna div:nth-child(11) { animation-delay: -4.0s; }
#dna div:nth-child(11)::before { animation-delay: -4.0s; }
#dna div:nth-child(11)::after { animation-delay: -4.0s; }

#dna div:nth-child(12) { animation-delay: -4.4s; }
#dna div:nth-child(12)::before { animation-delay: -4.4s; }
#dna div:nth-child(12)::after { animation-delay: -4.4s; }

#dna div:nth-child(13) { animation-delay: -4.8s; }
#dna div:nth-child(13)::before { animation-delay: -4.8s; }
#dna div:nth-child(13)::after { animation-delay: -4.8s; }

#dna div:nth-child(14) { animation-delay: -5.2s; }
#dna div:nth-child(14)::before { animation-delay: -5.2s; }
#dna div:nth-child(14)::after { animation-delay: -5.2s; }

#dna div:nth-child(15) { animation-delay: -5.6s; }
#dna div:nth-child(15)::before { animation-delay: -5.6s; }
#dna div:nth-child(15)::after { animation-delay: -5.6s; }

#dna div:nth-child(16) { animation-delay: -6.0s; }
#dna div:nth-child(16)::before { animation-delay: -6.0s; }
#dna div:nth-child(16)::after { animation-delay: -6.0s; }

#dna div:nth-child(17) { animation-delay: -6.4s; }
#dna div:nth-child(17)::before { animation-delay: -6.4s; }
#dna div:nth-child(17)::after { animation-delay: -6.4s; }

#dna div:nth-child(18) { animation-delay: -6.8s; }
#dna div:nth-child(18)::before { animation-delay: -6.8s; }
#dna div:nth-child(18)::after { animation-delay: -6.8s; }

#dna div:nth-child(19) { animation-delay: -7.2s; }
#dna div:nth-child(19)::before { animation-delay: -7.2s; }
#dna div:nth-child(19)::after { animation-delay: -7.2s; }

#dna div:nth-child(20) { animation-delay: -7.6s; }
#dna div:nth-child(20)::before { animation-delay: -7.6s; }
#dna div:nth-child(20)::after { animation-delay: -7.6s; }

@keyframes dna-rotation {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(359deg);
    }
}

/* QR Scanner Styles */
#qr-scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#qr-scanner {
    border: 3px solid #073138;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #000;
}

#qr-scanner video {
    border-radius: 12px;
}

#qr-scanner-result {
    max-width: 300px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
    display: none;
}

#qr-scanner-result:not(:empty) {
    display: block;
}

/* Collection Buttons */
.jurassic-collection-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    margin-bottom: 40px;
}

.jurassic-collection-btn-primary {
    background-color: #073138;
    font-size: 1.6rem;
    padding: 18px 50px;
}

.jurassic-collection-btn-primary:hover {
    background-color: #0a4a54;
}

.jurassic-collection-btn-secondary {
    background-color: #666;
    font-size: 1.2rem;
    padding: 12px 35px;
}

.jurassic-collection-btn-secondary:hover {
    background-color: #777;
}

.jurassic-collection-btn-secondary::before {
    background: #555;
}

.jurassic-collection-btn-secondary::after {
    background: #555;
}

.jurassic-collection-btn-secondary:hover::before {
    background: #666;
}

.jurassic-collection-btn-secondary:hover::after {
    background: #666;
}

/* Mobile Responsive for collection page */
@media (max-width: 768px) {
    .jurassic-collection-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .jurassic-collection-subtitle {
        font-size: 1.1rem;
    }
    
    #dna {
        height: 450px;
        width: 180px;
    }
    
    #dna div {
        width: 120px;
        margin-left: -60px;
        margin-top: 15px;
    }
    
    .jurassic-collection-btn-primary {
        font-size: 1.3rem;
        padding: 15px 40px;
    }
    
    .jurassic-collection-btn-secondary {
        font-size: 1rem;
        padding: 10px 30px;
    }
    
    .jurassic-collection-buttons {
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* DNA Discovery Modal Styles */
.dna-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dna-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.dna-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dna-modal-image-container {
    margin-bottom: 25px;
}

.dna-modal-image-container img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.dna-modal-text {
    font-family: 'Sofia Pro', 'Arial', sans-serif;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 500;
}

.dna-modal-text span {
    font-family: 'Burford', 'Arial Black', sans-serif;
    font-weight: 900;
    color: #073138;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DNA Glow Animation */
.dna-glow {
    animation: dnaGlow 2s ease-out;
}

@keyframes dnaGlow {
    0% {
        filter: drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: drop-shadow(0 0 15px #4ade80) drop-shadow(0 0 25px #4ade80);
    }
    100% {
        filter: drop-shadow(0 0 0 transparent);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .dna-modal-content {
        padding: 30px 20px;
        max-width: 320px;
    }
    
    .dna-modal-image-container img {
        width: 120px;
        height: 120px;
    }
    
    .dna-modal-text {
        font-size: 1.2rem;
    }
}
