/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 60px;
  padding-bottom: 20px;
}

/* Header styles */
header {
  background-color: #132043;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
}

.navbar {
  display: flex;
  align-items: center;
}

/* Navigation menu styles */
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-links a:hover {
  color: #eeeeee;
  font-weight: 400;
}

/* Hamburger menu (only visible on small screens) */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
}

.calc-container {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f9;
}

.calculator-container {
  width: 60%;
  padding: 20px;
  margin-top: 0px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
}

h1 {
  text-align: center;
  font-size: 30px;
  color: #333;
  font-weight: bolder;
  margin-bottom: 30px;
}

.input-container {
  margin-bottom: 20px;
  text-align: left;
  margin-right: 24px;
}

label {
  font-size: 1.1rem;
  margin-bottom: 5px;
  display: block;
  color: #333;
  text-align: left;
}

input[type="time"] {
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #333;
  margin-top: 5px;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 14px;
  border: none;
  background-color: #132043;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;

}

#reset-btn {
  background-color: #1F4172;
}

.result-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #e0f7fa;
  border-radius: 4px;
  border: 1px solid #80deea;
  display: none;
}

h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
}

.result-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 15px;
}

.result-button-label {
  background-color: #ffffff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin-right: 10px; /* Added spacing between buttons */
  color: #00796b;
  font-weight: bold;
}

.result-value {
  font-weight: bold;
  color: #00796b;
  font-size: 20px;
  text-align: center;
  flex: 1;
  margin-left: 0px; /* Added spacing between result value and button */
}

/* Estilos para as seções de guia */
.how-to-use,
.how-to-calculate {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fa;
  padding-top: 10px;
  padding-bottom: 10px;
}

.how-to-use .calculator-wrapper,
.how-to-calculate .calculator-wrapper {
  width: 60%;
  padding: 30px;
  margin-bottom: 5px;
  margin-top: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dsr-to-calculate {
  margin-bottom: 10px;
}

.how-to-use h2,
.how-to-calculate h2 {
  text-align: left;
  font-size: 30px;
  color: #2c3e50;
  font-weight: bolder;
  margin-bottom: 30px;
  margin-top: 10px;
  position: relative;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-description h3 {
  font-size: 22px;
  color: #34495e;
  margin-bottom: 8px;
  font-weight: bold;
  margin-top: 5px;
}

.step-description p {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.step-description strong {
  color: #3498db;
  font-weight: bold;
}

.step-description ul, ol {
  padding: 40px;
}
/* Seção de calculadoras relacionadas */
.rel-calc-box {
  width: 100%;
  background-color: #f8f9fa;
}
.related-calculators-card {
  margin: 10px auto;
  width: 60%;
  padding: 30px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 8px;
}

.related-calculators-card h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
.related-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: left;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: #3498db;
  transition: background 0.3s ease;
  font-weight: 600;
  width: fit-content;
}

.related-link:hover {
  background: #e6e6e6;
  color: #106197;
}

.related-link i {
  font-size: 1.2rem;
}


/* Mobile styles */
@media (max-width: 768px) {
  .logo {
      font-size: 1.2rem;
  }

  .navbar {
      width: 100%;
      justify-content: space-between;
  }

  .nav-links {
      display: none;
      width: 100%;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      background-color: #1F4172;
      text-align: left;
      padding: 10px 0;
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      margin: 10px 0;
      padding-left: 20px;
  }

  .hamburger {
      display: block;
  }

  .calculator-container {
      width: 98%;
  }

  h1 {
      font-size: 28px;
  }

  .how-to-use .calculator-wrapper,
  .how-to-calculate .calculator-wrapper {
      width: 98%;
      padding: 5px;
  }

  .how-to-use h2,
  .how-to-calculate h2 {
      font-size: 25px;
      margin: 10px;
  }

  .instruction-step {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
  }

  .step-description h3 {
      font-size: 20px;
  }

  .step-description p {
      font-size: 15px;
  }

  .step-description ul, ol {
      padding: 30px;
  }

  .related-calculators-card {
      width: 98%;
      padding: 15px;
    }

    .related-calculators-card h2 {
      font-size: 20px;
    }
}

/* Footer Menu Styles */
.footer-menu {
  background-color: #1F4172;
  color: white;
  padding: 10px 20px;
  text-align: center;
  width: 100%;
  margin: 0;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-menu ul li {
  margin: 0;
}

.footer-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

/* Footer styles */
footer {
  background-color: #132043;
  color: white;
  text-align: center;
  padding: 10px;
  width: 100%;
  margin: 0;
}