@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  color: #333;
}

header {
  background-color: #0073e6;
  color: white;
  padding: 20px;
}

nav a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
}

main {
  padding: 20px;
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: transform 0.2s ease;
  background-color: #165ebc;
}

/* Sidebar Stuff */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: #0073e6;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 1000;

  font-family: "Lilita One", sans-serif;
  font-size: 20px;
  font-style: normal;
  color:white;
  text-shadow:
    1px 2.5px 0px black;
  -webkit-text-stroke: .7px black;
  line-height: 1.5; /* Default is ~1.5 */
  box-shadow: 2px 2px 6.7px black;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 15px 0;
}

.sidebar h2 {
  margin-top: 0;
}
/* End of Sidebar Stuff */

/* Header Bar Stuff */
.page-container {
  margin-left: 0;
  transition: margin-left 0.2s ease;
  padding: 10px;
  background-color: #292929;
  min-height: 70px; /* Ensure minimum height for header */
}

.page-container.shifted {
  margin-left: 200px;  
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  min-height: 50px; /* Ensure header stays consistent height */
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.nav-button {
  text-decoration: none;
  background: linear-gradient(to bottom, #FFCC00, #ffb700);
  color: white;
  padding: 10px 45px;
  border-radius: 5px;
  font-size: 25px;
  font-family: "Lilita One", sans-serif;
  font-style: normal;
  text-shadow:
    1px 2.5px 0px black;
  -webkit-text-stroke: 1.15px black;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
}

.nav-button.left-button{
  margin-left: 80px;
}

.nav-button.right-button{
  margin-right: 80px;
}

.nav-button:hover {
  transform: translateY(-3px);
}

.logo-image {
  height: 50px; 
  flex-shrink: 0; /* Prevent logo from shrinking */
}
/* End of Header Bar Stuff */

/* Hamburger stuff*/
.bar1, .bar2, .bar3, .bar01, .bar02, .bar03 {
  width: 35px;
  height: 5px;
  background-color: #e2e2e2;
  margin: 6px 0;
  transition: 0.2s;
  box-shadow: 2px 2px 6.7px black;
  
}

.container, .container1 {
  display: inline-block;
  cursor: pointer;
}

.container1{
  position: absolute;
  top: 20px;
  left: 20px;
}

/*End of Hamburger stuff*/



/*Tutor Profile Stuff*/

.tutor-profiles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* or flex-start for left alignment */
  gap: 40px; /* space between boxes */
  margin: 20px auto;
}

.tutor-profile {
  background: #0073e6;
  color: white;
  border-radius: 10px;
  width: 350px;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  font-family: "Lilita One", sans-serif;
  text-shadow: 2px 2px 0px black;
  box-shadow: 2px 2px 7px black;
  box-sizing: border-box;
  padding: 20px 20px 15px 20px;
  position: relative;
}

.name {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.subjects, .grade {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  text-shadow: 1px 1.8px 0px black;
  text-align: left;
  width: 100%;
}

.tutor-profile-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.right-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 55%;
}

.bio {
  font-size: 15px;
  margin-bottom: 8px;
  color: #fff;
  text-align: right;
  text-shadow: 1px 1.5px 0px black;
  word-break: break-word;
  max-width: 180px;
}

.personal-pic {
  max-width: 135px;
  max-height: 135px;
  border-radius: 5px;
  margin: 0;
}

.schedule {
  text-decoration: none;
  background: linear-gradient(to bottom, #FFCC00, #ffb700);
  color: white;
  padding: 5px 20px;
  border-radius: 5px;
  font-size: 18px;
  font-family: "Lilita One", sans-serif;
  font-style: normal;
  text-shadow: .6px 1.7px 0px black;
  -webkit-text-stroke: 1.15px black;
  transition: transform 0.3s ease, opacity 0.3s ease;
  align-self: flex-end;
}

.short-form-container{
  background: #6f00e6;
  color: white;
  border-radius: 10px;
  width: 50%;
  height: 75%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  font-family: "Lilita One", sans-serif;
  text-shadow: 2px 2px 0px black;
  box-shadow: 2px 2px 7px black;
  box-sizing: border-box;
  padding: 20px 20px 15px 20px;
  position: relative;
  margin: 40px auto;           /* Center horizontally */
  align-self: center;          /* If inside a flex parent */
  
}

#short-form-title{
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

.short-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.short-form label {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  margin-bottom: 0;
}

.short-form input,
.short-form textarea {
  margin-top: 6px;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 16px;
}

.short-form select,
.short-form option {
  font-family: "Lilita One", sans-serif;
  color: white;
  background: #707070;
  font-size: 16px;
  padding:8px;
  border-radius: 5px;
}

#sendRequestButton{
  text-decoration: none;
  background: linear-gradient(to bottom, #FFCC00, #ffb700);
  color: white;
  padding: 5px 20px;
  border-radius: 5px;
  font-size: 18px;
  font-family: "Lilita One", sans-serif;
  font-style: normal;
  text-shadow: .6px 1.7px 0px black;
  -webkit-text-stroke: 1.15px black;
  transition: transform 0.3s ease, opacity 0.3s ease;
  align-self: center;
  margin-top:10px;
}

.form-flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;   /* This vertically centers children */
  margin-top: 40px;
}

#selectedTutorBox{
  margin-top: 20px;
  margin-left: 20px;
}

