body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}
.coupon-section {
  display: flex;
  justify-content: flex-start; /* space-between yerine */
  align-items: center;
  height: 30vh;
  padding: 20px;
  border-radius: 35px;
  background-image: linear-gradient(135deg, #d0b2ffeb 0%, #fffda9e8 100%);
}
.coupon-section.hidden {
  display: none;
}
.text-side {
  width: 45%; /* flex: 1 yerine sabit genişlik */
  /* padding: 20px; */
  float: left;
}
@media (max-width: 1182px) {
  .text-side h1 {
    font-size: 44px;
  }
}

@media (max-width: 1101px) {
  .text-side h1 {
    font-size: 42px;
  }
}
@media (max-width: 1061px) {
  .text-side h1 {
    font-size: 40px;
  }
}
@media (max-width: 1030px) {
  .text-side h1 {
    font-size: 38px;
  }
}
@media (max-width: 960px) {
  .text-side {
    width: 50%;
  }
  .text-side h1 {
    font-size: 35px;
  }
  .text-side p {
    font-size: 15px;
  }
}
@media (max-width: 854px) {
  .text-side {
    width: 53%;
  }
  .text-side h1 {
    font-size: 30px;
  }
  .text-side p {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .text-side {
    width: auto;
    float: left;
    text-align: center;
  }
}
.text-side h1 {
  /* font-size: 48px;*/
  font-weight: bold;
  background: linear-gradient(to right, #7704cb, #0095ff, #ce00ff, blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-side p {
  font-size: 18px;
  color: #666;
  margin-left: 22px;
}
.cups-side {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-right: 20px; /* Sağ tarafta biraz boşluk bırakmak için */
 /* margin-top: 55px; */
}
.cup-container {
  flex: 1; /* Ensure each cup container takes equal space */
  position: relative;
}
.cups-side .cup {
  width: 100px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cups-side .cup:hover {
  transform: scale(1.1);
}
.cups-side .discount {

  font-size: 18px;
  color: red;
  top: 90px;
  margin-left: 47px;
  transform: translateX(-50%);
  font-weight: bold;
}
.cup.selected {
  transform: translateY(-30px) scale(1.1);
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.modal-content {
  background-color: transparent;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1001;
}
.gift-box {
  position: relative;
  width: 750px;
  height: auto;
}
.gift-box img {
  width: 100%;
  height: 100%;
}
.coupon-paper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 80%;
  height: auto;
  border-radius: 10px;
  padding: 20px;
}
.coupon-content {
  transform: rotate(355deg);
  margin-top: 9%;
}
.coupon-content h2 {
  font-size: 20px;
  color: #333;
}
.coupon-content p {
  font-size: 16px;
  color: #666;
}
#discount-percentage {
  color: #ffd600;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  transform: rotate(24deg);
  font-size: 25px;
  font-weight: bold;
  position: absolute;
  margin-left: 47%;
  margin-top: -15%;
  width: 30%;
}
#copy-button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
}
.close-button {
  position: absolute;
  top: 31%;
  right: 27%;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  z-index: 1002;
  background-color: #9a00ff;
  border-radius: 20px;
  padding: 1px 6px;
}
#fireworks-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}
.firework {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 20px;
  background-color: red;
  animation: shoot 1s ease-in, explode 0.5s ease-out 1s;
}
@keyframes shoot {
  0% { bottom: 0; }
  100% { bottom: 80vh; }
}
@keyframes explode {
  0% {
      width: 4px;
      height: 20px;
      opacity: 1;
  }
  100% {
      width: 100px;
      height: 100px;
      opacity: 0;
      transform: rotate(180deg);
  }
}
@keyframes openGift {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes showPaper {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}




.coupon-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coupon-section.visible {
  display: block;
  opacity: 1;
  height: auto; /*Müveqqeti */
  padding: 40px; /*Müveqqeti */
}


#validity-timer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  display: none;
}
.validity-timer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  display: none;
}