/* Using a custom font for the message */
body {
  font-family: 'Poppins', sans-serif;
  overflow: hidden; /* Hide scrollbars */
}

.tiranga-font {
  font-family: 'Tiranga', cursive;
}

/* The flagpole */
.pole {
  width: 12px;
  height: 90vh;
  background: linear-gradient(to right, #c0c0c0, #a9a9a9, #808080);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px 6px 0 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

/* The finial (decorative top of the pole) */
.pole::before {
  content: '';
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #f0c400);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* The base of the flagpole */
.pole-base {
  width: 150px;
  height: 20px;
  background: linear-gradient(to top, #8b4513, #a0522d);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
}
.pole-base::before {
  content: '';
  width: 200px;
  height: 20px;
  background: linear-gradient(to top, #a0522d, #cd853f);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px 10px 0 0;
}

/* The flag itself */
#flag {
  position: absolute;
  right: calc(50% - 156px); /* pole width/2 + flag width */
  bottom: 5vh;
  width: 150px;
  height: 100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform-origin: left center;
  transition: bottom 5s linear; /* Hoisting animation */
}

/* The three color bands of the flag */
.saffron {
  background-color: #ff9933;
  height: 33.33%;
}
.white {
  background-color: #ffffff;
  height: 33.34%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.green {
  background-color: #138808;
  height: 33.33%;
}

/* Ashok Chakra */
.chakra {
  height: 28px;
  width: 28px;
  border: 1px solid #000080;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.chakra .spoke {
  width: 100%;
  height: 1px;
  background: #000080;
  position: absolute;
}
/* Generating the 24 spokes */
.spoke:nth-child(1) {
  transform: rotate(0deg);
}
.spoke:nth-child(2) {
  transform: rotate(15deg);
}
.spoke:nth-child(3) {
  transform: rotate(30deg);
}
.spoke:nth-child(4) {
  transform: rotate(45deg);
}
.spoke:nth-child(5) {
  transform: rotate(60deg);
}
.spoke:nth-child(6) {
  transform: rotate(75deg);
}
.spoke:nth-child(7) {
  transform: rotate(90deg);
}
.spoke:nth-child(8) {
  transform: rotate(105deg);
}
.spoke:nth-child(9) {
  transform: rotate(120deg);
}
.spoke:nth-child(10) {
  transform: rotate(135deg);
}
.spoke:nth-child(11) {
  transform: rotate(150deg);
}
.spoke:nth-child(12) {
  transform: rotate(165deg);
}

/* Waving animation */
.waving {
  animation: wave 3s infinite ease-in-out;
}
@keyframes wave {
  0%,
  100% {
    transform: skewX(0deg) scaleY(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  50% {
    transform: skewX(-10deg) scaleY(1.05);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
  }
}

/* Flower petals */
.flower {
  position: absolute;
  top: -50px;
  font-size: 2rem;
  opacity: 0.8;
  animation: fall linear;
}
@keyframes fall {
  to {
    top: 110vh;
    transform: translateX(50px) rotate(360deg);
  }
}
