/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Center screen */
body {
  background: linear-gradient(145deg, #e0eafc, #cfdef3);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  overflow: hidden;
}

/* iPhone Frame */
.iphone-frame {
  width: 320px;
  height: 650px;
  background: #111;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Notch (simulated) */
.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #000;
  border-radius: 10px;
  z-index: 2;
}

/* Screen inside the frame */
.iphone-screen {
  background: #fdfdfd;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* Container for App */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInSlide 0.8s ease-out;
  text-align: center;
}

/* Animations */
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  margin-top: 12px;
  margin-right: 38px;
}

/* Input field */
.input input {
  width: 250px;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  transition: 0.3s ease;
}

.input input:focus {
  outline: none;
  border-color: #5b9df9;
  box-shadow: 0 0 5px rgba(91, 157, 249, 0.5);
}

/* Search Button */
.btn {
  background-color: #5b9df9;
  color: #fff;
  margin-top: 12px;
  padding: 10px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  margin-right: 20px;
}

.btn:hover {
  background-color: #4281f5;
}

/* Fetching message */
.fetching-message {
  margin-top: 20px;
  font-size: 1rem;
  color: #888;
  animation: fadeIn 0.4s ease-in-out;
}

/* Result */
.definition {
  margin-top: 30px;
  text-align: left;
  background: #f4f6fa;
  padding: 15px;
  border-radius: 12px;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.word {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.meaning {
  font-size: 1rem;
  color: #444;
}

/* Subtle fade */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
