@font-face {
  font-family: 'Caviar Dreams';
  src: url('font/caviar_dreams/CaviarDreams_Bold.ttf') format('truetype');
  src: url('font/caviar_dreams/CaviarDreams_BoldItalic.ttf') format('truetype');
  src: url('font/caviar_dreams/CaviarDreams_Italic.ttf') format('truetype');
  src: url('font/caviar_dreams/CaviarDreams.ttf') format('truetype');
  /* Add additional src lines if you have multiple font file formats (e.g., .woff, .woff2) */
}

:root {
  --bg: #f7f6f3;
  --card: #ffffff;
  --accent: #b86f3f;
  --accent-2: #c77e4e;
  --muted: #6b6b6b;
  --control-height: 40px;
}

/* Prevent any horizontal scrolling */
html, body { overflow-x: hidden; }

body {
  font-family: 'Caviar Dreams', sans-serif;
  background-color: var(--bg);
  color: #222;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  text-align: center;
  user-select: none; /* Disable text selection */
}

.language-selection {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.language-btn {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  margin: 0;
  padding: 0 10px;
  height: 40px;
  width: 40px;
  min-width: 40px;
  font-family: 'Caviar Dreams', sans-serif; /* Apply font */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
  line-height: 1;
  flex-shrink: 0;
}

.language-btn img {
  height: 32px;
  width: 32px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.language-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.09);
}

.language-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  .language-btn { padding: 0 10px; height: var(--control-height); min-width: var(--control-height); }
  .language-btn img { height: calc(var(--control-height) - 8px); }
}

.photo-wrapper {
  position: relative;
}

.photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0; /* remove inline gaps between images */
  gap: 0; /* ensure no gap between stacked images */
}

.photo-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0; /* remove spacing between stacked images */
  padding: 0;
  border: 0;
  pointer-events: none; /* Make photos unclickable */
  box-shadow: none; /* keep images flush */
  border-radius: 0;
  background: transparent;
}

.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0; /* Initially hidden (shown via .show class) */
  pointer-events: none;
  /* Additional styles for a more beautiful button */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.scroll-to-top-btn img {
  width: 24px; /* Adjust icon size as needed */
  height: auto;
}

.scroll-to-top-btn:hover {
  background-color: #b66a3b; /* Darker shade on hover */
}

.dropdown {
  position: absolute;
  width: auto; /* Adjust width as needed */
  max-height: 320px; /* Adjust as needed */
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15,15,15,0.08);
  display: none;
}

/* Animated open / close for dropdown */
.dropdown.open {
  animation: dropdown-in 220ms ease forwards;
  box-shadow: 0 22px 60px rgba(15,15,15,0.14);
}
.dropdown.closing {
  animation: dropdown-out 160ms ease forwards;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scaleY(.995); }
  to   { opacity: 1; transform: none; }
}
@keyframes dropdown-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px) scaleY(.995); }
}

.dropdown-item { transition: background 160ms ease, transform 160ms ease; }
.dropdown-item:hover { transform: translateX(6px); background-color: #fbfbfb; }

/* Photo reveal removed per request (no fade-in to avoid layout gaps) */

/* show state for scroll-to-top */
.scroll-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

@keyframes pop-in {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.dropdown-item {
  display: block;
  padding: 10px;
  font-size: 16px;
  color: #333;
  border: none;
  background: none;
  cursor: pointer;
  text-align: center; /* Center the text */
  width: 100%; /* Make items span full width */
  box-sizing: border-box; /* Include padding in the width */
  border-bottom: 1px solid #ccc; /* Horizontal line under each item */
  white-space: nowrap; /* Prevent text wrapping */
  font-family: 'Caviar Dreams', sans-serif; /* Apply font */
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-item:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

.dropdown-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 5px;
  height: var(--control-height);
  padding: 0 20px; /* horizontal padding, vertical controlled by height */
  min-width: 170px; /* keep size that fits the Greek word 'Αναζήτηση' */
  white-space: nowrap; /* prevent text wrap so width remains stable */
  font-size: 18px; /* Increase font size */
  font-weight: bold; /* Make font bold */
  cursor: pointer;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  transition: opacity 0.3s ease;
  user-select: none;
  width: auto;
  font-family: 'Caviar Dreams', sans-serif; /* Apply font */
  line-height: 1; /* vertical centering handled by flex alignment */
}

.dropdown-btn img {
  width: 24px;
  height: auto;
  margin-left: 8px;
}

.dropdown-btn span {
  margin-right: 8px;
  color: black; /* Add this line to change the color to black */
  user-select: none; /* Disable text selection */
}

.hidden {
  opacity: 0;
  pointer-events: none; /* Prevent interaction while hidden */
  transition: opacity 0.3s ease;
}

.no-select {
  user-select: none; /* Prevent text selection */
}

.auto-width {
  white-space: nowrap; /* Prevent text wrapping */
}

#close-footer-btn {
  position: absolute; /* Position absolutely within the footer */
  top: 5px; /* Adjust top position as needed */
  left: 10px; /* Adjust left position for desired margin */
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease;
}

.footer {
  background: linear-gradient(90deg, #2f2f2f, #222);
  color: #fff;
  padding: 12px 18px; /* Adjust padding if needed */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center; /* Center align text */
  font-size: 14px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
}

.footer p {
  margin: 0;
  line-height: 1.5;
}

.footer a {
  color: inherit;
  text-decoration: underline;
}

.footer a:hover {
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .dropdown-btn {
    top: 14px;
    padding: 10px 14px;
    font-size: 16px;
  }

  .language-selection {
    top: 14px;
    right: 12px;
    gap: 8px;
    align-items: center;
  }

  .language-btn { height: 40px; width: 40px; min-width: 40px; padding: 0; line-height: 1; }
  .language-btn img { height: 32px; width: 32px; }
}

@media (max-width: 600px) {
  .dropdown-btn {
    top: 10px;
    left: 12px;
    padding: 8px 12px;
    font-size: 15px;
  }

  .dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 0;
    top: auto;
    max-height: 55vh;
    border-radius: 16px 16px 16px 16px;
    padding: 10px 12px;
    width: calc(100% - 24px);
    box-sizing: border-box;
  }

  .dropdown-item { font-size: 16px; padding: 12px; }

  .language-selection {
    top: 10px;
    right: 12px;
  }

  .language-btn { height: 40px; width: 40px; min-width: 40px; padding: 0; line-height: 1; }
  .language-btn img { height: 32px; width: 32px; }

  .photo-container img { border-radius: 0; box-shadow: none; }
}}

@media (max-width: 420px) {
  .dropdown-btn { left: 12px; top: 10px; padding: 8px 12px; font-size: 14px; }
  .language-selection { right: 12px; top: 10px; }
  .scroll-to-top-btn { width: 44px; height: 44px; }
  .footer { font-size: 13px; padding: 10px; }
}

/* Keep dropdown button fixed size on all viewports (no mobile override) */