html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #ffffff;
  color: #525252;
  font-weight: 500;
  overflow: hidden;
  line-height: 120%;
}
h1, h2, h3, h4 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-weight: 600;
}
h3 {
  color: #EE3A42;
  font-size: 22px;
}
h2 {
  font-weight: 500;
  font-size: 22px;
}
h1 {
  font-size: 3vw;
  line-height: 99%;
}
.toggles button {
  margin-right: 0.5em;
  border: 1px solid #A9A9A9;
  border-radius: 80px;
  background-color: white;
  cursor: pointer;
  font-weight: 500;
  height: 46px;
  font-size: 14px;
  padding: 0 20px;
  color: #333;
}
.toggles button i {
  margin-right: 8px;
  font-size: 110%;
}
.toggles button.active {
  background-color: #015955;
  border-color: #015955;
  color: #fff;
}
.toggles button.active i {
  color: #ffffff !important;
}
label {
  display: block;
  margin: 0.4em 0 ;
  font-weight: 500;
  color: #383838;
  line-height: 130%;
}
.group input, .group select {
  width: 100%;
  height: 46px;
  padding: 0.6em;
  padding-right: 1em;
  font-size: 1.1em;
  background-color: #F3F3F3;
  border: 0;
  box-shadow: none;
  font-weight: bolder;
  color: #555555;
}
#main {
  padding: 46px 50px 70px;
}
#sidebar {
  background-color: #015955;
  color: white;
  position: relative;
  overflow: hidden;
}
#header {
  background-color: #EE3A42;
  padding: 45px 40px;
}
#intro {
  padding: 45px 40px;
  font-size: 1.15vw;
  font-weight: 600;
  text-align: right;
  height: 90vh;
}
#intro p {
  text-align: left;
  line-height: 130%;
  margin-bottom: 2vh;
}
#intro a {
  color: white;
  border-bottom: 2px solid #EE3A42;
  padding: 8px 0;
  font-size: 0.9vw;
  font-weight: bold; 
}
#intro a:hover {
  background-color: #236C68; 
}
#logos {
  padding: 35px 40px;
  position: absolute;
  bottom: 0;
} 
#logos label {
  color: white;
  margin-bottom: 20px;
}
#logos img {
  width: auto;
}
#logos a {
    display: none;
  }
