/* Cleaned and fixed CSS */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
    /* Apply the custom font to the entire site */
    font-family: 'Poppins', sans-serif;
}

/* You can also apply it to specific elements for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Use a bold font weight for headings */
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #333;
  background: #231f20;
  word-wrap: break-word;
}

.topnav {
  overflow: hidden;
  background-color: #fff;
  max-width: 80%;
  margin: 1em auto;
}

.topnav a {
  float: left;
  display: block;
  color: #333;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #231f20;
  color: #fff;
}

.topnav .selected {
  background-color: #f2f2f2;
  color: #0085c9;
  box-shadow: 0px 2px 0px #0085c9 inset;
}

.topnav .home {
  background-color: #0085c9;
  color: #fff;
  font-size: 1.5em;
}

.topnav .icon {
  display: none;
  font-size: 1.5em;
}

@media (max-width: 868px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

.container {
  background: #fff;
  max-width: 85%;
  margin: 1em auto;
  border-radius: 4px;
  padding: 1em;
  overflow: visible;
}

.pages {
  padding: 1.3em;
  font-size: 1.3em;
  line-height: 1.8em;
  color: #333;
}

.pages h2 {
  padding-bottom: 1em;
  text-align: center;
  font-size: 2em;
  color: #333;
}

.pages ul {
  padding: 1em 2em;
  color: #666;
}

h1, h2, h3 {
  color: #0085c9;
  letter-spacing: 2px;
  text-align: center;
  margin: 0.5em;
}

h1 {
  font-size: 2em;
  font-weight: 900;
  padding: 0.5em;
}

h2, h3 {
  font-size: 1em;
  padding: 0.5em;
}

h3 span {
  font-size: 0.8em;
  color: #333;
  font-weight: 900;
  padding: 0.5em;
}

.intro, .intro p {
  text-align: center;
  font-size: 1em;
  letter-spacing: 1px;
  padding: 1em;
}

.outro {
  display: grid;
  grid-template-columns: 29% auto;
  grid-gap: 10px;
  background-color: #fff;
  border-top: 1px solid #c6c6c6;
  padding-top: 1em;
  color: #444;
  margin: 1em 0;
  border-radius: 4px;
}

@media (max-width: 868px) {
  .outro {
    grid-template-columns: 100%;
  }
}

.partone img {
  text-align: right;
}

.outro p {
  font-size: 1em;
  letter-spacing: 2px;
  padding: 1em;
  text-align: justify;
}

#startStopBtn {
  background-color: #0085c9;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  text-align: center;
  display: inline-block;
  margin-top: 20px;
  width: auto;
  min-width: 20px;
}


#startStopBtn:hover {
  background-color: #0576af;
}

#startStopBtn.running {
  background-color: #c63b1f;
}

#test {
  margin: 6em 0 2em;
  text-align: center;
}

div.testArea {
  display: inline-block;
  width: 16em;
  height: 12.5em;
  position: relative;
  overflow: visible;
}

div.testGroup {
  display: inline-block;
  height: 12.5em;
  box-sizing: border-box;
  overflow: visible;
}

div.testName, div.icontest, div.meterText, div.unit {
  position: absolute;
  width: 100%;
  z-index: 9;
}

div.testName {
  top: -5em;
  font-size: 1em;
  background: #eee;
  border-radius: 0.3em;
  padding: 0.3em;
  color: #666;
  letter-spacing: 2px;
}

div.icontest {
  top: -0.7em;
  font-size: 3em;
  color: #eee;
}

div.meterText {
  bottom: 4em;
  left: 30%;
  width: 40%;
  font-size: 1em;
  color: #fff;
  background-color: #55be00;
  border-radius: 0.3em;
  padding: 0.2em;
}

div.meterText:empty::before {
  content: '0.00';
}

div.unit {
  bottom: 2em;
}

div.testArea canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 1224px) {
  body {
    font-size: 0.8em;
  }
  div.testGroup {
    margin-bottom: 6em;
  }
}

@media (max-width: 560px) {
  div.testArea,
  div.testGroup {
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 16em;
    margin-bottom: 2em;
  }
  #nomob {
    display: none;
  }
}

.fbdiv a {
  background-color: rgb(60, 90, 153);
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
}

.fbdiv .fblink:hover {
  background: rgb(43, 68, 121);
  color: #fff;
}

.fa-facebook-square {
  font-size: 1.3em;
  padding: 0 10px;
}

footer {
  width: 100%;
  text-align: center;
  padding: 1em;
  margin: 1em 0;
}

.footer a,
.footer p,
.footer p a {
  color: #fff;
  font-size: 1em;
  text-decoration: none;
}

.footer p span {
  color: #2d0100;
}

.footer a:hover {
  color: #0f75bc;
}

#counter-area {
  padding: 2px;
  background-color: rgba(205, 204, 204, 0.19);
  border-radius: 2px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  width: 100%;
}

#counter-winkey {
  color: white;
  background-color: #db8002;
  padding: 3px 9px;
  border-radius: 5px;
}
.share-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.share-inline .fblink {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.3s ease;
  width: auto; /* <--- THIS ensures button doesn't stretch */
  min-width: fit-content;
}

.share-inline .fblink i {
  font-size: 1em;
}

.share-inline .fblink:hover {
  opacity: 0.85;
}
.white-text {
  color: white;
}
#cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #222;
  color: white;
  padding: 15px 20px;
  font-size: 14px;
  z-index: 9999;
  display: none;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

#cookie-consent-bar .cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-consent-bar a {
  color: #1da1f2;
  text-decoration: underline;
}

#cookie-consent-bar .cookie-buttons {
  display: flex;
  gap: 10px;
}

#cookie-consent-bar button {
  background-color: #1da1f2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

#cookie-consent-bar button#reject-cookies {
  background-color: #555;
}
