:root {
  --primary: #0011ff;
  --secondary: #e540ff;
  --accent: #af6c8e;
  --bg: #1c2450;
  --bg-alt: #0f1936;
  --fg: #333333;
  --text-primary: #ffffff;
  --text-secondary: #f198fd;
  --link: #c9a400;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../res/JetBrainsMono.ttf") format('truetype');
}

#nav {
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
}

#nav table {
  margin: 0 auto;
}

#main {
  text-align: left;
  justify-content: center;
  align-items: center;
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg);
  padding: 10px;
}

#date {
  writing-mode: vertical-lr;
  transform: rotate(-180deg);
  color: var(--accent)
}

.card {
  text-align: left;
  background: var(--bg-alt);
}

.alt {
  color: var(--text-secondary);
}

.link {
  color: var(--link);
}

a:hover, .link:hover {
	color: var(--alt-2);
}

h1 {
  font-size: 50px;
}

h2, h3, h4 {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
h2::after, h3::after, h4::after {
  content: "";
  flex: 1;
  margin-left: 1rem;
  height: 3px;
  background: rgb(17,17,23);
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  height: 2px;
}

a {
  text-decoration: none;
  color: var(--link);
}

body {
  font-family: "JetBrains Mono";
  font-size: 20px;
  color: var(--text-primary);
  background-image: url("../res/starry.gif");
  background-attachment: fixed;
  background-repeat: repeat;
}

ul {
	list-style: none;
}

ul li:before {
	content: '> ';
	font-weight: bold;
}

img {
  padding: 10px 10px;
  width:400px;
  height:auto;
}

@media (max-width: 800px) {
  #nav,
  #main {
    width: 90%;
  }

  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px auto;
  }
  
  img {
    width: 80vw;
    height: auto;
  }
}

/* Adjustments for even smaller screens */
@media (max-width: 500px) {
  #nav,
  #main {
    width: 100%;
  }

  .card {
    font-size: 18px;
  }

  h1 {
    font-size: 40px;
  }

  img {
    width: 80vw;
    height: auto;
  }
}