* {
  box-sizing: border-box;
}

body {
  font-family: Gill Sans, Trebuchet MS;
  margin: 0px;
  color: black;
  background-color: ##166599;
  background: url(/img/big-blue-bg.jpg);
  margin-bottom: 4em;
}

@font-face {
  font-family: 'Reenie Beanie';
  src: url(./Reenie_Beanie/ReenieBeanie-Regular.ttf);

}

#whitebg,
.glyph {
  display: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Reenie Beanie', cursive;
  font-weight: 100;
  margin: 0.2em;

  a {
    text-decoration: none;
    color: #257;

    &:hover {
      text-decoration: underline;
    }
  }
}

h1 {
  font-size: 330%;
}

h2 {
  font-size: 200%;
}

h3 {
  font-size: 180%;
}

h4 {
  font-size: 150%;
}

a {
  color: #257;

  a:visited {
    color: #257;
  }
}

figure {
  margin: auto;
  max-width: 90%;
}

audio {
  width: 100%;
}


header {
  margin-bottom: 2em;

  .parts {
    background-color: white;
    background: url(/img/white-bg.jpg);
    display: flex;
    flex-direction: column;
    padding-top: 0.3rem;
    justify-content: center;
    align-items: center;
    align-content: center;

    .logo {
      vertical-align: top;

      h1 {
        margin-left: 3rem;
        font-size: 330%;
        font-weight: thin;
        line-height: 50%;
        color: rgba(0, 0, 0, 0.3);
        text-indent: -2.4rem;
      }
    }

    nav {
      display: flex;
      justify-content: center;

      ul {
        text-align: center;
        font-family: 'Reenie Beanie', cursive;
        font-size: 180%;
        list-style-type: none;
        display: inline-block;
        margin: 0;
        padding: 0;
      }

      li {
        display: inline-block;
        padding: 0.1em;
        border-right: 1px dashed #aaaaaa;
      }

      li:last-of-type {
        border-right: none;
      }

      li:nth-child(even) {
        -moz-transform: rotate(2deg);
      }

      li:nth-child(odd) {
        -moz-transform: rotate(-2deg);
      }

      li.current a {
        color: red;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
        padding: 4px;
      }

      a:hover {
        color: #000000;
        transform: scale(1.05)translateY(0.05em)rotate(-2deg);
        background: #ffffff;
        box-shadow: 0px 0px 20px #ffffff;
        border: 1px solid red;
        border-radius: 10px;
        z-index: 2000;
      }

    }

    a {
      text-decoration: none;
      text-shadow: white 1px 1px 1px;
      transition: color 1s, transform 0.2s;
      -webkit-transition: color 1s, -webkit-transform 0.2s;
      transform: scale(1);
      border: 1px solid rgba(0, 0, 0, 0);
      display: block;
      outline: 0;
      padding: 0.5rem;
    }

  }

}

#everything {
  clear: both;
  position: relative;
  max-width: 70rem;
}

#everything h2,
#everything h3,
#everything h4 {
  color: #222;
  text-shadow: 2px 2px 2px #fff;
}

article {
  border-radius: 5px;
  padding: 1em;
  display: inline-block;
  background: rgba(200, 220, 250, 0.9);
  position: relative;
  margin-bottom: 1.5em;
  width: 100%;
  font-size: 18px;
  line-height: 1.45;

  &.two_thirds {
    width: 65%;
  }

  h2 {
    font-size: 220%;
    font-style: normal;
    text-align: center;
  }

  h2:nth-of-type(even) {
    -moz-transform: rotate(1deg);
  }

  h2:nth-of-type(odd) {
    -moz-transform: rotate(-1deg);
  }

  p {
    padding: 0 1rem;
  }

  a {
    color: #000;
  }

  img {
    padding: 4px;
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }

  blockquote {
    background: #eee;
    border-radius: 1em;
    padding: 0 0.8rem;
    box-shadow: 0 0 1em #eee;
    white-space: pre-wrap;

    h5 {
      margin: 0;
    }

    p {
      margin: -1rem 0;
      padding: 0;
      line-height: 1.6;
    }
  }
}



