*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 0 16px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1 {
  font-size: 2rem;
}

.container {
  width: 100%;
  max-width: 640px;
}

.input-search-btn-container {
  display: flex;
  gap: 4px;
}

#input-word,
#search-btn {
  padding: 16px 20px;
  border: 1px solid #000;
}

#input-word {
  width: 100%;
  border-radius: 100px 0 0 100px;
}

#search-btn {
  width: 240px;
  border-radius: 0 100px 100px 0;
  cursor: pointer;
}

.dynamic-result-container {
  margin-top: 16px;
  padding: 48px;
  border: 1px solid #ddd;
  border-radius: 32px;
}

.word-volume-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#pronunciation-btn {
  background: none;
  border: none;
  cursor: pointer;
}

#phonetic {
  color: #707070;
}

#meaning {
  margin-top: 16px;
  font-weight: 700;
}

#example {
  margin-top: 48px;
  padding: 6px 10px;
  border-left: 1px solid #707070;
  font-weight: 200;
  font-style: italic;
}

.error-message {
  justify-self: center;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .dynamic-result-container {
    padding: 32px;
  }

  .input-search-btn-container {
    flex-direction: column;
  }
  #input-word,
  #search-btn {
    width: 100%;
    border-radius: 100px;
  }

  #search-btn {
    width: 100%;
  }
}
