* {
    box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
/*    background-color: #f3f3f3;*/
}

ul li {
  list-style-type: none;
}

a{
  text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #0E5A8A;
    color: white;
}

.logo{
  display: flex;
  width: 100%;
}

.logo img {
    display: flex;
    height: 55px;
    padding-left: 25px;
}

nav{
  width: 70%;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a{
  padding: 10px;
  color: #fff;
  font-size: 20px;
}
.intro-text {
  padding: 20px;
  background-color: #f8f8f8;
  margin: 20px;
  border-radius: 10px;
}
.intro-text h1{
  color: #003366;
}
.hamburger {
  display: none;
  font-size: 2.3rem;
  background: none;
  border: none;
  position: absolute;
  top: 0px;
  left: 5px;
  z-index: 1;
}

.nav-links {
    list-style-type: none;
}

.nav-links li {
    display: inline;
    margin: 0 10px;
}

.breadcrumb {
    padding: 10px 0;
    background-color: #f5f5f5;
    margin-bottom: 20px;
    color: #0E5A8A;
    padding-left: 6%;
}

.breadcrumb a {
    text-decoration: none;
    color: #0E5A8A;
    font-size: 14px;
}

.breadcrumb a:after {
    padding: 0 5px;
}

.breadcrumb a:last-child:after {
    content: "";
}

main {
    /*display: grid;
    grid-template-columns: repeat(4, 1fr);*/
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 10px;
}

main ul li a:hover{
  text-decoration: underline;
}

.main-content {
    flex: 70%;
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

.main-calculator{
  padding: 20px;
  border-radius: 10px;
  background-color: #0E5A8A;
  margin: 10px 0;
}

.main-calculator h1,.main-calculator h2{
  color: #fff;
}
.main-note {
  color: #fff;
}
.activity-level {
    margin-top: 20px;
}

.activity-level table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.activity-level th, .activity-level td {
    border: 1px solid #ddd;
    padding: 6px;
}

.activity-level th {
    background-color: #ab2828;
    color: #fff;
}
.activity-level tr:nth-child(even) {
    background-color: #f8f8f8;
}

.activity-level tr:nth-child(odd) {
    background-color: #fff;
}
.svg-container{
  max-width: 100%;
  display: flex;
}
pre{
  overflow: auto;
}
.sidebar {
    flex: 30%;
/*    background-color: #f8f8f8;*/
    padding: 15px;
/*    border-radius: 10px;*/
}

.sidebar h2 {
    color: #003366;
}

.sidebar table {
    width: 100%;
    border-collapse: collapse;
}

.sidebar td {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

.sidebar a {
    text-decoration: none;
    color: #0E5A8A;
}


.calculator-section {
/*  background-color: #f8f8f8;*/
/*  background-color: #EBF9FF;*/
  padding: 20px;
  border-radius: 10px;
}

.calculator-section h2,a {
  color: #003366;
}
.calculator-section h2 a:hover{
  text-decoration: underline;
}

.home-ul {
  font-size: 17px;
  padding: 0;
}

.home-ul li{
  padding-bottom: 8px;
}

.home-ul li a{
  color: #0E5A8A;
}
.categories .home-ul li{
  padding-bottom: 6px;
}
.categories .home-ul li a{
  text-decoration: underline;
  font-size: 17px;
}
.categories .home-ul li a:hover {
  text-decoration: none;
}
.bmi-table table {
    border-collapse: collapse;
    width: 100%;
}

.bmi-table th {
    background-color: #0E5A8A;
    color: white;
    padding: 15px;
    border: 1px solid #000;
}

.bmi-table td {
    padding: 15px;
    border: 1px solid #000;
}

.bmi-table tr:nth-child(even) {
    background-color: #ccc;
}

.bmi-table tr:nth-child(odd) {
    background-color: #fff;
}

.risks ul li{
  list-style-type: disc;
  padding: 5px 0px;
}

.bmi-formula {
    padding: 20px;
    background-color: #f7f7f7;
}

.bmi-formula h2 {
    color: #0E5A8A;
}

.bmi-formula .formula {
    font-size: 1.2em;
    font-weight: bold;
}
.formula span{
  font-weight: bold;
}

.categories {
    display: flex;
    flex-wrap: wrap;
}
.categories p{
  margin: 0;
}

.category {
    width: 50%;
}
.categories h2 a{
  color: #003366;
  text-decoration: underline;
}
.categories h2 a:hover {
  text-decoration: none;
}
/*  CONVERTER CSS   */
.area-converter-container {
    display: flex;
    align-items: center;
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 0px #ddd;
}

.area-converter-container div {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-right: 20px;
    box-shadow: 0px 0px 5px 0px #ddd;
}

.area-converter-container input {
    height: 30px;
    width: 200px;
    border: none;
    font-size: 16px;
}

.area-converter-container select {
    margin-left: 10px;
    height: 30px;
    border: none;
    font-size: 16px;
}
/*   */
footer {
    padding: 20px;
    background-color: #0E5A8A;
    text-align: center;
    color: white;
    bottom: 0;
    width: 100%;
}
footer a{
  color: #fff;
  padding: 0 10px;
  text-decoration: underline;
}
footer a:hover{
  text-decoration: none;
}

.terms h1{
  font-size: 30px;
}

.low {
    color: red;
}

.medium {
    color: #cd9a09;
}

.high {
    color: green;
}

/*  CATEGORIES Page CSS   */
.categories h1{
  font-size: 28px;
  color: #0E5A8A;
}
.cat h1{
  font-size: 28px;
  color: #0E5A8A;
}
.category ul{
  padding: 0;
}
#amResults p{
  margin: 0px;
  text-align: center;
}
/* ////// */

/*  BMI Calculator CSS   */

.converter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F8F9FA;
  gap: 10px;
  padding: 20px;
  margin: 10px 0;
  border-radius: 5px;
  box-shadow: 0px 0px 5px 0px #ddd;
}

.converter-container div {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
/*  margin-right: 20px;*/
}

.converter-container input {
  height: 30px;
  width: 200px;
  border: none;
  font-size: 16px;
}
.fraction-page input {
  width: 150px;
}
.converter-container select {
  margin-left: 10px;
  height: 30px;
  border: none;
  font-size: 16px;
}
.bmi-category {
    font-size: 18px;
}
.bmi-category span {
    font-weight: bold;
}
.Underweight {
    color: #cd9a09;
}
.Normal {
    color: green;
}
.Overweight {
    color: orange;
}
.Obese {
    color: red;
}
.converter-input, 
.converter-output {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: bold;
}
.converter-input input {
  border: 1px solid lightgrey;
  border-radius: 5px;
  padding: 10px;
}
.converter-output input{
  font-weight: bold;
  text-align: center;
}
.formula {
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  padding: 10px;
}

.numerator, .denominator {
  display: block;
}

.divider {
  width: 100%;
  border-top: 2px solid black;
}

.converter-ouput span{
  font-weight: bold;
}
.current-week {
    background-color: #ffff99 !important; /* light yellow */
}
#progress-container {
    width: 50%;
    height: 20px;
    border: 1px solid #bbb;
    border-radius: 5px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background-color: #c5c4c4;
}

