:root {
  --background-color-light: #f0f2f5;
  --text-color-light: #333;
  --card-bg-color-light: #ffffff;
  --primary-color: #4a90e2;
  --primary-color-dark: #357ABD;
  --shadow-color: rgba(0, 0, 0, 0.1);

  --background-color-dark: #1a1a1a;
  --text-color-dark: #f0f2f5;
  --card-bg-color-dark: #2c2c2c;
}

body {
  background-color: var(--background-color-light);
  color: var(--text-color-light);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from center */
  min-height: 100vh;
  margin: 0;
  padding-bottom: 150px; /* Footer height */
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

body.dark-mode {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark);
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: absolute;
  top: 0;
  box-sizing: border-box;
}

.site-title {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

main {
  width: 100%;
  padding-top: 100px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  flex: 1; /* Make main content grow */
}

.content-container {
  background-color: var(--card-bg-color-light);
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  width: 100%;
  max-width: 800px;
  transition: background-color 0.3s;
}

body.dark-mode .content-container {
  background-color: var(--card-bg-color-dark);
}

.content-container h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.content-container p, .content-container li {
  line-height: 1.8;
}

.site-footer {
  background-color: var(--card-bg-color-light);
  color: var(--text-color-light);
  width: 100%;
  padding: 20px 40px;
  box-sizing: border-box;
  border-top: 1px solid #e0e0e0;
  position: absolute;
  bottom: 0;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .site-footer {
  background-color: var(--card-bg-color-dark);
  border-top-color: #333;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.footer-nav a:hover {
  color: var(--primary-color);
}



#lotto-numbers {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease-in-out;
}

#lotto-numbers p {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  background-color: var(--card-bg-color-light);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode #lotto-numbers p {
  background-color: var(--card-bg-color-dark);
  color: var(--primary-color);
}

.tool-section {
  margin-top: 40px;
  padding: 30px 40px;
  border-radius: 20px;
  background-color: var(--card-bg-color-light);
  box-shadow: 0 10px 30px var(--shadow-color);
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: background-color 0.3s;
}

body.dark-mode .tool-section {
  background-color: var(--card-bg-color-dark);
}

.tool-section h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 10px;
}


button {
  padding: 15px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  background-color: var(--primary-color);
  color: white;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.button-link {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 30px;
  background-color: var(--primary-color);
  color: white !important;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.button-link:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}


/* Theme Switcher Styles */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(26px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact Form Styles */
.contact-form {
  margin-top: 40px;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: var(--card-bg-color-light);
  color: var(--text-color-light);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: var(--card-bg-color-dark);
  color: var(--text-color-dark);
  border-color: #444;
}

.contact-form button {
  align-self: center;
}

.disqus-section {
  margin-top: 40px;
  width: 100%;
  max-width: 800px;
}

.hero-section {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 60px;
}

.hero-section h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.3rem;
  color: var(--text-color-light);
  max-width: 700px;
  margin: 0 auto;
}

body.dark-mode .hero-section p {
  color: var(--text-color-dark);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  width: 100%;
}

.tool-card {
  background-color: var(--card-bg-color-light);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  width: calc(33% - 20px); /* 3 cards per row with gap */
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background-color 0.3s, transform 0.2s ease;
  min-height: 250px;
}

body.dark-mode .tool-card {
  background-color: var(--card-bg-color-dark);
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.tool-card p {
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.tool-card .button-link {
  margin-top: auto; /* Push button to bottom */
  padding: 10px 20px;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  .tool-card {
    width: 90%;
    max-width: 400px;
  }
}


