/* Shared header and footer. Page accent stays on the body class so Home,
   About, and Projects keep their existing colors. */

.theme-home,
.theme-contact {
  --shell-accent: lawngreen;
  --shell-bar-shadow: 0px 1px 10px 5px;
  --shell-footer-shadow: 0px -5px 10px 0px lawngreen;
  --shell-footer-odd: lawngreen;
  --shell-footer-even: rgba(131, 3, 255, 1);
}

.theme-contact {
  background-color: #1d1d1d;
}

/* About-style row: Root, Projects, Contact, centered. Home's nth-child
   margins would otherwise shove the second and third items to the right. */
.theme-contact .desktop-nav .nav-list {
  justify-content: center;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  gap: 1rem;
}

.theme-contact .desktop-nav li:nth-child(2),
.theme-contact .desktop-nav li:nth-child(3) {
  margin-left: 0;
  margin-right: 0;
}

.theme-about {
  --shell-accent: purple;
  --shell-bar-shadow: 0px 5px 10px 0px purple;
  --shell-footer-shadow: 0px -5px 10px 0px purple;
  --shell-footer-odd: lawngreen;
  --shell-footer-even: rgba(131, 3, 255, 1);
}

.theme-projects {
  --shell-accent: rgb(0, 240, 255);
  --shell-bar-shadow: 1px 1px 10px 5px;
  --shell-footer-shadow: none;
  --shell-footer-odd: #ff6c11;
  --shell-footer-even: #ff6c11;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 30;
  background: #000;
  color: var(--shell-accent, lawngreen);
  font-family: "doto", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1rem;
}

.site-header {
  display: block;
  position: static;
  height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  overflow: visible;
}

.site-header .site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  height: 10rem;
  width: 100%;
  margin: 0;
  border-bottom: rgb(0, 0, 0) solid 3px;
  z-index: 10;
  text-shadow: var(--shell-accent) 0px 0px 4px;
  box-shadow: var(--shell-bar-shadow);
}

.site-header .site-mark {
  height: 70px;
  width: 70px;
  flex: 0 0 auto;
  border: black solid 0px;
  background-color: var(--shell-accent);
  border-radius: 50px;
  transform: scale(1.2);
  margin: 0 2rem;
  box-shadow: 0 0 10px 2px var(--shell-accent), 0 0 10px 2px var(--shell-accent);
}

