@font-face {
  font-family: 'VT323';
  font-style: normal;
  src: url('../fonts/vt323/VT323-Regular.ttf');
}

@font-face {
  font-family: 'Sahitya';
  font-style: normal;
  src: url('../fonts/sahitya/Sahitya-Regular.ttf');
}

@font-face {
  font-family: 'Sahitya';
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/sahitya/Sahitya-Bold.ttf');
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  src: url('../fonts/pt_serif/PTSerif-Regular.ttf');
}

@font-face {
  font-family: 'PT Serif';
  font-style: normal;
  font-weight: bold;
  src: url('../fonts/pt_serif/PTSerif-Bold.ttf');
}

@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  src: url('../fonts/pt_serif/PTSerif-Italic.ttf');
}


@font-face {
  font-family: 'PT Serif';
  font-style: italic;
  font-weight: bold;
  src: url('../fonts/pt_serif/PTSerif-BoldItalic.ttf');
}


@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inconsolata/Inconsolata-Regular.ttf');
}

@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inconsolata/Inconsolata-Bold.ttf');
}

body {
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.5)
  ),
                    url("/static/images/dali-sky-background.jpg");
  color: #3f3f3f;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Sahitya', 'PT Serif', Times, Times New Roman;
  display: flex;
  flex-direction: column;
  font-size: 14pt;
  min-width: 10ch;
}

.main-wrapper {
  flex: 1;
  /* This is used to make the footer "flush" with the rest of the page */
  min-height: 95.5vh;
}

a {
  color: #9a4048;
  text-decoration: none;
  transition: text-shadow .22s;
}

a:hover {
  text-shadow: 0px 0px 2px #cb6397;
}

a:visited {
  color: #712e2c;
  text-decoration: none;
}

div.header-logo-wrapper {
  text-align: center;
}

a.header-logo img {
  box-shadow: 0px 0px 3px #aa9c74;
  max-width: 70%;
  height: auto;
  border-radius: 10px;
}

div.navbar-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  font-size: 1.5em;
  margin-bottom: 5px;
  /* font-family: 'VT323', monospace; */
  font-family: 'Inconsolata', monospace;
  max-width: 700px;
  border-radius: 8px;
  border: 3px solid #cacae4;
  background: #2e2b2b;
  color: #ded8c5;
}

div.navbar-menu > div {
  margin-left: .5ch;
  margin-right: .5ch;
  justify-content: center;
  text-align: center;
}

div.navbar-menu a {
  color: #e3ddca;
  text-decoration: none;
  transition: text-shadow .3s;
  text-shadow: 0px 0px 3px #4f4d51;
}

div.navbar-menu a:hover {
  text-shadow: 0px 0px 3px #ffffff;
}

div.content-box {
  box-shadow: 0px 0px 3px #aa9c74;
  border-radius: 5px;
  /* border: 3px dashed #712e2c; */
  background: #fffbf9;
  padding: 10px;
  padding-left: 30px;
  padding-right: 30px;
  margin-bottom: 10px;
}

div.homepage-about {
  margin-left: 30px;
  margin-right: 30px;
}


.bigger-text {
  font-size: 16pt;
}

/* Not super sold on these */

h1 {
  color: #3c2610;
  font-size: 1.5em;
  text-align: center;
}

h2 {
  color: #3c2610;
  font-size: 1.25em;
  text-align: center;
}

h1.title {
  text-align: left;
}

.footer {
  font-size: 10pt;
  text-align: center;
}

.footer span {
  background: #fffbf9;
  padding: 1px 5px;
  border-radius: 5px;
}

.footer > a:hover {
  text-shadow: 0px 0px 1px #a981a9;
}

div.code {
  border-radius: 5px;
  border: 3px solid #110e13;
  background: #110e13;
  padding: 20px;
  margin: 20px;
  overflow: hidden;
  white-space: pre;
  font-family: 'Inconsolata', monospace;
}

.blogpost {
  margin-top: 10px;
  margin-bottom: 10px;
}

.blogpost .post-about {
  margin-top: -5px;
  font-size: .75em;
  color: #595a51;
}

.blogpost .title a {
  color: #ffffff;
}

.news-header {
  border-radius: 5px;
  border: 2px solid #2c2a2c;
  margin-left: 350px;
  margin-right: 350px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: center;
  background: #2c2a2c;
}

.news-header h3 {
  color: #f2d7f2;
  margin-top: 5px;
  margin-bottom: 3px;
}