#progressBar {
    height: 100%;
    background-color: #de47c7;
    color: white;
    text-align: center;
    line-height: 20px;
    border-radius: 5px;
}
#trimester-container {
    display: flex;
}

.trimester-bar {
    flex: 1;
    padding: 5px;
    border: 1px solid #bbb;
    text-align: center;
}

.trimester-bar.active {
    background-color: #de47c7;
    color: white;
}

.fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .operation-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

/* Responsive Design */
@media screen and (max-width: 768px) {
  .logo {
    order: 1;
    display: flex;
    justify-content: center;
  }
  .logo img{
    height: 50px;
    padding: 5px 0;
  }

  header {
    flex-direction: column;
    align-items: center;
    padding: 0px;
  }

  nav ul li a{
    color: #fff;
  }
  .nav-links {
    position: absolute;
    background-color: #F46E6E;
    top: 50px;
    right: 0;
    width: 100%;
    flex-direction: column;
    clip-path: circle(100px at 90% -10%);
    -webkit-clip-path: circle(100px at 90% -10%);
    transition: all 1s ease-out;
    display: none;
    margin: 0px;
    padding: 10px 0px;
  }
  .nav-links li {
    margin: 5px 0px;
    border-bottom: 1px solid #333;
    padding: 5px 0px;
  }

  .hamburger {
    color: #fff;
    display: block;
    font-size: 2rem;
  }

  .nav-open {
    clip-path: circle(1000px at 90% -10%);
    -webkit-clip-path: circle(1000px at 90% -10%);
    display: flex;
  }

  main {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }
  .area-converter-container{
    display: block;
    padding: 0px;
  }
  .area-converter-container div{
    margin-right: 0px;
  }
  .area-converter-container input{
    width: 160px;
  }
  .area-converter-container select{
    width: 120px;
  }

  .main-content, .sidebar {
    flex: 100%;
  }
  .main-content {
    margin-right: 0;
  }
  .converter-input {
      flex-direction: column;
      align-items: flex-start;
  }

  .converter-input label {
      margin-bottom: 5px;
  }

  .converter-input input,
  .converter-input select {
      width: 100%;
      margin-bottom: 10px;
  }
  #outputBMI{
    width: 150px;
  }
  .category {
    width: 100%;
  }
  .categories h1{
    font-size: 25px;
  }
  .categories h2{
    font-size: 22px;
  }
  #progress-container{
    width: 100%;
  }
}