 /* ---- click button animation ----- */
 .confirmbtn img, #loginNowBtn, #musicBtn, #recordBtn, #ruleBtn {
  transition: transform .1s ease-in-out;
}

.confirmbtn img:active,
#loginNowBtn:active, 
#musicBtn:active,
#recordBtn:active,
#ruleBtn:active {
  transform: scale(0.8);
}

.confirmbtn img::after,
#loginNowBtn::after,
#musicBtn::after,
#recordBtn::after,
#ruleBtn::after{
  transform: scale(1);
}
/* -------------------------------- */
.wthTxtBorder2px {
  text-shadow: 
        -1.5px -1.5px 0px var(--edgeColor),
        -1px -1.5px 0px var(--edgeColor),
        0px -1.5px 0px var(--edgeColor),
        1px -1.5px 0px var(--edgeColor),
        1.5px -1.5px 0px var(--edgeColor),
        1.5px -1px 0px var(--edgeColor),
        1.5px  0px 0px var(--edgeColor),
        1.5px  1px 0px var(--edgeColor),
        1.5px  1.5px 0px var(--edgeColor),
        1px  1.5px 0px var(--edgeColor),
        0px  1.5px 0px var(--edgeColor),
        -1px  1.5px 0px var(--edgeColor),
        -1.5px  1.5px 0px var(--edgeColor),
        -1.5px  1px 0px var(--edgeColor),
        -1.5px  0px 0px var(--edgeColor),
        -1.5px -1px 0px var(--edgeColor)!important;
}

.wthTxtBorder1px {
  text-shadow: 
        -1px -1px 0px var(--edgeColor),
         0px -1px 0px var(--edgeColor),
         1px -1px 0px var(--edgeColor),
         1px  0px 0px var(--edgeColor),
         1px  1px 0px var(--edgeColor),
         0px  1px 0px var(--edgeColor),
        -1px  1px 0px var(--edgeColor),
        -1px  0px 0px var(--edgeColor)!important;
}

 body {
  margin: 0;
 }

#womensDayEvent {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --volume---------- */
.menuBtn {
  display: flex;
  width: max-content;
  position: absolute;
  top: -12%;
  right: -16%;
  flex-direction: column;
}

.menuBtn p {
  cursor: pointer;
  position: relative;
}

.menuBtn p img.menuIco {
  padding: 0px;
  height: 55px;
  width: 55px;
  border: 3px solid #ffffff;
  border-radius: 10px;
}

.menuBtn p #homeBtn {
  background: #681388
}

.menuBtn p #musicBtn {
  background: #881350;
}

.menuBtn p #ruleBtn {
  background: #08582c;
}

.menuBtn p #recordBtn {
  background: #e31e89;
}

.menuBtn p span {
  font-size: 23px;
  font-weight: 900;
  color: #681388;
  position: relative;
  margin-left: 5px;

}

p#backgroundMusic.musicMuted::after {
  position: absolute;
  content: '';
  top: 41%;
  left: 26%;
  width: 2px;
  height: 50%;
  color: #ffffff;
  transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
  pointer-events: none;
  background-color: #ffffff;
  border-radius: 5px;
}

/* .menuBtn div:first-child{
  margin-right: 15px;
} */

.menuBtn div:nth-child(2){
  position: relative;
}

/* --------------------------------------------------- */
.shakingTree {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -59%) scale(1.2);
  width: 1000px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shakingTree::before{
  content: '';
  position: absolute;
  bottom: -7%;
  width: 100%;
  height: 122px;
  right: -19%;
  background: url(../images/tree-shadow.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.shakingTree img.tree0 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.shakingTree canvas{
  opacity: 0;
}

.shakingTree.show canvas{
  opacity: 1;
}

/* --------------------------------------------------- */
.floatingBaloonContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: pink;
}

#floatingBalloonContainer {
  position: fixed;
  height: 100%;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  top: 0;
  left: 0;
  pointer-events: none;
}

#floatingBalloonContainer img.floatingBalloon {
  position: absolute;
  width: 120px;
  height: auto;
  animation: balloon 5s linear forwards;
}

@keyframes balloon {
  from {bottom: -50%;}
  to {bottom: 140%;}
}
/* --------------------------------------------------- */

#popUpElements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
}

.falling-element {
  position: absolute;
  top: -100%;
  width: 50px;
  animation: fall linear;
  z-index: 51;
}


#popUpElements.confetiEffects {
  background: rgb(0 0 0 / 50%);
}

.confeti {
  position: absolute;
  top: -100%;
  height: 100%;
  width: 100%;
  background-image: url(../images/confeti.png);
  background-position: top;
  background-repeat: repeat;
  background-size: 60%;
  animation: fall 1.3s linear;
}

