/* 🌸 General Page Setup */
body {
  background-color: #f8faf5;
  background-image: linear-gradient(white 1px, transparent 1px),
                    linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 40px 40px; /* subtle grid pattern */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Comic Neue", "Poppins", sans-serif;
  color: #4b5a43;
}

/* 🌼 Main Box */
.container {
  background-color: #ffffff;
  border: 3px solid #a8c5a0;
  border-radius: 20px;
  width: 600px;
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(170, 190, 150, 0.2);
}

/* 🍃 Header Text */
h1, h2 {
  color: #4b5a43;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

/* 🦆 Image Style */
.main-image {
  width: 100%;
  border: 3px solid #a8c5a0;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* 🌸 Menu Layout */
.menu {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.menu-item {
  background-color: #f9fbf6;
  border: 2px solid #a8c5a0;
  border-radius: 10px;
  width: 150px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: scale(1.05);
  background-color: #eef6eb;
}

.menu-item img {
  width: 100%;
  border-radius: 8px;
}

.menu-item h3 {
  margin-top: 10px;
  color: #4b5a43;
}

/* 🌿 Navigation Buttons */
.navbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.nav-button {
  border: 2px solid #a8c5a0;
  background-color: #f4f9f3;
  border-radius: 25px;
  padding: 6px 18px;
  font-weight: bold;
  cursor: pointer;
  color: #4b5a43;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background-color: #d8e7d3;
}

/* ✨ Password Box Version */
.password-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="password"] {
  border: 2px solid #a8c5a0;
  border-radius: 8px;
  padding: 8px 12px;
  width: 60%;
  margin-bottom: 10px;
  outline: none;
}

button {
  background-color: #a8c5a0;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  padding: 8px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Comic Neue", "Poppins", sans-serif;
}

button:hover {
  background-color: #90b58a;
}

/* 🌿 Shake animation when password is wrong */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease;
  border-color: #ff8080 !important;
}