/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  color: white;
}

/* Slideshow container */
#slideshow {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Background handling */
#background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  transition: opacity 2s ease;
  background-position: center;
}

/* Desktop view - cover the entire screen */
.background-image.desktop-view {
  background-size: cover;
}

/* Mobile view - also cover the entire screen */
.background-image.mobile-view {
  background-size: cover;
}

/* Content styling */
#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
}

/* Header styling */
header {
  margin-bottom: 40px;
}

header h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: normal;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Form styling */
form {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

/* Error message */
.error-message {
  color: #ff6b6b;
  margin-bottom: 20px;
  padding: 10px;
  background-color: rgba(255, 0, 0, 0.1);
  border-radius: 4px;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 0.8rem;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header h3 {
    font-size: 1.2rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  header h3 {
    font-size: 1rem;
  }
  
  header h1 {
    font-size: 1.7rem;
  }
  
  form {
    max-width: 300px;
  }
}