@import url('https://fonts.bunny.net/css?family=DM+Serif+Display&display=swap');
@import url('https://fonts.bunny.net/css?family=Source+Code+Pro&display=swap');

/* Sorry about the awful state of this code, web design isn't my strength */

html {
  overflow-y: scroll;
}

body {
  background-color: #130A08;
  color: #F0DEAA;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.75;
  margin: 0;
  overflow: overlay;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #94D2BD;
  text-decoration: none;
}

a:hover {
  color: #005F73;
}

/* HTML tags */
blockquote {
  border-left: 3px solid #F0DEAA;
  color: #F4A261;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 0px;
  padding-left: 1em;
}

hr {
  background: #111;
  border: none;
  height: 2px;
  margin: 40px auto;
}

h1,
h2,
h3 {
  font-weight: 400;
}

h1:hover a,
h2:hover a,
h3:hover a,
h4:hover a {
  visibility: visible
}

div.highlight pre {
  background-color: rgba(255, 255, 255, 0.06) !important;
  padding: 10px;
  overflow-x: auto !important;
  width: 100%;
}

pre code {
  background-color: rgba(255, 255, 255, 0.06);
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
  font-size: 14px;
  line-height: inherit;
}

code {
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
  font-size: 14px;
}

picture img {
  background-color: #F0DEAA;
  box-shadow: rgba(255, 255, 255, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
}

/* navigation bar */

nav.navigation {
  color: #EA6645;
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
  font-size: 20px;
  padding: 20px 0 0;
  text-align: center;
  z-index: 50;
}

nav.navigation a {
  color: #E76F51;
  padding: 8px 12px;
}

nav.navigation a:hover {
  color: #F4A261;
}

@media screen and (max-width: 1200px) {
  nav.navigation {
    padding: 20px 10px 0 10px;
    margin: 0 auto;
    text-align: center;
  }
  nav.navigation a {
    top: 8px;
    right: 6px;
    padding: 8px 8px;
    color: #e05a5a;
    font-size: 16px;
    line-height: 1.35;
    border-radius: 3px;
  }
}

/* Additional global elements */
.uneditable {
  user-select: none;
}

/* footer */
#footer {
  background-color: rgba(0,0,0,0.2);
  color: #F0DEAA;
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
  font-size: 14px;
  margin-top: auto;
  text-align: center;
  margin-bottom: 0;
}
#footer hr {
  background: none;
}
#footer .copyright {
  font-size: 15px;
  margin: 20px auto;
}
.powerby {
  font-size: 13px;
  margin: 20px auto;
}
#footer .split {
  cursor: pointer;
}
#footer .split:hover path {
  cursor: pointer;
  fill: #e05a5a;
  transition: 0.7s ease-out;
}
#footer br {
  margin-bottom: 40px;
}

#social a {
  margin: 0 4px;
}

table, th, td {
  border: 1px  solid #F0DEAA;
  border-collapse: collapse;
}
table {
  min-width: 100%;
}
td {
  padding-left: 0.25em;
  padding-right: 0.25em;
}
thead {
  background-color: #F0DEAA;
  color: #130A08;
}

/* Main content */
.main {
  margin: 0 auto 40px;
  width: 100%;
}

.main #post h1,h2,h3,h4,h5,h6{
  font-family: "DM Serif Display", "Times New Roman", serif;
  text-align: center;
}

.main #post h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
}

.main #post h2 {
  font-size: 28px;
  font-weight: 400;
  line-height: 44px;
}

.main #post h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
}

.main #post h4 {
  font-size: 24px;
  font-weight: 100;
  line-height: 40px;
}

.main #post h5 {
  font-size: 22px;
  font-weight: 400;
  line-height: 38px;
}

.main #post h6 {
  font-size: 20px;
  font-weight: 400;
  line-height: 34px;
}

kbd {
  color: #94D2BD;
  font-weight: 600;
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
}

/* Logo  */
.logo {
  margin: 0 auto 0;
  text-align: center;
}

.logo h1 {
  color: #F0DEAA;
  display: inline-block !important;
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: 0px;
  margin-bottom: 0;
  margin-top: 0;
}

.logo h1 em {
  color: #EE9B00;
  font-style: normal;
}