@keyframes fall {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* --------------------------------------------------- */
.maincontainer {
  position: relative;
  z-index: 4;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0px;
}

.maintitle {
  width: 80%;
  height: auto;
}

.time-info {
  width: 80%;
  background: linear-gradient(90deg, rgba(63, 33, 43, 0) 0%,
   rgba(64, 34, 44, 0.8) 6.6%, rgba(64, 34, 44, 0.8) 50%,
    rgba(64, 34, 44, 0.8) 93%, rgba(63, 33, 43, 0) 100%);
  /* background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat; */
  text-align: center;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  margin-top: 5px;
}

.cardscontainer {
  min-height: 75%;
  width: 100%;
  margin-top: 15px;
  background: rgb(255 255 255 / 55%);
  border-radius: 35px;
  position: relative;
}

.drawCountsCon {
  background: #4b113d;
  width: 100%;
  text-align: center;
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  padding: 1px 30px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.drawCountsCon span {
 color: #ff9000;
}

/* --------------------------------------------------- */
.grid-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 80px;
  position: relative;
  z-index: 3;
}

.card-item {
  height: 28vh;
  transform-style: preserve-3d;
  width: 100%;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.15);
  border: 4px solid white;
  border-radius: 15px;
  cursor: pointer;
}

.card-item .side {
  backface-visibility: hidden;
  border-radius: 10px;
  height: 100%;
  position: absolute;
  overflow: hidden;
  width: 100%;
}

.card-item .back {
  background: #ffedf7;
  color: #0087cc;
  line-height: 150px;
  text-align: center;
  transform: rotateY(180deg);
  object-fit: contain;
}

.card-item.duplicate.rdBorder {
  animation: borderRed 0.5s ease-in 3!important;
  transform: rotateY(180deg)!important;
}

@keyframes borderRed {
  0% { border: 4px solid white; }
  50% { border: 4px solid red; }
  100% { border: 4px solid white; }
}

.cardscontainer p {
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: #5a070b;
  padding-bottom: 10px;
}


/* .card-item.flipped {
  transform: rotateY(180deg);
} */
.card-item.flipped {
  animation: flipped 0.8s forwards;
}

@keyframes flipped {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(180deg); }
}

/* --------------------------------------------------- */
.charactercontainer {
  position: absolute;
  bottom: -2%;
  left: -29%;
  height: 100%;
  width: 328px;
  transform: scale(1.1);
}

img.character {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
}

img.characterEyes {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  animation: closingEye 2.5s linear infinite;
  visibility: hidden;
}

@keyframes closingEye {
  0% { 
    visibility: hidden; 
  }
  10% { 
    visibility: visible; 
  }
  15% { 
    visibility: hidden; 
  }
  50% { 
    visibility: hidden; 
  }
  60% { 
    visibility: hidden; 
  }
  100% { 
    visibility: hidden; 
  }
}

/* --------------------------------------------------------- */
#popUpElements.popupWin {
  align-items: center;
  justify-content: center;
}

.pop-prize {
  position: relative;
  width: 38%;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 9;
}

.prize {
  position: relative;
  transform: scale(0);
  /* transition: transform 1s ease-in-out; */
}

.pop-prize.pop .prize{
  animation: scaleUp 0.2s forwards;
}

.prize::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 14%;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background-image: url(../images/big-star.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  animation: spin 6s linear infinite;
}

.prize::after {
  content: '';
  position: absolute;
  top: 39%;
  right: 25%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  background-image: url(../images/small-star.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  from {
    transform:rotate(0deg);
  }
  to {
    transform:rotate(360deg);
  }
}

.pop-prize .popprizeimg {
  width: 100%;
}

img.congratulations {
  position: absolute;
  top: -2%;
  left: 46%;
  width: 47%;
  transform: translate(-50%, 0%);
}

.pop-prize .prize p {
  color: #ffd909;
  filter: drop-shadow(0px 0px 3px rgba(74, 12, 12, 0.9));
  text-align: center;
  position: absolute;
  bottom: 3%;
  left: -5%;
  width: 100%;
  font-size: calc(100% - -68px);
  font-weight: 700;
}

.confirmbtn {
  position: relative;
  width: 45%;
  margin-top: 1px;
  cursor: pointer;
  left: -5%;
  transform: scale(0);
  /* transition: transform 1s ease-in-out; */
}

.pop-prize.pop .confirmbtn{
  animation: scaleUp 0.2s forwards;
}

.confirmbtn.disabled {
  pointer-events: none;
  filter: grayscale(0.7);
}

.confirmbtn img{
  width: 100%;
}

@keyframes scaleUp {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* --------------------------------------------------- */
#popUpElements.notLogin {
  background: rgb(0 0 0 / 50%);
  justify-content: center;
  align-items: center;
}

#sysmtempromtContainer {
  position: relative;
  height: 30%;
  width: 30%;
  background: white;
  padding: 10px;
  border-radius: 20px;
  border: 3px solid #f00;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#loginNowBtn, #sysmtempromtLabel {
  position: absolute;
}

