/* Reset and basic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Content area */
main {
  flex: 1;
  text-align: center;
  padding: 20px; 
}

main h1,
main p,
main button {
  color: #333;
  margin-top: 30px;
}

/* Button styling */
button {
  padding: 10px 20px;
  margin-top: 20px;
  font-size: 18px;
  background-color: #4caf50;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

/* Slider container */
.slider {
  width: 900px;
  height: 700px;
  margin: 40px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Image inside the slider */
.slider-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation buttons */
.prev-button,
.next-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  padding: 10px 16px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

.prev-button:hover,
.next-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev-button {
  left: 15px;
}

.next-button {
  right: 15px;
}

/* Footer styling */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: auto;
}

@media (max-width: 768px) {
  /* Main content spacing */
  main {
    padding: 20px 10px;
  }

  main h1 {
    font-size: 22px;
  }

  main p {
    font-size: 16px;
  }

  button.photo-page-button {
    padding: 12px 24px;
    font-size: 16px;
  }

  /* Slider responsiveness */
  .slider {
    width: 100%;
    height: auto;
    max-height: 400px;
    flex-direction: column;
  }

  .slider-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .prev-button,
  .next-button {
    font-size: 20px;
    padding: 8px 12px;
  }
}

