* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: linear-gradient(to bottom right, #006da0, #00c7d5);
}

.header-container {
  text-align: center;
  margin-bottom: 20px; /* Adjust as needed */
}

.pcwd-logo {
  width: clamp(100px, 15vw, 200px); /* Adjust size as needed */
  height: auto;
}

.developed-by {
  color: #333;
  font-size: 1em;
  margin-top: 5px;
}

#spin_the_wheel {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: clamp(280px, 80vw, 600px);
  height: clamp(280px, 80vw, 600px);
}

#wheel {
  display: block;
  width: 100%;
  height: 100%;
}

#spin {

  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(80px, 15vw, 180px);
  height: clamp(80px, 15vw, 180px);
  margin: calc(-1 * clamp(40px, 7.5vw, 90px));
  background: #fff;
  color: #fff;
  box-shadow:
    0 0 0 8px currentColor,
    0 0px 15px 5px rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transition: 0.8s;
}

#spin-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(0.3em, 1.2vw, 0.7em);
  font-weight: bold;
  color: #333;
  z-index: 0;
  text-align: center;
  width: 100%;
  padding-top: clamp(10px, 5vw, 40px);
}

#spin::after {
  content: "";
  position: absolute;
  top: -17px;
  border: 10px solid transparent;
  border-bottom-color: currentColor;
  border-top: none;
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

/* Add your styles here */

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%; /* Adjusted for better mobile fit */
  max-width: 500px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0;
  color: #333;
}

.modal-content p {
  margin-bottom: 20px;
  color: #555;
}

.modal-content input[type="email"] {
  width: calc(100% - 40px);
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.modal-content button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

.modal-content button:hover {
  background-color: #45a049;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  #spin_the_wheel {
    width: clamp(250px, 70vw, 500px);
    height: clamp(250px, 70vw, 500px);
  }

  #spin {
    font-size: clamp(0.8em, 3.5vw, 1.5em);
  }

  #spin-count {
    font-size: clamp(0.4em, 1.5vw, 0.8em);
    padding-top: clamp(10px, 5vw, 30px);
  }

  .pcwd-logo {
    width: clamp(80px, 12vw, 150px);
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

@media (max-width: 480px) {
  #spin_the_wheel {
    width: clamp(200px, 90vw, 400px);
    height: clamp(200px, 90vw, 400px);
  }

  #spin {
    font-size: clamp(0.3em, 1vw, 0.3em);
  }

  #spin-count {
    font-size: clamp(0.6em, 2vw, 1em);
    padding-top: clamp(20px, 7vw, 40px);
  }

  .pcwd-logo {
    width: clamp(60px, 10vw, 100px);
  }

  .modal-content {
    width: 98%;
    margin: 5% auto;
    padding: 15px;
  }
}
