/* ===== CSS Reset & Base ===== */
:root {
  /* Colors */
  --brand-primary: #4579AC;
  --brand-light: #5B8EC5;
  --brand-dark: #3A6694;
  --brand-deep: #2D5078;
  --depth-900: #0a0f18;
  --depth-800: #0f1a2a;
  --depth-700: #152538;
  --depth-600: #1c3148;
  --text-primary: #F2F7FB;
  --text-secondary: #B8CDD9;
  --text-dim: #7E9AAD;
  --surface-card: rgba(21, 37, 56, 0.85);
  --border-subtle: rgba(91, 142, 197, 0.25);
  --border-glow: rgba(91, 142, 197, 0.45);
  --input-bg: rgba(10, 15, 24, 0.5);
  --input-border: rgba(91, 142, 197, 0.3);
  --input-focus-border: var(--brand-light);
  --input-focus-glow: rgba(91, 142, 197, 0.25);

  /* Typography */
  --font-display: 'Inter', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  background-color: black;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7; /* Simplified from 31px/18px ≈ 1.72 */
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #fff;
  background-image: url('../resources/background.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: top;
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(12px);
        }
to {
opacity: 1;
transform: translateY(0);
        }
    }


/* ===== Layout ===== */
.top_menu {
  display: flex;
  flex-direction: row;
  padding: 10px 0 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.top_icons_and_mob_menu {
  display: flex;
  align-items: center;
}

.icon img {
  height: 100px;
  padding: 0 5% 0 5%;
}

#mobile_menu {
  display: none;
}

.selection_menu {
  display: flex;
  flex-direction: row;
  margin: 30px auto;
}

#selection_menu_item {
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 10px 0;
}

.selection_menu a {
  color: white;
  padding: 10px;
  text-decoration: none;
}

.main_class {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin: 0px;
}

.content_area {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers vertically */
  align-items: center; /* Centers horizontally */
  margin: 0 10% 0 10%;
}

.content_adjust {
  display: flex;
  flex-direction: column;
  justify-content: top;
  /*align-items: center; test to see if content is correctly placed*/
  flex-grow: 1;

  background-color: rgba(0, 0, 0, 0.8);
  color: lightgray;
  margin-top: 0px;
  margin-bottom: 0px;
  min-height: 735px;
  padding: 20px 7%;
  width: 100%;
  
}






/* ===== Components ===== */
.login_container {  /*just to keep the login narrow and not use the whole width*/
  align-items: center;
}

.login_menu {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease-out;
  padding: 1rem;
  max-width: 1200px;
  align-items: center;
}

.login-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-header p {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.login-form {
  margin-bottom: 0;
  
}

.form-group {
  margin-bottom: 0;
  
}

.form-group label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.7rem 1.875rem;
  font-size: 0.9rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--input-focus-glow);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-group-checkbox {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-display);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-primary {
  width: 100%;
  background-color: var(--brand-primary);
  color: var(--text-primary);
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background-color: var(--brand-light);
  box-shadow: 0 0 16px rgba(91, 142, 197, 0.3);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Links */
a:link, a:visited {
  color: white;
  padding: 10px;
  text-decoration: none;
}

a:hover, a:active {
  background-color: rgba(0, 0, 0, 0.4);
  color: red;
  transition-duration: 1s;
  border-radius: 10px;
}

/* Footer */
.footer {
  padding: 50px 15% 0;
  font-size: small;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.footer_menu {
  display: flex;
  flex-direction: row;
  margin-bottom: auto;
  font-size: small;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 10px;
}
.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.social-icons a {
  padding-top: 40px;
  font-size: 1.5rem;
}

.sub-footer {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}


.thanks_and_cpr {
  font-size: smaller;
}
.covering_image {
  width: 500px;
}





/* ===== Mobile Styles ===== */
@media screen and (max-width: 800px) {
  .top_menu {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    font-size: larger;
  }
  .header_class {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures header is above other elements */
    background: white; /* Optional: Add a background to cover content behind */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better visibility */
  }
  .main_class {
    margin-top: 75px;
  }
  .login_container {  /*just to keep the login narrow and not use the whole width*/
  align-items: normal;
  }
  .top_icons_and_mob_menu {
    display: inline-flex;
  }

  .icon img {
    height: 55px;
    width: auto;
    padding: 0;
  }

  #mobile_menu {
    display: flex;
    flex-direction: row-reverse;
    margin-left: auto;
  }

  .selection_menu {
    transition-duration: 1s;
    position: static;
    padding: 0;
    flex-direction: column;
  }

  .menu_button {
    color: white;
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
    margin-right: 20px;
  }

  .menu_button:hover {
    color: red;
    transition-duration: 1s;
    background-color: rgba(0, 0, 0, 0.9);
  }

  .content_area {
    padding: 0;
    margin: 0 0 0 0;
  }

  .content_box {
    border-radius: 0;
    padding:10px;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  .sub-footer {
    flex-direction: column;
    text-align: center;
  }
  .covering_image {
  width: 300px;
  }

}

