/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

html {
  margin-right: 0;
  height: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "Chivo Mono", 'Courier New', Courier, monospace;
  font-weight: 200;
  background-color: #1F1F1F;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  margin: 0 10rem;
}

main {
  flex: 1;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

/* ----- STYLESHEET STARTS HERE ----- */


/* INDEX STUFF START ---------- */
h1 {
  font-weight: 200;
  font-size: 1rem;
  text-align: center;
}

h2 {
  font-weight: 200;
  font-size: 1.5rem;
}

.section-title {
  color: #47C8D4;
}

ul {
  list-style-type: none;
  display: flex;
  justify-content: space-between;
}

.main-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.logo {
  max-width: 20rem;
  margin-bottom: 2rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-content: space-between;
  margin: 2rem 0rem;
}

li+li {
  margin: 0 0.5rem;
}

.nav {
  justify-content: space-between;
  margin: 2rem 0;
  font-size: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.logo {
  display: block;
  align-items: center;
}

.topic-title {
  font-size: 1.5rem;
}

.section-study {
  width: auto;
  margin-bottom: 4rem;
}

.content-container {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.8rem;
}

.self-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 1.5rem;
}

.content-thumbnail {
  width: 25rem;
  height: auto;
}

.section-visual {
  margin: 0.5rem 0 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.visual-container {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.visual-img {
  max-width: 100%;
}

.visual-name {
  font-size: 0.8rem;
}

.text-underline {
  text-decoration-line: underline;
}

.hover-link:hover, .subheading {
  color: #47C8D4;
}

hr {
  display: block;
  border: none;
  border-top: 1px solid #fff;
  color: #fff;
  overflow: visible;
  text-align: center;
  height: 1px;
  width: 50%;
  padding: 0.5rem 0 -1rem 0;
}

/* INDEX STUFF END ---------- */

/* ENTRY STUFF START ---------- */

.section-entry {
  display: flex;
  margin-left: 1rem;
}

.year-container {
  margin-right: 6rem;
  display: flex;
  flex-direction: column;
}

.entry-container {
  display: flex;
  flex-direction: column;
  width: auto;
  gap: 1.5rem;
}

.year {
  font-size: 1.2rem;
  margin: 0 0 4rem 0;
}

/* ENTRY STUFF END ---------- */

/* POST STUFF START ---------- */


.indent-container {
  margin: 0 4rem 0 4rem;
}

.post-header {
  display: flex;
  flex-flow: column;
  margin-bottom: 2rem;
}

.post-content {
  width: 50rem;
  display: flex;
  flex-direction: column;
}

.nocaption {
  margin-bottom: 2rem;
}

.post-p {
  margin-bottom: 1.5rem;
}

.small-caption {
  font-size: 0.8rem;
  margin: 0.5rem 0 1.5rem 0;
}

.external-link {
  color: #47C8D4;
  text-decoration: solid;
}

/* POST STUFF END ---------- */

.qr-list {
  display: flex;
  max-width: 30%;
  max-height: 25%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.qr-container {
  display: flex;
  min-width: 100%;
  justify-content: center;
}

/* MEDIA QUERIES ----------- */

@media screen and (max-width: 1280px) {
  html {
    font-size: 100%;
  }

  body {
    margin: 0 5%;
  }

  .section-visual {
    grid-template-columns: repeat(3 , 1fr);
  }
}

@media screen and (max-width: 812px) {
  html {
    font-size: 80%;
  }

  body {
    margin: 0 5%;
  }

  .section-visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .indent-container {
    margin: 0;
    width: 90vw;
    align-self: center;
  }

  .post-content {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .content-container {
    gap: 1rem; 
  }

  hr {
    width: 50%;
  }
}

@media screen and (max-width: 450px) {
  html {
    font-size: 80%;
  }

  body {
    margin: 0 5%;
  }

  .section-visual {
    grid-template-columns: repeat(1, 1fr);
  }

  .indent-container {
    margin: 0;
    width: 90vw;
    align-self: center;
  }

  .post-content {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .nav {
    font-size: 125%;
  }

  .content-container {
    gap: 1rem; 
  }

  hr {
    width: 100%;
  }
}