.logo h1 .monospaced {
  color: #F0DEAA;
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
  font-style: normal;
}

/* thank you stack overflow! */
.blinking {
  animation: opacity 2s step-end infinite;
  opacity: 1;
}

@keyframes opacity {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0
  }
}

/* Recent Blog Posts */
#recent-posts {
  margin: 0 auto;
}

#recent-posts h2 {
  background-color: #005F73;
  text-transform: uppercase;
}

#recent-posts .item {
  max-width: 700px;
  margin: 14px auto;
  padding-left: 5px;
  padding-right: 5px;
}

#recent-posts .title {
  color: #94D2BD;
  display: inline-block;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#recent-posts .title a {
  color: #94D2BD;
  display: block;
}

#recent-posts .title a:hover {
  color: #fff;
}

#recent-posts .date {
  color: #F0DEAA;
  float: right;
  text-align: right;
  width: 18%;
}

#recent-posts .summary {
  color: #F0DEAA;
  margin-bottom: 25px;
  margin-top: 10px;
}

/* Blog posts */
#post {
  margin: 55px auto 0 auto;
  max-width: 900px;
  padding: 0 50px;
}

#post .content {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 18px;
}

#post .content h1,h2,h3,h4,h5,h6{
  font-family: "DM Serif Display", "Times New Roman", serif;
}

#post .title {
  font-family: "DM Serif Display", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  text-align: center;
}

#post .title em {
  color: #EE9B00;
  font-style: normal;
}

@media (max-width: 700px) {
  #post {
    padding: 0 15px;
    margin: 20px auto 0 auto;
  }
}

#post .metadata {
  text-align: center;
  color: #F4A261;
  margin-top: 18px;
  font-size: 14px;
}

#post .metadata span.uneditable {
  margin: 0 6px;
}

#post .content {
  margin-top: 40px;
}

/* Blog archive */
#archive {
  max-width: 800px;
  padding: 0 24px;
  margin: 55px auto 0 auto;
}

#archive .total {
  font-size: 15px;
}

#archive .yearGroup {
  margin: 20px auto;
}
#archive .yearGroup .year {
  background-color: #EA6645;
  color: #130A08;
  font-size: 20px;
  margin-bottom: 12px;
  width: 100%;
}
#archive .yearGroup .value {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
}
#archive .yearGroup .value .date {
  color: #E9D8A6;
  display: inline-block;
  min-width: 60px;
  width: 80px;
}
#archive .yearGroup .value .title {
  display: inline;
  margin-left: 7px;
}

#archive .yearGroup .value .tags {
  display: inline;
  margin-left: 7px;
}
#archive .yearGroup .value .tags a {
  border: #005F73 2px;
  border-style: double;
  float: right;
  padding: 4px 7px;
}

/* taxonomy */
.tags {
  margin-top: 24px;
}

.tags a {
  background: #fff;
  color: #005F73;
  font-size: 14px;
  margin-right: 5px;
  padding: 4px 7px;
}

.tags a:hover {
  background: #005F73;
  color: #fff;
}

/* section page */
#section {
  margin: 48px auto 0 auto;
  max-width: 1200px !important;
  padding: 0 12px;
}

#section h2 {
  width: 100%;
  background-color: #005F73;
}

#section picture img {
  margin: 4px 20px 0 4px;
  float: left;
  width: 310px;
}

#section .project-description {
  margin-bottom: 120px;
  min-height: 300px;
}

@media screen and (max-width: 800px) {
  #section picture {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }

  #section picture img {
    float: none;
    margin-right: 4px;
  }

  #section .project-description {
    max-width: 100%;
    min-height: 300px;
    width: 100%;
  }
}

/* home page */
#homepage {
  margin: 0 0 0 0;
  padding: 0 0;
}

@media screen and (max-width: 700px) {
  #homepage {
    height: auto;
    max-height: auto;
  }
}

.solid-colour-container {
  margin: 100px auto auto auto;
  padding: 0px 0px;
  width: 100%;
}

@media screen and (max-width: 1200px) {
  #homepage .solid-colour-container {
    color: #efefef;
  }
}

@media screen and (max-width: 700px) {
  #homepage .solid-colour-container {
    box-shadow: none;
    color: #efefef;
    float: none;
    min-height: 600px;
    height: auto;
  }
}

