/* Modernized styles.css - extracted and enhanced from index.html */

* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box; /* Added for better box model */
}

body {
  padding: 0px;
  margin: 0px;
  background-color: #0f2137;
  font-family: sans-serif; /* Improved font stack */
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

#test {
  width: 360px;
  /* height removed for auto-sizing */
  padding: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: auto;
  margin-right: auto;
  background-color: #1f2f47;
  background-image: url('/images/homepage-background.svg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  position: relative; /* For potential overlays */
}
loginform label {
  background-color: #fef;
}
  #loginbox {
     padding: 0px;
     margin: 0px;
     border: 1px solid #fff;
     background: #eef;
     border-radius: 3%;
  }
  
  /*.logintext {
    padding: 0px;
    margin: 0px;
    width: 55%;
    background: #eef;
    margin-left: 10px;
    clear: both;
  }*/

 #lbutton {
    font-family      : Helvetica;
    color            : #000;
    background-color : #aaa;
    border-top       : 1px solid #fff;
    border-left      : 1px solid #fff;
    border-right     : 1px solid #888;
    border-bottom    : 1px solid #888;
    padding-left     : 2px;
    padding-right    : 2px;
    margin-left      : 10px;
    width:           15%;
 }
 form {
   font-family:  sans-serif;
   padding-bottom: 5%;
   padding-top: 5%;
   padding-left: 5%;
 }

.logintext {
  width: 100px;
}

#imgbox {
  margin: 0px;
  padding: 0px;
  padding-top: 5%;
}

#bottombox {
  margin: 0px;
  padding: 0px;
  padding-top: 5%;
}

#copybox {
  width: 20%;
  display: block;
  float: left;
  margin-left: 10%;
  text-align: center;
}

#copytext {
  padding-top: 10px;
  font-family: sans;
  font-size: 10px;
  color: white;
}

#bottomleft {
  padding-top: 0px;
  width: 30%;
  display: block;
  float: left;
  color: white;
  font-family: sans;
  text-align: center;
}

#bottomright {
  padding-top: 0px;
  width: 30%;
  display: block;
  float: right;
  color: white;
  font-family: sans;
  text-align: center;
}

#logobox {
  width: 20%;
  display: block;
  float: left;
  margin-left: 10%;
  text-align: center;
}

#logo {
  width: 100%;
  display: block;
}

#logotext {
  padding-top: 5px;
  font-family: sans;
  font-size: 10px;
  color: red;
}

#topleft {
  padding-top: 10px;
  width: 30%;
  display: block;
  float: left;
  color: white;
  font-family: sans;
  text-align: center;
}

#topright {
  padding-top: 0px;
  width: 30%;
  display: block;
  float: right;
  color: white;
  font-family: sans;
  text-align: center;
}

#goaltext {
  clear: both;
  color: white;
  font-family: sans;
  text-align: center;
  padding-top: 50px;
  margin-bottom: 50px;
}

a:link {
  text-decoration: none;
  color: #FFF;
}

a:visited {
  text-decoration: none;
  color: #FFF;
}

a:hover {
  text-decoration: none;
  color: #F00;
}

a:active {
  text-decoration: none;
  color: #00F;
}


/* New styles for semantic structure and responsiveness */
header, main, section, footer {
  clear: both;
}

aside {
  display: none; /* Hidden by default */
}

header {
  padding: 10px 0;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}



#teacher-profile {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle overlay */
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#teacher-profile img {
  max-width: 250px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-bottom: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#teacher-profile img:active {
  transform: scale(1.2); /* Touch interaction */
}

#teacher-profile h2 {
  color: white;
  margin-bottom: 10px;
}

#teacher-profile p {
  color: white;
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
  word-wrap: break-word;
  cursor: pointer;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(45deg, #1f2f47, #0f2137);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  min-height: 44px; /* Touch-friendly */
  min-width: 44px;
}

.cta-button:active {
  transform: scale(0.95);
}

/* Responsive design */
@media (min-width: 768px) {
  #test {
    width: 90%;
    max-width: 800px;
  }
  #teacher-profile {
    flex-direction: row;
    text-align: left;
  }
  #teacher-profile img {
    margin-right: 20px;
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    justify-content: space-between;
  }
  #test {
    width: 70%;
    margin: 0;
  }
  aside {
    width: 25%;
    background-color: #1f2f47;
    padding: 20px;
    color: white;
  }
  /* Placeholder for sidebar content */
  aside::before {
    content: "Sidebar for PC (e.g., future content)";
    font-style: italic;
  }
}

@media (max-width: 767px) {
  #test {
    width: 100%;
  }
  form {
    display: block;
  }
  #teacher-profile {
    margin-top: 20px;
  }
  #teacher-profile p {
    max-width: 100%;
  }
}

/* Touch-friendly adjustments */
@media (max-width: 767px) {
  
}

input:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.4);   /* soft blue glow */
  /* or: box-shadow: 0 0 0 2px #4a90e2;             stronger border-like */
}
