:root {
  --color-black: #222;
}

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

html{
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: white;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--color-black);
  }
}

.wrapper {
  display: flex;
  flex-direction: column;
  place-items: center;
  width: 100%;
  height: 100%;
  padding-top: 48px;
}


.search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  border: 2px solid #2589d0;
  border-radius: 42px;
}

.search-box_text {
  box-sizing: border-box;
  width: clamp(200px, 30vw , 360px);
  height: 100%;
  padding: 32px 24px;
  font-size: 16px;
  border: none;
  border-radius: 42px 0 0 42px;
  outline: none;
}

@media (prefers-color-scheme: dark) {
  .search-box_text {
    color: white;
    background-color: var(--color-black);
  }
}

.search-box_button {
  padding: 12px;
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  outline: none;
}

.search-box_button:focus-visible {
  outline: solid 2px #2589d0;
}

.lottie {
  display: block;
  width: 60px;
  height: 60px;
}

.result-area {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  place-content: center;
  width: 100%;
  max-width: 600px;
  padding: 16px;
  margin-top: 36px;
  visibility: visible;
}

.result-area.isFirstView {
  visibility: hidden;
}

.result-area.isLoading {
  opacity: 0.5;
}

.box {
  width: 100%;
  height: 160px;
  background-color: #eee;
  border-radius: 20px;
}

@media (prefers-color-scheme: dark) {
  .box {
    background-color: #aaa;
  }
}

#search-status {
  display: grid;
  place-items: center;
  font-size: 24px;
}
