/* Import Google Font - Poppins */
@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 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #000;
  padding: 20px;
}

::selection {
  color: #fff;
  background: #4D59FB;
}

.title {
  color: #fff;
  text-align: center;
  font-size: 32px;
}

.wrapper {
  width: 80%;
  max-width: 1000px;
  border-radius: 10px;
  background: #111;
  padding: 30px 40px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.wrapper header {
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  text-align: center;
}

.wrapper .search {
  position: relative;
  margin: 30px 0;
}

.search input {
  height: 60px;
  width: 100%;
  outline: none;
  font-size: 18px;
  border-radius: 8px;
  padding: 0 50px;
  border: 2px solid #999;
  background: #222;
  color: #fff;
}

.search input:focus {
  border: 2px solid #4D59FB;
}

.search input::placeholder {
  color: #B8B8B8;
}

.search i, .search span {
  position: absolute;
  top: 50%;
  color: #999;
  transform: translateY(-50%);
}

.search i {
  left: 20px;
  font-size: 20px;
}

.search span {
  right: 20px;
  cursor: pointer;
  font-size: 22px;
  display: none;
}

.search input:valid ~ span {
  display: block;
}

.wrapper .info-text {
  color: #9A9A9A;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.wrapper.active .info-text {
  display: none;
}

.wrapper ul {
  opacity: 0;
  overflow-y: hidden;
  transition: all 0.3s ease;
}

.wrapper.active ul {
  opacity: 1;
  height: auto;
}

.wrapper ul li {
  display: flex;
  list-style: none;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #444;
  justify-content: space-between;
}

ul .word p {
  color: #4D59FB;
  font-size: 24px;
  font-weight: 600;
}

ul .word span {
  font-size: 14px;
  color: #989898;
}

ul .word i {
  color: #999;
  font-size: 20px;
  cursor: pointer;
}

ul .content {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

ul .content::-webkit-scrollbar {
  width: 5px;
}

ul .content::-webkit-scrollbar-thumb {
  background: #4D59FB;
  border-radius: 5px;
}

.content li .details {
  padding-left: 15px;
  border-left: 4px solid #4D59FB;
}

.content li p {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.content li span {
  font-size: 16px;
  color: #B8B8B8;
}

.content .synonyms .list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content .synonyms span {
  cursor: pointer;
  text-decoration: underline;
  color: #4D59FB;
}
