/* style.css */

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f4f7f9, #e0eafc);
  color: #333;
}


header {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.logo img {
  margin-right: 10px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
}

.hero {
  text-align: center;
  /*padding: 60px 20px;*/
  padding: 20px 10px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
}

.adsense {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.ad-box {
  width: 728px;
  height: 90px;
  background: #e3e3e3;
  border: 1px dashed #999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #444;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.tool-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  transition: transform 0.2s;
}

.tool-card:hover {
  transform: translateY(-4px);
  background-color: #f0f8ff;
}

footer {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  color: #888;
  font-size: 0.9rem;
}

.heroInner {
  text-align: center;
  padding: 5px 10px;
}

.heroInner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.heroInner p {
  font-size: 1.4rem;
  color: #666;
}

.heroInner p.smallText {
font-size: 1rem;
  color: #666;
}

    form {
      margin: 1rem 0;
    }
    label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: bold;
    }
    input, select {
      padding: 0.5rem;
      /*width: 100%;*/
      max-width: 300px;
      margin-bottom: 0.5rem;
    }
    button {
      padding: 0.5rem 1rem;
      font-weight: bold;
    }
    .result {
      margin-top: 0.5rem;
      font-weight: bold;
      color: #007700;
    }
    .result { font-weight: bold; color: #198754; }

    .time-display { background: #f8f9fa; padding: 1.5rem; border-left: 5px solid #198754; margin-bottom: 2rem; }
/*
    .time-display {
      margin: 1rem 0;
      padding: 1rem;
      background: #f9f9f9;
      border-left: 4px solid #007700;
    }*/

    #currentTimestamp {
      color: #ff0000;
      font-weight: bold;
      padding: 0.5rem 1rem;
    }

    /*tooltip on bmi*/
   .custom-tooltip-trigger {
  font-size: 1.1rem;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.custom-tooltip-trigger:hover {
  background-color: #d1ecf1;
}

/* Style the tooltip popup itself */
.tooltip-inner {
  background-color: #ffffff;
  color: #212529;
  font-size: 0.9rem;
  text-align: left;
  white-space: pre-line; /* support \n in title text */
  padding: 10px 12px;
  border-radius: 8px;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Optional: match tooltip arrow color */
.tooltip.bs-tooltip-auto[x-placement^=top] .arrow::before,
.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: #ffffff;
}
