@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/comfortaa.woff2") format("woff2");
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/comfortaa.woff2") format("woff2");
}

body {
  font-family: "Comfortaa", sans-serif;
  transition: background-color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.search-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.search-box {
  position: relative;
  max-width: 584px;
  width: 100%;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  min-height: 58px;
  max-height: 200px;
  background: transparent;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 18px 80px 18px 20px;
  font-size: 16px;
  color: inherit;
  outline: none;
  transition: all 0.3s;
  resize: none;
  overflow-y: auto;
  line-height: 22px;
}

.dark .search-input {
  border-color: #5f6368;
  background: rgba(255, 255, 255, 0.05);
}

.search-input:hover,
.search-input:focus {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border-color: rgba(223, 225, 229, 0);
}

.dark .search-input:hover,
.dark .search-input:focus {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.search-input::-webkit-scrollbar {
  width: 0px;
}

.search-icon,
.clear-button {
  position: absolute;
  top: 16px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.search-icon {
  right: 16px;
  color: #4285f4;
  cursor: pointer;
}

.clear-button {
  right: 50px;
  color: #70757a;
  cursor: pointer;
  display: none;
}

.dark .clear-button {
  color: #9aa0a6;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
