*{
  box-sizing: border-box;
}
/* Ρυθμίσεις για να καλύψει όλη την οθόνη και να στηρίζεται στο flexbox */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  }

body {
  font-family: 'IM Fell English', serif;
  background-color: #fdf6e3; /* ή #f5f0e1 για πιο ζεστό μπεζ */
  color: #333;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  filter: sepia(6%) contrast(1.02);
}

/* Περιτύλιγμα για περιεχόμενο */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Κύριο περιεχόμενο */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  font-size: 1.4em;
}

/* Επικεφαλίδες */
h1 {
  color:#011c31;
  font-family: 'EB Garamond', serif;
  font-size: 2.0em;
  text-shadow: 1px 1px 0px #d3c6b3;
}

/* Εικόνες */
img {
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Μενού πλοήγησης */
nav {
  background-color: #032741; /* το ίδιο με το footer */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center; /* κεντράρει τα links */
  position: relative;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  max-width: 100%;
  font-size: 1.5em;
 }

/* Λογότυπο */
.logo {
  height: 50px;
  margin-right: 20px;
}

/* Σύνδεσμοι μενού */
nav a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  font-weight: bold;
}

nav a:hover {
  color: #ffcc00;
}

/* Footer */
footer {
  background-color: #011c31;
  color: white;
  text-align: center;
  padding: 20px;
 }

.category-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.category-list li {
  margin: 10px 0;
}

.category-list a {
  color:#011c31;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

.category-list a:hover {
  color: #ff9900;
  text-decoration: underline;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.item {
  width: 250px;
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.item img {
  width: 100%;
  border-radius: 5px;
}
.back-button {
  margin-top: 30px;
  text-align: center;
}

.back-button a,
.back-button a:visited,
.back-button a:hover,
.back-button a:active,
.back-button a:focus {
  text-decoration: none !important;
  background-color:#011c31;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.back-button a:hover {
  background-color:#ff9900;
}
/* Γραμματοσειρά στο main για διαφορετικά μεγέθη οθόνης */
main {
  font-size: 1.4em; /* Βασικό μέγεθος για κινητά */
  line-height: 1.6;
}

/* Για tablets και μικρού μεγέθους desktop */
@media (min-width: 768px) {
  main {
    font-size: 1.2em;
  }
}

/* Για μεγάλα desktop */
@media (min-width: 1024px) {
  main {
    font-size: 1.4em;
  }
}
@media (max-width: 480px) {
  main {
    font-size: 1.4em;
  }
}
.category-list a {
  font-size: 1.4em; /* Βασικό για κινητά */
}

/* Tablets και μικρότερα desktop */
@media (min-width: 768px) {
  .category-list a {
    font-size: 1.4em;
  }
}

/* Μεγάλα desktop */
@media (min-width: 1024px) {
  .category-list a {
    font-size: 1.4em;
  }
}
@media (max-width: 480px) {
  .category-list a {
    font-size: 1.4em;
  }
}

.slider-container {
  position: relative;
  max-width: 800px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
  max-height: 400px;

}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  padding: 10px;
  border: none;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

body.left-align, main.left-align {
  text-align: justify;
}

header,
footer {
  width: 100%;         /* Εξασφαλίζει ότι καλύπτει 100% της ορατής οθόνης */
  margin: 0;
  padding: 1em 0;
  background-color:#011c31; /* Ή ό,τι χρώμα έχεις */
  color: white;
}

body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;   /* Εξαλείφει οριζόντια κύλιση που "σπάει" το layout */
}

a {
    color: inherit;          /* ίδιο χρώμα με το κείμενο γύρω του */
    font-weight: bold;       /* έντονα */
    text-decoration: none;   /* χωρίς υπογράμμιση */
  }

 /* Κεντρικό κοντέινερ για το gallery */
    .gallery {
      display: flex;
      flex-wrap: wrap; /* επιτρέπει τις φωτογραφίες να κατεβαίνουν στην επόμενη σειρά */
      gap: 10px; /* κενό ανάμεσα στις φωτογραφίες */
      justify-content: center; /* κεντράρει τις εικόνες οριζόντια */
    }
    /* Στυλ για κάθε εικόνα */
    .gallery img {
      width: 200px; /* σταθερό πλάτος για όλες τις εικόνες */
      height: auto; /* διατηρεί την αναλογία */
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    /* Εφέ όταν περάσεις το ποντίκι πάνω */
    .gallery img:hover {
      transform: scale(1.05);
    }
    /* Το overlay που θα εμφανίζει την μεγάλη εικόνα */
    #lightboxOverlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.9);
      display: none; /* κρυφό στην αρχή */
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    #lightboxOverlay img {
      max-width: 90vw;
      max-height: 90vh;
      border-radius: 10px;
      box-shadow: 0 0 15px white;
    }
    /* Κουμπί κλεισίματος */
    #lightboxOverlay .close-btn {
      position: fixed;
      top: 20px;
      right: 30px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      user-select: none;
      font-weight: bold;
    }

    .enlarged {
  position: absolute;
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0 0 15px white;
  background: rgba(0,0,0,0.9);
  padding: 10px;
  max-width: 90vw;
  max-height: 90vh;
}

/* Υδατογράφημα */
html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("λογοτυπο_ιστοσελιδας.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

/* μήνυμα και κονφετι  */
#newyear-message {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: bold;
  color: gold;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px 40px;
  border-radius: 15px;
  z-index: 9999;
  opacity: 0;
  animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

#searchResults p {
  color: #f2f2f2;
}




