@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  background: url('Src/bg1.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}
.wrapper {
  background: rgba(238, 215, 215, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(10px);
  width: 80%;
  max-width: 600px;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(38, 33, 61, 0.3);
  position: relative;
  z-index: 1;
}
.search-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.search-box input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
  border-bottom: 3px solid #ae9cff;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
}
.search-box button {
  flex: 0 0 auto;
  padding: 10px;
  width: auto;
  max-width: 120px;
  background-color: rgba(174, 156, 255, 0.9);
  border: none;
  outline: none;
  color: #ffffff;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
}
.result {
  position: relative;
}
.result h3 {
  font-size: 30px;
  color: #a98cff;
  margin-bottom: 20px;
}
.result .word {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.result button {
  background-color: transparent;
  color: rgba(174, 156, 255, 0.9);
  border: none;
  outline: none;
  font-size: 18px;
}
.result .details {
  display: flex;
  gap: 10px;
  color: #b3b6d4;
  margin: 5px 0 20px 0;
  font-size: 14px;
}
.word-meaning {
  color: #d3d6e0;
}
.word-example {
  color: #8f909a;
  font-style: italic;
  border-left: 5px solid #ae9cff;
  padding-left: 20px;
  margin-top: 30px;
}
.error {
  margin-top: 80px;
  text-align: center;
}

@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .search-box input {
    width: 100%;
    margin-bottom: 0;
    border-radius: 15px;
  }
  .search-box button {
    width: 50%;
    text-align: center;
    max-width: none;
    border-radius: 15px;
  }
}
