html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}
.logo a,
.logo a span {
  transition: color 0.5s;
}
.logo a,
nav a {
  text-decoration: none;
  color: #555;
  font-weight: 700;
}
.hero,
.logo a,
header,
nav a {
  color: #555;
}
.features,
nav {
  gap: 1.5rem;
}
.contenta p,
.contenta ul,
.faq h2 {
  margin-bottom: 1.5rem;
}
#clickToSpin,
.spinner {
  left: 50%;
  transform: translate(-50%, -50%);
}
#backToTopBtn,
button {
  background-color: #000;
  cursor: pointer;
}
button,
nav a,
textarea {
  font-size: 16px;
}
#result,
header {
  background: #f5f5fa;
}
#result,
textarea {
  margin-top: 20px;
  padding: 10px;
}
#spinButton,
.menu-toggle {
  display: none;
}
.contenta,
.privacy-policy .policy-content {
  max-width: 800px;
  margin: 0 auto;
}
#clickToSpin,
#result,
.logo a,
.privacy-policy h3,
nav a {
  font-weight: 700;
}
#backToTopBtn:hover,
.error-actions a:hover {
  background-color: #333;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", serif;
  line-height: 1.6;
}
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 2.5rem;
  border-bottom: 1px solid #ddd;
}
.logo a {
  font-size: 1.8rem;
  font-family: "Montserrat", serif;
}
.contenta a,
nav a {
  transition: color 0.3s;
}
.logo a span {
  color: #0853ff;
}
.logo a:hover {
  color: #e74c3c;
}
.logo a:hover span,
nav a:hover {
  color: #3498db;
}
.menu-toggle {
  cursor: pointer;
  font-size: 1.2rem;
}
.spinner,
nav {
  display: flex;
}
.spinner {
  position: absolute;
  top: 90%;
  width: 80px;
  height: 80px;
  background: #fff;
  border: 5px solid #333;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  z-index: 2;
  animation: 1.5s linear infinite spin;
}
.spinner i {
  font-size: 2rem;
  color: #333;
}
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.hero {
  background: linear-gradient(to right, #fff, #fff);
  text-align: center;
  padding: 1rem 2rem;
  height: 90px;
}
.faq,
.features {
  background: #f4f4f4;
}
.hero h1 {
  font-size: 2.5rem;
}
.contenta,
.contenta p {
  font-size: 1rem;
  line-height: 1.8;
}
.tool-section {
  padding: 2rem;
  text-align: center;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 2rem;
}
.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 {
  padding: 3rem 1.5rem;
  color: #333;
  font-family: "Montserrat", Arial, sans-serif;
}
.faq-item,
.footer-menu {
  margin-bottom: 1rem;
}
.contenta h1,
.contenta h2,
.contenta h3 {
  margin-bottom: 1.5rem;
  color: #0853ff;
  font-weight: 700;
  text-align: center;
}
.contenta p {
  text-align: justify;
}
.contenta ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}
.contenta ul li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.contenta a {
  color: #0853ff;
  text-decoration: underline;
}
.contenta a:hover {
  color: #e74c3c;
  text-decoration: none;
}
.contact-item,
.contact-us,
.error-container,
.faq h2,
.features-header {
  text-align: center;
}
.faq {
  padding: 2rem 1rem;
}
.faq h2 {
  font-size: 1.5rem;
}
.faq-item {
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  background: #cbe9bf;
  word-wrap: break-word;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5rem;
  background: #333;
  color: #fff;
}
.footer-menu a {
  color: #fff;
  text-decoration: none;
  margin-right: 1rem;
}
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: 0;
  color: #fff;
  padding: 10px 15px;
  border-radius: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
  transition: opacity 0.3s, transform 0.3s;
}
#backToTopBtn:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    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);
  }
  .contenta {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
  .contenta h1 {
    font-size: 2rem;
  }
  .contenta h2 {
    font-size: 1.5rem;
  }
  .contenta p {
    text-align: left;
  }
  .faq {
    padding: 2rem 1rem;
  }
  .faq-item {
    padding: 1rem;
    font-size: 0.9rem;
  }
  .faq h2 {
    font-size: 1.25rem;
  }
  .menu-toggle {
    display: block;
  }
  nav.active {
    display: flex;
  }
  #backToTopBtn {
    font-size: 16px;
    width: 50px;
    height: 50px;
  }
}
.containerx {
  max-width: 94%;
  margin: -60px auto 5rem;
  padding: 20px;
  background: #fff;
  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%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.options-column {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wheel-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 22px;
}
#clickToSpin,
.arrow,
.confetti {
  position: absolute;
}
.arrow {
  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 {
  top: 50%;
  font-size: 18px;
  color: #000;
  background: #fff;
  padding: 12px;
  border-radius: 100%;
  cursor: pointer;
}
button {
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
button:hover {
  background-color: #0056b3;
}
textarea {
  width: 425px;
  height: 100px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
#result {
  font-size: 20px;
  border-radius: 5px;
}
.control-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.confetti {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media screen and (max-width: 768px) {
  .containerx {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .options-column,
  .spinner-column {
    flex: 1 1 100%;
    width: 100%;
  }
  .wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    height: auto;
    padding: 10px;
    margin-bottom: 20px;
  }
  #wheelCanvas {
    width: 300px;
    height: 300px;
  }
  #clickToSpin {
    font-size: 16px;
    padding: 12px;
    cursor: pointer;
    display: inline-block;
  }
  #clickToSpin .arrow {
    font-size: 18px;
    margin-left: 10px;
  }
  button,
  textarea {
    width: 100%;
    font-size: 14px;
  }
}
.contact-info,
.error-404 {
  justify-content: center;
  display: flex;
}
@media screen and (max-width: 480px) {
  button,
  textarea {
    font-size: 12px;
  }
  .wheel-container {
    max-width: 90%;
    padding: 5px;
    margin-bottom: 15px;
  }
  #wheelCanvas {
    width: 200px;
    height: 200px;
  }
  #clickToSpin {
    font-size: 14px;
    padding: 10px;
    display: inline-block;
  }
  #clickToSpin .arrow {
    font-size: 16px;
    margin-left: 8px;
  }
  textarea {
    width: 100%;
  }
  #result {
    font-size: 16px;
  }
}
.features-header {
  padding: 50px;
  background: #f4f4f4;
}
.page {
  padding: 5rem;
}
.contact-us {
  padding: 2rem;
  background-color: #f4f4f4;
  color: #333;
}
.contact-us h2 {
  margin-bottom: 2rem;
}
.contact-info {
  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;
}
.error-404,
.privacy-policy {
  background-color: #f4f4f4;
  color: #333;
  font-family: Montserrat, Arial, sans-serif;
}
.contact-item i {
  font-size: 2rem;
  color: #0853ff;
  margin-bottom: 1rem;
}
.contact-item h3,
.privacy-policy ul li {
  margin-bottom: 0.5rem;
}
.contact-item h3 {
  font-size: 1.2rem;
}
.contact-item p {
  font-size: 1rem;
  color: #555;
}
.contact-item a,
.privacy-policy a {
  color: #0853ff;
  text-decoration: none;
}
.contact-item a:hover,
.privacy-policy a:hover {
  text-decoration: underline;
}
.privacy-policy {
  padding: 2rem;
}
.privacy-policy h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.privacy-policy h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}
.privacy-policy p {
  font-size: 1rem;
  line-height: 1.6;
}
.privacy-policy ul {
  list-style: none;
  padding-left: 1.5rem;
}
.error-404 {
  align-items: center;
  height: 100vh;
}
.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;
}
.back-home-btn {
  background-color: #28a745;
}
.back-home-btn:hover {
  background-color: #218838;
}
@media (max-width: 480px) {
  .contenta {
    font-size: 0.85rem;
    padding: 1rem;
  }
  .contenta h1 {
    font-size: 1.8rem;
  }
  .contenta h2 {
    font-size: 1.3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .features {
    grid-template-columns: 1fr;
  }
  #backToTopBtn {
    font-size: 14px;
    width: 50px;
    height: 50px;
  }
}
