/* General Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

/* Header Section */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}
.title img {
  height: auto;
  width: auto;
}

.description {
  font-size: 1.2rem;
  color: #555;
  margin-top: 10px;
}

/* Content Section */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
  touch-action: manipulation;
  padding: 20px;
  text-align: center;
  min-height: 80vh;
}

.counter {
  font-size: 4rem;
  font-weight: bold;
}

/* Ads Section */
.ads {
  position: sticky;
  bottom: 0;
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  padding: 10px;
  z-index: 10;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
  height: 10vh;
}

/* Controls Section */
.controls {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px;
  background-color: #1e1e1e;
  border-top: 1px solid #333;
  width: 100%;
  flex-wrap: wrap;
  margin-top: auto;
  min-height: 80px;
}

.controls button {
  padding: 10px;
  font-size: 1rem;
  color: #ffffff;
  background-color: green;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex: 1 1 30%;
  margin: 5px;
  max-width: 150px;
}

.controls button:hover {
  background-color: #555;
}

.controls button:active {
  background-color: #666;
}

/* Settings Section */
.settings {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px;
  background-color: #333;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}

.settings:hover {
  background-color: #444;
}

/* Settings Modal */
.settings-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(30, 30, 30, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 1000;
  max-width: 400px;
  width: 90%;
  text-align: left;
  color: #ffffff;
}

.settings-modal h2 {
  text-align: center;
  margin-bottom: 15px;
}

.settings-modal .section {
  margin-bottom: 20px;
}

.settings-modal label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 0.9rem;
}

.settings-modal input[type="color"],
.settings-modal input[type="checkbox"] {
  margin-left: 10px;
}

.settings-modal button {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  background-color: #555;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.settings-modal button:hover {
  background-color: #666;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

/* Features Section */
.features {
  padding: 40px;
  background-color: #1e1e1e;
  color: #ffffff;
  text-align: center;
  margin-top: 20px;
}

.feature-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.feature-box {
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 1rem;
}

/* Use Cases Section */
.use-cases {
  padding: 40px;
  background-color: #121212;
  color: #ffffff;
  text-align: center;
  margin-top: 20px;
}

.use-case-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
}

.use-case-box {
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
}

.use-case-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.use-case-box p {
  font-size: 1rem;
}

/* Footer Section */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background-color: #1e1e1e;
  color: #ffffff;
}

.footer-column {
  width: 20%;
  background-color: #121212;
  padding: 20px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column a {
  color: #ffffff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-column a:active {
  color: #aaa;
}

/* Social Link Styles */
.social-link {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  margin-bottom: 10px;
  background-color: #222;
  border-radius: 8px;
  text-align: center;
}

.social-link:hover {
  background-color: #333;
}

.social-link:focus {
  outline: 2px solid #fff;
}

/* Copyright */
.copyright {
  text-align: center;
  padding: 10px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 0.9rem;
}

/* Sections */
.content, .ads, .controls, .footer, .use-cases, .why-and-how, .how-to-use {
  max-width: 100%;
  overflow-x: hidden;
}

.why-and-how, .how-to-use {
  padding: 40px 20px;
  text-align: left;
  color: #555;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.why-how-container, .how-to-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-column, .how-column, .how-to-item {
  flex: 1 1 45%;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.why-column h2, .how-column h2, .how-to-item h2, .how-to-use h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  text-align: center;
}

.why-column p, .how-column p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.how-to-use {
  margin: 20px;
  font-family: Arial, sans-serif;
}

.how-to-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.how-to-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.2s ease-in-out;
}

.how-to-item:hover {
  transform: translateY(-5px);
}

.how-to-item h2 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.how-to-item p {
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}


/* Media Queries */
@media (max-width: 768px) {
  .controls {
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;
  }

  .settings-modal {
      max-width: 80vw;
  }

  .footer {
      flex-direction: column;
      text-align: center;
  }

  .feature-boxes, .use-case-boxes {
      justify-content: center;
      gap: 20px;
      width: 90%;
  }

  .footer-column {
      width: 100%;
      text-align: center;
  }

  .controls button {
      font-size: 0.8rem;
      padding: 6px;
      width: 30%;
      max-width: none;
  }
}
