/*
protip: use inspect element to get rid of annoying popups and paywalls. also use ublock origin xx

mews wrote all this code, unless otherwise specified

Created: 6th June 2020
Last updated: 10th March 2021
*/

/*=====================*/
/* core
/*=====================*/
body {
  background-color: #310555;
  background-image: url("images/bg1.png");
  background-attachment: fixed;
  color: black;
  font-family: "Courier New", Courier, monospace;
  min-height: 100%;
  margin: 0;
}

@font-face {
    font-family: 'Kaushan Script';
    src: url('fonts/kaushanscript-regular-webfont.woff2') format('woff2'),
         url('fonts/kaushanscript-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.clearfix:after {
  content: "";
  clear: both;
  display: table;
}

/*=====================*/
/* sidebar
/*=====================*/
.side-block {
  height: 100%;
  margin-right: 50px;
  background-color: #543582;
  box-shadow: 4px 0 2px #00000045;
  position: fixed;
  top: 0;
  left: 0;
}

.nav {
  list-style: none;
  padding: 20px;
  margin: 0;
  font-family: 'Kaushan Script', "Courier New", Courier, monospace;
  font-size: 30px;
  text-align: right;
}

.nav li {
  border-bottom: 1px dashed #7644bf;
  display: block;
}

.nav li:last-child {
  border: none;
}

.nav a {
    text-decoration: none;
    color: #ffc8f4;
    text-shadow: 2px 2px 0 #000;
}

.nav a:hover {
    color: #ffebfb;
}

.nav li.mobile-menu {
  display: none;
}

.side-block img {
    position: fixed;
    bottom: 0;
    left: -120px;
    max-height: 500px;
}

/*=====================*/
/* main
/*=====================*/
.main-block {
  box-sizing: border-box;
  width: 920px;
  background-color: #fff4ffe0;
  padding: 0 20px 20px 20px;
  margin: 80px 0 60px 380px;
}

.main-block h1 {
  margin: 0;
  position: relative;
  top: -50px;
  left: -20px;
  font-family: 'Kaushan Script', "Courier New", Courier, monospace;
  font-size: 40px;
  color: #ffc8f4;
  text-shadow: 2px 2px 0 #000;
}

h2 {
  margin-top: -25px;
  font-size: 40px;
  letter-spacing: -2px;
  color: #e425ff;
}

h3 {
  color: #814ecc;
  text-shadow: 2px 2px 2px #fff;
  font-size: 30px;
  margin: 0;
  border-bottom: 1px dashed #e1a8e1;
  padding-bottom: 5px;
}

h4 {
  color: #814ecc;
  font-size: 24px;
  margin: 10px 0;
}

ol li {
  margin: 8px 0;
}

.main-block a.exciting {
  text-decoration: none;
  color: #456bff;
  font-weight: bold;
  transition: color .5s ease-in-out;
}

.main-block a.exciting:hover {
  color: #fff;
  transition: color .5s ease-in-out;
}

.main-block p, .main-block ul, .main-block ol {
  font-size: 18px;
  letter-spacing: -1px;
}

.main-block a {
  color: #e425ff;
  text-decoration: underline;
}

.centred {
  text-align: center;
}

p.highlight, span.highlight {
  color: #e425ff;
}

p.small-comment {
  margin: 0;
  font-size: 14px;
}

b, strong {
  color: #814ecc;
}

.highlight-box {
  text-align: center;
  margin: 0 160px;
  background-color: #814ecc2b;
  border-width: 0 8px;
  border-style: solid;
  border-color: #814ecc;
  padding: 5px 15px;
  font-size: 16px;
}

/*=====================*/
/* about page
/*=====================*/
.about-icon {
    float: left;
    padding: 0 25px 25px 0;
    height: 440px;
}

.about-icon img {
    max-height: 300px;
}

/*=====================*/
/* updats & mind
/*=====================*/
.stream {
  max-height: 600px;
  overflow-y: scroll;
  margin-bottom: 15px;
  background-color: #814ecc14;
  padding: 3px 30px 0 15px;
}

.stream.short {
  max-height: 190px;
}

.stream.short .timestamp, .stream.short .small-entry {
  font-size: 16px;
}

.timestamp {
    color: #814ecc;
    margin: 0;
    padding-top: 10px;
    border-top: 1px dashed #e1a8e1;
}

.timestamp:first-child {
  border: none;
}

.small-entry {
    margin: 0 0 10px 0;
    display: block;
}

.small-entry:last-child {
    border: none;
    margin-bottom: 20px;
}

.page-image {
  margin: 30px 0;
}

.page-image img {
  width: 75%;
}

.page-image .small-comment {
  margin-top: 10px;
}

/*=====================*/
/* creations
/*=====================*/
.musings .stream {
  max-height: none;
  overflow: auto;
}

.musings h3 {
  color: #814ecc;
  margin: 35px 0 0;
  padding-bottom: 8px;
}

.musings h4 {
  color: #e425ff;
  border-bottom: 1px dashed #e1a8e1;
  padding-bottom: 8px;
}

.musings h4 a {
  text-decoration: none;
}

.musings .timestamp, .muse-page.timestamp {
  text-align: right;
  border-top: none;
  float: right;
  padding: 0 0 20px 40px;
}

.large-entry {
  margin: 0 0 10px 0;
  display: block;
}

.large-entry:last-child {
  border: none;
  margin-bottom: 20px;
}

.large-entry h3 {
  color: #814ecc;
  font-size: 22px;
  margin: 30px 0 0px;
  border-bottom: none;
  padding: 0;
  text-shadow: 2px 2px 2px #f3eaff;
}

.back-link {
  text-align: right;
}

/*=====================*/
/* creations
/*=====================*/
.med-entry {
  height: 395px;
}

.med-entry iframe {
  float: left;
  margin: 0 20px 20px 0;
}

/*=====================*/
/* online objects
/*=====================*/
.two-columns {
  max-width: 70%;
  text-align: center;
  margin: 0 auto;
}

ul.left, ul.right {
  float: left;
  width: 50%;
  padding-left: 0;
}

.two-columns li {
  display: block;
}

/*=====================*/
/* decorative
/*=====================*/
img.deco-1 {
    height: 200px;
    position: fixed;
    right: 120px;
    top: 50px;
}

/*=====================*/
/* footer
/*=====================*/
.footer {
  text-align: center;
  font-size: 15px;
  background-color: #814ecc2b;
  padding: 12px;
  margin-top: 10px;
}

/*=====================*/
/* responsive
/*=====================*/

/* width rules ========*/
@media screen and (max-width: 1749px) {

  img.deco-1 {
    right: 50px;
  }

}

@media screen and (max-width: 1629px) {

  .main-block {
    width: 54%;
  }

  .highlight-box {
    margin: 0 auto;
    width: 60%;
  }

  .about-icon {
    height: auto;
    padding: 0 25px 18px 0;
  }

  img.deco-1 {
    display: none;
  }

}

@media screen and (max-width: 1079px) {

  .side-block {
    margin-right: 0;
    position: relative;
  }

  .side-block img {
    display: none;
  }

  .nav {
    text-align: center;
  }

  .nav li {
    border-bottom: none;
    border-right: 1px dashed #7644bf;
    display: inline-block;
    padding-right: 14px;
  }

  .main-block {
    width: 80%;
    margin: 70px auto 30px;
  }

}

@media screen and (max-width: 838px) {

  .nav {
    max-height: 58px;
    overflow: hidden;
    padding: 0;
    transition: max-height .5s ease-in-out;
  }

  .nav li {
    border-bottom: 1px dashed #7644bf;
    border-right: none;
    display: block;
    padding: 6px 0;
  }

  .nav li:last-child {
      padding-bottom: 10px;
  }

  .nav li.mobile-menu {
    display: block;
    padding-bottom: 8px;
  }

  .nav a {
    display: block;
  }

  .main-block {
    width: 85%;
    margin: 26px auto 30px;
  }

  .main-block h1 {
    margin: 0 0 35px;
    top: 14px;
    left: -4px;
    font-size: 36px;
    color: #814eccd4;
    text-shadow: none;
    text-align: center;
  }

  h2 {
    margin-top: 0;
    font-size: 30px;
  }

  h3 {
    font-size: 25px;
  }

  .highlight-box {
    width: 90%;
  }

  .about-icon, .med-entry iframe {
    float: none;
  }

  ul.left, ul.right {
    float: none;
    width: 100%;
  }

  .med-entry {
    height: auto;
  }

  .med-entry iframe {
    margin: 20px 20px 20px 0;
    display: block;
  }

}

@media screen and (max-width: 519px) {
  
  .main-block {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .highlight-box {
    width: auto;
  }

}

/* height rules =======*/
@media screen and (max-height: 800px) {

  .side-block img {
    left: -25px;
    max-height: 300px;
  }

}

@media screen and (max-height: 600px) {

  .side-block img {
    display: none;
  }

}

/*=====================*/
/* errors
/*=====================*/
#four-oh-four {
  margin: 80px auto;
}

#four-oh-four h2 {
  margin: -25px 0 0;
}