:root {
  --base: rgba(200, 200, 200, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  background: linear-gradient(#000021, #000000);
}

main {
  width: min(70vw, 400px);
  font-family: helevetica, sans-serif;
  color: #fff;
}

.search {
  display: flex;
  height: 3.5rem;
  background-color: rgba(210, 210, 210, 0.05);
  margin-bottom: 1rem;
  border-radius: 0.5rem;

  & input {
    flex: 1;
    font-size: 0.8rem;
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0 1rem;
    color: rgba(200, 200, 200, 0.5);
  }

  & button {
    background-color: transparent;
    border: none;
    padding: 0 1rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    

    & .search-icon {
      font-size: 1rem;
      color: #fff;
    }
  }
}

::-webkit-input-placeholder {
  font: 0.8rem helevetica, sans-serif;
  color: rgba(220, 220, 220, 0.3);
}

.result {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.word {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 5px;

  & h1 {
    font-size: 2.25rem;
    color: #fff;
    text-align: center;
  }

  & button {
    display: grid;
    place-items: center;
    border: none;
    background-color: transparent;
    cursor: pointer;

    & .sound-icon {
      font-size: 1rem;
      color: rgba(230, 230, 230, 0.6);
    }
  }
}

.details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0.25rem 0 1.5rem;

  & .phonetic {
    font-size: 0.8rem;
    color: rgba(210, 210, 210, 0.3);
    font-style: italic;
  }

  & .pos {
    font-size: 0.8rem;
    color: rgba(210, 210, 210, 0.7);
  }
}

.definitions {
  list-style-type: disc;

  & li {
    font-size: 0.8rem;
    font-weight: 100;
    line-height: 1.6;
    margin: 0rem 0 1rem 0.75rem;
    color: rgba(210, 210, 210, 0.5);
  }
}

.error {
  font-size: 0.8rem;
  font-weight: 100;
  color: rgba(210, 210, 210, 0.5);

  & h1 {
    font-size: 1.25rem;
    color: rgba(210, 210, 210, 0.7);
  }

  & ul {
    margin: 1rem 0 1rem 0.5rem;

    & li {
      margin: 0.75rem 0.5rem;
    }
  }
}