/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    margin: 0;
    padding: 0;
  }
  
  h1, .header h2  {
    text-align: center;
    color: #ffffff;
    margin: 0;
  }
  
  h2 {
    color: #005bb5;
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .header h2 {
    font-size: 1.2em;
  }
  
  p, label {
    font-size: 1em;
    color: #555;
  }
  
  section {
    max-width: 1000px; /* Optional max width to center content */
    margin-top: 20px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  input[type="date"], button {
    font-size: 1.1em;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: calc(100% - 24px);
    box-sizing: border-box;
  }
  
  input[type="date"]:focus, button:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 5px rgb(102 175 233 / 50%);
  }
  
  section button {
    background-color: #0073e6;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #005bb5;
  }
  
  #rangeResult, #ageResult {
    font-size: 1.2em;
    margin-top: 20px;
    padding: 15px;
    background-color: #e6f7ff;
    border: 1px solid #b3daff;
    border-radius: 5px;
  }
  
  /* Table Styling */
  table {
    width: 100%; /* Ensure table takes the full width */
    margin-top: 20px;
    border-collapse: collapse;
    display: none; /* Hide table initially, will be shown upon user action */
  }
  
  table, th, td {
    border: 1px solid black;
  }
  
  th, td {
    padding: 10px;
    text-align: left;
    font-size: 1.1em;
    word-wrap: break-word; /* Ensures text breaks and wraps within the cell */
  }
  
  th {
    background-color: #4285F4 ;
    color: white;
    text-align: center;
  }
  
  td {
    background-color: #f4f7f9;
  }
  
  tr:nth-child(even) td {
    background-color: #e6f7ff;
  }
  
  #afcatTable {
    width: 100%; /* Ensure the table container is also 100% width */
    margin-top: 20px;
  }

  
  #eligibilitySection, #ageCalculationSection {
    margin-top: 40px;
  }
  
  @media (max-width: 768px) {
    section {
      padding: 15px;
      width: 95%;
    }
  
    h1 {
      font-size: 2em;
    }
  
    h2 {
      font-size: 1.6em;
    }
  
    input[type="date"], button {
      font-size: 1em;
      padding: 8px;
    }
  
    th, td {
      padding: 8px;
    }
  }


  /*my css */
  /* matte shades of blue #4280dc #3870cd */

  .header{
    background-color: #4285F4;  
    min-height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: .5rem;
  }

  .header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

footer {
    background-color: #333;
    height: fit-content;
    padding: 2.5rem;
    display: flex;
    justify-content: space-around;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer ul {
    margin: 0;
    padding: 0;
}

footer div {
    padding: 1rem;
}

footer h3 {
    color: #ffffff;
    margin: 0;
    padding-bottom: .5rem;
}

footer ul li {
    padding: .5rem 0 0 0;
}

.navbar {
  background-color: #333;
  height: 50px;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  box-shadow: 0 4px 8px rgb(0 0 0 / 30%);
}

.navbar .navbar-a {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 16px;
  overflow: hidden;
  height: 50px;
  
}

.navbar-b {
  margin: 0;
  padding: 0 2rem;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 50px;
}

.navbar-b li {
  display: inline-block;
  
}

.navbar-b a:hover {
  background-color: #575757;
}

.navbar-b a {
  color: #ffffff;
  text-decoration: none;
  padding: 1rem;
  transition: background-color 0.3s ease;
}

/* newcss */

.arrow-button {
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border: none;
  background-color: #333;
}

.arrow-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.navbar-b::-webkit-scrollbar {
  display: none;
}
.navbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    background-color: #333;
    margin: 0;
}

.navbar button i {
  color: #ffffff;
}

.navbar button:hover {
  background-color: #575757;
}

.navbar-content {
  display: flex;
  align-items: center;
  overflow: hidden;
}


.dropdown-menu select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    margin-bottom: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
  }
  
  .dropdown-menu select:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
  }
  
  .dropdown-menu {
    display: flex;
    margin-top: 15px;
    width: calc(100% - 24px);
  }
  
.dropdown-menu #examDropdown {
    margin-right: .5rem;
}

.dropdown-menu select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    transition: background-color .3s ease;
  }
  
  .dropdown-menu select option:hover {
    background-color: #4285F4;
    color: #fff;
   
  }
  
  .dropdown-menu select option:checked {
    background-color: #4285f4;
    color: #fff;
  }
  
  .dropdown-menu select option[disabled] {
    color: #fff;
    background-color: #4285f4;
  }

  /* .dropdown-menu select option:checked {
    background-color: #007BFF;
    color: #fff;
  } */

  #preferenceDropdown {
    width: 100%;
    display: inline-block;

  }

  #licenseCheckboxDiv {
    display: none;
    margin-left: 10px;
  }



  .left-arr-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2020;
  }  


  .right-arr-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2020;
  }  


  .bar-render-left {
    background: linear-gradient(to left,var(--yt-spec-base-background) 20%,rgba(33,33,33,0) 80%);
    height: 100%;
    width: 3rem;
    content: "";
    pointer-events: none;
    display: flex;
    background-image: linear-gradient(to left, rgba(255,0,0,0), #33333350, #333333a9, #333);
    margin: 0;
  }



  .bar-render-right {
    background: linear-gradient(to left,var(--yt-spec-base-background) 20%,rgba(33,33,33,0) 80%);
    height: 100%;
    width: 3rem;
    content: "";
    pointer-events: none;
    display: flex;
    background-image: linear-gradient(to right, rgba(255,0,0,0), #33333350, #333333a9, #333);
    margin: 0;
  }

.right-arr-btn span {
  background-color: #333;
  height: 100%;
  display: flex;
  align-items: center;
  margin-right: .25rem;
}

.left-arr-btn span {
  background-color: #333;
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: .25rem;
}



.logo {
  display: flex;
  flex-direction: row;
 align-items: center;
 justify-content: space-between;
 margin: .5rem;
 height: fit-content;
 width: 100%;
}

.logo img {
  height: auto;
  width: 20rem;
  padding-left: 12px;
}




.header .tagline {
  margin: 0;
  color: white;
  font-size: 1.5em;
  text-align: end;
  padding-right: .75rem;
}

 

@media (max-width: 768px) {
  .header .tagline {
    font-size: 1.2em;
  }
  
  .header h2 {
    font-size: 1em;
  }
  
  footer {
    padding: .75rem;
  }
}

@media (max-width: 638px) {
  .logo img{
    width: 10em;
  }

  .header .tagline {
    font-size: 1.0em;
  }
  
}


@media (max-width: 460px) {
  .header .tagline {
    font-size: .9em;
  }

  .header h2 {
    font-size: 0.7em;
  }
}

@media (max-width: 390px) {
  .logo {
    display: flex;
    flex-direction: column;
  }

  .logo img{
    width: 12em;
  }

  .header .tagline {
    text-align: center;
    margin: 8px;
    padding: 0;
  }  
}

footer a:hover {
  text-decoration: underline;
}