body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html,
label {
  margin: 0;
  padding: 0;
}
/* Container styles */
.heading {
  max-width: 100%;
  padding: 0;
  color: #1e3a8a;
  z-index: 1;
}

.top-logo {
  background-image: url("../images/PennWest.Main.Logo.png"); /* Adjust the path to your image */
  background-size: contain;
  background-repeat: no-repeat;
  padding-left: 10px;
  width: 200px;
  height: 46px;
  z-index: 2;
}

/* Header styles */
.title {
  font-size: 36px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: bold;
  text-align: center;
  margin: 0;
  z-index: 1;
  padding-bottom: 0;
}

.header-container {
  display: flex; /* Use flexbox layout */
  align-items: center; /* Align items vertically */
  justify-content: space-between; /* Space items evenly */
  margin: 0;
  padding: 0;
  border: 0;
}

.dropdown-subtitle-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border: 0;
}

h2.subtitle {
  text-align: center;
  margin-right: 12%;
  margin-bottom: 0;
}

.header-container .home-link a,
.header-container .login-logout a {
  background-color: #2b6cb0;
  color: white;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  font-weight: bold;
  border-radius: 4px;
  min-width: 90px;
  box-sizing: border-box;
  margin-bottom: 34px;
}

.header-container .home-link a {
  margin-right: 0px;
  margin-left: 0px;
}

.header-container .login-logout a {
  margin-left: 20px;
}

.header-container .home-link a:hover {
  color: gray;
}

.header-container .login-logout a:hover {
  color: gray;
}

a#spacer.login-logout {
  background-color: #d1d5db;
  color: white;
  text-decoration: underline;
  display: inline-flex;
  align-items: stretch;
  height: 18px;
  padding-block: 8px;
  padding-left: 28px;
  padding-right: 8px;
  margin-left: 20px;
  width: 62px;
  text-align: center;
  font-weight: bold;
}

.subtitle {
  font-size: 25px;
  margin-top: 10px;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-weight: bold;
  color: #1e3a8a;
}

.dropdown label {
  font-size: 16px;
  font-weight: bold;
  padding-right: 4px;
}

.dropdown {
  display: inline-flex;
  flex-direction: row;
  color: #1e3a8a;
}

span.dropdown {
  width: 318px;
  height: auto;
  align-items: baseline;
}

.spacer {
  display: inline-flex;
  align-items: stretch;
  height: 18px;
  padding-block: 8px;
  padding-left: 28px;
  padding-right: 8px;
  margin-left: 20px;
  width: 62px;
  text-align: center;
  font-weight: bold;
}

.top-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #d1d5db;
  padding: 10px;
}
.profile-icon {
  width: 50px;
  height: 50px;
  background-color: #307204ea;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  right: 70px;
}
.profile-inital{

  font-weight: bold;
  font-size: 22px;


}
.profile-popup {
  display: none;
  position: absolute;
  right: -10px;
  margin-right: 0;
  top: 50px;
  width: 250px;
  border: 1px solid #ddd;
  background-color: #d1d5db;
  padding: 20px;
  z-index: 100;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

}
.profile-popup p {
  text-align: left;
  margin: 0 0 10px 0;
  color: #1e3a8a;
  font-size: 14px;
}
.profile-popup p:first-of-type {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 2px;
}

.profile-popup a {
  text-decoration: none;
  color: #1e3a8a;
  display: block;
  margin: 5px 0;
  padding: 1px;
}
.profile-popup a:hover {
  color: #2563eb;
  background-color: #a0abba;
}

.profile-popup {
  border-radius: 8px;
  min-width: 220px;
}

.profile-popup hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #999;
}

.profile-popup a.version {
  font-size: 0.75rem;
  color: #555;
  text-align: right;
  pointer-events: none;
  margin-top: 10px;
  display: block;
}

.demo-info-button {
  font-size: 13px;
  color: white;
  background-color: #2b6cb0;
  padding: 10px 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
  display: inline-block;
}

.demo-info-button:hover {
  background-color: #204d91;
}

.demo-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.demo-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  z-index: 3001;
}

.demo-modal .close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}


/* Footer styles */
.footer-space {
  flex-grow: 1; /* Allow content to expand to fill remaining space */
  padding: 8px; /* Add padding as needed */
}

.footer {
  background-color: #003d77;
  padding: 1%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.logo {
  background-image: url("../images/pw-short-white-p-500.png"); /* Adjust the path to your image */
  background-size: contain;
  background-repeat: no-repeat;
  padding-left: 10px;
  width: 200px;
  height: 100px;
  justify-content: left;
}

.footer-text {
  color: whitesmoke;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  align-self: center;
  font-size: 20px;
  padding-top: 20px;
}

/* Override: Always center subtitle, no margin-right */
.header-container .subtitle, .subtitle {
  margin-right: 0 !important;
  text-align: center;
}

.header-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.centered-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none; /* Allows clicks to pass through if needed */
}

.centered-title > * {
  pointer-events: auto; /* Restores interactivity for dropdowns and buttons inside */
}

.header-container .home-link,
.header-container .login-logout {
  z-index: 1; /* Ensures they stay clickable */
}

.header-container .home-link a:hover,
.header-container .login-logout a:hover {
  color: #ccc;
}

/* Subtitle centering override */
.subtitle {
  margin: 0;
  text-align: center;
}

.subtitle-left-dropdown {
  position: absolute;
  top: 58%;
  left: 10px;
  padding-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
}
