html {
  --dark-theme-background: #1c1c1c;
  --dark-theme-green: #234F1E;
  --dark-theme-brown: #7E481C;
  --dark-theme-caramel: #B8860B;
  --dark-theme-wood: #997950;
  --dark-theme-text: #CACACA;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: auto;

  background-color: var(--dark-theme-background);
  color: var(--dark-theme-text);
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body.mobile-menu-open {
  overflow: hidden;
}

a:-webkit-any-link {
  text-decoration: none;
}

#container {
  width: 100vw;
  height: 100vh;
}

/* rotate wrappers for horizontal scrolling */
.outer-wrapper {
  overflow-x: hidden;
  scrollbar-width: none;
}
.inner-wrapper {
  display: flex;
  width: 300vw;
  height: 100vh;
}

station-template {
  width: 100vw;
  height: 100vh;
}

 /* train */
.train {
  position: absolute;
  bottom: 0.5rem;
  margin-right: 18rem;
  z-index: 2;
  max-width: 877px;
  max-height: 417px;
}
.train img {
  width: 90%;
}
.train-body {
  margin-bottom: 2%;
}
.train-wheel-wrapper {
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}
.train .train-wheel {
  width: 14%;
}
.train-wheel:first-child {
  margin-left: 4%;
}
.train-wheel:last-child {
  margin-left: 16%;
}


/* train station signage */
.line-one,
.line-two {
  color: var(--dark-theme-text);
}
.line-one {
  font-size: 1.5rem;
  margin: 1rem 1.5rem 1.5rem 1rem;
}
.line-two {
  font-size: 1.9rem;
  margin: 0rem 1.5rem 0.5rem 1rem;
  text-wrap: wrap;
}
.line-two.single {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* slider */
.carousel-wrapper {
  position: absolute;
  right: 0;
  left: 37%;
  bottom: 7rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  height: 340px;
  background-color: var(--dark-theme-background);
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  box-shadow: inset 1px 6px 14px 0px #000;
}
.project-card {
  min-width: 270px;
  height: 280px;
  border-radius: 20px;
  background-color: #eee;
  transform: scale(0.98);
}
.project-card:active {
  cursor: grabbing;
  transform: scale(1);
}
.project-card:hover {
  cursor: pointer;
}


/* navigation bar */
.nav-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 75vh);
}
.train-map-wrapper {
  display: flex;
  justify-content: center;
  list-style-type: none;
  column-gap: 142px;
  padding: 0;
}
.train-stop {
  position: relative;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background-color: var(--dark-theme-green);
  z-index: 1;
}
.selected .train-stop::before {
  content: '';
  display: block;
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--dark-theme-caramel);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.routing-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 76px;
}
li:not(:first-of-type)::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 54px;
  width: 178px;
  height: 16px;
  background-color: var(--dark-theme-wood);
  transform: translateY(23px);
}
li:nth-child(2)::before {
  right: 65px;
}
.nav-link-label {
  margin-top: 0.5rem;
}
.nav-link-label:hover {
  cursor: pointer;
}
.selected a {
  color: var(--dark-theme-caramel);
  font-weight: 800;
}


/* media queries */
@media (768px <= width <= 996px) {
  .line-one {
    font-size: 1.3rem;
    margin-top: 0.6rem;
  }
  .line-two {
    font-size: 1.7rem;
  }
}
@media (width <= 767px) {
  .train {
    display: flex;
    justify-content: center;
    margin: 0 2rem;
  }
  .train-wheel:first-child {
    margin-left: 13%;
  }

  /* signage-text */
  .line-one {
    font-size: 1.3rem;
  }
  .line-two {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) and (orientation: portrait),
(max-height: 480px) and (orientation: landscape) {
  body {
    &:has(app-home-component) {
      width: 100vw;
      overflow: hidden;
      scrollbar-width: none;
    }
  }
}