@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(90deg, #FFEAA7 0%, #4ECDC4 23%, #82E0AA 48%, #6C5CE7 78%, #764ba2 100%);
animation: gradient-wave-custom 1s ease-in-out infinite;
  background-size: 400% 400%;
}

.container {
  width: 95%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.125);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: center;
}

.container h2 {
  margin-bottom: 20px;
  color: #333;
}

.lang-select {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.lang-select select {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid black;
  font-size: 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.125);;
  transition: 0.3s;
}

.lang-select select:hover {
  border-color: #2575fc;
}

.swap-btn {
  background: rgba(255, 255, 255, 0.125);
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  color:  black;
  font-size: 20px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.swap-btn:hover {
  background: #6B9032;
  transform: rotate(180deg);
}

.text-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.text-area textarea {
  width: 100%;
  min-height: 120px;
  border: 2px solid rgba(255, 255, 255, 0.125);
  outline: none;
  resize: none;
  background: rgba(255, 255, 255, 0.125);
  border-radius: 12px;
  padding: 15px;
  font-size: 15px;
  transition: 0.2s ease;
}

.text-area textarea:focus {
  background:rgba(255, 255, 255, 0.125);;
  border-color: #6B9032; /* highlight on focus */
  box-shadow: 0 0 0 2px #2575fc33;
}

.translate-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6B9032);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.translate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(37, 117, 252, 0.3);
}


/* === Mouse following dot === */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1c501f;  /* visible color */
  border: 3px solid #000;
  pointer-events: none;  /* so it doesn't block clicks */
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;  /* smooth growth/shrink */
}
