@font-face {
  font-family: 'Senilita';
  src: url('resources/SenilitaFF/Senilita.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, p{
  font-family: 'Senilita', sans-serif;
}

.default-background-color{
  background-color: white;
}

body{
  margin: 0;
  background-color:#f3d30f;
  overflow-x: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#inputs{
  margin:auto;
}

.land-page {
  margin: auto;
  margin-left: 50%;
  transform: translate(-50%, 50%);
  float: left;
}

.main-page {
  position: fixed;
  display: none;
  margin: auto;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -30%);
}

.dimmer {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.5);
}



/* The popup form - hidden by default */
.form-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
  border: 3px solid transparent;
  z-index: 9;
  background-color: transparent;
}

/* Add styles to the form container */
.form-container {
  margin: auto;
  width: 350px;
  height: 262.5px;
  background-color: transparent;
  text-align: center;
  background-image: url("resources/lucky spin UI kit/lucky spin UI kit/total bonus win_2.png");
  background-size: cover;
}

/* added form child selector */
.form-child{
  margin: auto;
  padding-top:80px;
}

#stopper{
  position:absolute;
  width: 500px;
  top: 13%;
  transform-origin: 50% 17%;
}

#wheel-stopper-image{
  /* padding-top: 1rem; */
  height: 40px;
  width: auto;
}

#spin-button-container{
  margin: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#wheel_image{
  padding: 0 0.5rem;
  height: 50vh;
  width: auto;
}

/* TODO: remove container */
.container{
  margin: auto;
  width: 50%; 
/* border:2px solid black; */
}

#spin{
  margin:auto;
  margin-top: 10px;
}

#wheel-container{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5rem;
}

.output{
  margin: auto;
  text-align: center;
}

#user-and-counter{
  display: flex;
  justify-content: center;
  text-align: center;
}

#results{
  margin:auto !important;
  position: relative;
  border: 1px solid transparent;
  /* 212.5 */
  width: 250px;
  height: 100px;
  background-image: url("resources/lucky spin UI kit/lucky spin UI kit/total bonus.png");
  background-size: cover;
  background-repeat: no-repeat;
}

#spin, #redeem{
  margin: auto;
  margin-top: 5px;
  font-family: 'Senilita', sans-serif;
  color: white;
  height: 44px;
  width: 110px;
  border-radius: 10px;
  font-size: 25px;
  background-color: #2b2e6b;
  border: none;
}

#redeem:hover, #spin:hover {
  background-color: #8d92c9;
}

#redeem:active,#spin:active {
  border: 5px solid #2b2e6b;
  background-color: white;
  color:#2b2e6b;
}
#redeemBox{
  margin-top: 20px;
  width: 100%;
  margin: 0px auto;
  width: 90%;
  height:6%;
  max-width: 400px; 
  border-radius: 10px;
  border: 3px solid #cccccc;
  padding: 10px;
}

#redemption-container{
  display: block;
  margin: auto;
  text-align: center;
}

/* CHANGE: fix landing page */
#landingPage{
  position: fixed;
  left: 0%;
  top: 0%;
  transform: translate(-50%, 2%);
}

.circular-button {
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px; /* Set the width and height to create a circular shape */
  height: 250px;
  border-radius: 50%; /* Make the button circular */
  background-color: hsl(345deg 100% 47%);
  border: none;
  cursor: pointer;
  transition: filter 250ms;
}

.circular-button:hover {
  filter: brightness(110%);
}

/* Adjust SVG size to fit within the circular button */
.circular-button svg {
  width: 60%; /* Adjust as needed */
  height: 60%; /* Adjust as needed */
  fill: white; /* Change the SVG fill color */
}

#userLabel{
  font-family: 'Roboto', sans-serif;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#spinCounter{
  /* margin: auto; */
  font-family: 'Gabarito', cursive;
  color: white;
  font-size: 22.5px;
}

