.main {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#countlbl{
    display: block;
    text-align: center;
    font-size: 10em;
    font-family: Helvetica;
}
.btns{
    padding: 10px 20px ;
    font-size: 0.75em;
    color: white;
    background-color: rgb(252, 66, 97);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.25s;
}
.btns:hover {
    background-color: rgb(247, 2, 59);
}

/* Math Inputs */

.bodymath {
  background-color: rgb(157, 223, 218);
  font-family: Arial, sans-serif;
}
body.bodymath {
  background-color: rgb(157, 223, 218);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.page-title {
  text-align: center;
  margin-bottom: 30px;
}

/* Form layout */
.form-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
}

.input-pair {
  display: flex;
  flex-direction: column;
}

.input-pair label {
  margin-bottom: 5px;
  font-weight: bold;
}

.input-pair input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Button styling */
#btnSubmit {
  grid-column: span 2;
  justify-self: center;
  padding: 10px 20px;
  font-size: large;
  color: white;
  background-color: rgba(72, 101, 230, 0.92);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.25s;
}

#btnSubmit:hover {
  background-color: rgb(97, 0, 254);
}

/* Results section */
.results {
  text-align: center;
  margin-top: 30px;
}

.results p {
  font-weight: bold;
  margin: 10px 0;
}

/* Responsive tweaks */
@media (max-width: 500px) {
  .form-container {
    grid-template-columns: 1fr;
  }

  #btnSubmit {
    grid-column: span 1;
  }
}
.footer {
  background-color: rgb(0, 255, 179);
  width: 100%;
  padding: 10px;
  margin-top: 30px;
  text-align: center;
}
.contact {
  display: flex;
  justify-content: space-evenly;
  gap: 50px
}
.contact-me{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-mom{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  background-color: rgba(52, 167, 147, 0.68);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.navbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}
.navbar a{
  text-decoration: none;
  color: rgb(120, 14, 104);
  margin-right: 30px;
  transition: background-color 0.5s ease, color 0.5s ease;
  border-radius: 10px;
  padding: 10px;
}
.navbar a:Hover {
  text-decoration: underline;
  background-color: rgba(93, 156, 181, 0.653);
}
.logo {
  width: 100%;
  margin-left: 50px;
}
#msg.show {
  display: none; /* completely hides it */
  background-color: rgba(20, 41, 49, 0.42);
  padding: 10px;
  width: fit-content;
  margin: 20px auto;
  font-weight: bold;
  border-radius: 8px;
}

