body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f9f9f9;
}

.hidden {
  display: none;
}

header h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* Container to control layout */
#image-container {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  width: 100%;             /* Full width of the screen */
  height: 70vh;            /* Takes up 70% of screen height */
  padding: 10px;
  box-sizing: border-box;
}

/* Image itself */
#dog-image {
  max-width: 90%;          /* Up to 90% of the screen width */
  max-height: 90%;         /* Up to 90% of the container height */
  height: auto;            /* Maintain aspect ratio */
  width: auto;             /* Maintain aspect ratio */
  border-radius: 10px;     /* Optional rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow for effect */
}

/* Anecdote text */
#anecdote {
  text-align: center;
  margin-top: 20px;
  font-size: 1.5em; /* Slightly larger font for better readability */
  padding: 0 20px;
}

/* Button style */
#new-anecdote-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 1em;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#new-anecdote-btn:hover {
  background-color: #0056b3;
}

/* Password box */
.password-box {
  text-align: center;
  background: #fff;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

/* Input and Button styling */
input {
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
}

button {
  margin-top: 10px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
}

/* Error message style */
#error-message {
  color: red;
  margin-top: 10px;
}
