body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Map inside the yellow box */

.map-container {
    width: 100%;   /* Adjust as needed */
    height: 80svh; /* Fixed height */
    margin: auto;  /* Center the map */
    border: 2px solid #ccc;
    overflow: hidden; /* Prevents any overflow */
    display: flex;
    align-items: center;
    justify-content: center;
}

#map {
    height: 100%;
    width: 100%;
}


.button {
    text-decoration: none;
    padding: 8px 16px;
    color: black;
    background-color: #FBBC04;  /* Bootstrap blue for styling */
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid black;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #ffcb30;
}

.title {
    text-align: center;
    width: 100%;
    background-color: #FBBC04;
    color: #333;
    padding-top: 5px;
    margin-top: 0px;
    margin-bottom:0px;
    display: flex; /* Enables alignment for child img */
    justify-content: center;
    align-items: center;
}

h2 {
    text-align: center;
    /*background-color: #FBBC04;*/
    padding: 5px;
    max-width: fit-content;
    border-radius: 12px;
    border-color: #333;
    color: #333;
    margin:auto;
}

.boulder-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.boulder-image {
    flex: 1;
    width: 100%;
    height: 100%;
    margin-right: 20px;
}

.boulder-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.routes-table {
    border-collapse: collapse;
    width: 47%;
}

.routes-table th, .routes-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.routes-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.routes-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.description-section, .notice-section, .comments-section {
    margin-bottom: 20px;
}

