/* Resetting default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #222; /* Dark background */
  color: #f0f0f0; /* Light text color */
}

header {
  position: relative;
  padding: 20px 0; /* Original padding */
  text-align: center;
  background-image: url('images/headerpicture.png');
  background-size: cover;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  z-index: -1; /* Ensure the overlay is behind the text */
}

header h1 {
  font-size: 36px; /* Increased font size */
  font-weight: bold; /* Make the text bold */
  color: #fff; /* White text */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow */
  position: relative; /* Ensure the text is layered above the overlay */
  z-index: 1; /* Ensure the text is layered above the overlay */
}

.container {
  display: flex; /* Use flexbox */
  justify-content: center; /* Center content horizontally */
  align-items: flex-start; /* Align content to the top */
  height: 100vh; /* Make the container full height of viewport */
  margin-top: 20px; /* Add margin to move it down */
}

.content {
  background-color: #292929; /* Background color */
  padding: 20px; /* Padding */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow */
}

h3 {
  text-align: center;
  font-size: 36px; /* Adjusted font size */
  color: #ffd700; /* Gold color for headings */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add shadow effect */
}

label {
  color: #fff; /* White text color */
}

input[type="text"],
input[type="password"],
input[type="submit"],
button {
  background-color: #8B4513; /* Teak Brown */
  color: #fff; /* White text color */
  padding: 10px 20px; /* Padding */
  margin-bottom: 10px; /* Margin */
  border-radius: 5px; /* Rounded corners */
  border: none; /* Remove border */
  cursor: pointer; /* Change cursor on hover */
}

input[type="text"],
input[type="password"] {
  width: 100%; /* Full width */
  padding: 10px; /* Padding */
  background-color: #4A4A4A; /* Darker background color */
  border: 1px solid #8B4513; /* Teak Brown border */
}

input[type="submit"],
button[type="button"] {
  width: 100%; /* Full width */
  background-color: #A0522D; /* Darker shade */
}

input[type="submit"]:hover,
button[type="button"]:hover {
  background-color: #8B4513; /* Teak Brown hover background */
}

/* Background image for h3 */
h3 {
  background-image: url('images/introcatcrop.png'); /* Add background image */
  background-size: cover; /* Adjust the size of the background image */
  background-position: center; /* Center the background image */
}
.error-message {
  position: fixed; /* Fixed positioning */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Centering trick */
  background-color: #4CAF50; /* Green background */
  color: #fff; /* White text color */
  padding: 20px; /* Padding */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow */
  z-index: 9999; /* Ensure it's on top of other content */
  animation: fadeOut 10s forwards; /* Animation to fade out */
}

@keyframes fadeOut {
  0% { opacity: 1; } /* Full opacity */
  100% { opacity: 0; } /* Completely transparent */
}
