.birthday-gift {
  position: fixed;
  left: 30%;
  z-index: 4;
  background-color: #163055bb;
  width: 600px;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  transform: translateY(-600%);
  transition: 2s;
  border-radius: 1rem;
  z-index: 999999999;
}

.game-starter {
  background-color: #003055;
  /* color: rgb(255, 0, 0); */
  border: 1px solid #003055;
  font-size:3rem;
  padding:2rem 8rem;
  border-radius: 5px;
  margin: 10px;
  text-decoration: none;
}

.share-modal {
  background-color: #163055bb;
  width: 50%;
  height: 65%;
  z-index: 999;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
}

.modal-heading {
  width: 90%;
  font-size: 2rem;
  margin-top: 2.4rem;
}

.modal-heading-2 {
  width: 70%;
  font-size: 1.8rem;
  margin-top: 2.4rem;
}

.modal-btn-wrapper {
  width: 50%;
  display: flex;
  justify-content: space-between;
  margin-top: 6.4rem;
}

.modal-button {
  display: inline-block;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  min-width: 100px;
  padding: 22px 33px;
  font-family: "Open Sans", cursive;
  font-size: 1.2rem;
  line-height: 26px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0);
  outline: none;
  border-radius: 15px;
  border: 3px solid rgb(255, 255, 255);
  position: relative;
  overflow: visible;
  transition: 300ms;
  margin: 0;
}

.modal-active {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 2s;
}

/* .birthday-gift:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  top: 44%;
  left: 37.5%;
} */

.gift {
  position: relative;
  width: 150px;
  height: 100px;
  background-color: #ffffff;
  margin-top: 12.6rem;
}

.gift:before {
  content: "";
  position: absolute;
  width: 25px;
  height: 100px;
  background-color: #fa3030;
  left: 62px;
}

.gift:after {
  content: "";
  position: absolute;
  box-shadow: inset 0 10px rgba(0, 0, 0, 0.3);
  width: 150px;
  height: 100px;
}

input#click {
  display: none;
}

.click {
  position: absolute;
  background-color: #ffffff;
  width: 170px;
  height: 40px;
  top: -40px;
  left: -10px;
  transform-origin: bottom left;
  transition: 0.3s;
  cursor: pointer;
}

.click:before {
  content: "";
  position: absolute;
  width: 25px;
  height: 40px;
  background-color: #fa3030;
  left: 69px;
}

.click:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 0;
  border-bottom: 30px solid #fa3030;
  border-top: 30px solid #fa3030;
  border-left: 0px solid transparent;
  border-right: 30px solid transparent;
  transform: rotate(-90deg);
  left: 65px;
  top: -47px;
}

.wishes {
  position: absolute;
  transition: 0.5s;
  margin-top: 1rem;
  color: #fff;
  font-size: 2.5rem;
  text-align: center;
  width: 200%;
  margin-left: -50%;
  display: none;
  transition: 10s;
}

#click:checked + .click {
  transform: rotate(-180deg) scaleX(0.85);
  opacity: 0;
  transition: 1s;
}

#click:checked ~ .wishes {
  transform: translateY(-150px);
  display: block;
}

.sparkles {
  position: absolute;
  display: none;
  top: -15px;
  z-index: -2;
  left: 40px;
}

.spark1,
.spark2,
.spark3,
.spark4,
.spark5,
.spark6 {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  top: -9px;
  z-index: -1;
}

.spark1 {
  width: 8px;
  height: 8px;
  left: 30px;
  top: -9px;
  animation: fire 0.9s ease-in-out infinite, color 0.4s linear infinite;
}

.spark1:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 8px;
  left: 11px;
  background-color: #ff0000;
  border-radius: 50%;
}

.spark2 {
  width: 9px;
  height: 9px;
  left: 33px;
  top: -5px;
  animation: fire2 0.28s ease-in-out infinite, color 0.4s linear infinite;
}

.spark2:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 12px;
  left: 3px;
  background-color: #0f1fff;
  border-radius: 50%;
}

.spark3 {
  width: 8.5px;
  height: 8.5px;
  left: 33px;
  top: -5px;
  animation: fire3 0.36s ease-in-out infinite, color2 0.4s linear infinite;
}

.spark3:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 12px;
  left: -1px;
  background-color: #cf5757;
  border-radius: 50%;
}

.spark4 {
  width: 7px;
  height: 7px;
  left: 27px;
  top: -5px;
  animation: fire2 0.24s ease-in-out infinite, color2 0.2s linear infinite;
}

.spark5 {
  width: 7px;
  height: 7px;
  left: 29px;
  top: -5px;
  animation: fire3 0.45s ease-in-out infinite, color 0.2s linear infinite;
}

.spark6 {
  width: 6px;
  height: 6px;
  left: 29px;
  top: -5px;
  animation: fire 0.35s ease-in-out infinite, color2 0.2s linear infinite;
}

.gift-box {
  z-index: 2;
}

@keyframes comegiftanim {
  0% {
    transform: translateY(-10%);
  }
  33% {
    transform: translateY(0%);
  }
  66% {
    transform: translateY(-5%);
  }
  100% {
    transform: translateY(0%);
  }
}

@keyframes fire3 {
  100% {
    transform: translateX(20px) translateY(-93px);
    opacity: 0.3;
  }
}

@keyframes fire2 {
  100% {
    transform: translateX(-5px) translateY(-90px);
    opacity: 0.3;
  }
}

@keyframes fire {
  100% {
    transform: translateX(-25px) translateY(-95px);
    opacity: 0.3;
  }
}

@keyframes color {
  from {
    background-color: #fa3030;
  }
  to {
    background-color: #0081a7;
  }
}

@keyframes color2 {
  from {
    background-color: #8cff00;
  }
  to {
    background-color: #1d2d44;
  }
}

#click:checked ~ .sparkles {
  display: block;
}

.bactive {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bdeactive {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -300%);
}

@media screen and (max-width: 768px) {
  .share-modal {
    width: 80%;
    height: 100vh;
  }
  #prvi {
    font-size: 85%;
    padding-top: 0;
  }
  .grid {
    width: 100%;
  }
  .square {
    width: 100%;
    height: 100%;
    padding: 10px;
    /* margin: 20px 10px; */
  }
  .square img {
    border-radius: 10px;
  }
  .modal-btn-wrapper {
    display: block;
  }
  .modal-button {
    width: 90%;
  }
  .modal-button:not(:last-child) {
    margin-bottom: 1.2rem;
  }
  .wishes {
    margin-top: 3rem;
    font-size: 2.9rem;
  }
}