.comments-section {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.comment {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.comment h3 {
    margin: 0;
    font-size: 1rem;
}

.comment p {
    margin: 5px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .boulder-section {
        flex-direction: column;
    }

    .boulder-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Container for positioning the home button */
.home-button-container {
    display: flex;
    position: absolute;
    width: 100%;
    background-color: #FBBC04;
}

/* Style for the home button (image) */
.home-button {
    display: flex; /* Enables alignment for child img */
    justify-content: center;
    align-items: center;
    width: 125px; /* Adjust size as needed */
    height: 70px; /* Adjust size as needed */
}

.home-button img {
    width: 125px;
    height: 100%;
    background-color: #FBBC04;
    border-radius: 10%; /* Make image button round */
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect to change the image color */
.home-button img:hover {
    transform: scale(1.05); /*  Slight zoom on hover */
    /*filter: brightness(1.2);  Color change effect */
    cursor: pointer; /* Change cursor to pointer */
}

.navbar {
    background-color: #FBBC04;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space out the elements */
    padding: 0 20px; /* Adds some spacing */
    margin-bottom: 10px;
    width: 100%;
}

/* Style for the left section (Logo) */
.navbar .logo-container {
    display: flex;
    align-items: center;
}

/* Style for the middle navigation links */
.navbar .nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Makes it take up available space */
}

.navbar .nav-links a {
    padding: 26px 20px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* Style for the right section (Login button) */
.navbar .login-container {
    display: flex;
    align-items: center;
    margin-right: 4%; /* Adjust this value as needed */
}
/* Change color on hover */
.navbar a:hover {
    background-color: #FFD966;
    color: black;
}

@media screen and (max-width: 768px) {
    .navbar .logo-container {
        margin-left: 0px;
        padding-left: 0px;
    }
    .navbar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0px;
    }

    .navbar .nav-links {
        display: flex;
        overflow-x: auto; /* Enables horizontal scrolling */
        white-space: nowrap; /* Prevents wrapping */
        flex-wrap: nowrap;
        min-width: max-content; /* Ensures it expands as needed */
        scroll-behavior: smooth; /* Smooth scrolling */
    }

    .navbar .nav-links a {
        display: inline-block;
    }

    .navbar .login-container {
        margin-right: 2%;
    }
}

/* Styling for the centered description box */
.centered-box {
    margin-top: 60px;
    display: flex;
    border: 3px solid #FBBC04; /* Yellow border */
    color: black; /* Black text */
    text-align: center;
    margin: auto;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
}

/* Style the top navigation bar */
/* .top-nav {
    position: fixed;        /* Keep it fixed at the top 
    top: 0;
    right: 0;
    padding: 10px;          /* Add padding for spacing 
    display: flex;          /* Align buttons horizontally 
    gap: 10px;              /* Space between buttons 
    z-index: 1000;          /* Ensure it appears above other elements 
    background-color: #FBBC04; /* Optional: background color for contrast 
}*/

.form-grid {
    display: grid;
    grid-template-columns: auto 1fr;  /* Two columns: auto for labels, flex for inputs */
    gap: 10px;                        /* Space between elements */
    align-items: center;              /* Center-align vertically for even label-input alignment */
    max-width: 400px;                 /* Limit the width of the form */
}


/* Make the submit button span both columns */
.submit-button {
    grid-column: span 2;
    padding: 8px 16px;
    background-color: #FBBC04;
    color: black;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #FFD966;
}

/* Style the username link */
summary {
    cursor: pointer;
    font-weight: bold;
    color: #007BFF;
    list-style: none;
}

/* Style the dialog content */
details {
    position: relative;
    display: inline-block;
}

.logout-dialog {
    position: relative;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
}

.logout-dialog button {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.approve-btn {
    background-color: #28a745; /* Green color */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.approve-btn:hover {
    background-color: #218838; /* Darker green on hover */
}

.approve-btn:active {
    background-color: #1e7e34; /* Even darker green when clicked */
}

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.dialog-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dialog-box input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
}

.dialog-box button {
    margin: 10px;
    padding: 8px 15px;
    cursor: pointer;
}

.slideshow {
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.slides img.active {
    display: block;
}
.buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px; /* Space between slideshow and buttons */
}
    /* Small arrow buttons */
.arrow-btn {
    background: #FBBC04; /* Semi-transparent background */
    border: none;
    font-weight: bold;
    font-size: 24px; /* Adjust size of arrow */
    cursor: pointer;
    color: black;
    text-align: center;
    padding: 5px 10px;
    border-radius: 50%;
}

.arrow-btn:hover {
    background: #FFD966; /* Light background on hover */
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}
/* Hide popup when checkbox is unchecked */
#popup-control:not(:checked) + .popup {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 350px;
    z-index: 10000;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
}
.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

.filter-bar {
    background-color: #f1c40f; /* yellow like your navbar */
    padding: 8px 16px;
    border-bottom: 2px solid #d4ac0d;
    display: flex;
    justify-content: center; /* ✅ centers checkboxes horizontally */
    gap: 20px; /* spacing between items */
    font-weight: bold;
}
.filter-bar input {
    margin-right: 6px;
}

header {
    background-color: #FBBC04;
    padding: 1rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.sector-container {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
}

.info-container {
    flex: 1 1 300px;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.info-container h2 {
    margin-top: 0;
    color: #FBBC04;
}

.info-summary {
  display: inline-flex;
  gap: 20px; /* spacing between items */
  margin-bottom: 15px;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  font-size: 14px;
  background: #f9f9f9;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
}
.info-summary div {
  white-space: nowrap; /* keeps each item together */
}

.boulder-list {
    margin: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.boulder-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.boulder-item:last-child {
    border-bottom: none;
}

.boulder-item:hover {
    background: #fff6e0;
}

.boulder-item span {
    color: #333;
}

.boulder-item .difficulty {
    font-weight: bold;
    color: #FBBC04;
}

.sector-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sector-header, .sector-row {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr 1fr; /* adjust widths */
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.sector-header {
  font-weight: bold;
  background-color: #FBBC04;
}

.sector-row {
  cursor: pointer;
}

.sector-row:hover {
  background-color: #f1f1f1;
}
@media (max-width: 768px) {
  .sector-header { display: none; }

  .sector-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #fff;
  }

  .sector-row span {
    display: block;
    width: 100%;
    font-size: 0.9rem;
    margin: 3px 0;
  }

  /* Boulder cards */
  .boulders .sector-row span:nth-child(1)::before { content: "Name: "; font-weight: bold; }
  .boulders .sector-row span:nth-child(2)::before { content: "Region: "; font-weight: bold; }
  .boulders .sector-row span:nth-child(3)::before { content: "Routes: "; font-weight: bold; }
  .boulders .sector-row span:nth-child(4)::before { content: "Grade span: "; font-weight: bold; }

  /* Sector cards */
  .sectors .sector-row span:nth-child(1)::before { content: "Name: "; font-weight: bold; }
  .sectors .sector-row span:nth-child(2)::before { content: "Region: "; font-weight: bold; }
  .sectors .sector-row span:nth-child(3)::before { content: "Access: "; font-weight: bold; }
  .sectors .sector-row span:nth-child(4)::before { content: "Boulders: "; font-weight: bold; }
  .sectors .sector-row span:nth-child(5)::before { content: "Routes: "; font-weight: bold; }
  .sectors .sector-row span:nth-child(6)::before { content: "Grade span: "; font-weight: bold; }
}