#form {
  padding-right: 50px;
}
#parameters {
  border-right: 1px solid #A4A4A4;
  padding-right: 30px;
  margin-right: 20px;
  overflow: visible;
}
.group:first-of-type  {
  margin-bottom: 30px;
}
#separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  padding-top: 40px;
  text-align: center;
}
#results_container {
  height: 95%;
  z-index: 1;
}
.result_box {
  background-color: rgba(1, 167, 92, 0.1);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.result {
  color: #01736E;
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 70px;
  font-weight: 600;
  line-height: 70px;
  margin: 0;
}
.mode-phrase {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-top: 10px;
  margin-bottom: 60px;
}
.mode-phrase span {
  color: #015955;
  font-weight: 700;
}
.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.tooltip-icon {
  color: #8b8b8b;
  margin-left: 6px;
}

.tooltip-container .tooltip-text {
  visibility: hidden;
  background-color: #ffffff;
  color: #333;
  border: 1px solid #989797;
  text-align: left;
  padding: 10px 12px;
  border-radius: 4px;
  position: absolute;
  z-index: 5;
  bottom: 125%; /* Position above the icon */
  width: 420px;
  transform: translateX(-3%);
  line-height: 1.3em;
  opacity: 0;
  transition: opacity 0.5s;
  box-shadow: 1px 3px 10px rgba(0, 0, 0, 0.2);
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* Show tooltip when parent has "active" class (for mobile) */
.tooltip-container.active .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.footer {
  position: fixed;
  right: 0;
  width: auto;
  bottom: 0;
  font-size: 10px;
  padding: 8px 30px 16px 10px;
  display: block;
  background-color: rgba(255, 255, 255, 0.6);
  text-align: right;
  color: #989797;
}
.footer a {
  text-decoration: underline;
  color: #989797;
}

@media print, screen and (min-width: 40em) {
  .grid-margin-y>.cell {
    margin-top: 25px;
    margin-bottom: 0px;
  }
}
@media print, screen and (max-width: 1500px) {
  #header {
    padding: 30px 40px 25px;
  }
  #main {
    padding: 30px 40px 70px;
  }
  .mode-phrase {
    margin-bottom: 30px;
    font-size: 14px;
  }
  .toggles button {
    height: 40px;
    font-size: 13px;
    padding: 0 20px;
  }
  h1 {
    font-size: 39px;
  }
  h2 {
    font-size: 17px;
  }
  h3 {
    font-size: 20px;
  }
  .group input, .group select {
    height: 38px;
    font-size: 0.9em;
  }
  .group:first-of-type  {
    margin-bottom: 15px;
  }
  #logos label {
  font-size: 12px;
  }
}
@media print, screen and (max-width: 1200px) {
  .grid-y.medium-grid-frame {
      height: 91vh;
    }
  #header {
    padding: 30px 25px 25px;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 13px;
  }
  #intro {
    padding: 30px 25px;
    font-size: 16px;
  }
  #logos {
    padding: 20px 25px;
  }
  #logos label {
  font-size: 9px;
  }
  #intro a {
    font-size: 13px;
    font-weight: bold; 
  }
  .grid-margin-y>.cell {
    margin-top: 13px;
    margin-bottom: 0px;
  }
  .group input, .group select {
    height: 36px;
    font-size: 0.9em;

  }
  #main {
    padding: 20px 30px 80px;
  }
  .mode-phrase {
    margin-bottom: 30px;
    font-size: 14px;
  }
  h3 {
    color: #EE3A42;
    font-size: 19px;
  }
  .toggles button {
    margin-right: 4px;
    height: 36px;
    font-size: 13px;
    padding: 0 20px;
  }
  .toggles button i {
    display: none;
  }
  #parameters {
    border-right: 1px solid #A4A4A4;
    padding-right: 20px;
    margin-right: 15px;
  }
  .group:first-of-type  {
    margin-bottom: 10px;
  }
  label {
    font-size: 13px;
  }
  .result { 
    font-size: 60px;
  }
  .footer {
    font-size: 9px;
  }
}
@media print, screen and (max-width: 900px) {
  body {
  overflow: scroll;
  }
  #sidebar {
    height: 89vh;
  }
  #header {
    padding: 20px;
  }
  h1 {
    font-size: 50px;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 18px;
  }
  #intro {
    padding: 30px 20px;
    font-size: 16px;
  }
   #intro a {
    font-size: 13px;
    font-weight: bold; 
  }
  #logos {
    padding: 30px 25px;
  }
  #logos a {
    display: block;
    background-color: white;
    color: #015955 ;
    padding: 15px 30px;
    text-align: center;
    width: 100%;
    margin-top: 30px;
    font-weight: 600;
  }
  .grid-margin-y>.cell {
    margin-top: 13px;
    margin-bottom: 0px;
  }
  .group input, .group select {
    height: 36px;
    font-size: 0.9em;
  }
  #main {
    padding: 40px 20px;
  }
  #form {
  padding-right: 0px;
}
  #parameters {
  border-right: 0px;
  border-bottom: 1px solid #A4A4A4;
  padding-right: 0;
  margin-right: 0;
  padding-bottom: 10px;
}
#separator {
  width: 100%;
  margin-right: 0px;
  padding-top: 0px;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}
  .mode-phrase {
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 1.3em;
  }
  h3 {
    color: #EE3A42;
    font-size: 20px;
  }
  .toggles button {
    width: 47%;
    margin-right: 4px;
    margin-bottom: 8px;
    height: 36px;
    font-size: 13px;
    padding: 0 20px;
  }
  .toggles button i {
    display: none;
  }
  .group:first-of-type  {
    margin-bottom: 36px;
  }
  #results_container {
  padding-bottom: 240px;
}
  .result { 
    font-size: 60px;
  }
  .footer {
    position: static;
    bottom: 0;
    font-size: 10px;
    padding: 0;
  }
  .tooltip-container .tooltip-text {
  position: absolute;
  z-index: 5;
  bottom: 125%; /* Position above the icon */
  left: 0;
  right: 0;
  width: 52vw;
  transform: translateX(-90%);
  line-height: 1.3em;
}
}
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 568px)
  and (-webkit-min-device-pixel-ratio: 2) {
      h1 {
    font-size: 32px;
    margin-bottom: 10px;
    width: 90%;
  }
  #intro {
    font-size: 15px;
  }
  #logos a {
    padding: 10px 30px;
    margin-top: 30px;
  }
}