@font-face {
  font-family: 'Ethnocentric';
  src: url('/static/ethnocentric.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Shows fallback font until custom font loads */
}

* {
  color: whitesmoke;
  font-family: sans-serif;
  text-align: center;
}

.post a {
  text-decoration: underline;
  color:orangered;
}

.post * {
  text-align: left;
}

#navbar {
  display: flex;
  background: #000;
  border: 1px solid whitesmoke;
  border-radius: 32px;
  padding: 10px 20px;
  margin: 0 auto;
  width: 85%;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 10;
  left: 0;
  right: 0;
  z-index: 9999;
}

@keyframes hoverShadow {
  0% {
    text-shadow: none;
    box-shadow: none;
  }
  50% {
    text-shadow: 
      -6px -3px cornflowerblue, 
      6px 3px orangered;
    box-shadow:
      -6px -3px cornflowerblue, 
      6px 3px orangered;
  }
}

img {
  width: 100%;
  object-fit: cover;
}

.postpreview {
  border: 1px solid whitesmoke;
  border-radius: 32px;
  margin: auto;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  background-color: linear-gradient(150deg, #222, #040404);
  text-align: center;
  break-inside: avoid;
}

.postpreview:hover {
  /* border: 10px solid whitesmoke;
  background-color: yellow;
  font-size: 18px; */
  background-color: linear-gradient(330deg, #222, #040404);
  animation: hoverShadow 0.4s linear ;
}

a {
  text-decoration: none;
}

math * {
  font-family: serif;
}

.multiline-equation {
  text-align: center;
  margin-left: 50%;
  margin-right: 50%;
}

svg {
  margin: auto;
}


.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, cornflowerblue, orangered);
  bottom: -5px;
  left: 0;

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s linear;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

.menu {
  column-width: 300px;
  column-gap: 20px;
  column-gap: 1rem;
}

.content {
  width: 90%;
  display: inline-block;
  margin-top: 3.5rem;
}

pre {
  overflow-x: auto;
  background-color: #000;
  border-radius: 4pt;
  padding: 2pt;
}

code, code * {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
  font-variant-ligatures: normal;
  white-space: pre;
  color: green;
  background-color: #000;
  border-radius: 2pt;
}

.top-image {
  max-height: 40vh;
  max-width: 1000px;
}

#navbar ul li:last-child {
  margin-left: auto;
}
#navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  width: 100%;
}

@keyframes nameShadow {
  0% {
    text-shadow: none;
  }
  90% {
    text-shadow: 
      -6px -3px cornflowerblue, 
      6px 3px orangered;
  }
}

#name {
  font-size: clamp(3.5rem, 12vw , 5rem);
  margin: 0px;
  padding: 0px;
  animation: nameShadow 5s linear infinite;
  letter-spacing: 2px;
  color: whitesmoke;
  font-family: "Ethnocentric", sans-serif;
  transform: skewX(-20deg);
  text-align: center;
}

body {
  min-height: 100vh;
  background-image: linear-gradient(330deg, #222, #040404);
}

.tree {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro", monospace;
  line-height: 1.05;
  overflow-x: scroll;
}
