/* ========= BASE STYLES ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

main, section, div, img, button {
    position: absolute;
}

main {
    width: 1920px;
    height: 1080px;
    background-color: #f9f4f4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

/* ========= SECTION STYLES ========= */
section {
    width: 100%;
    height: 100%;
    display: none;
}

#screen1 {
    display: block;
}

/* ========= FRAME STYLES ========= */
.frame {
    left: 680px;
    top: 110px;
    display: none;
}

#frame1 {
    display: block;
}

/* ========= MODERN INTRO CONTAINER STYLES ========= */
.intro-container {
    width: 700px;
    height: 680px;
    top: 156px;
    left: 640px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.intro-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.content-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 90%;
    position: relative;
    z-index: 2;
}

/* Logo and header */
.intro-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    animation: slide-in-right 0.7s ease-out forwards;
}

.parks-logo {
    width: 60px;
    height: 90px;
    bottom: -40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    overflow: hidden;
}

.parks-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.intro-title {
    font-size: 28px;
    font-weight: 700;
    color: rgb(0, 0, 0);
    letter-spacing: 0.5px;
    margin-left: 80px;
}

/* Main text area */
.history-text {
    color: rgb(0, 0, 0);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    background: rgba(205, 198, 198, 0.2);
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid #e63946;
    position: relative;
    backdrop-filter: blur(8px);
    animation: fade-in 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    bottom: -5rem;
}

/* Learn more section */
.navigation-section {
    margin-top: 0;
}

.learn-more-text {
    color: rgb(0, 0, 0);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: flex;
    align-items: center;
    animation: slide-in-left 0.7s ease-out forwards;
    animation-delay: 0.5s;
    bottom: -21rem;
    opacity: 0;
}

.learn-more-text::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #e63946;
    margin-right: 15px;
    border-radius: 3px;
}

/* Navigation boxes */
.navigation-boxes {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.to-screen-box {
    width: 200px;
    height: 150px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    color: rgb(0, 0, 0);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fade-in 0.5s ease forwards;
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    bottom: -25rem;
}

.to-screen-box:nth-child(1) {
    animation-delay: 0.6s;
}

.to-screen-box:nth-child(2) {
    animation-delay: 0.8s;
}

.to-screen-box:nth-child(3) {
    animation-delay: 1s;
}

.to-screen-box:hover {
    background: rgba(230, 57, 70, 0.9);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(230, 57, 70, 0.4);
}

.box-icon {
    width: 40px;
    height: 40px;
    background-color: #e63946;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    margin: 15px 0 0 15px;
    bottom: 1px;
}

.to-screen-box:hover .box-icon {
    background-color: white;
    color: #e63946;
    transform: scale(1.1);
}

.box-text {
    padding: 10px 15px 15px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* Decorative elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #e63946aa);
    opacity: 0.2;
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 50px;
    animation: float 12s ease-in-out infinite reverse;
}

/* ========= UTILITY CLASSES ========= */
.click-through {
    pointer-events: none;
}

/* ========= START BUTTON STYLES ========= */
#start-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 500px;
    font-size: 24px;
    color: #ff3366;
    background: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease;
    z-index: 100;
}

#start-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* ========= SCREEN STYLES ========= */
.screen {
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
}

