@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --text: #111111;
    --muted: #777777;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --card-border: #cccccc;
    --face-bg: linear-gradient(145deg, #ffffff, #f4f4f4);
    --face-border: #000000;
    --hover-overlay: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] {
    --bg: #070707;
    --text: #f1f1f1;
    --muted: #bbbbbb;
    --header-bg: #121212;
    --card-bg: #1a1a1a;
    --card-border: #333333;
    --face-bg: linear-gradient(145deg, #222222, #111111);
    --face-border: #888888;
    --hover-overlay: rgba(255, 255, 255, 0.06);
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}


.header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Keeps header on top of scrolling content */
  background: var(--header-bg); /* Prevents content behind it from showing through */
  text-align: center;
  color: var(--text);
  margin-bottom: 0;
  width: 100%;
  font-size: 30px;
  font-family: "Instrument Serif", serif;
  font-weight: 200;
}


.header h1 {
  margin: 0;
  padding-bottom: 0.2rem;
}

/* Style the top navigation bar */

.header .navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

/* Style the navigation bar links */
.navbar a {
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  position: relative;
  text-decoration: none;
  margin: 0;
  padding: 0.2rem 0.4rem;
}

.navbar a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--text);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.navbar a:hover::before {
  transform: scaleX(1);
}

.header .container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transform-style: preserve-3d;
}

.header .containertwo {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transform-style: preserve-3d;
}
