@font-face {
    font-family: 'acherus'; /*a name to be used later*/
    src: url('/static/css/acherus.otf'); /*URL to font*/
}
/* Simulate a mobile device frame */
body {
    background: linear-gradient(to bottom right, #000, #081904); /* Green gradient */
    font-family: 'acherus','Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the mobile container horizontally */
    align-items: center; /* Center the mobile container vertically */
    height: 100vh; /* Full viewport height */
    position: initial !important; /* overide for potree css */
}

/* Simulate a mobile device frame */
.mobile-container {
    width: 100%; /* Simulate mobile width */
    max-width: 700px;
    height: 100vh; /* Fixed height similar to iPhone 6/7/8 */
    margin: 20px auto; /* Center and add top and bottom margin */
    //border: 16px solid #ddd; /* Simulate the phone's border */
    //border-radius: 36px; /* Rounded corners for an iPhone-like effect */
    //box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    overflow-y: auto; /* Enable vertical scrolling when content overflows */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background: #fff;
    -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
}

/* Hide scrollbar in Webkit browsers (Chrome, Safari, etc.) */
mobile-container::-webkit-scrollbar {
 display: none;
}

.content {
  padding:20px;
  min-height:100%;
  height:auto;
  background:#DFEEDA;
}
/* Inside the mobile container */
h1, h2 {
    font-weight: 700;
    text-align: left;
    font-size: 1.5rem; /* Smaller heading sizes to fit mobile frame */
    margin:10px 3px;
}

p {
    font-family: 'acherus','Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.9rem; /* Smaller paragraph text */
    line-height: 1.4;
}

a.button {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

a.button:hover {
    background-color: #0056b3;
}

/* Style for the Explore button */
.primary-button {
  margin-top: 20px;
  padding: 12px 10px;
  min-width:90%;
  background-color: #0F2708; /* Dark green button */
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align:center;
  border: none;
  border-radius: 25px; /* Rounded corners */
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  z-index: 2;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}
.primary-button:hover {
  background-color: #081904; /* Darker green on hover */
}

.button-back {
  display: inline-block;
  text-decoration: none; /* Remove underline */
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth transition */
  cursor: pointer;
  color:#000 !important; /*overide for potree */
}


/* Introduction Page */
.intro-page{
  padding:0px 20px;
  background: url("/static/images/background.jpg");
  background-size: cover;
  color: white;
  height:100vh;
  overflow:hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */

}
.intro-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 115, 20, 0.7); /* Semi-transparent black overlay */
  z-index: 1; /* Make sure the overlay is behind the content */
}
.intro-page .logo {
  width:70%;
  z-index:2;
  position: relative;
  text-align:center;
  filter:brightness(100);
  padding-bottom:40px;

}

.intro-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color:white;
  z-index:2;
  position: relative;
}
.intro-button {
  position: absolute;
  bottom:30px;
}

/* Site Listing Page */
.site-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.site-item {
  position: relative;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scaling and shadow */
}

.image-container {
  position: relative;
  width: 100%;
  height: 180px; /* Fixed height for the container */
  overflow: hidden; /* Ensure the image doesn't overflow when it scales */
  border-radius: 20px;
}

.image-container img {
  width: 100%;
  height: 100%; /* Make sure the image fills the container */
  object-fit: cover;
  transition: transform 0.3s ease; /* Smooth transition for image zoom */
}

.site-item .image-container:hover img {
  transform: scale(1.1); /* Zoom the image slightly on hover */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 180px;
  background-color: rgba(0, 0, 0, 0.6); /* Default semi-transparent overlay */
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
  transition: background-color 0.3s ease; /* Smooth transition for the overlay color */
}

.site-name {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-left: 20px;
  position: absolute;
  bottom: 10px;
}


/* Site Details Page */
.site-item-details {
  position: relative;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scaling and shadow */
  margin-top:10px;
}

.site-item-details .image-container {
  position: relative;
  overflow: hidden; /* Ensure the image doesn't overflow when it scales */
  border-radius: 20px;
  overflow:hidden;
  height:250px;
}

.site-item-details .image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease; /* Smooth transition for image zoom */
  overflow:hidden;
}

.site-item-details .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 250px;
  background-color: rgba(0, 0, 0, 0.6); /* Default semi-transparent overlay */
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
  transition: background-color 0.3s ease; /* Smooth transition for the overlay color */
}

.site-item-details .site-name-details {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-left: 20px;
  position: absolute;
  bottom: 10px;
}

/* Gallery container */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two photos per row */
  gap: 10px; /* Space between photos */
  margin: 20px 0; /* Space above and below gallery */
}

/* Gallery images */
.gallery img {
  width: 100%; /* Make images take full width of the grid item */
  aspect-ratio: 1 / 1; /* Ensures images stay in a square ratio */
  object-fit: cover; /* Ensures the image covers the entire square without distortion */
  border-radius: 8px; /* Optional: rounded corners for a softer look */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for depth */
}

/* Media query for mobile screens (one photo per row) */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr; /* One photo per row on small screens */
  }
}


/* Photo Upload */
.upload-photo-form {
  background:#f1f1f1;
  padding:20px;
  border-radius:20px;
  margin:0;
  text-align:center;
}

.upload-photo-form input[type="file"] {
    display: block;
    margin-bottom: 10px;
}
.fa.subtle {
  font-size:30px;
  opacity: 0.6;

}

p.success {
  color: #2A7314;
  font-weight: bold;
  font-size: 22px;
  text-align: center;
}

details.accordion {
  margin: 1rem 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  overflow: hidden; /* So hover effect covers the rounded corners */
}

details.accordion summary {
  cursor: pointer;
  color:white;
  list-style: none;
  padding: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0F2708;
  transition: background-color 0.2s ease;
}

/* Hide default disclosure triangle in WebKit */
details.accordion summary::-webkit-details-marker { display: none; }

/* Hover effect */
details.accordion summary:hover {
  background-color: #081904;
}

/* Custom chevron */
details.accordion summary::after {
  content: "▾";
  font-size: 1rem;
  transition: transform 0.2s ease;
}

details.accordion[open] summary::after {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1rem;
  border-top: 1px solid #e5e5e5;
  line-height: 1.6;
  background-color: #fff;
}
