@font-face {
  font-family: ccmat;
  src: url(cocomat-font.ttf);
}
@font-face {
  font-family: ccmat-bold;
  src: url(Cocomat-Bold.ttf);
}
@font-face {
  font-family: touche-bold;
  src: url(touche-bold-font.otf);
}
@font-face {
  font-family: touche-light;
  src: url(touche-light-font.otf);
}
@font-face {
  font-family: touche-sbold;
  src: url(touche-semibold-font.otf);
}

em {
    font-style: normal;
    font-size: 3em;
    font-weight: 900;
  }
  p {
    font-family: ccmat;
    font-weight: bold;
    font-size: x-large;
  }
  label {
    font-family: ccmat;
    font-weight: bold;
    font-size: x-large;
  }
  header a{
    font-family: ccmat;
    font-size: xx-large;
    font-weight: bold;
    text-decoration: none;
    color: white;
  }
h1 {
  font-family: touche-bold;
  font-size: xx-large;
  padding-bottom: 2px;
  border-bottom: 1px solid lightgrey;
}
ul {
  padding: 0;
  list-style-type: none;
}
li {
  font-family: touche-light;
  font-size: 2vh;
  padding: 2%;
}
.listTitle {
  display: block;
  padding-bottom:10%;
  width: fit-content;
  font-size: 4vh;
  font-family: ccmat-bold;
}

h2 , h3 {
  display: block;
  width: fit-content;
  font-size: 4vh;
  font-family: ccmat-bold;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

h4 {
  display: block;
  width: fit-content;
  font-size: 3vh;
  font-family: ccmat-bold;
  margin-bottom: 0.25rem;
  margin-top: 0.25rem;
}

  #home{
    color: white;
    font-family: ccmat-bold;
    font-size: 1em;
    margin-left: 30px;
    margin-top: 10px;
  }
  body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    background-color: #E6F5E6;

    background-image: url('/tousaBackground.png');
  background-repeat: repeat; /* Don't tile the image */
  background-position: left;  /* Center the image */
  }
  .headerTab {
    background-color: #216900;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100px;
    text-align: center;
    border-bottom: 2px solid #a0af54;
    display: flex;
    justify-content: space-between;
    padding: 0 15%;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
    z-index: 1;
  }
  
  #navigation{
    display: flex;
    justify-content: space-around;
    width: 40%;
  }
  #navigation a {
    position: relative;
  }

  #navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0%;
    height: 3%;
    width: 0%;
    -webkit-transition: .3s;
    transition: .3s;
    background-color: white;
  }
  #navigation a:hover::after {
    width: 100%;
  }
  #navigation .currentPage::after {
    width: 100%
  }

  .main {
    display: flex;
    flex-direction: column;
    margin-top: 92px;
    padding-top: 2%;
    padding-left: 5%;
    padding-right: 5%;
    align-items: flex-start;
    width: 50%;
    min-height: 100vh;
    border-left: 1.5px solid lightgrey;
    border-right: 1.5px solid lightgrey;
    background-color: white;
    z-index: 0;
  }

  #curtain {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: grey;
    opacity: 40%;
    z-index: 3;
  }
  #popup {
    display: none;
    flex-direction: column;
    position: fixed;
    left: calc(50% - 15vw);
    top: calc(50% - 15vh);
    height:30vh;
    width:30vw;
    z-index: 4;
    background-color: white;
    border: 3px solid lightgrey;
    padding: 1rem;
  }

  #popup form {
    display: flex;
    flex-direction: column;
  }
  
  #popup select {
    margin-bottom: 1rem;
  }

  #popup input {
    margin: 1rem;
  }

  #popup div {
    margin-bottom: 2.2rem;
    border-bottom: 1px solid lightgrey;
  }

  #popup div label {
    padding-bottom: 0.3rem;
  }

.indexDiv div {
  background-color: #fafafa;
    border-radius: 30px;
    margin: 1%;
    padding: 6%;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
}

.indexGrid {
  display: grid;
  grid-template-rows: 1fr 3fr;
  grid-template-columns: 1fr 1fr;
}

.indexGrid > :first-child {
  grid-column-start: 1;
  grid-column-end: 3;
}

.indexGrid label {
  padding: 0;
}

