html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", serif;
  line-height: 1.6;
  background: #070047;
}
/* General header styles */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 2.5rem;
  background: #ffffff;
  color: #555;
}

/* Logo styles */
.logo a {
  font-size: 1.9rem;
  font-weight: bold;
  text-decoration: none;
  color: #555; /* Primary color */
  transition: color 0.5s ease;
  font-family: "Montserrat", serif;
}

.logo a span {
  color: #0349ec; /* Secondary color */
  transition: color 0.5s ease;
}

/* Logo hover effect */
.logo a:hover {
  color: #e74c3c; /* Switch primary to secondary */
}

.logo a:hover span {
  color: #3498db; /* Switch secondary to primary */
}

/* Menu toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Navigation styles */
nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
  font-size: 16px;
}

nav a:hover {
  color: #3498db;
}

/* Spinner */
.spinner {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: #fff;
  border: 5px solid #2356e2;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  animation: spin 1.5s linear infinite;
}

.spinner i {
  font-size: 2rem;
  color: #463838;
}

/* Spinner animation */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.spinner #digitSpinner {
  animation: fadeInOut 1s infinite;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
/* Responsive styling for the spinner */
@media screen and (max-width: 768px) {
  .spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
  }

  .spinner i {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .spinner {
    width: 30px;
    height: 30px;
    border-width: 3px;
  }

  .spinner i {
    font-size: 1rem;
  }
}
/* Responsive styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }
  nav.active {
    display: flex;
  }
}

.hero {
  background: linear-gradient(to right, #00026d, #003f69);
  color: #33ff00; /* Greenish */
  font-weight: 1000; /* Extra bold */
  text-align: center;
  padding: 2rem;
  height: 110px;
  margin: 0 auto;
  text-shadow: 1px 1px 0 #313030, -1px -1px 0 #000000; /* Double shadow for effect */
}

.hero h1 {
  font-size: 3rem;
}

/* Responsive for mobile devices (max-width: 768px) */
@media screen and (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    height: auto; /* Allow flexible height */
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Responsive for small mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
  .hero {
    padding: 1rem;
    height: auto;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}

.tool-section {
  padding: 2rem;
  text-align: center;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  background: #ececec;
}
.features .feature-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.features .feature-box i {
  font-size: 2rem;
  color: #2575fc;
}
.features .feature-box h3 {
  margin-top: 1rem;
}
.contenta {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #333;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

.contenta h1,
.contenta h2,
.contenta h3 {
  margin-bottom: 1.5rem;
  color: #0041da;
  font-weight: 700;
  text-align: center;
}

.contenta p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.contenta a {
  color: #0853ff;
  text-decoration: underline;
  transition: color 0.3s;
}

.contenta a:hover {
  color: #e74c3c;
  text-decoration: none;
}
.faq h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.faq-item {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  background: #cbe9bf;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .contenta {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 5rem;
  background: #e1e1e2;
  color: #333;
  border-top: 1px solid #ddd;
}
.footer-menu a {
  color: #333;
  text-decoration: none;
  margin-right: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  nav.active {
    display: flex;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
}
/* Style the button */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #0853ff;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none; /* Initially hidden */
  transition: opacity 0.3s, transform 0.3s;
}

/* Button hover effects */
#backToTopBtn:hover {
  background-color: #333;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  #backToTopBtn {
    font-size: 16px; /* Smaller font for mobile */
    width: 50px; /* Maintain size */
    height: 50px; /* Maintain size */
  }
}

@media (max-width: 480px) {
  #backToTopBtn {
    font-size: 14px; /* Smaller font for smaller screens */
    width: 50px; /* Maintain size */
    height: 50px; /* Maintain size */
  }
}
.containerx {
  max-width: 94%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -60px;
  margin-bottom: 5rem;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ddd;
}

.spinner-column {
  flex: 0 0 60%; /* 60% for the spinner column */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.options-column {
  flex: 0 0 40%; /* 40% for the options column */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 22px;
}

.arrow {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-55%, -60%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 40px solid #0e80c9;
}

#clickToSpin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #000;
  font-weight: bold;
  background: white;
  padding: 12px;
  border-radius: 100%;
  cursor: pointer;
}

