@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;
}

#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;
}

.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;
}

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

.post * {
  text-align: left;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

@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);
}