.indexGrid {
  font-family: ccmat;
    font-weight: bold;
    font-size: x-large;
}
  
  .flag {
    height: 25%;
  }
  img{
    border: 1px,solid,lightgrey
  }

 #translate{
  display: flex;
  width:10%;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-right: 2%;
 }

  .switch {
    position: relative;
    display: inline-block;
    height: 15px;
    width:25px;
  }

  /* Translation Slider */
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 25px;
    background-color: black;
    -webkit-transition: .4s;
    transition: .4s;

    border-radius: 15%
  }
  
  .slider::before {
    position: absolute;
    content: '';
    height: 10px;
    width: 11px;
    left: 2px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 15%
  }
  
  #translate input:checked + .slider {
    background-color: #2196F3;
  }

  
  #translate input:checked + .slider::before {
    -webkit-transform: translateX(10px);
    -ms-transform: translateX(10px);
    transform: translateX(10px);
  }

/* Tutoring Page */  

.tutoringGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.7fr 1fr;
}

.tutoringBox {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 10%;
margin: 4%;
border-radius: 3rem;
height: 70%;
position: relative;
background-color: #1c1f2c;
color: white;
}

#horizonTutoring {
  background-color: #6b00c2;
}

#horizonTutoring li {
  border-bottom: 1px solid #8720db;
}

#horizonTutoring img {
  background-color: transparent;
  border: none;
  height: 2.3em;
}


#horizonTutoring::after {
  background-image: linear-gradient(to bottom right, rgb(255, 188, 44), rgb(255, 166, 0))
}

.tutoringBox::after {
  content: '';
  position:absolute;
  height: 105%;
  width: 105%;
  border-radius: 3.3rem;
  background-image: linear-gradient(to bottom right, lightgreen, yellow);
  top: -2.5%;
  left: -2.5%;
  z-index: -1;
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
}


#signUpBox::after {
  content: '';
  position:absolute;
  height: 106%;
  width: 105%;
  border-radius: 3.3rem;
  background-image: linear-gradient(to bottom right, lightgreen, yellow);
  top: -3%;
  left: -2.5%;
  z-index: -1;
}


.tutoringBox ul {
  list-style-type: disc;
  margin-top: 0;
}
.tutoringBox li::marker{
  font-size: x-large;
}
#signUpBox {
  height: fit-content;
}
.buttonLink {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  width: 35%;
  border-radius: 1000px;
  padding: 5%;
}
.buttonLink:is(a) {
  font-family: ccmat-bold;
  color: #1c1f2c;
}
.buttonLink a{
  font-family: ccmat-bold;
  color: #1c1f2c;
}

/* Tutor Sign Up / Booking */

.phoneNumber {
  font-family: touche-sbold;
}

#signup input:not([type='checkbox']):not([type='submit']) {
  grid-column: span 2;
}

  #signup:has(#mathCheck:checked) #mathSubject {
    display: grid;
    grid-template-columns: 10% 1fr;
    grid-template-rows: 1.1fr 1fr;
    height: max-content;
    width: 100%;
  }

  #signup:has(#scienceCheck:checked) #scienceSubject {
    
    display: grid; 
    grid-template-columns: 10% 1fr;
    grid-template-rows: 1.1fr 1fr;
    height: auto;
    width: 100%;
  }

  .subjectList {
    list-style-type:none;
    display: none;
    height: 0;
    width: 0;
    align-items: center;
  }
  .subjectList input {
    height: 50%;
  }
  .subjectList:is(div) {
    display: grid; 
    grid-template-columns: 10% 1fr;
    grid-template-rows: 1.1fr 1fr;
    height: auto;
    width: 70%;
    
  }
  .flexStart {
    display: flex;
    align-items: flex-start;
  }


  .gridHeading {
    grid-column: span 2;
    grid-row: span 2;
    font-family: touche-sbold;
    font-size: x-large;
    padding: 1%;
  }

  .overflow {
    width: max-content;
  }

  .flexStart:has(#bookingAcknowledgement) input{
    margin-top: 2%;
    margin-right: 3%;
  }

  /* Content Page */

  #schoolDropdown {
    position: relative;
    padding: 0;
    width: 35%;
    min-height: 4.5vh;
    display: flex;
    justify-content: space-around;
    cursor: pointer;
  }
  .schoolOptions {
    position: absolute;
    left: 0;
    top: 85%;
    background-color: grey;
    padding: .75rem;
    border-radius: .25rem;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
  }
  .schoolOptions a {
    pointer-events: all;
  }

  #schoolDropdown > button:focus ~ .schoolOptions,
  #schoolDropdown:focus .schoolOptions,
  #schoolDropdown > a:focus ~ .schoolOptions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #schoolDropdown > button {
    border: none;
    cursor: pointer;
    background-color: #fafafa;
  }

  .contentDiv #schoolDropdown img {
    float: right;
    width: 6%;
    height: auto;
    aspect-ratio: 1;
    display: block;
    border:0;
    padding: 2%;
    padding-top: 3%;
  }
  
  .sidebar {
    position: fixed;
    width: 15%;
    padding: 2%;
    margin-left: 0.5%;
    margin-right: 0.5%;
    top: 15%;
    left: 0.1%;
    list-style-type: none;
    background-color: #fafafa;
    border-radius: 30px;
    border: 1px solid lightgrey;
  }
  .sidebar li a {
    text-decoration: underline;
    color: #216900;
    font-size: larger;
  }
  .sidebar label {
    font-family: touche-light;
    color: #858585;
  }
  .contentDiv ul{
list-style-type: disc;
  }
  .contentDiv div{
    background-color: #fafafa;
    border-radius: 30px;
    margin: 1%;
    padding: 6%;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
  }

  .contentDiv label:not(.listTitle) {
    font-family: touche-sbold;
  }
