/* Base font size for all devices */
html {
  font-size: 16px;
}

/* === Your Original CSS Starts Here === */
body {
  background: #0d1435;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 18px;
  color: white;
}

header {
  background-color: #1f2a57;
  padding: 10px;
  text-align: center;
  color: white;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

.container {
  padding: 20px;
}

footer {
  background-color: #1f2a57;
  padding: 10px;
  text-align: center;
  color: white;
}

.scrolling-message {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 10px 0;
  background-color: #102a53;
  font-size: 18px;
  color: #fff;
}

.scrolling-message span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  text-decoration: underline;
}

.logo {
  width: 160px;
  height: auto;
  margin-top: 10px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropbtn {
  background-color: #0c1437;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0c1437;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #1f2a57;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #1f2a57;
}

/* === Mobile Font Adjustments === */
@media (max-width: 480px) {
  body {
    font-size: 1.2rem;
  }

  .dropbtn,
  .dropdown-content a,
  label,
  input,
  select,
  textarea,
  button {
    font-size: 1.1rem;
  }

  .scrolling-message {
    font-size: 1rem;
  }
}

/* Make text sizes consistent and mobile-friendly */
body, html {
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
}

table th,
table td,
label,
input,
select,
textarea,
button,
a,
h1, h2, h3, h4, h5 {
  font-size: 16px !important;
}

@media (max-width: 768px) {
  body, html {
    font-size: 18px;
  }

  table th,
  table td,
  label,
  input,
  select,
  textarea,
  button,
  a,
  h1, h2, h3, h4, h5 {
    font-size: 18px !important;
  }
}

/* === Mobile Table Fix for Earnpoints & Similar Pages === */
@media (max-width: 768px) {
  table th,
  table td {
    font-size: 18px !important;
    padding: 12px 8px !important;
    line-height: 1.4 !important;
  }
}