#introduction-contents {
  margin: 0 auto;
  max-width: 1400px;
  display: flex;
}

.avatar img {
  background-color: rgba(0,0,0,0);
  box-shadow: none !important;
  border: 0;
}

#introduction-contents .content {
  font-size: 20px;
  margin-top: 50px;
  margin-left: 20px;
  box-shadow: inset 0 2px 0 0px #000;
  color: #130A08;
  float: right;
  width: 80%;
  max-width: 1000px;
  overflow: hidden;
  border-radius: 10px;
  background: #F0DEAA;
  padding: 20px;
  z-index: 1;
}

#introduction-contents .content:before {
  z-index: 10;
  content: '';
  position: absolute;
  width: 0;
  z-index: 1;
  border-style: solid;
  border-width: 40px 0px 0px 40px;
  border-color: #F0DEAA transparent transparent transparent;
  margin-left: -40px;
  margin-right: 10px;
  margin-top: 100px;
}

#introduction-contents .content h2 {
  font-family: 'Source Code Pro', Consolas, Liberation Mono, Courier, monospace;
  font-size: 55px;
  font-weight: normal;
  line-height: 1em;
  display: inline;
}

#introduction-contents .content h2 .hi {
  font-weight: 800;
  color: #005F73;
  font-style: normal;
  font-weight: bolder;
}

#introduction-contents .content em {
  color: #EE9B00;
  font-style: normal;
  filter: drop-shadow(1px 1px 0rem #080403);
}

@media screen and (max-width: 1400px) {
  #introduction-contents {
    margin: auto;
  }
  #introduction-contents .content {
    min-width: 900px;
    margin-right: 30px !important;
  }
}

@media screen and (max-width: 1200px) {
  #introduction-contents .content {
    min-width: 600px;
    margin-right: 30px;
  }
}

@media screen and (max-width: 650px) {
  .logo h1 {
    font-size: 2em;
  }
}

@media screen and (max-width: 980px) {
  #introduction-contents {
    text-align: center;
    overflow: hidden;
    max-width: 100%;
    align-content: flex-start;
    display: block;
  }

  #introduction-contents .avatar {
    float: right;
    width: auto;
    height: 80%;
    display: block;
  }

  .avatar {
    height: 300px !important;
    overflow: hidden;
    width: 300px;
    text-align: center;
    border-radius: 50%;
    display: inline-block !important;
    float: none !important;
    margin: 20px auto 20px;
  }

  .avatar img {
    min-width: 50%;
  }
  #introduction-contents .content {
    max-width: 100%;
    width: auto;
    margin-top: 20px;
    margin-left: 5px;
    margin-right: 5px !important;
    color: #333;
    padding: 0 10px 0 10px !important;
    overflow-wrap: hyphens;
    min-width: 95%;
    text-align: center;
    overflow: visible;
  }
  #introduction-contents .content:before {
    border-width: 0 60px 60px 60px;
    border-color: transparent transparent #F0DEAA transparent;
    margin-top: -40px;
    top: 2px;
    left: calc(50%);
    position: relative;
    display: block;
    text-align: center;
  }

}

/* 404 page */
#page-404 {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}
#page-404 .solid-colour-container {
  margin-top: 50px;
  box-shadow: inset 0px 500px 0px 0px #005F73 !important;
  text-align: center;
  height: auto;
  padding-bottom: 20px;
}

#page-404 .content-404 {
  padding: 4px;
  text-align: center;
  color: #F0DEAA;
}

#page-404 .content-404 .emoji {
  font-size: 40px;
  font-family: "DM Serif Display", "Times New Roman", serif;
}

#page-404 .item {
  margin: 12px auto 0;
  max-width: 800px;
  color: #fff;
}

#page-404 .title {
  display: inline-block;
  text-align: left;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  width: 80%;
}

#page-404 .title a {
  color: #fff;
}

#page-404 .title a:hover {
  color: #94D2BD;
}

#page-404 .read-more {
  font-weight: 300;
  font-size: 20px;
  margin-top: 48px;
  margin-bottom: 12px;
}

#page-404 .date {
  width: 20%;
  float: right;
  text-align: right;
  position: relative;
  top: 1px;
  color: #94D2BD;
}
