body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("images/all avengers.png");
  background-size: cover;
  background-position: 10% 10%; 
  background-attachment: fixed;
  overflow-x: hidden;
  backdrop-filter: blur(2px);
}

/* Κεντρικός τίτλος */
.title {
  font-size: 4rem;
  font-weight: bold;
  color: #ffffff;
  padding: 20px 40px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
  text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
  letter-spacing: 3px;
  backdrop-filter: blur(6px);
  animation: pulse 3s infinite ease-in-out;
  text-align: center;
  margin: 60px auto 150px auto;
  width: fit-content;
}

.slider-wrapper {
  position: relative;
  max-width: 95%;
  margin: 150px auto 0 auto; /* 👈 έβαλα 150px από πάνω αντί για 0 */
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
  gap: 10px;
}

/* Εικόνες desktop */
.slider-container img {
  width: 230px;  
  height: 290px;
  flex-shrink: 0;
  border-radius: 50px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* Preview box image */
#preview-img {
  height: auto;
  max-height: 400px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Κουμπιά slider */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

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

.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Animation τίτλου */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ------------------------------
   📱 Responsive κανόνες για κινητό
--------------------------------*/
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
    margin: 40px auto 100px auto;
  }

  .slider-container img {
    width: 120px;
    height: 180px;
  }

  #preview-img {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
    margin: 30px auto 80px auto;
  }

  .slider-container img {
    width: 100px;
    height: 150px;
  }

  #preview-img {
    max-height: 200px;
  }
}
