/* Base styles */
body {
  margin: 0;
  padding: 1em;
  font: 16px "Lucida Grande", Helvetica, Arial, sans-serif;
  background-color: #7aaaff; /* Final chosen background */
}

/* Slideshow section */
section {
  width: 100%;
  margin-top: 1em;
}

/* Links */
a {
  color: #0473AD;
  text-decoration: none;
}

/* Form layout */
#subjectForm {
  width: 100%;
  margin-bottom: 1em;
}

/* Message styling */
#msg, div #msg {
  font-weight: bold;
  color: red;
  margin-top: 1em;
}

/* Continue button */
#continue {
  display: block;
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  margin-top: 1em;
}

/* Results table */
#result {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
}

th {
  border-bottom: 2px solid #000;
  text-align: left;
  padding: 0.5em;
}

td {
  border-bottom: 1px dotted #666;
  padding: 0.5em;
  word-wrap: break-word;
}

#year, #owner {
  text-align: center;
}

#footer {
  clear: both;
  margin-top: 2em;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding: 0.5em;
  }

  section {
    width: 100%;
    float: none;
  }

  #subjectForm {
    float: none;
    width: 100%;
  }

  input[type="radio"] {
    transform: scale(1.2);
    margin-right: 0.5em;
  }

  #continue {
    font-size: 1.1em;
  }

  th, td {
    font-size: 0.9em;
  }

/*  I found this next block commented out.  I uncommented it and on the desktop version the form under where it says "Enter characters to search:" got bigger the way I want it to be and the continue button changed to have a blue background which I didn't expect but I'm fine with it */
  .ws_images img {
    max-width: 100%;
    height: auto;
  }


}
select#subject {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  margin-bottom: 1em;
  box-sizing: border-box;
}
label {
  display: block;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: bold;
}


input[type="text"] {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  box-sizing: border-box;
}
/* === Dropdown and Submit Button Styling === */


select#subject {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  margin-bottom: 1em;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  appearance: none; /* Removes default arrow styling on some browsers */
}


input[type="submit"] {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  font-weight: bold;
  background-color: #0473AD;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1em;
}


input[type="submit"]:hover {
  background-color: #035a8c;
}


#subjectForm select,
#subjectForm label,
#subjectForm input[type="text"],
#subjectForm input[type="submit"] {
  display: block;
  width: 100%;
  margin-bottom: 1em;
  clear: both;
}

/* === WOWSlider Mobile Fixes === */
#wowslider-container1 {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.ws_images {
  width: 100% !important;
  display: flex;
  justify-content: center;
}


.ws_images img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


/* === Responsive Login Form === */
form.login-form {
  width: 100%;
  max-width: 400px;
  margin: 2em auto;
  padding: 1em;
  box-sizing: border-box;
  background-color: lightblue; /* for testing */
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-form p {
  font-size: 1em;
  margin-bottom: 0.5em;
}

form.login-form input[type="password"],
form.login-form button {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  margin-bottom: 1em;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-form button {
  background-color: #0473AD;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #035a8c;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .login-form {
    padding: 0.5em;
  }

  .login-form input,
  .login-form button {
    font-size: 1em;
  }
}
/* === Password Visibility Toggle === */
.password-wrapper {
  position: relative;
}

.password-wrapper input[type="password"] {
  padding-right: 2.5em; /* space for the icon */
}

.toggle-password {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2em;
  color: #333;
  user-select: none;
}
/* === SVG Eye Icon for Password Toggle === */
.password-wrapper {
  position: relative;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input[type="password"] {
  flex: 1;
  padding-right: 2.5em;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 0.75em;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  height: 100%;
}

/* THESE NEXT "th.sorted" BLOCKS WILL ENSURE THE SORTED COLUMN TITLE HAS A WHITE BACKGROUND */ 
th.sorted {
  background-color: #f0f8ff; /* Light blue highlight */
  font-weight: bold;
  border-bottom: 2px solid #0077cc;
}

th.sorted a {
  background-color: transparent !important;
  color: #0473AD;
  text-decoration: none;
}

th.sorted a:focus,
th.sorted a:active {
  background-color: transparent !important;
  outline: none;
}