#sysmtempromtLabel {
  top: 5%;
  left: 50%;
  width: 56%;
  transform: translate(-50%, -50%);
}

#popUpElements.disabled #loginNowBtn {
  pointer-events: none;
}

#loginNowBtn {
  bottom: -16%;
  left: 27%;
  width: 47%;
  cursor: pointer;
}

#sysmtempromtLabel img,
#loginNowBtn img{
  width: 100%;
}

#sysmtempromtTxt {
  font-size: 31px;
  font-weight: 600;
  color: #f00000;
}

/* --------------------------------------------------------- */
span.closePopUp {
  position: absolute;
  top: -25%;
  right: -14%;
  height: 45px;
  width: 45px;
  border: 3px solid #fff;
  border-radius: 100%;
  overflow: hidden;
  cursor: pointer;
  transform: scale(1.2);
  z-index: 3;
}

span.closePopUp::after,
span.closePopUp::before {
  position: absolute;
  content: '';
  top: 50%;
  left: 50%;
  height: 50%;
  width: 2px;
  background: #fff;
}

span.closePopUp::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

span.closePopUp::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* --------------------------------------------------------- */
#popUpElements.recordPopup {
  background: rgb(0 0 0 / 50%);
  justify-content: center;
  align-items: center;
}

.recordContainer-Overlay {
  display: none;
  position: relative;
  /* background: linear-gradient(180deg, #FFFFFF 0%, #B62923 100%); */
  background: #ff0000;
  width: 25%;
  height: 50%;
  border-radius: 35px;
  padding: 3px;
}

.recordContainer-Overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 35px;
  border: solid 2px #ffa800;
  transform: scale(1.06);
  z-index: -1;
}

#recordContainer-Inner {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  padding: 25px 30px 30px 30px;
  /* background: linear-gradient(180deg, #f5eded 0%, #feb0ab 100%); */
  background: #ffffff;
}

img.recordPop {
  width: 55%;
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translate(-50%, 0%);
}

#recordPopUp span.closePopUp {
  top: -55px;
  right: -55px;
}

#recordPopUp thead, #recordPopUp tbody, 
#recordPopUp th, #recordPopUp td { 
  display: block; 
}

#recordPopUp tr{ 
  display: flex; 
}

table#recordInfo{
  width: 100%;
  height: 100%;
}

.recordInfo-head th{
  background: #a61e18;
  color: #ffd800;
  text-align: center;
  padding: 5px 15px;
}

.recordInfo-head th:first-child, .recordInfo-body  td:first-child{ width: 60%!important; }
.recordInfo-head th:last-child, .recordInfo-body  td:last-child{ width: 40%!important; }

.recordInfo-head th:first-child, .recordInfo-body  td:first-child,
.recordInfo-head th:last-child, .recordInfo-body  td:last-child{ 
  word-break: break-all; 
}

.recordInfo-body  td:last-child{ text-align: center; }

.recordInfo-body {
  height: calc(100% - 35px);
  overflow: auto;
  margin-top: 5px;
}

.recordInfo-body::-webkit-scrollbar {
  width: 3px;
}
 
.recordInfo-body::-webkit-scrollbar-thumb {
  background: #c4c2c5; 
}

.recordInfo-body::-webkit-scrollbar-track {
  padding: 5px;
}

.recordInfo-body td {
  padding: 3px 15px;
  color: #601d22;
  text-align: left;
  word-wrap: break-word;
}

.recordInfo-body tr:nth-child(even) {
  background-color: #f0b6ba;
}

h4.noRecordSpan {
  text-align: center;
  font-weight: 600;
}

/* --- activity rules pop up --- */
#popUpElements.rulesPopup {
  background: rgb(0 0 0 / 50%);
  justify-content: center;
  align-items: center;
}

.activityRulesPopCon {
  display: none;
  position: relative;
  height: 69%;
  width: 50%;
  background: #ffffff;
  padding: 33px 10px;
  border: 5px solid #ff0000;
  border-radius: 15px;
}

.activityRulesPopCon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 15px;
  border: solid 2px #ffa800;
  transform: scale(1.06);
  z-index: -1;
}

img.activityRulesLabel {
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 31%;
}