.site-header .site-mark:hover {
  box-shadow: 0 0 10px 2px var(--gray-50, #ffffff), 0 0 10px 2px var(--gray-50, #ffffff);
}

.site-header .site-mark > a {
  display: flex;
  color: black;
  text-decoration: none;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  font-family: "doto", sans-serif;
  font-size: 28px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  text-shadow: none;
  background: transparent;
}

.site-header .site-mark > a:hover {
  color: black;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
}

.site-header .site-mark-card {
  display: flex;
  flex-direction: column;
  height: 0;
  overflow: hidden;
  position: absolute;
  opacity: 0;
  top: 25%;
  left: 35%;
  background-color: var(--gray-300, #bdbdbd);
  transition: height 0.5s ease-in-out, opacity 0.25s ease-in-out;
  z-index: 1;
  align-items: center;
  border-radius: 25px;
  text-transform: uppercase;
  width: max-content;
  pointer-events: none;
}

.site-header .site-mark:hover .site-mark-card,
.site-header .site-mark:focus-within .site-mark-card {
  height: max-content;
  opacity: 1;
  padding: 1rem;
  pointer-events: auto;
}

.site-header .first-element-two {
  height: 70px;
  width: 70px;
  border: black solid 1px;
  background-color: var(--shell-accent);
  border-radius: 50px;
  position: absolute;
  left: -2%;
  top: -2%;
}

.site-header .card-container-one {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 18px;
  text-shadow: 0px 0px 20px black;
  gap: 0.5rem;
}

.site-header .upper-card-one {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: max-content;
  gap: 3rem;
  font-family: "doto", sans-serif;
  font-weight: 900;
}

.site-header .upper-card-one img {
  width: 90px;
  height: auto;
  border-radius: 50%;
  display: block;
}

.site-header .text-section {
  display: flex;
  flex-direction: column;
  line-height: 2rem;
  position: relative;
  top: 10%;
  gap: 0;
  margin: 0;
  width: auto;
}

.site-header .dark-text {
  color: #000000;
  letter-spacing: 0.5px;
  font-weight: 900;
}

.site-header .upper-card-one h2 {
  font-size: 24px;
  text-align: left;
  width: auto;
  margin: 0;
  animation: none;
  text-transform: none;
  color: inherit;
  font-family: "doto", sans-serif;
}

.site-header .lower-card-one {
  display: flex;
  flex-direction: column;
  max-width: 81%;
  line-height: 1.5rem;
  align-items: flex-start;
  position: relative;
  bottom: -5%;
  left: -6%;
  gap: 2rem;
  margin-left: 2rem;
  margin-top: 1rem;
  font-family: "doto", sans-serif;
  font-weight: 900;
}

.site-header .social-backdrop {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  bottom: -10%;
}

.site-header .social-backdrop a {
  width: auto;
  text-shadow: none;
}

.site-header .social-backdrop img {
  width: 50px;
  height: 50px;
  margin: 1rem;
}

.site-header .site-menu {
  margin-left: auto;
  margin-right: 2rem;
  position: relative;
}

.site-header .site-menu-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header .site-menu-toggle {
  display: none;
}

@media only screen and (min-width: 481px) {
  .site-header .site-menu-checkbox {
    display: none;
  }
}

.site-header .site-menu-list {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  width: auto;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.site-header .site-menu-list > li {
  display: flex;
  background-color: black;
  width: 16rem;
  height: 70px;
  margin: 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  border: black solid 1px;
  box-shadow: 2px 2px 3px 0px;
  text-shadow: 0 0 5px var(--shell-accent), 0 0 10px var(--shell-accent);
  font-family: "doto", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0 1px;
}

.site-header .site-menu-list > li > a {
  display: flex;
  color: var(--shell-accent);
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "doto", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  background-color: transparent;
  text-shadow: var(--shell-accent) 0px 0px 5px, var(--shell-accent) 0px 0px 10px,
    var(--shell-accent) 0px 0px 20px, var(--shell-accent) 0px 0px 40px;
}

.site-header .site-menu-list > li:hover {
  background-color: var(--shell-accent);
  color: black;
  border: none;
  filter: none;
  box-shadow: 0 0 5px var(--shell-accent), 0 0 10px var(--shell-accent),
    0 0 20px var(--shell-accent), 0 0 40px var(--shell-accent);
  animation: flicker 0.5s infinite;
  translate: 0;
}

.site-header .site-menu-list > li > a:hover,
.site-header .site-menu-list > li:hover > a {
  text-decoration: underline;
  cursor: pointer;
  color: black;
  background-color: transparent;
  font-weight: 900;
  text-shadow: var(--shell-accent) 0px 0px 5px, var(--shell-accent) 0px 0px 10px,
    var(--shell-accent) 0px 0px 20px, var(--shell-accent) 0px 0px 40px;
}

.theme-about .site-nav {
  filter: brightness(2);
}

.theme-about main {
  padding-top: 12rem;
}

.site-footer {
  display: flex;
  background-color: black;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 1rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shell-footer-shadow);
  width: 100%;
  filter: none;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-left: white solid 2px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: flex-start;
  gap: 1rem;
  width: auto;
}

.site-footer ul li {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: auto;
  height: auto;
  text-align: center;
  justify-content: end;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  padding: 0;
  translate: 0;
}

.site-footer ul li:hover {
  background-color: transparent;
  box-shadow: none;
  filter: none;
  animation: none;
  translate: 0;
}

.site-footer ul li a {
  color: white;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-family: "doto", sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  text-align: left;
  padding: 0.5rem;
  border-radius: 5px;
  background-color: transparent;
  margin-left: 2rem;
  width: auto;
  height: auto;
  justify-content: flex-start;
}

.site-footer ul li:nth-child(odd) a:hover {
  text-decoration: underline;
  color: var(--shell-footer-odd);
  background-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 5px var(--shell-footer-odd), 0 0 10px var(--shell-footer-odd),
    0 0 20px var(--shell-footer-odd), 0 0 40px var(--shell-footer-odd);
  font-weight: 900;
  filter: brightness(1.2);
  transform: none;
}

.site-footer ul li:nth-child(even) a:hover {
  text-decoration: underline;
  color: var(--shell-footer-even);
  background-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 5px var(--shell-footer-even), 0 0 10px var(--shell-footer-even),
    0 0 20px var(--shell-footer-even), 0 0 40px var(--shell-footer-even);
  font-weight: 900;
  filter: brightness(1.2);
  transform: none;
}

.site-footer p {
  font-weight: 300;
  font-family: "Doto", sans-serif;
  font-size: 1rem;
  color: white;
  text-align: center;
  align-self: center;
  filter: none;
  margin: 0;
}

.theme-about .site-footer {
  filter: brightness(2);
}

.theme-about .site-footer ul li,
.theme-about .site-footer p {
  filter: brightness(0.5);
}

.contact-main {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background-color: #1d1d1d;
}

.contact-main h1 {
  margin-right: 0;
  margin-left: 0;
  letter-spacing: 0;
}

.contact-main > p {
  font-family: "doto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: lawngreen;
  text-shadow: 0 0 5px lawngreen, 0 0 10px lawngreen;
  margin-top: 1.5rem;
  line-height: 1.5;
  max-width: 36rem;
}

.contact-main .neo-cyber-form {
  width: 100%;
  max-width: 40rem;
  min-height: 0;
  height: auto;
  margin-top: 1.5rem;
  text-align: left;
  overflow: visible;
}

.contact-main .form-container {
  max-width: 100%;
}

.contact-main .glow-title,
.contact-main .form-container p,
.contact-main .form-container label {
  overflow-wrap: anywhere;
}

@media only screen and (max-width: 1600px) {
  .site-header .site-nav {
    height: 5rem;
  }

  .site-header .site-menu-list > li {
    height: 3rem;
    width: 11rem;
  }

  .site-header .site-mark,
  .site-header .first-element-two {
    height: 3rem;
    width: 3rem;
  }

  .site-header .site-mark > a {
    font-size: 18px;
  }

  .site-header .site-mark-card {
    width: auto;
  }

  .site-header .upper-card-one img {
    position: relative;
    width: 8vw;
    height: auto;
    right: -7%;
  }

  .site-header .lower-card-one {
    margin-left: 2rem;
  }

  .theme-about main {
    padding-top: 10rem;
  }
}

@media only screen and (max-width: 480px) {
  .site-header .site-nav {
    height: 5rem;
    width: 100%;
  }

  .site-header .site-mark {
    transform: none;
    height: 3rem;
    width: 3rem;
    margin: 0 1rem;
  }

  .site-header .site-mark:hover {
    box-shadow: 0 0 10px 2px var(--shell-accent), 0 0 10px 2px var(--shell-accent);
  }

  .site-header .site-mark > a:hover {
    text-decoration: none;
    font-weight: 600;
  }

  .site-header .site-menu {
    margin-right: 1rem;
    margin-left: 0;
  }

  .site-header .site-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 3rem;
    color: var(--shell-accent);
    font-family: "doto", sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 5px var(--shell-accent), 0 0 10px var(--shell-accent);
    background-color: black;
    border: black solid 1px;
    border-radius: 10px;
    cursor: pointer;
  }

  .site-header .site-menu-list {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    height: auto;
    width: 175px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: black;
    padding: 10px;
    gap: 0;
    border-radius: 0 0 10px 10px;
    z-index: 20;
  }

  .theme-about .site-header .site-menu-list {
    box-shadow: 0px 10px 10px 0px purple;
  }

  .site-header .site-menu-checkbox:checked ~ .site-menu-list {
    display: flex;
  }

  .site-header .site-menu-list > li {
    margin: 5px 0;
    box-shadow: none;
    width: 150px;
    height: 3rem;
  }

  .site-header .site-menu-list > li > a {
    font-size: 18px;
  }

  .site-header .site-menu-list > li > a:hover {
    color: #000;
  }

  .site-header .site-mark-card {
    width: 100%;
    top: 0%;
    left: 0%;
  }

  .site-header .first-element-two {
    left: 0;
    top: 0;
  }

  .site-header .site-mark:hover .site-mark-card,
  .site-header .site-mark:focus-within .site-mark-card {
    height: max-content;
    padding: 3rem 1rem;
    opacity: 1;
    width: 79vw;
  }

  .site-header .card-container-one {
    align-items: center;
    gap: 0;
    font-size: 17px;
  }

  .site-header .upper-card-one {
    width: auto;
  }

  .site-header .upper-card-one img {
    display: none;
  }

  .site-header .lower-card-one {
    align-items: center;
    left: -6%;
    margin-left: 0;
  }

  .site-header .text-section {
    line-height: 1.5rem;
    top: 0%;
    gap: 1rem;
  }

  .theme-about main {
    padding-top: 8rem;
  }

  .contact-main {
    padding-top: 7rem;
  }

  .contact-main h1 {
    font-size: 2rem;
  }

  .contact-main .form-container {
    padding: 1.25rem;
  }
}

/* Phone widths only. A wider screen never matches, so the bar cannot slide. */
@media (max-width: 480px) {
  .site-header .site-nav {
    transition: transform 0.2s ease;
  }

  .site-header.nav-hidden .site-nav {
    transform: translateY(-100%);
  }
}

@media (max-width: 480px) and (prefers-reduced-motion: reduce) {
  .site-header .site-nav {
    transition: none;
  }
}
