@font-face {
    font-family: "Skestha";
    src: url("fonts/Sketsa\ Ramadhan\ Alternates.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
  }

  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrThin-2OXy8.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
  }
  
  /* Powerr ExtraLight (weight 200) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrExtraLight-8MWBD.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
  }
  
  /* Powerr Light (weight 300) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrLight-Yz8wj.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
  }
  
  /* Powerr Regular (weight 400) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrRegular-MVzle.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
  }
  
  /* Powerr Medium (weight 500) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrMedium-rgWoO.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
  }
  
  /* Powerr SemiBold (weight 600) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrSemiBold-K75eo.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
  }
  
  /* Powerr Bold (weight 700) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrBold-Rpz8M.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
  }
  
  /* Powerr ExtraBold (weight 800) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrExtraBold-BWymV.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
  }
  
  /* Powerr Black (weight 900) */
  @font-face {
    font-family: "Powerr";
    src: url("fonts/PowerrBlack-1GLyL.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
  }

.mainheadertitle {
    font-family: "Skestha";
}

/* Global Styles */


body {
    font-family: "Powerr", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-image: url("images/sgbg.png");
    background-repeat: repeat-y;
    background-position: center top;
    background-size: cover;
    margin: 0;
    overflow-y: scroll;
    position: relative;
}
  
img.info {
  margin: 0 auto;
  width: 30%;
}


.game-buttons {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 0rem;
  margin-bottom: 1rem;
  z-index: 8;
  position: relative;
}
  
.gameid-button {
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  max-width: 190px;
  margin: 20px 15px;
  display: flex;
}
  
.btn {
  width: 100%;
  height: auto;
}


.search-container {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  z-index: 10;
  position: relative;
}
  
  /* Custom Search Bar Styling */
  .custom-search {
    position: relative;
    background: url('images/search bar.png') no-repeat center;
    background-size: contain;
    width: 300px;  /* Adjust to match your image dimensions */
    height: 50px;  /* Adjust to match your image dimensions */
  }
  
.custom-search input {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    width: 80%;
    font-size: 16px;
    text-align: center;
    outline: none;
    font-family: sans-serif;
    font-weight: bold;
    color: #bf710270;
}
  
  /* Search Button with Image */
  #searchBtn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
  }
  
  #searchBtn img {
    width: 120px;
    height: auto;
}

.custom-search input::-webkit-input-placeholder {
    color: rgba(191, 113, 2, 0.7);
  }
  
  .custom-search input::-moz-placeholder {
    color: rgba(191, 113, 2, 0.7);
  }
  
  .custom-search input:-ms-input-placeholder {
    color: rgba(191, 113, 2, 0.7);
  }
  
  .custom-search input:-moz-placeholder {
    color: rgba(191, 113, 2, 0.7);
  }
  
  
  #gameIdInput {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    max-width: 80%;
  }
  
  /* Popup Styles */
  .popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    position: relative;
  }
  
  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* Image Overlay at the Bottom */
  .image-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 999;
  }
  
  .image-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .image-overlay .pattern {
    z-index: 2;
    opacity: 0.8;
  }
  
  .image-overlay .makkah {
    z-index: 1;
  }
  
  #resultPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0,0,0,0.4);
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

#popupContent {
    width: 400px;
    height: 300px;
    background: url(images/frame2.png) no-repeat center center;
    background-size: 100% 100%;
    background-color: transparent;
    position: relative;
}

.closeBtn {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 99999;
}

.utitle {
  width: 30%;
}


.human {
    position: absolute;
    width: 35%;
    z-index: 8;
    bottom: -5rem;
    right: 0;
}



.bt1 {
  bottom: -5rem;
  left: 0;
  width: 43%;
  position: absolute;
  z-index: 0;
}

.bt2 {
  bottom: 8rem;
  right: 0;
  position: absolute;
  z-index: 1;
  width: 30%;
}

.bt4 {
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  z-index: 0;
}

