* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-image: url("bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  transition: all 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  padding: 20px;
}

.content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  max-width: 500px;
  width: 100%;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-container {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
  align-items: stretch; /* Changed to stretch for equal height */
}

#inputField {
  height: 50px;
  width: 280px;
  border-radius: 25px;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgb(13, 7, 87);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#inputField::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#inputField:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

#searchButton {
  height: 50px; /* Same height as input field */
  width: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Prevent button from shrinking */
}

#searchButton::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

#searchButton:hover::before {
  left: 100%;
}

#searchButton:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#searchButton:active {
  transform: scale(0.95);
}

.icon {
  height: 22px;
  width: 22px;
  color: white;
  transition: transform 0.3s ease;
}

#searchButton:hover .icon {
  transform: scale(1.1);
}

.result {
  text-align: center;
  margin-top: 0px;
  color: white;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.result h2 {
  font-size: 2.5em;
  margin: 0.3em 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInFromLeft 0.6s ease-out;
}

.result h3 {
  font-size: 4em;
  margin: 0.2em 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #fff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bounceIn 0.8s ease-out;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.result p {
  font-size: 1.4em;
  margin: 0.5em 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  text-transform: capitalize;
  animation: slideInFromRight 0.6s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design */
@media (max-width: 600px) {
  .content {
    padding: 30px 20px;
    margin: 20px;
  }

  .search-container {
    flex-direction: row; /* Keep them side by side on mobile too */
    align-items: center;
  }

  #inputField {
    width: 100%;
    max-width: 280px;
  }

  .result h2 {
    font-size: 2em;
  }

  .result h3 {
    font-size: 3em;
  }
}
#inputField::placeholder {
  color: #0d0725; /* Light gray that contrasts well */
}