.section-heading {
    text-align: center; 
    font-size: 3.5em; 
    font-weight: 700;
    color: #c82e2e; 
    margin-bottom: 20px;
    position: absolute;
    top: 40px;
    width: 100%;
    z-index: 50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.screen p {
    position: absolute;
    left: 950px;
    top: 300px;
    font-size: 20px;
    font-weight: 700;
    color: #0075bf;
    margin-top: 50px;
    overflow: hidden;
}

.screen img {
    display: block;
}

/* ========= BACK BUTTON STYLES ========= */
#back-btn {
    width: 60px;
    height: 100px;
    background: linear-gradient(135deg, #ff3366, #ff6b6b);
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-size: 74px;
    opacity: 0.85;
    top: 50px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: opacity 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

#back-btn:hover {
    opacity: 1;
}

/* ========= PARK LOCATION STYLES ========= */
/* SCREEN-2 */
.park-location-wrapper {
    position: absolute;
    z-index: 100;
}

.park-location {
    max-width: 60px;
    max-height: 60px;
    left: -30px;
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.park-location:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.park-location-label {
    position: absolute;
    left: 40px;
    top: 10px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #2c3e50;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
    pointer-events: none;
}

.park-location:hover + .park-location-label {
    opacity: 1;
    transform: translateX(0);
}

/* ========= PARK INFO POPUP STYLES ========= */
.park-popup {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 800px;
    height: 600px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.park-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.park-popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-left: 20px;
}

.park-popup-close {
    position: absolute;
    right: -320px;
    top: -19px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff3366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.park-popup-close:hover {
    transform: rotate(90deg);
}

.park-popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.park-popup-image {
    max-width: 600px;
    height: 300px;
    top: 50px;
    left: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.park-popup-info {
    color: #2c3e50;
}

.park-popup-history {
    font-size: 16px;
    width: 700px;
    line-height: 1.6;
    bottom: -470px;
    left: 20px;


}

.park-popup-facts {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
    bottom: -790px;
    left: 150px;
}

.park-popup-facts h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e63946;
}

.park-popup-facts ul {
    list-style: none;
    padding: 0;
}

.park-popup-facts li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.park-popup-facts li::before {
    content: "•";
    color: #ff3366;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.park-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

/* ========= BACKGROUND IMAGES STYLES ========= */
.bg-image {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0.8;
    object-fit: cover;
}

/* Screen 2 background images */
.bg-image-1 {
    width: 380px;
    height: 280px;
    top: 180px;
    left: 100px;
    transform: rotate(-5deg);
}

.bg-image-2 {
    width: 320px;
    height: 220px;
    bottom: 150px;
    right: 120px;
    transform: rotate(3deg);
}

.bg-image-3 {
    width: 300px;
    height: 240px;
    bottom: 200px;
    left: 250px;
    transform: rotate(7deg);
}

/* Screen 3 background images */
.timeline-bg-1 {
    width: 260px;
    height: 200px;
    top: 150px;
    left: 120px;
    transform: rotate(-8deg);
}

.timeline-bg-2 {
    width: 240px;
    height: 180px;
    top: 580px;
    right: 150px;
    transform: rotate(5deg);
}

.timeline-bg-3 {
    width: 280px;
    height: 210px;
    bottom: 120px;
    left: 200px;
    transform: rotate(-3deg);
}

/* ========= INSTRUCTION BOX STYLES ========= */
.instruction-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 900;
    max-width: 400px;
    border-left: 5px solid #e63946;
    backdrop-filter: blur(5px);
    animation: pulse 2s infinite ease-in-out;
    opacity: 0;
}

#location-instruction {
    bottom: 30px;
    right: 30px;
}

#timeline-instruction {
    top: 950px;
    right: 50px;
}

#birds-instruction {
    top: 140px;
    right: 50px;
}

.instruction-box p {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 0 0 15px !important;
    position: static !important;
    top: auto !important;
    margin-left: 50px !important;
}

.instruction-icon {
    min-width: 40px;
    height: 40px;
    background: #e63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 20px;

}

.instruction-icon img, .instruction-icon svg {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Example dot for timeline instructions */
.dot-example {
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    position: relative;
}

.dot-example:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
}

/* ========= SCREEN 3 STYLES ========= */
.graph-container {
    position: absolute;
    left: 200px;
    top: 150px;
    width: 1500px;
    height: 600px;
    z-index: 10;
}

.graph-line {
    stroke: #ff3366;
    stroke-width: 9;
    fill: none;
}

.timeline-point {
    fill: #000000;
    cursor: pointer;
    stroke-width: 7;
    r: 12;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-point:hover {
    r: 15;
    fill: #ff3366;
}

.year-label {
    font-size: 34px;
    fill: #0d4883;
}

.graph-title {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    color: #2c3e50;
    font-weight: 700;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Timeline Popup Styles */
.timeline-popup {
    position: fixed;
    width: 800px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-popup .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ff3366;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-popup .close-btn:hover {
    background: #ff1f1f;
    transform: rotate(90deg);
}

.timeline-popup img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin: 0;
    position: relative;
    top: 0;
}

.timeline-popup h3 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    font-weight: 700;
}

.timeline-popup p {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 18px;
    line-height: 1.6;
    color: #4a5568;
    background: none;
    padding: 0;
    margin: 0;
}

/* Timeline boxes container */
.timeline-boxes-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
}