.logo-container {
    background: linear-gradient(to bottom, #025d43ad, #32c38b00);
    display: inline-block;
    z-index: 8;
    position: relative;
    width: 100%;
}
  



.logo {
  z-index: 8;
  position: relative;
  margin: 2rem auto;
  width: 20%;
}
.maintitlecontainer {
    z-index: 8;
    position: relative;
}

div#searchResult {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

img.surprise {
    width: 30%;
    margin-top: -1rem;
    animation: subtle-shake 4s ease-in-out infinite;
}

img.congrats {
    width: 35%;
    margin-top: 1rem;
}

img.sorry {
    width: 20%;
    margin-top: 1rem;
}

@keyframes subtle-shake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    90% { transform: translate(-2px, 2px); }
    100% { transform: translate(0, 0); }
}

img.hrpop {
    width: 80%;
    margin: 1rem;
}

.stitle {
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 600;
    color: #c37c01;
    font-size: 17px;
    margin: 0;
}

.stitlereward {
    font-family: "Kumbh Sans", sans-serif;
    font-weight: 900;
    font-size: 24px;
    margin-top: 10px;
    background: linear-gradient(to bottom, #c37c01, #f3ad5d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* For other browsers that support the standard property: */
    background-clip: text;
    color: transparent;
}

.surpriseContainer {
    position: relative;
    width: 85%;
}

img.star1 {
    position: absolute;
    top: -3rem;
    right: 9rem;
    width: 7%;
}

img.star2 {
    position: absolute;
    top: -1.5rem;
    right: 15rem;
    width: 5%;
}

.abs {
    position: absolute;
}

.star3 {
    width: 5%;
    bottom: -2rem;
    right: 4rem;
    animation: subtle-shake 14s ease-in-out infinite;
}

.star4 {
    width: 7%;
    bottom: -4rem;
    right: 2rem;
    animation: subtle-shake 19s ease-in-out infinite;
}

.star5 {
    width: 9%;
    bottom: -3rem;
    left: 3rem;
    animation: subtle-shake 18s ease-in-out infinite;
}

.coin0 {
    width: 8%;
    bottom: 1rem;
    right: 6rem;
    animation: subtle-shake 17s ease-in-out infinite;
}

.coin1 {
    width: 4%;
    bottom: 2rem;
    left: 21rem;
    animation: subtle-shake 16s ease-in-out infinite;
}

.coin2 {
    width: 10%;
    bottom: -1rem;
    left: 5rem;
    animation: subtle-shake 15s ease-in-out infinite;
}

.prize0 {
    bottom: 2rem;
    left: 1rem;
    width: 8%;
    transform: scaleX(-1);
    animation: subtle-shake 14s ease-in-out infinite;
}

.prize1 {
    bottom: 13rem;
    right: 4rem;
    width: 11%;
    animation: subtle-shake 12s ease-in-out infinite;
}

.prize2 {
    bottom: -1rem;
    right: -1rem;
    width: 17%;
    animation: subtle-shake 13s ease-in-out infinite;
}

@media only screen and (max-width: 768px) {

  body {
    font-family: "Powerr", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-image: url("images/sgbg.png");
    background-repeat: repeat-y; /* Repeat vertically only */
    background-position: center top; 
    background-size: cover;
    margin: 0;
    position: unset;
    overflow-y: unset;
  }



  .utitle {
    width: 80%;
}
.game-buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 0rem;
  margin-bottom: 2rem;
  z-index: 8;
  position: relative;
}


.logo {
  z-index: 8;
  position: relative;
  margin: 2rem auto;
  width: 50%;
}

.search-container {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  z-index: 10;
  position: relative;
}

.bt1 {
  bottom: 0;
  left: 0;
  width: 100%;
  position: absolute;
  z-index: 0;
}

.bt2 {
  bottom: 5rem;
  right: 0;
  position: absolute;
  z-index: 1;
  width: 70%;
}

.bt4 {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  z-index: 0;
}


.human {
  position: absolute;
  width: 35%;
  z-index: 12;
  bottom: 0;
  right: 0;
}

  img.info {
    margin: 0 auto;
    width: 80%;
  }

}

@media only screen and (max-width: 375px) {

  .human {
    position: absolute;
    width: 35%;
    z-index: 12;
    bottom: 0;
    right: 0;
  }
}
