/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #ddeaf6, #f6f8fc);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Container centers content */
.container {
  width: 100%;
  max-width: 520px;
}

/* Core Card Style */
.form-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

/* Headings */
h2 {
  text-align: center;
  color: #1a237e;
  margin-bottom: 25px;
  font-size: 26px;
}

/* Form Layout */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #3949ab;
  outline: none;
}

/* Textarea sizing */
textarea {
  resize: vertical;
  min-height: 60px;
}

/* Button Styles */
button {
  padding: 12px;
  background-color: #3949ab;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #283593;
}

/* Logout Button (if used) */
.logout-btn {
  background-color: #c62828;
}

.logout-btn:hover {
  background-color: #b71c1c;
}

/* Success or Output Message Box */
.output {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

/* Output image (e.g., result photo) */
.output img {
  max-width: 140px;
  border-radius: 8px;
  margin-top: 12px;
}

/* Links */
a {
  color: #3949ab;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-top: 8px;
}

a:hover {
  text-decoration: underline;
}

/* Hide elements by default */
.hidden {
  display: none;
}

/* Warning Popup Fullscreen */
#warning-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(229, 57, 53, 0.95);
  color: white;
  font-size: 34px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  text-align: center;
  padding: 30px;
  border-radius: 0;
}

#warning-popup.hidden {
  display: none;
}

/* Responsive image for result GIF */
#result-gif {
  margin-top: 20px;
  max-width: 100%;
  border-radius: 10px;
}
/* New styles for emoji feedback */
.result-emoji {
  font-size: 80px;
  margin-top: 20px;
  animation: bounce 0.8s ease-in-out infinite alternate;
}

@keyframes bounce {
  from { transform: scale(1); }
  to   { transform: scale(1.25); }
}