.timeline-box {
    position: absolute;
    width: 350px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: auto;
}

.timeline-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    bottom: -210px;
}

.timeline-box h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-box p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    background: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* ========= ENHANCED FLOATING PHOTOS STYLES ========= */
.floating-photos-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 1001;
    pointer-events: none;
}

/* Base styling for all floating photos */
.floating-photo {
    position: absolute;
    width: 350px;
    height: 250px;
    border-radius: 18px;
    overflow: hidden;
    transform-origin: center;
    opacity: 0;
    pointer-events: auto;
    /* Enhanced box shadow for depth */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-out;
    border: 5px solid rgba(255, 255, 255, 0.8);
}

/* Styling for the image inside floating photo */
.floating-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1.05) contrast(1.05);
}

/* Modified hover effects - removed movement and caption */
.floating-photo:hover {
    /* Removed translateY(-10px) to prevent movement */
    transform: scale(1.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.15);
    z-index: 1010 !important;
    border-color: rgba(255, 255, 255, 0.9);
}

.floating-photo:hover img {
    transform: scale(1.15);
}

/* Position-specific styling - use with photoPositions object */
.floating-photo:nth-child(1) {
    /* Top left photo */
    transform: rotate(-8deg);
    left: -450px;
    bottom: -100px;
}

.floating-photo:nth-child(2) {
    /* Top right photo */
    transform: rotate(5deg);
    left: 100px;
    
}

.floating-photo:nth-child(3) {
    /* Bottom photo */
    transform: rotate(-3deg);
    left: -410px;
    bottom: -200px;
}

/* Custom borders for each image to differentiate them */
.floating-photo:nth-child(1) {
    border-color: rgba(230, 57, 70, 0.7);
}

.floating-photo:nth-child(2) {
    border-color: rgba(29, 53, 87, 0.7);
}

.floating-photo:nth-child(3) {
    border-color: rgba(241, 207, 93, 0.7);
}

/* Add a subtle filter effect to each photo */
.floating-photo:nth-child(1) img {
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.floating-photo:nth-child(2) img {
    filter: brightness(1.05) contrast(1.05) saturate(1.05);
}

.floating-photo:nth-child(3) img {
    filter: brightness(1.1) contrast(1.03) saturate(1.08);
}

/* Add decorative elements to corners */
.floating-photo::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-image: url('./img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    z-index: 5;
    pointer-events: none;
    transform: scale(0.6);
    transition: opacity 0.3s ease;
}

.floating-photo:hover::before {
    opacity: 0.9;
}

/* ========= SCREEN 4 STYLES - MIGRATION MAP ========= */
/* Background images for screen 4 */
.bird-bg-1 {
    width: 320px;
    height: 240px;
    top: 800px;
    left: 100px;
    transform: rotate(-8deg);
    z-index: 1;
    filter: sepia(0.2);
}

.bird-bg-2 {
    width: 280px;
    height: 210px;
    bottom: 150px;
    right: 130px;
    transform: rotate(5deg);
    z-index: 1;
    filter: sepia(0.2);
}

.bird-bg-3 {
    width: 300px;
    height: 220px;
    bottom: 180px;
    left: 220px;
    transform: rotate(-3deg);
    z-index: 1;
    filter: sepia(0.2);
    margin-left: 1100px;
    top: 250px;
}

/* Forest visualization container */
.forest-visualization {
    position: absolute;
    width: 900px;
    height: 550px;
    top: 180px;
    left: 510px;
    z-index: 10;
    overflow: visible;
}

/* Forest background */
.forest-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(./img/screen4/forest-bg.jpg) no-repeat center center;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    filter: saturate(1.2) contrast(1.1);
    z-index: 20;
}

.forest-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(0,0,0,0.3) 0%, 
                rgba(0,0,0,0) 30%, 
                rgba(0,0,0,0) 70%, 
                rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* Migration map container */
.migration-map-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -150px;
    left: -80px;
    z-index: 15;
    transform: scale(1.2);
}

.americas-map {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
    filter: saturate(1.2) brightness(1.1);
    border-radius: 15px;
}

/* Bird container */
.bird-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 25;
}