textarea {
  width: 425px;
  height: 100px;
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

#result {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  background: #f5f5fa;
  padding: 10px;
  border-radius: 5px;
}

.control-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .containerx {
    flex-direction: column; /* Stack spinner and options vertically on smaller screens */
    align-items: center;
    justify-content: center; /* Ensure center alignment */
    text-align: center; /* Center text */
  }

  .spinner-column,
  .options-column {
    flex: 1 1 100%; /* Take up full width for each column */
    width: 100%;
  }

  /* Center the spinner and ensure its size */
  .wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%; /* Limit width to 80% on mobile */
    height: auto;
    padding: 10px;
    margin-bottom: 20px; /* Space below spinner */
  }

  /* Set canvas size for mobile */
  #wheelCanvas {
    width: 300px; /* Set canvas width to 300px for mobiles */
    height: 300px; /* Set canvas height to 300px for mobiles */
  }

  /* Style for the Spin button and text */
  #clickToSpin {
    font-size: 16px; /* Adjust text size for mobile */
    padding: 12px;

    cursor: pointer;
    display: inline-block;
  }

  #clickToSpin .arrow {
    font-size: 18px; /* Adjust arrow size */
    margin-left: 10px;
  }

  /* Adjust the size of the buttons on small screens */
  button {
    width: 100%; /* Make buttons 100% width for better mobile experience */
    font-size: 14px;
  }

  /* Adjust the size of the textarea for mobile */
  textarea {
    width: 100%; /* Make the textarea responsive */
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  /* Further adjustments for very small mobile devices */
  .wheel-container {
    max-width: 90%; /* Wheel container slightly smaller */
    padding: 5px; /* Reduce padding */
    margin-bottom: 15px;
  }

  /* Set canvas size for small mobile */
  #wheelCanvas {
    width: 200px; /* Set canvas width to 200px for small mobiles */
    height: 200px; /* Set canvas height to 200px for small mobiles */
  }

  /* Style for the Spin button and text */
  #clickToSpin {
    font-size: 14px; /* Further reduce font size for small screens */
    padding: 10px;

    display: inline-block;
  }

  #clickToSpin .arrow {
    font-size: 16px; /* Adjust arrow size for small devices */
    margin-left: 8px;
  }

  button {
    font-size: 12px; /* Smaller font size for buttons */
  }

  textarea {
    width: 100%; /* Full width for textarea */
    font-size: 12px;
  }

  /* Adjust result display for mobile */
  #result {
    font-size: 16px; /* Smaller font size for result */
  }
}

#spinButton {
  display: none;
}
.features-header {
  text-align: center;
  padding: 50px;
  background: #fff;
  margin: 0 auto;
}
.page {
  padding: 5rem;
}
.contact-us {
  padding: 2rem;
  background-color: #f4f4f4;
  color: #333;
  text-align: center;
}
.contact-us h2 {
  margin-bottom: 2rem;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-item {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 250px;
  text-align: center;
}
.contact-item i {
  font-size: 2rem;
  color: #0853ff;
  margin-bottom: 1rem;
}
.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.contact-item p {
  font-size: 1rem;
  color: #555;
}
.contact-item a {
  color: #0853ff;
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}
.privacy-policy {
  padding: 2rem;
  background-color: #f4f4f4;
  color: #333;
  font-family: Arial, sans-serif;
}
.privacy-policy h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.privacy-policy .policy-content {
  max-width: 800px;
  margin: 0 auto;
}
.privacy-policy h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}
.privacy-policy p {
  font-size: 1rem;
  line-height: 1.6;
}
.privacy-policy ul {
  list-style: none;
  padding-left: 1.5rem;
}
.privacy-policy ul li {
  margin-bottom: 0.5rem;
}
.privacy-policy a {
  color: #0853ff;
  text-decoration: none;
}
.privacy-policy a:hover {
  text-decoration: underline;
}
.error-404 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f4;
  color: #333;
  font-family: Arial, sans-serif;
}
.error-container {
  text-align: center;
}
.error-container h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ff4040;
}
.error-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.error-actions a {
  padding: 10px 20px;
  background-color: #0853ff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.error-actions a:hover {
  background-color: #333;
}
.back-home-btn {
  background-color: #28a745;
}
.back-home-btn:hover {
  background-color: #218838;
}
