@font-face {
  font-family: "SN Pro";
  src: url("./assets/fonts/SNPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SN Pro";
  src: url("./assets/fonts/SNPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

body {
  font-family: "SN Pro", sans-serif;
}

:root {
  --science-blue: #43b2d8;
  --math-green: #93bd7c;
  --compsci-yellow: #f0d261;
}

.smx-sidebar-toggle {
  position: fixed;
  top: 1em;
  left: 1em;
  z-index: 1100;
  border: 0;
  border-radius: 62.44em;
  padding: 0.625em 0.875em;
  background: var(--science-blue);
  color: #1f2328;
  font-family: "SN Pro", sans-serif;
  font-size: 0.875em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.625em 1.25em -0.875em rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.smx-sidebar-toggle:hover {
  transform: translateY(-0.0625em);
  filter: brightness(0.95);
}

.smx-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(0, 0, 0, 0.33);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.smx-sidebar-shell {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(18.12em, 86vw);
  z-index: 1090;
  background: linear-gradient(180deg, var(--science-blue) 0%, var(--math-green) 55%, var(--compsci-yellow) 100%);
  box-shadow: 0.75em 0 1.625em -1.125em rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.65, 0.2, 1);
  padding: 5.25em 1.125em 1.375em;
}

.smx-sidebar-shell h2 {
  margin: 0 0 1.75em;
  color: #343434;
  font-family: "SN Pro", sans-serif;
  font-size: 1.875em;
}

.smx-sidebar-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smx-sidebar-links a {
  display: block;
  margin: 0.5em 0;
  padding: 0.625em 0.75em;
  border-radius: 0.625em;
  color: #2f2f2f;
  text-decoration: none;
  font-family: "SN Pro", sans-serif;
  font-size: 1.25em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.smx-sidebar-links a:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(0.25em);
}

body.smx-sidebar-open .smx-sidebar-shell {
  transform: translateX(0);
}

body.smx-sidebar-open .smx-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}