/* Individual bird elements */
.bird-element {
    position: absolute;
    width: 120px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.bird-element:hover {
    transform: scale(1.2) translateY(-10px) !important;
    z-index: 30;
}

.bird-element img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
    position: relative;
}

.bird-element:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}

/* Positioning for each bird */
.bird-element[data-bird="warbler"] {
    top: 150px;
    left: 220px;
}

.bird-element[data-bird="sparrow"] {
    top: 300px;
    left: 150px;
}

.bird-element[data-bird="thrush"] {
    top: 220px;
    left: 560px;
}

.bird-element[data-bird="vireo"] {
    top: 120px;
    left: 450px;
}

.bird-element[data-bird="tanager"] {
    top: 150px;
    left: 700px;
}

/* Bird hover info tooltip */
.bird-hover-info {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bird-element:hover .bird-hover-info {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Migration path visualization */
.migration-path {
    position: absolute;
    width: 120%;
    height: 120%;
    z-index: 16;
    pointer-events: none;
    bottom: -450px;
    left: -100px;
}

.migration-route {
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 3px 5px rgba(255, 51, 102, 0.5));
    transition: stroke-dashoffset 2.5s ease-in-out;
}

.migration-dot {
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.9));
}

.ontario-marker {
    animation: pulse-ontario 2s infinite ease-in-out;
}

@keyframes pulse-ontario {
    0% {
        r: 10;
        opacity: 1;
    }
    50% {
        r: 15;
        opacity: 0.7;
    }
    100% {
        r: 10;
        opacity: 1;
    }
}

/* Information panel */
.info-panel {
    position: absolute;
    width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-left: 5px solid #e63946;
    z-index: 50;
}

#boreal-info {
    top: 200px;
    left: 70px;
    height: auto;
}

.info-panel h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 2px solid #e6394722;
    padding-bottom: 10px;
}

.info-panel p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 25px;
    position: static;
    top: auto;
    left: auto;
    font-weight: 400;
}

/* Fact boxes */
.fact-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact {
    background: linear-gradient(135deg, #f9f9f9, #efefef);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid rgba(230, 57, 70, 0.4);
    left: 50px;
    top: -20px;
}


.fact2 {
    background: linear-gradient(135deg, #f9f9f9, #efefef);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid rgba(230, 57, 70, 0.4);
    left: 150px;
}



.fact3 {
    background: linear-gradient(135deg, #f9f9f9, #efefef);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid rgba(230, 57, 70, 0.4);
    left: 250px;
}



.fact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left: 3px solid rgba(230, 57, 70, 1);
}

.fact-number1 {
    font-size: 20px;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 8px;

}

.fact-number {
    font-size: 28px;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 8px;
}

.fact-text {
    font-size: 15px;
    line-height: 1.4;
    color: #2c3e50;
    font-weight: 500;
}

/* Bird detail popup */
.bird-detail-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.bird-detail-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #e63946, #ff6b6b);
}

.bird-detail-popup .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ff3366;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 51, 102, 0.3);
    z-index: 10;
}

.bird-detail-popup .close-btn:hover {
    background: #ff1f1f;
    transform: rotate(90deg);
}

.bird-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.bird-detail-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.bird-info h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.bird-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 25px;
}

.bird-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.bird-fact {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 3px solid #e63946;
}

.bird-fact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.bird-fact h4 {
    font-size: 20px;
    color: #e63946;
    font-weight: 600;
    margin-bottom: 8px;
}

.bird-fact p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Flying bird animation */
.flying-bird {
    position: absolute;
    width: 48px;
    height: 48px;
    background-image: url(./img/screen4/bird-sprite.png);
    background-size: cover;
    z-index: 5;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

/* ========= PERSISTENT LOGO STYLES ========= */
.persistent-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 70px;
    height: 100px;
    z-index: 9999;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.persistent-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: static;
}

.persistent-logo:hover {
    transform: scale(1.1);
}

/* Make sure the logo stays visible on all screens */
@media screen and (max-width: 1920px), screen and (max-height: 1080px) {
    .persistent-logo {
        transform-origin: top right;
    }
}

/* ========= ANIMATIONS ========= */
@keyframes container-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

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

/* ========= RESPONSIVE SCALING ========= */
@media screen and (max-width: 1920px), screen and (max-height: 1080px) {
    main {
        transform-origin: center;
    }
}