.homepage-video-box {
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.homepage-video-box video {
  width: 800px;
  height: 450px;
  padding-bottom: 1em;
}

.homepage-news-items {
  list-style: none;
  padding-left: 2ch;
}

.news-feed-content {
  padding-left: 2ch;
  margin-bottom: 1em;
}

.news-feed-item-date {
  font-style: italic;
  margin-right: 1em;
}

.news-feed-content p {
  margin-top: .5em;
  margin-bottom: .5em;
}

.news-feed-content img {
  max-height: 8em;
}

.consume-more-buttons {
  padding-left: 2ch;
}

video {
  outline: none!important;
}

.post-audio {
  margin-top: .5em;
  width: 100%;
}

.post-video {
  margin-top: .5em;
  width: 100%;
}

hr.pre-follow-us {
  border-top: 1px dashed #3f3f3f;
  border-bottom: 0px;
  border-left: 0px;
  border-right: 0px;
}

.follow-us {
  text-align: center;
}

.teacup-avatar {
  float: left;
  margin: 10px;
  margin-left: 0px;
  border-radius: 8px;
  margin-right: 8px;
  overflow: hidden;
}

.site-main-content img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

img.handc-logo {
  border-radius: 10px;
}

/*Add a dark mode*/
@media (prefers-color-scheme: dark) {
  body {
    color: #f3ede5;
    background-color: #1c1a1a;
    background-image: linear-gradient(
      rgba(15, 14, 14, 0.74),
      rgba(15, 14, 14, 0.74)
    ),
                      url("/static/images/dali-sky-background.jpg");
  }

  div.content-box {
    background: #262222;
    color: #f3ede5;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.45);
  }

  a.header-logo img, div.navbar-menu, div.content-box {
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.45);
  }

  div.navbar-menu {
    background: #191717;
    border-color: #5b5768;
    color: #efe7d6;
  }

  div.navbar-menu a {
    color: #f3ead5;
    text-shadow: 0px 0px 3px #000;
  }

  div.navbar-menu a:hover {
    text-shadow: 0px 0px 6px #ffffff;
  }

  h1, h2, h3, h4 {
    color: #ead29a;
  }

  .news-header {
    background: #191717;
    border-color: #5b5768;
  }

  .news-header h3 {
    color: #f1dff1;
  }

  a {
    color: #ff9ca8;
  }

  a:visited {
    color: #f2b6bd;
  }

  a:hover {
    text-shadow: 0px 0px 6px rgba(255, 182, 193, 0.25);
  }

  .blogpost .post-about,
  .light-card .post-about {
    color: #b9b4a5;
  }

  .footer span {
    background: #262222;
    color: #ddd3c3;
  }

  div.code {
    background: #111014;
    border-color: #111014;
    color: #f3ede5;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.45);
  }

  hr.pre-follow-us {
    border-top-color: #8c867d;
  }

  .light-card {
    background: #262222;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.45);
  }

  .light-card-title {
    color: #f3ede5;
  }

  .light-slide {
    background: #262222;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.45);
  }

  .light-audio-title {
    color: #f3ede5;
  }

  .site-main-content img:not(.header-logo img):not(.handc-logo) {
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.35);
    border-radius: 8px;
  }

  video,
  audio {
    filter: brightness(0.92) contrast(1.02);
  }
}

.light-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding-left: 0;
  align-items: start;
}

.light-grid > li {
  margin: 0;
}

.light-card {
  display: block;
  background: #fffbf9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 0px 3px #aa9c74;
  padding-top: 10px;
  height: fit-content;
}

.light-card-link {
  display: block;
  color: inherit;
  padding: 0 12px 12px 12px;
  font-family: 'Inconsolata', monospace;
  font-size: 0.95em;
  line-height: 1.3;
  word-break: break-word;
}

.light-card-link:hover {
  text-shadow: none;
}

.light-card-media {
  display: block;
}

.light-card-media img,
.light-card-media video,
.light-card-media audio {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.light-card-title {
  display: block;
  padding: 0 12px 4px 12px;
  font-family: 'Inconsolata', monospace;
  font-size: 0.95em;
  line-height: 1.3;
  word-break: break-word;
}

.light-card .post-about {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0 12px;
  font-size: .75em;
  color: #595a51;
}

@media (max-width: 700px) {
  .light-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .light-card {
    background: #222;
    box-shadow: 0px 0px 3px #000;
  }

  .light-card-title {
    color: #fbf5ef;
  }

  .light-card .post-about {
    color: #a4a695;
  }

  .light-slide {
    background: #222;
    box-shadow: 0px 0px 3px #000;
  }

  .light-audio-title {
    color: #fbf5ef;
  }
}

.light-slide img,
.light-slide video,
.light-slide audio {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.light-audio-title {
  padding: 10px 12px 12px 12px;
  font-family: 'Inconsolata', monospace;
  font-size: 0.95em;
  line-height: 1.3;
  word-break: break-word;
}

.light-audio-slide {
  padding-top: 10px;
}

@media (max-width: 700px) {
  .light-slideshow {
    grid-template-columns: 1fr;
  }
}

.light-slideshow {
  column-count: 2;
  column-gap: 16px;
  align-items: initial;
}

.light-slide-column-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 16px 0;
  display: block;
}

.light-slide {
  display: inline-block;
  width: 100%;
  background: #fffbf9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 0px 3px #aa9c74;
  height: auto;
}

@media (max-width: 700px) {
  .light-slideshow {
    column-count: 1;
  }
}
