@import url('variables.css');
@import url('index.css');

body {
  margin: 0;
  background: var(--background);
}

.font-primary {
  font-family: var(--primary-font);
}

/* ################## Navbar ################## */
.navbar {
  position: sticky;
  top: 0;
  height: 10vh;
  background: var(--nav-background);
  width: 100%;
  justify-self: end;
  z-index: 100;
}

.navbar-inner {
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  position: relative;
}

.mini-logo {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%) translateY(-4px);
  margin: 0;
  font-size: 1.4rem;
  color: var(--mini-logo-color);
  font-weight: bold;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  font-family: var(--title-font);
}

.mini-logo.scrolled {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

.site-nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 24px;
  align-items: center;
}

.site-nav a {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  color: var(--nav-text-color-hover);
}

#theme-mode-toggle {
  font-size: 1.2rem;
  cursor: pointer;
}

/* ################## Footer ################## */
footer {
  background: var(--footer-background);
  padding: 3vh 8vw;
  font-size: 1.0rem;
  color: var(--footer-text-color);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-center {
  text-align: center;
  justify-self: center;
}

/* Secret icons */
.secret-icon {
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--secret-icon-cowboy-color);
}

.secret-icon:hover {
  color: var(--secret-icon-cowboy-color-hover);
}
