/* Reset and Global Styling */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

*:not(i) {
  font-family: "Poppins", sans-serif;
}

/* Background Styling */
body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e0039, #2c0e64);
  overflow: hidden;
}

/* Container Styling */
.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  width: 90vmin;
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.heading {
  display: flex;
  gap: 15px;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 40px;
  color: #ff6bcb;
}

/* Search Box Styling */
.search-box {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.search-box input {
  padding: 12px;
  width: 70%;
  border: none;
  outline: none;
  border-bottom: 3px solid #ff6bcb;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
  border-bottom: 3px solid #4efcff;
  background: rgba(255, 255, 255, 0.3);
}

/* Button Styling */
.search-box button {
  padding: 12px;
  width: 25%;
  background: linear-gradient(90deg, #ff6bcb, #4efcff);
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #1e0039;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s ease-in-out;
}

.search-box button:hover {
  background: linear-gradient(90deg, #4efcff, #ff6bcb);
  color: white;
  transform: scale(1.05);
}

/* Result Section */
.result {
  margin-top: 40px;
}

.result h3 {
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.4);
}

/* Word & Speaker Button */
.result .word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
}

.result button {
  background: none;
  color: #4efcff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.result button:hover {
  transform: scale(1.1);
  color: #ff6bcb;
}

/* Word Details */
.details {
  display: flex;
  font-style: italic;
  gap: 10px;
  color: #4efcff;
  margin: 5px 0 20px 0;
  font-size: 14px;
}

/* Word Meaning & Example */
.word-meaning {
  color: white;
  font-size: 20px;
  line-height: 1.5;
}

.word-example {
  color: #ff6bcb;
  font-style: italic;
  border-left: 4px solid white;
  padding-left: 15px;
  margin-top: 20px;
}

/* Error Message */
.error {
  margin-top: 50px;
  text-align: center;
  color: #ff6bcb;
  font-weight: bold;
  font-size: 18px;
}