*  {
  box-sizing: border-box;
}

html, body {
  overflow: hidden;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: auto;
  background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgb(0 43 120) 68%, rgb(0 113 193) 98%);
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

@keyframes gradient {
  0% {
      background-position: 0% 0%;
  }
  50% {
      background-position: 100% 100%;
  }
  100% {
      background-position: 0% 0%;
  }
}

.wave {
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 20s -8s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 28s linear reverse infinite;
  opacity: 0.8;
}

.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 30s -1s reverse infinite;
  opacity: 0.9;
}

@keyframes wave {
  2% {
      transform: translateX(1);
  }

  25% {
      transform: translateX(-25%);
  }

  50% {
      transform: translateX(-50%);
  }

  75% {
      transform: translateX(-25%);
  }

  100% {
      transform: translateX(1);
  }
}

.container {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 340px;
}

h1 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  color:white;
  padding-top:15px;
}

h1 a {
  color:white !important;
  text-decoration:none;
}

label {
  display: none;
  margin-top: 10px;
}

input, select, button, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size:20px;
  color:black;
  text-align:center;
}

textarea {
  text-align:left;
  font-size:16px;
}

/* Remove default appearance for select */
select, input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4z"/></svg>') no-repeat right 10px center;
  background-size: 10px;
  background-color: #fff;
  cursor: pointer;
  text-align-last: center; /* For Firefox */
}

/* Center the text in the select field for other browsers */
select option {
  text-align: center;
}

/* Input group styling */
.input-group {
  display: flex;
  align-items: center;
}

.input-group-addon {
  margin-top: 15px;
  padding: 10px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size:20px;
}

.input-group input {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

button {
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: #0056b3;
}

#message, #costMessage  {
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s;
}


#message.show, #costMessage.show {
  opacity: 1;
}

/* Tab styling */
.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab-button {
  background-color: #f1f1f1;
  color:black;
  border: none;
  padding: 10px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 16px;
}

.tab-button.active {
  background-color: #007bff;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.animation-container {
  display: relative;
  width : 100%;
  height : 100%;
}

.container2 {
  position: relative;
  top : 30px;
  height : 300px;
  width : 190px;
  transform : scale(0.5) translateX(0) scaleY(0.7);
  left:calc(50% - 95px);
}

.y-axis-container {
   animation: bounce 2.6s infinite ease-in-out;
}

.shadow {
   animation: scaling 2.6s infinite ease-in-out;
}

.coincont {
  position:absolute;
  display:none;
}

.coin {
  position : absolute;
  height : 300px;
  left : 0;
  width: 170px;
  background : gold;
  border-radius : 100%;
  overflow : hidden;
}

.side-coin {
  position : absolute;
  left : 85px;
  height : 300px;
  width: 35px;
  background : #f5b642;
}

.side {
  position: absolute;
  background : #f5b642;
  left : 22px;
  width : 165px;
  height : 304px;
  top: -2px;
}

.shine {
  width : 400px;
  height : 20px;
  background : rgba(255,255,255,0.65);
  transform: rotate(25deg);
  animation : shine 5s infinite; 
}

.flash {
  z-index: 200;
  position : absolute;
  width : 15px;
  height : 15px;
  background : white;
  top: 30px;
  right : 20px;
  animation : flash 7s infinite;
}

.dai {
  position : absolute;
  width: 160px;
  height : 100px;
  top: 114px;
  left : 5px;
  overflow : hidden;
  color:#f5b642;
  font-weight:bold;
  font-size:70px;
  text-align:center;
}

.shadow { 
  position : relative;
  left : calc(50% - 60px);
  top : -40px;
  background : rgba(0,0,0,0.2);
  height : 30px;
  width : 100px;
  animation : scaling 2.6s infinite;
  border-radius: 100%;
}

@keyframes bounce {
  20% {
    animation-timing-function: ease-out;
    transform: translateY(-60px);
  }
  
   50% {
    animation-timing-function: ease-out;
    transform: translateY(-80px);
  }
}

@keyframes scaling {
  20% {
    transform: scale(0.6);
  }
  
  50% {
    transform: scale(0.5);
  }
}

@keyframes flash {
  0% {
    transform : rotate(0deg) scale(0);
  }
  8% {
    transform : rotate(0deg) scale(0);
  }
  10% {
    transform : rotate(150deg) scale(1.8);
  }
  15% {
    transform : rotate(45deg) scale(0);
  }
  100% {
    transform : rotate(45deg) scale(0);
  }
}


@keyframes shine {
  20% {
    transform : rotate(25deg) translateY(400px);
  }
  
  100% {
    transform : rotate(25deg) translateY(400px);
  }
}