.activityRulesPopCon .content {
  color: #362004;
  /* text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); */
  font-size: 16px;
  font-weight: 500;
  height: 99%;
  overflow: auto;
  direction: rtl;
  padding: 0px 35px;
}

#activityRulesPopUp .content span.red{
  color: #ff0000;
}


.activityRulesPopCon .content::-webkit-scrollbar {
  width: 7px;
}
 
.activityRulesPopCon .content::-webkit-scrollbar-thumb {
  background: #6c4242; 
  border-radius: 10px;
}

.activityRulesPopCon .content p{
  direction: ltr;
}

.activityRulesPopCon span.closePopUp {
  top: -14%;
  right: -7%;
}

#cardsInfo {
  background: #f8cdc3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);  
  grid-column-gap: 15px;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 15px;
  direction: ltr;
}

#cardsInfo .cardrules {
  background: #ffeef8;
  padding: 15px 0px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cardrules img {
  height: auto;
  width: 100%;
}

.cardrules span {
  color: #960f0b;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  text-shadow: 
  -1.5px -1.5px 0px #ffffff,
  -1px -1.5px 0px #ffffff,
  0px -1.5px 0px #ffffff,
  1px -1.5px 0px #ffffff,
  1.5px -1.5px 0px #ffffff,
  1.5px -1px 0px #ffffff,
  1.5px  0px 0px #ffffff,
  1.5px  1px 0px #ffffff,
  1.5px  1.5px 0px #ffffff,
  1px  1.5px 0px #ffffff,
  0px  1.5px 0px #ffffff,
  -1px  1.5px 0px #ffffff,
  -1.5px  1.5px 0px #ffffff,
  -1.5px  1px 0px #ffffff,
  -1.5px  0px 0px #ffffff,
  -1.5px -1px 0px #ffffff!important;
}

@media screen and (min-width: 1779px) and (max-width: 1980px){
/* .card-item {
  height: 262px;
} */

.charactercontainer {
  width: 370px;
  transform: scale(1.2);
}

.cardscontainer {
  min-height: 75%;
}

.pop-prize .prize p {
  font-size: calc(100% - -90px);
}

.prize::before {
  width: 75px;
  height: 75px;
}

.prize::after {
  width: 55px;
  height: 55px;
}

#recordContainer-Inner {
  padding: 35px 30px 30px 30px;
}

#sysmtempromtContainer {
  width: 25%;
  height: 25%;
}
}

/* 1600 */
@media screen and (min-width: 1537px) and (max-width: 1600px){}

/* 1440 */
@media screen and (max-width: 1440px){
  .maincontainer {
    width: 55%;
  }
}

/* 1366 x 633*/
@media screen and (max-height: 665px){
  .cardscontainer {
    /* min-height: 438px!important; */
  }

  /* .card-item {
    height: 158px!important;
  } */

  .charactercontainer {
    left: -25%!important;
    width: 302px!important;
  }

  .pop-prize .prize p {
    font-size: calc(100% - -60px)!important;
  }

  .activityRulesPopCon .content {
    padding: 0px 20px!important;
  }

  #cardsInfo {
    grid-column-gap: 10px!important;
    padding: 10px!important;
  }
}

@media screen and (max-height: 585px){
  .cardscontainer {
    /* min-height: 401px !important; */
  }

  /* .card-item {
    height: 140px !important;
  } */
}

/* 1680 */
@media screen and (max-width: 1344px){
  .pop-prize .prize p {
    font-size: calc(100% - -57px);
  }
}

/* 1280 x 960*/
@media screen and (max-width: 1280px){
  .maincontainer {
    width: 59%;
  }

  /* .card-item {
    height: 238px;
  } */

  .cardscontainer {
    /* min-height: 597px; */
  }

  .menuBtn {
    right: -18%;
  }

  .activityRulesPopCon {
    width: 60%;
  }

  .recordContainer-Overlay {
    width: 30%;
  }
}

/* 1152 */
@media screen and (max-width: 1152px){
  .cardscontainer {
    /* min-height: 542px; */
  }

  /* .card-item {
    height: 210px;
  } */

  .pop-prize {
    width: 43%;
  }

}

/* 1400 */
@media screen and (max-width: 1120px){}

/* 1280 x 1024*/
@media screen and (max-width: 1024px){
  /* .card-item {
    height: 192px;
  } */

  .cardscontainer {
    /* min-height: 506px; */
  }

  .menuBtn {
    right: -21%;
  }

  .pop-prize {
    width: 48%;
  }

  .recordContainer-Overlay {
    width: 37%;
  }

}
@media only screen and (min-width: 2500px) and (max-width: 2620px) {
  .charactercontainer {
    bottom: -9%;
    width: 40%;
  }
  img.recordPop {
      top: -9%;
  }
}