@charset "UTF-8";

body {
  background: url('/Gallery-Paxos/Trypitos.jpeg') no-repeat center center fixed;
  background-size: cover;
}

/* ---------- Main Container ---------- */
.main-container {
  width: 60%;
  margin: 20px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-container h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  color: #333;
}

.main-container p {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

/* ---------- Attraction Section ---------- */
.attraction-section {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f1f3f5;
}

/* Attraction Title & Description */
.attraction-info h2 {
  font-size: 1.8em;
  color: #f0a500;
  margin-bottom: 10px;
}

/* Justify the paragraph text within attraction-info */
.attraction-info p {
  text-align: justify; /* Key for justified text */
  margin-bottom: 10px;
  font-size: 1em;
  color: #333;
}

/* ---------- Map & Image Container ---------- */
/* Places the map and image side by side below the text */
.map-and-image-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 20px; /* space above the row */
}

/* Map styling */
.attraction-map iframe {
  width: 100%;
  height: 200px;
  border: 1px solid #f8c146;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Image styling */
.attraction-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ---------- Back Link ---------- */
.back-link {
  display: block;
  text-align: center;
  margin: 20px auto;
  text-decoration: none;
  color: #333;
  background-color: #f0a500;
  padding: 12px 10px;
  border-radius: 5px;
  font-size: 1.3rem;
  width: 25%;
  height: 50px;
}

.back-link:hover {
  background-color: #4d87ce;
  color: #fff;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .main-container {
    width: 95%;
    margin-top: 20px;
    padding: 10px;
  }
  
  .main-container h1{
	font-size: 2em;
  }
  
  .main-container p{
  	text-align: justify;
  }
  
  /* Stack the map and image vertically on smaller screens */
  .map-and-image-container {
    flex-direction: column;
    align-items: center;
  }
  
  .back-link {
    width: 55%;
  }
}
