@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Mono:ital,wght@0,200..800;1,200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Tektur:wght@400..900&display=swap");

* {
  box-sizing: border-box;
}

body {
  background-color: #296ca8;
  color: #fff;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 100px;
}

h2 {
  margin-bottom: 0;
}

.search-container {
  margin-top: 20px;
  width: 80vw;
  max-width: 800px;
}

.search {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
}

.post {
  position: relative;
  background-color: #4992d3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 20px;
  margin: 40px 0;
  display: flex;
  width: 80vw;
  max-width: 800px;
}

.post-title {
  margin: 0;
}

.post-content {
  margin: 15px 0 0;
  line-height: 1.3;
}

.post-info {
  margin-left: 20px;
}

.post-id {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 18px;
  width: 30px;
  height: 30px;
  background: #fff;
  color: #296ca8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.loader {
  opacity: 0;
  width: 30vw;
  display: flex;
  position: fixed;
  bottom: 50px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.3s ease-in;
}

/* To show loader with JS */
.loader.show {
  opacity: 1;
}

.circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  animation: bounce 0.5s ease-in infinite;
}
.circle:nth-of-type(2) {
  animation-delay: 0.1s;
}
.circle:nth-of-type(3) {
  animation-delay: 0.2s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}
