/* Global Styles (unchanged) */
body {
    font-family: "Iowan Old Style", serif;
    margin: 0;
    padding: 0;
    background-image: url('resources/background_fairytale.jpg'); /* Set the background */
    background-size: cover; /* Ensures it covers the entire screen */
    background-position: center; /* Centers it properly */
    background-attachment: fixed; /* Keeps the image fixed while scrolling */
    background-repeat: no-repeat; /* Prevents tiling */
    max-width: 100%;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}



/* Reset default margins and padding */
/* Remove any default spacing that causes gaps */
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Header Styles (unchanged) */
header {
    text-align: center;
}
.header-box {
    background-color: rgba(255, 255, 255, 0.95); /* Light purple-pink */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Soft drop shadow */
    padding: 30px 0; /* Space inside */
    width: 100%;
    position: relative; /* Ensures it starts at the top naturally */
    top: 0; /* Attach to the very top */
    left: 0;
    text-align: center;
    z-index: 10;
}



/* Subheader - Below Main Header */
.subheader {
    font-size: 18px;
    color: #233237;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

/* Heading Styles */
h1 {
    margin: 0;
    font-size: 42px;
    color: #233237;
    letter-spacing: 2px;
}

/* Elephant Image */
.logo-container img {
    height: 84px;
}

/* Denmark Map */
.map-container {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
}

/* Denmark Map Scaling */
.center-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
}

/* 📌 BOOK SECTION: Positions Both Text & Book */
.book-section {
    position: absolute;
    top: 71%; /* Moves section higher on the screen */
    right: 10%; /* Moves section 20% from right */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 📌 BOOK TEXT (Above Book Image) */
.book-info {
    width: 350px;
    text-align: justify;
    color: #233237;
}

/* Header Inside Book Section */
.book-info h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: -1px -1px 0 white,  
                 1px -1px 0 white,  
                -1px  1px 0 white,  
                 1px  1px 0 white; /* White border */
}


/* Paragraph Inside Book Section */
.book-info p {
    font-size: 16px;
    line-height: 1.4;
    text-shadow: -1px -1px 0 white,  
                 1px -1px 0 white,  
                -1px  1px 0 white,  
                 1px  1px 0 white; /* White border */
}


/* 📌 BOOK IMAGE & TITLE */
.book-container {
    text-align: center;
    color: #233237;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px; /* Adds spacing between text & book */
}

/* Book Cover Image */
.bottom-right-image {
    width: 350px;
    height: auto;
}

/* Book Title */
.book-title {
    margin-top: 10px;
    color: #233237;
    text-shadow: -1px -1px 0 white,  
                 1px -1px 0 white,  
                -1px  1px 0 white,  
                 1px  1px 0 white; /* White border */
}

/* Book Price */
.book-price {
    margin-top: 5px;
    color: #233237;
    text-shadow: -1px -1px 0 white,  
                 1px -1px 0 white,  
                -1px  1px 0 white,  
                 1px  1px 0 white; /* White border */
}

/* 📌 SEARCH BAR */
.search-container {
    position: absolute;
    left: 160px;
    top: 30%;
    transform: translateY(-50%);
    z-index: 10;
    text-align: center;
    width: 350px;
}
/* Search Text */
.search-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    text-align: center;
    text-shadow: -1px -1px 0 #233237,  
                 1px -1px 0 #233237,  
                -1px  1px 0 #233237,  
                 1px  1px 0 #233237; /* Blue border */
}

.search-subtitle {
    font-size: 14px;
    color: white;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: -1px -1px 0 #233237,  
                 1px -1px 0 #233237,  
                -1px  1px 0 #233237,  
                 1px  1px 0 #233237; /* Blue border */
}


/* Search Bar Styling */
.search-bar {
    width: 100%;
    height: 40px;
    padding: 10px;
    border: 2px solid #233237;
    border-radius: 20px;
    font-size: 16px;
    color: #233237;
    outline: none;
    background-color: white;
}

/* Suggestions List */
.suggestions-list {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #233237;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    width: 100%;
    position: absolute;
}

/* Fix cursor for city selection */
.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    color: #233237;
}

.suggestions-list li:hover {
    background-color: #e6e6e6;
}

/* Continue Button */
.continue-button {
    width: 100%;
    padding: 10px;
    background-color: #233237;
    color: white;
    border: 2px solid white; /* ✅ Added white border */
    border-radius: 20px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    display: none;
}

.continue-button:hover {
    background-color: #1a2828;
}

/* 📌 FOOTER */
footer {
    width: 100%;
    text-align: center;
    background-color: #233237;
    color: white;
    padding: 20px 0;
    margin-top: auto;
    position: relative;
}

/* Footer Links */
footer a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

footer a:hover {
    text-decoration: underline;
}

/* ✅ Confirmation Message Styling */
.confirmation-message {
    color: white !important; /* Force white text */
    background-color: #233237; /* Dark blue-green */
    border: 2px solid #233237;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    width: 80%;
    margin: 15px auto;
    display: none; /* Hidden by default */
}

/* 📌 RESPONSIVE ADJUSTMENTS */
/* 📌 RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .main-content { /* Target the main content wrapper */
      flex-direction: column; /* Stack elements vertically */
    }
  
    .book-section {
      margin-top: 40px;
      position: static;
      transform: none;
      right: auto;
      width: 100%;
      padding: 0 10px;
      text-align: center;
    }
  
    h1 {
        font-size: 32px;
        text-align: center;
        margin: 0;
        width: auto; /* Prevents stretching */
    }
  
    h2 {
        text-align: center; /* Center the text itself */
        width: 70%; /* Ensure full width to align text */
        display: block; /* Ensures it's treated like a block element */
        margin: 0 auto; /* Centers it within the container */
      }

      .logo-container {
        display: flex;
        flex-direction: row; /* Keep text and image side by side */
        align-items: center; /* Center them vertically */
        justify-content: center; /* Center the whole container */
        text-align: center;
        width: 100%;
        gap: 10px; /* Space between the text and the image */
    }
    
  
    .bottom-right-image {
      width: 100%;
      max-width: 350px;
    }
  
    .map-container {
      position: relative; /* Ensure search-container is positioned inside it */
      order: 5 !important; /* Ensure map is below everything else */
      display: flex;
      justify-content: center;
      align-items: center;
    }
  
    .map-container img {
      width: 90%;
    }

    /* ✅ Now the search-container is positioned ON TOP of the map */
    .search-container {
        position: absolute; /* Float it on top of the map */
        top: 50%; /* Move it to the middle of the map */
        left: 50%; /* Center it horizontally */
        transform: translate(-50%, -50%); /* Perfectly center it */
        width: 80%; /* Ensure it scales well */
        z-index: 10; /* Ensures it's on top of the map */
        background: rgba(255, 255, 255, 0.9); /* Slight white background for visibility */
        padding: 15px;
        border-radius: 10px;
        text-align: center;
    }
  
    .center-image {
      max-width: 90%;
    }
  
    .subheader {
      font-size: 14px;
    }
  
    .book-info {
      width: 90%;
    }
  
    footer {
      order: 4 !important; /* Place footer above the map */
    }
}
