/* ÐŸÑ–Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð½Ñ ÑˆÑ€Ð¸Ñ„Ñ‚Ñ–Ð² Ð· Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Open+Sans:wght@400;700&display=swap");

body {
  background-color: #1a1a1a;
  transition: background-color 0.5s ease; /* Ð”Ð¾Ð´Ð°Ñ”Ð¼Ð¾ Ð¿Ð»Ð°Ð²Ð½Ð¸Ð¹ Ð¿ÐµÑ€ÐµÑ…Ñ–Ð´ Ð´Ð»Ñ Ñ„Ð¾Ð½Ñƒ */
  color: #f0f0f0;
  font-family: "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  /* text-align: center; */
  margin: 30px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

button {
  padding: 20px 40px;
  background-color: #607d8b;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  font-family: "Roboto Slab", serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-2px);
}

button.loading {
  background-color: #ddd;
  color: #1a1a1a;
  cursor: default;
}

button.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 50%
  );
  animation: loadingAnimation 1.5s linear infinite;
}

@keyframes loadingAnimation {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
span#predictionText {
  font-size: 26px;
}

#prediction {
  flex-direction: column;
  margin: 0 0 40px 0;
  padding: 45px 40px 60px 40px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  display: flex; /* Ð’Ð¸ÐºÐ¾Ñ€Ð¸ÑÑ‚Ð¾Ð²ÑƒÑ”Ð¼Ð¾ flexbox Ð´Ð»Ñ Ð²Ð¸Ñ€Ñ–Ð²Ð½ÑŽÐ²Ð°Ð½Ð½Ñ ÑÐ»Ñ–Ð² */
  flex-wrap: wrap; /* ÐŸÐµÑ€ÐµÐ½Ð¾ÑÐ¸Ð¼Ð¾ ÑÐ»Ð¾Ð²Ð° Ð½Ð° Ð½Ð¾Ð²Ð¸Ð¹ Ñ€ÑÐ´Ð¾Ðº Ð¿Ñ€Ð¸ Ð½ÐµÐ¾Ð±Ñ…Ñ–Ð´Ð½Ð¾ÑÑ‚Ñ– */
  gap: 5px; /* Ð”Ð¾Ð´Ð°Ñ”Ð¼Ð¾ Ð¿Ñ€Ð¾Ð¼Ñ–Ð¶Ð¾Ðº Ð¼Ñ–Ð¶ ÑÐ»Ð¾Ð²Ð°Ð¼Ð¸ */
}

#prediction span {
  /* Ð¡Ñ‚Ð¸Ð»Ñ– Ð´Ð»Ñ Ð¾ÐºÑ€ÐµÐ¼Ð¸Ñ… ÑÐ»Ñ–Ð² */
  opacity: 0;
  transform: translateY(
    10px
  ); /* ÐŸÐ¾Ñ‡Ð°Ñ‚ÐºÐ¾Ð²Ðµ Ð·Ð¼Ñ–Ñ‰ÐµÐ½Ð½Ñ Ð²Ð³Ð¾Ñ€Ñƒ */
  transition: opacity 2.5s ease, transform 3.5s ease; /* ÐŸÐ»Ð°Ð²Ð½Ð° Ð¿Ð¾ÑÐ²Ð° Ñ‚Ð° Ð·Ð¼Ñ–Ñ‰ÐµÐ½Ð½Ñ */
}

#prediction.show span {
  opacity: 1;
  transform: translateY(0); /* ÐŸÐ¾Ð²ÐµÑ€Ñ‚Ð°Ñ”Ð¼Ð¾ Ð½Ð° Ð¼Ñ–ÑÑ†Ðµ */
}

#prediction.show {
  opacity: 1;
}

#copyButton {
  background-color: #7c7c7c;
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 12px;
  padding: 5px 10px;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.3;
}

#copyButton:hover {
  opacity: 1;
}

#copyButton.copied {
  /* Ð¡Ñ‚Ð¸Ð»ÑŒ Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ Ð¿Ñ–ÑÐ»Ñ ÐºÐ¾Ð¿Ñ–ÑŽÐ²Ð°Ð½Ð½Ñ */
  background-color: #4caf50; /* Ð—ÐµÐ»ÐµÐ½Ð¸Ð¹ ÐºÐ¾Ð»Ñ–Ñ€ */
  cursor: default; /* Ð—Ð¼Ñ–Ð½ÑŽÑ”Ð¼Ð¾ ÐºÑƒÑ€ÑÐ¾Ñ€ */
}

#categoryButtons {
  display: flex;
  justify-content: center;
  gap: 10px; /* Ð”Ð¾Ð´Ð°Ñ”Ð¼Ð¾ Ð¿Ñ€Ð¾Ð¼Ñ–Ð¶Ð¾Ðº Ð¼Ñ–Ð¶ ÐºÐ½Ð¾Ð¿ÐºÐ°Ð¼Ð¸ */
  margin-top: 20px;
  transition: opacity 0.5s ease, transform 0.5s ease; /* Ð”Ð¾Ð´Ð°Ñ”Ð¼Ð¾ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð¸ Ð´Ð»Ñ opacity Ñ‚Ð° transform */
  flex-wrap: wrap;
}

#showCategories {
  display: block; /* Ð Ð¾Ð±Ð¸Ð¼Ð¾ Ð¿Ð¾ÑÐ¸Ð»Ð°Ð½Ð½Ñ Ð±Ð»Ð¾ÐºÐ¾Ð²Ð¸Ð¼ ÐµÐ»ÐµÐ¼ÐµÐ½Ñ‚Ð¾Ð¼ */
  text-align: center; /* Ð’Ð¸Ñ€Ñ–Ð²Ð½ÑŽÑ”Ð¼Ð¾ Ñ‚ÐµÐºÑÑ‚ Ð¿Ð¾ Ñ†ÐµÐ½Ñ‚Ñ€Ñƒ */
  margin-top: 20px;
  color: #617d8b; /* ÐšÐ¾Ð»Ñ–Ñ€ Ð¿Ð¾ÑÐ¸Ð»Ð°Ð½Ð½Ñ */
  text-decoration: none; /* ÐŸÑ€Ð¸Ð±Ð¸Ñ€Ð°Ñ”Ð¼Ð¾ Ð¿Ñ–Ð´ÐºÑ€ÐµÑÐ»ÐµÐ½Ð½Ñ */
}

#categoryButtons button {
  padding: 10px 20px;
  font-size: 24px; /* Ð—Ð±Ñ–Ð»ÑŒÑˆÑƒÑ”Ð¼Ð¾ Ñ€Ð¾Ð·Ð¼Ñ–Ñ€ ÑˆÑ€Ð¸Ñ„Ñ‚Ñƒ Ð´Ð»Ñ Ñ–ÐºÐ¾Ð½Ð¾Ðº */
}

#categoryButtons.hide {
  opacity: 0;
  transform: translateY(
    -20px
  ); /* Ð—Ð¼Ñ–Ñ‰ÑƒÑ”Ð¼Ð¾ Ð²Ð³Ð¾Ñ€Ñƒ Ð¿Ñ€Ð¸ Ð·Ð½Ð¸ÐºÐ½ÐµÐ½Ð½Ñ– */
}

#counter {
  text-align: center;
  /* position: absolute; */
  /* bottom: 20px; */
  font-size: 12px;
  color: #dddddd57;
  margin-top: 10px;
}