#total {
  font-family: 'Oswald', sans-serif;
  font-size: 50px;
  padding-top: 1.5rem;
  color: #f05c3c;
}

#reward, #user-code, #popup-header-1{
  margin:auto;
}

#reward{
  font-family: 'Oswald', sans-serif;
  font-size: 80px;
  color: #f05a3b;
}

#error-message-display{
  text-align: center;
  margin: auto;
  color: #EE0004;
}

#click-sound{
  display: none;
}

/* CHANGE: width 350px -> 300px */
#title-image{
  padding-top: 0.5rem;
  width: 300px;
  height: auto
}

#tac-image{
  width: 320px;
  height: auto;
  margin-left: auto;
}

#small-logo{
  width: 43px;
  height: auto;
  float: left;
}

#mainPage{
  text-align: center;
  border: 30px solid #f3d30f;
  border-radius: 15%;
  margin: auto;
  width: 500px;
  background-image: url("resources/lucky spin UI kit/lucky spin UI kit/page 2 background cropped.png");
  background-size: cover;
  /* new change */
  background-position: 0%
}

#counter-container{
  display: flex;
  align-items: center;
  justify-content: center;
  position:absolute;
  top: 2%;
  left: 50%;
  transform: translateX(-50%);
  background-color:#2b2f67;
  width: 12vw;
  height: 2.5svw;
  border-radius: 10px;
}

#counter-container p{
  margin: 0;
}

.output-container{
  margin: auto;
  text-align: center;
}

#instructions{
  width:350px;
  padding-top: 60px

}

#wheel-logo{
  position: absolute;
  top: 48.5%;
  left: 50%;
  height: 18%;
  width: auto;
  transform: translateX(-50%);
}

#resultPopUp{
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-48.5%, -30%);
  z-index: 1;
}

#watermark-image{
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
    position: absolute;
    top:  50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 30%;
    pointer-events: none; 
}

#back-button{
    height: 50px;
    top: 100%;
    left: 50%;
    cursor: pointer;
}









/* Mobile Styles */
/* Add the rest of your existing CSS rules here */

/* Mobile Styles */
@media (max-width: 768px) {
  #mainPage{
    padding-top: 10vh;
    width:90vw;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
  }

  #wheel_image{
    /* padding: 0 0.5rem; */
    height: 45vh;
    width: auto;
  }
  #userLabel {
    margin-top: 5%;
    font-size: 12px;
  }

  #spinCounter {
    font-size: 24px;
  }
  
  #stopper{
    /* border: 1px solid black; */
    width: 90vw;
    top: -3%;
    transform-origin: 50% 17%
  }


  #title-image{
    width: 100%;
    height: auto
  }

  #counter-container{
    width: 50vw;
    height: 10vw;
    left: 54%;
    transform: translateX(-54%);
  }

  #spin-button-container{
    padding-top: 1rem;
  }

  #results{
    width: 130px;
    height: 52px;
    background-size: cover;
  }

  #total {
    font-size: 25px;
    padding-top: 0.7rem;
  }

  #wheel-container{
    padding-top: 0rem;
  }

  #wheel-stopper-image{
    /* padding-top: 1rem; */
    height: 35px;
    width: auto;
  }

  #wheel-logo{
    top: 38.9%;
    left: 50%;
    translate: translateX(-50%);
    height: 22%;
    width: auto;
  }
  
  #redeem, #spin {
    touch-action: manipulation;
  }

  /* CHANGE: no hover effect */
  #redeem:hover, #spin:hover{
    background-color:#2b2e6b;
  }
  
    #redeem:active, #spin:active {
    border: 5px solid #2b2e6b;
    background-color: white;
    color: #2b2e6b;
  }
  
  #watermark-image{
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
    position: absolute;
    top:  50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 30%;
    pointer-events: none; 
  }
  
  #back-button{
    height: 50px;
    top: 100%;
    left: 50%;
    cursor: pointer;
  }
  
}
