body {
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #eee;
}

/* Wrapper & Container */
.wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.container {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
  max-width: 500px;
}

/* Typography */
h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.subtitle {
  color: #ccc;
  margin-bottom: 20px;
}

/* Search Box */
.search-box {
  position: relative;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2c2c2c;
  color: #eee;
  box-sizing: border-box;
}

button {
  margin-top: 10px;
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  background: #03a9f4;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #0288d1;
}

/* Suggestions Dropdown */
#suggestions {
  position: absolute;
  width: 100%;
  background: #2c2c2c;
  color: #eee;
  border: 1px solid #444;
  border-top: none;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
  border-radius: 0 0 8px 8px;
}

.suggestion {
  padding: 10px;
  cursor: pointer;
}

.suggestion:hover {
  background: #3a3a3a;
}

/* Results */
.result {
  margin-top: 20px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Emoji */
#emoji {
  font-size: 3rem;
  margin-top: 10px;
}

/* Footer */
.footer {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  background-color: #1e1e1e;
}

/* Ruler */
.ruler-container {
  width: 100%;
  max-width: 300px;
  height: 30px;
  border: 2px solid #555;
  border-radius: 8px;
  background: #333;
  margin: 10px auto;
  position: relative;
}

.ruler-fill {
  height: 100%;
  border-radius: 8px 0 0 8px;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.ruler-number {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 5px;
  color: #fff;
}

/* Sad face animation */
.sad-face {
  position: fixed;
  top: 0;
  font-size: 2rem;
  animation: fall 3s linear forwards;
  user-select: none;
  pointer-events: none;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Copy link button */
#copyLinkBtn {
  background-color: #03a9f4;
  border: none;
  color: white;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#copyLinkBtn:hover {
  background-color: #0288d1;
}

#copyLinkIcon {
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#copyLinkIcon:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