/* Mobile responsiveness for homes.css */
@media (max-width: 768px) {
  /* Header adjustments for mobile */
  .header-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px;
  }
  
  .nav-button {
    font-size: 18px;
    padding: 8px 25px;
    text-shadow: 1px 1.5px 0px black;
    -webkit-text-stroke: 0.8px black;
  }
  
  .nav-button.left-button,
  .nav-button.right-button {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .logo-image {
    height: 40px;
    order: -1; /* Logo appears first on mobile */
    margin-bottom: 10px;
  }
  
  /* Sidebar adjustments */
  .sidebar {
    font-size: 16px;
    width: 180px;
    padding: 15px;
  }
  
  .page-container.shifted {
    margin-left: 180px;
  }
  
  /* Tutor profiles container adjustments */
  .tutor-profiles-container {
    gap: 20px;
    margin: 15px 10px;
    justify-content: center;
  }
  
  /* Tutor profile cards adjustments */
  .tutor-profile {
    width: 280px;
    height: 300px;
    padding: 15px;
  }
  
  .name {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .subjects, .grade {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .bio {
    font-size: 12px;
    max-width: 140px;
  }
  
  .personal-pic {
    max-width: 100px;
    max-height: 100px;
  }
  
  .schedule {
    font-size: 14px;
    padding: 4px 15px;
    -webkit-text-stroke: 0.8px black;
  }
  
  /* Form adjustments */
  .form-flex-row {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
  }
  
  .short-form-container {
    width: 90%;
    height: auto;
    margin: 20px auto;
    padding: 15px;
  }
  
  #short-form-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .short-form {
    gap: 12px;
  }
  
  .short-form label {
    font-size: 14px;
  }
  
  .short-form input,
  .short-form textarea {
    font-size: 14px;
    padding: 6px;
  }
  
  .short-form select,
  .short-form option {
    font-size: 14px;
    padding: 6px;
  }
  
  #sendRequestButton {
    font-size: 16px;
    padding: 8px 18px;
    -webkit-text-stroke: 0.8px black;
  }
  
  #selectedTutorBox {
    margin-top: 0;
    margin-left: 0;
    display: flex;
    justify-content: center;
  }
  
  /* Make selected tutor box smaller on mobile */
  #selectedTutorBox .tutor-profile {
    width: 250px;
    height: 280px;
  }
  
  #selectedTutorBox .name {
    font-size: 24px;
  }
  
  #selectedTutorBox .subjects,
  #selectedTutorBox .grade {
    font-size: 12px;
  }
  
  #selectedTutorBox .bio {
    font-size: 11px;
    max-width: 120px;
  }
  
  #selectedTutorBox .personal-pic {
    max-width: 80px;
    max-height: 80px;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
    padding: 8px;
  }
  
  .nav-button {
    font-size: 16px;
    padding: 6px 20px;
    margin: 5px;
  }
  
  .nav-button.left-button,
  .nav-button.right-button {
    margin-left: 5px;
    margin-right: 5px;
  }
  
  .logo-image {
    height: 35px;
    margin-bottom: 8px;
  }
  
  .tutor-profile {
    width: 250px;
    height: 280px;
    padding: 12px;
  }
  
  .name {
    font-size: 24px;
  }
  
  .subjects, .grade {
    font-size: 12px;
  }
  
  .bio {
    font-size: 11px;
    max-width: 120px;
  }
  
  .personal-pic {
    max-width: 80px;
    max-height: 80px;
  }
  
  .short-form-container {
    width: 95%;
    padding: 12px;
  }
  
  #short-form-title {
    font-size: 24px;
  }
  
  .short-form label {
    font-size: 13px;
  }
  
  .short-form input,
  .short-form textarea,
  .short-form select {
    font-size: 13px;
    padding: 5px;
  }
  
  #selectedTutorBox .tutor-profile {
    width: 220px;
    height: 260px;
    padding: 10px;
  }
}