html {
  overflow-x: hidden;
  background: url(assets/bronzebg.png) center / cover no-repeat;

}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  transform: rotate(-90deg);
  animation: twinkling 1s infinite;
}

@keyframes twinkling {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap");

#clock {
  font-family: "Orbitron", sans-serif;
  font-size: 2em;
  color: #8731c8;
  text-shadow: 2px 2px 4px #000000;
  padding-left: 30px;
  margin-top: 20px;
}

/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 0px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  text-align: center;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.logo-gif {
  height: 20%;
  width: 70%;
  display: block;
  padding-top: 20%;
}

.container2 {
  display: flex;
  flex-direction: column;
  max-width: 30%;
}

@media screen and (max-width: 600px) {
  .modal-content {
    width: 50%;
    padding: 10px;
  }

  .modal {
    position: absolute;
    padding-top: 55%;
    top: 0%;
  }

  #clock {
    padding-left: 0px;
    text-align: center;
  }
}

#close {
  position: relative;
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding: 5px;
  /* Add a padding to increase the clickable area */
  z-index: 9999;
  pointer-events: auto;
}

#close:hover,
#close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#spin {
  background-color: #8731c8;
  /* Blue */
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition: all 0.5s;
  cursor: pointer;
  border: none;
}

#spin:hover {
  background-color: #8731c8;
  /* Darker blue */
  transform: scale(1.1);
  /* Slightly larger */
}

#code {
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #ccc;
  transition: all 0.5s;
}

#code:focus {
  border: 2px solid #8731c8;
  /* Blue */
  outline: none;
  box-shadow: 0 0 10px #8731c8;
  /* Blue glow */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#spin.on-click {
  animation: spin 1s linear;
}

.ball {
  position: absolute;
  border-radius: 100%;
  opacity: 0.7;
}

.container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  /* elements are in a row */
  height: 100vh;
  transition: flex-direction 0.3s ease-in-out;
  /* Optional: to animate the change */
}

.spinwheel {
  position: relative;
  width: 500px;
  height: 500px;
}

.spinwheel::after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  bottom: 0px;
  right: 0px;
  background: url(assets/ring.png) center / cover no-repeat;
  z-index: 2;
}

.spinwheel img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  transition: transform 4s;
  /* transform: rotate(16deg); */
  /* Add transition property */
}

/* Media Query for Mobile Screens */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    /* stack elements vertically on small screens */
  }

  .spinwheel {
    position: relative;
    width: 350px;
    height: 350px;
  }

  .close {
    display: none;
  }

  .logo-gif {
    height: 100%;
    width: 90%;
    margin-left: 5%;
    padding-top: 0px;
  }

  .form {
    display: flex;
  }

  .container2 {
    display: flex;
    flex-direction: column-reverse;
    max-width: 100%;
    align-items: center;
  }
}