.contentDiv .listTitle {
  width: 70%;
}

  .contentDiv p {
    font-size: x-large;
    font-family: touche-light;
    font-weight: lighter;
  }
  .contentDiv .dropdown {
    float: left;
    width:5%;
    padding-top: 0.5%;
    padding-right: 1%;
    
  }
  .contentDiv .dropdown img {
    width:90%;
    cursor: pointer;
    transition: 0.4s;
    -webkit-transition: 0.4s;
    border:0;
  }
  .contentDiv .dropdown input {
    position: absolute;
    display: none;
  }
  .contentDiv .dropdown input:checked~img {
    transform: rotate(-90deg);
  }
  .contentDiv :has(.dropdown input:checked) {
    height: 3vh;
    overflow: hidden;
    min-height: 3vh;
  }

.sportsSeasonGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* one column per season */
  gap: 0; /* remove grid gap since we’ll use borders */
  border-top: 1px solid #ccc; /* top border for grid */
  border-left: 1px solid #ccc; /* left border for grid */
}

.sportsSeasonGrid .season {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ccc; /* vertical divider */
  border-bottom: 1px solid #ccc; /* horizontal divider */
  padding: 10px;
}

.sportsSeasonGrid .season label {
  display: block;
  font-weight: bold;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc; /* line between heading and list */
  margin-bottom: 10px;
}

.sportsSeasonGrid .season ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sportsSeasonGrid .season li {
  padding: 4px 0;
  text-align: center;
  border-bottom: 1px solid #eee; /* optional line between list items */
}

.sportsSeasonGrid .season li:last-child {
  border-bottom: none; /* remove line after last item */
}

/* Optional hover effect */
.sportsSeasonGrid .season li:hover {
  background: #f9f9f9;
}

.card {
        border: 1px solid #ccc;
        padding: 10px;
        margin: 10px 0;
        border-radius: 8px;
      }
      .card button {
        margin-top: 5px;
        padding: 6px 12px;
        border-radius: 5px;
        background-color: #007bff;
        color: white;
        border: none;
        cursor: pointer;
      }
      .card button:hover {
        background-color: #0056b3;
      }

.card h4{
  border-bottom: 1px solid #ccc;
}

.gpaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  padding: 2%;
}

.gpaGrid ul {
  list-style: none;
  margin:0;
}

.gpaGrid li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}



.counselorGrid {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr; /* column widths */
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  max-width: 800px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  text-align: left;
}

.counselorGrid .col {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0 10px;
}

.counselorGrid label {
  display: block;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  background: #fafafa;
}

.counselorGrid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.counselorGrid li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.counselorGrid li:last-child {
  border-bottom: none;
}

.counselorGrid a {
  color: #5a2ca0;
  text-decoration: none;
}

.counselorGrid a:hover {
  text-decoration: underline;
}


/* Responsive stacking / Cell phone adaptation */
@media (max-width: 768px) {
  .sportsSeasonGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sportsSeasonGrid {
    grid-template-columns: 1fr;
  }
}


/* About Us */

#aboutusdiv label {
  padding-bottom: 2%;
}

#aboutusdiv p {
  font-family: touche-light;
  font-weight: normal;
}

#contact {
  font-weight: lighter;
  font-size: x-large;
}

#email {
  text-decoration: underline;
    color: #89f336;
    font-size: larger;
    font-family: touche-sbold;
}

#subject {
  font-style: italic;
  font-weight: lighter;
  font-family: touche-light;
  font-size: small;
}