:root {
  --bg: #001a28;
  --lane: #02273d;
  --box-bg: #001a28;
  /* this color is for the cards on the index page */
  --text: #deb88d;
  --accent: #f2d7a0;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  font-family: 'Exo 2', sans-serif;
  color: var(--text);
  text-align: center;
}

/* Nav */
nav {
  background-color: var(--accent);
  padding: 0;
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.nav-bar {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.nav-bar li {
  flex: 1;
}

.nav-bar a {
  text-decoration: none;
  color: var(--bg);
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  background-color: var(--accent);
  border: none;
  border-right: 2px solid var(--lane);
  display: block;
  text-align: center;
  padding: 15px 0;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
}

.nav-bar li:last-child a {
  border-right: none;
}

.nav-bar a:hover {
  background-color: var(--lane);
  color: var(--accent);
}

/* Center lane */
.main-lane {
  background-color: var(--lane);
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
  /* 52px = nav height */
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Content area */
.content {
  padding: 40px 20px;
}

/* Headings */
h1 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  font-size: 3rem;
  margin-bottom: 10px;
}

h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
}

#main-title {
  text-shadow: 2px 2px 5px black;
}

#main-title span {
  color: white;
}

/* Card container */
.card-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Card */
.card {
  background-color: var(--box-bg);
  border: 2px solid var(--accent);
  border-radius: 10px;
  width: 240px;
  padding: 20px;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 15px;
}

/* Lists */
.card-list {
  list-style-type: square;
  text-align: left;
  padding-left: 20px;
  margin-bottom: 15px;
}

.roman {
  list-style-type: upper-roman;
  padding-left: 25px;
  text-align: left;
}

/* Links */
a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: white;

}

/* table for my CSU units currently studying. */
.resume-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.resume-table th {
  background-color: var(--accent);
  color: var(--bg);
  font-family: 'Orbitron', sans-serif;
  padding: 10px;
  text-align: left;
}

.resume-table td {
  padding: 10px;
  border: 1px solid var(--accent);
  text-align: left;
}


/* Footer */
footer {
  padding: 20px;
  background-color: var(--lane);
  border-top: 2px solid var(--accent);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  flex: 1;
  text-align: center;
}

.footer-icon {
  width: 60px;
  height: auto;
}

.attribution {
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}



/* All below is just printing functionality */
@media print {

  /* Hide the nav and footer */
  nav {
    display: none;
  }

  /* Make body background white */
  body {
    background-color: white;
  }

  .main-lane {
    width: 100%;
    max-width: none;
    margin: 0;
    border: none;
    background-color: white;
    color: black;
    min-height: unset;
  }

  .content {
    background-color: white;
    color: black;
  }

  /* Larger font for print */
  body {
    font-size: 14pt;
  }

  h1 {
    font-size: 24pt;
    color: black;
  }

  h2 {
    font-size: 18pt;
    color: black;
  }

  a {
    color: black;
    text-decoration: none;
  }

  .card {
    border: 1px solid black;
    background-color: white;
  }

  footer {
    border-top: 1px solid black;
    background-color: white;
    color: black;
  }
}