.blog_list {
  list-style-type: none;

  li {
    display: block;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  }

  li h3 {
    padding: 0;
    margin: 0.4em 0 0 0;
  }

  .date {
    display: block;
    font-size: 70%;
  }
}

@media screen and (min-width:640px) {
  #whitebg {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    background: url(/img/white-bg.jpg);
    z-index: -10;
    width: 50%;
  }

  .glyph {
    display: block;
    position: fixed;
    opacity: 0.4;
    top: 0px;
  }

  #everything {
    width: 80%;
    padding: 1%;
    margin: auto;
  }

  .sidebar {
    display: inline-block;
    width: 30%;
    background: rgba(0, 0, 0, 0.3);
    color: #ccc;
    vertical-align: top;
    padding: 0.2rem;

    h2 {
      color: #fff !important;
      text-align: center;
      text-shadow: none !important;
    }

    a {
      color: #fff;
      text-decoration: none;
    }
    ul {
      padding: 0;

    }
    .tag--crosspost {
      display: none;
    }
  }

  header {
    background: url(/img/white-bg.jpg) center top repeat;
    margin-bottom: -2px;
  }

  #tear {
    margin: 0;
    display: block;
    width: 100%;
    height: 80px;
    background: url(/img/topbar-white.png) left bottom repeat-x;
  }

  header .parts {
    margin: auto;
    width: 90%;
    flex-direction: row;
    justify-content: center
  }
}

.highlight {
  padding: 0.7em;
  border-radius: 0.5em;

  pre {
    padding: 1rem;
    overflow-x: scroll;
  }
}

ul.tags {
  padding: 0.5em 0;
  font-size: 80%;
  color: #000;

  li {
    display: inline;
    background: #ccc;
    padding: 0.2rem 0.3rem;
    border-radius: 0.4em 0 0.4em 0;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    border: 0.1px solid rgba(0, 0, 0, 0.2);

    a {
      text-decoration: none;
      color: #000;
    }
  }

  li:before {
    content: "#";
    color: #777;
  }


}

a.section_color {
  color: #000;
  -moz-transform: rotate(-30deg);
  float: left;
  position: absolute;
  left: -3em;
  top: 0.5em;
  font-size: 80%;
  text-decoration: none;
}

.postlist li {
  position: relative;
  list-style: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.5);
}

a.section_color:before {
  content: "/";
}

footer {
  width: 80%;
  border-radius: 3px 2em;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1em 0.4rem 0.3rem 0.4rem;
  margin: 1em auto 3rem auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

  p {
    color: #ccc;
    font-style: italic;
    margin: 1em;
  }
}

aside.meta {
  float: right;
  position: absolute;
  top: -1em;
  right: 2em;
  background: #fff;
  padding: 0.2rem 1rem;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.bd-date {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  font-size: 50px;
}

.img_thumb {
  width: 30vw;
  height: 30vw;
  background-size: contain;
}

article.tiles {
  vertical-align: top;
}

.pagination {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  max-width: 80vw;
  overflow-x: auto;
  margin: auto;

  font-size: 2rem;

  li {
    border-radius: 1rem;
    padding: 0 0.7rem 0.3rem 0.7rem;
    background: rgba(200, 220, 250, 0.9);

    &.active {
      border: 1px solid #000000;
      box-shadow: 0 0 0.3em #ffffff;
    }

    a {
      color: #000000;
      font-family: 'Reenie Beanie', cursive;
      text-decoration: none;
    }
  }
}

.youtube-container {
  display: flex;
  justify-content: center;
  max-width: 90%;
  margin: auto;
  padding: 4px;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);


  iframe {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    height: 100% !important;
  }
}

img.fullwidth {
  width: 100%;
  height: auto;
}
time.i {
  font-style: italic;
  padding-left: 0.5rem;
}
