body {
  margin: 0;
  padding: 0;
  background: #2a2543;

  line-height: 133%;
  font-size: 0.98em;
  font-family: "Open Sans", "Droid Sans", "Calibri", sans-serif;
  }
  
  @font-face {
  font-family: 'tea_for_god';
  src: url(https://clockwork-gremlin.neocities.org/resources/fonts/tea_for_god/tea_for_god-webfont.woff);
}


:root {
  --hamburger-padding-x           : 15px;
  --hamburger-padding-y           : 15px;
  --hamburger-layer-width         : 40px;
  --hamburger-layer-height        : 4px;
  --hamburger-layer-spacing       : 6px;
  --hamburger-layer-color         : #d8d4ec;
  --hamburger-layer-border-radius : 4px;
  --hamburger-hover-opacity       : 0.7;
  --hamburger-active-layer-color  : var(--hamburger-layer-color);
  --hamburger-active-hover-opacity: var(--hamburger-hover-opacity);
}
  
/*Miscellanous custom styling for various elements.*/
h1, h2, h3 {
  font-family: "tea_for_god";
  line-height: 30px;
  display: block;
  }
  

a {
  color: #4d4385;
  }

a:hover, a:focus {
  color: #2a2543;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
blockquote {
  border-left: #4d4385 3px solid;
  background: #d8d4ec;
  padding: 0.1px 0.75rem;
  margin: 0 1.5rem;
  }

hr {
  width: 75%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  }

 .centre{
   display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
   } 
.top-wrapper
{
  position:sticky;
  top:-320px;
  background: #52587c;
  height:450px;
  z-index:10;
}
  
/*Header image.*/
.header {
  background: #231A36;
  height: 350px;
  }
  
.header img{
    display: block;
    margin: auto;
    
    height:100%;
  }
  

/*Title bar with icon and title/tagline.*/
.title {
  background: #52587c;
  height:100px;
  min-height: 60px;
  text-align: right;
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  }
  
.menu-hamburger
{
  padding-left:1em;
  height: 50%;
  width:4em;

}
  
.title-text, .title-pic {
  padding:0;
  margin: 0;
  vertical-align: top;
  }
  
/*Contains the text tagline.*/
.title-text {
  text-align: right;
  padding-left: 19em;
  
  color:#f2fcf6;
  line-height: 200%;
  padding-top:0.5em;
  margin-left: auto;
  }
  
  .title-text a
  {
    color:#f2fcf6;
    text-decoration: none;
  }
  
.title-text h {
  
  font-size: 20px;
  line-height:160%;
  font-family: "tea_for_god";
  }
  
/*Contains the profile pic. This can be left out and should still look okay.*/
.title-pic {
  height:120%;
  margin-left: 20px;
  margin-right: 10px;
  border: 5px solid #52587c;
  border-radius: 10px;
  }
  
.title-pic img {
  height: 100%;
  overflow: hidden;
  }
  
/*Contains the main content and sidebar.*/
.page-wrapper {
  padding: 100px 100px;
  margin: 0 auto;
  background: #CF285F;
  background: linear-gradient(rgba(16, 10, 38, 1) 0%, rgba(23, 17, 48, .9) 60%, rgba(0, 0, 0, .4) 100%); /*Gradient makes tiles "fade in".*/
  display:flex;
  }
  
  .friend{
    position: absolute;
    top: -126px;
    left:-158px;
    width:300px;
    height:300px;
    margin-left:320px;
    z-index:-1;
    }
  
.wrapper-gradient{
    width: 100%;
    height: 100%;
    background-image: url("/resources/images/tiling bricks.png");
    background-size: 20em;
  }

/*Contains the sidebar boxes.*/
.sidebar {
  width: 220px;
  margin: 50px 0;
  position: absolute;
  z-index:3;
  }
  
.sidebar h1 {
  font-size: 1.6rem;
  background: #696f92;
  color: #fff;
  padding: 20px 10px 0px 10px;
  margin: auto;
  }
  
  
.sidebar a {
  font-family: "tea_for_god";
  display: block;
  border-left: 3px solid #52587c;
  background: #bcb9d6;
  padding: 5px;
  margin: 10px 0;
  color: #0e0718;
  text-decoration: none;
  }
  
.sidebar a:hover, .sidebar a:focus {
  background: #99a1c7;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
.sidebar, .main {
  display: inline-block;
  }

/*Contains main content boxes.*/
.main {
  margin: 0px 5% 50px 450px;
  width: auto;
  width: calc(100vw - 650px);
  
  }
  
  .main h1 {
  font-size: 1.6rem;
  background: #696f92;
  color: #fff;
  padding: 10px 10px 0px 10px;
  margin: auto;
  width:100%
  }


  .main a {
    text-decoration: none;
    }

  .main-return {
  font-size: 1rem;
  background: #696f92;
  color: #fff;
  padding: 10px 0px 5px 10px;
  margin: auto;
  width:100%;
  text-decoration: none;
  }
  
  .gallery
  {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 10px 10px 10px;
  }
  
  .gallery img
  {
    padding: 10px 10px 10px 10px;
  }

.box {
  margin-bottom: 15px;
  text-decoration:none;
  height:auto;
  }
  
/*Inner content div for boxes. Padding goes here so sidebar headers etc can keep their no-margin look.*/
.inner {
  background:  #d3dce0;
  padding: 10px 25px;
  display:block;
  }

.inner img {
  max-width: 100%; /*Prevent image overflow.*/
  height: auto;
  border-radius: 5px; /*Give images in content rounded corners.*/
  }
  
.box, .title-pic img {
  border-radius: 5px;
  overflow: hidden; /*Force inner divs to conform to rounded corners.*/
  }

  
/*Footer section.*/
.footer {
  background: #050005;
  color: #fff;
  padding: 5px 20px;
  font-size: 0.75em;
  padding-bottom: 10px;
  }
  
.footer a {
  color: #fff;
  }

/*Individual column of the footer. You can have 3 of these at the current given width.*/
.footer-column {
  width: 25%;
  margin: 5px 10px;
  display: inline-block;
  vertical-align: top;
  }


/*Adapt to narrower screens.*/
@media(max-width: 900px) {
  .page-wrapper {
    padding: 0 50px;
    }
  
  .sidebar {
    width: 25vw;
    }
    
  .main {
    margin: 50px 0 50px calc(25vw + 30px);
    width: calc(100vw - 150px);
    }
    
  .title-pic {
    margin-right: 10vw;
    }
    
  .title-text {
    text-align: right;
    padding-left: 1vw;
    padding-right: 2vw;
    }
    
    .friend{
    display:none;
    }
  
  
  }
  
/*Mobile layout.*/
@media(orientation: portrait) {  
  .page-wrapper {
    padding-top: 0.1px;
    padding-bottom: 0.1px;
    flex-direction:column-reverse;
    }
  
  .sidebar, .main {
    display: block;
    margin: 0 auto;
    position: static;
    width: 100%;    
    }
    
  .sidebar {
    
    margin-top: 30px;
    margin-bottom: 300px;
    
    
    }
    
  .main {
    margin-top: 50px;
    }
    
    .friend{
    display:none;
    }
    
  }
  
/***
For really narrow screens which cause the title text to wrap. 
You may need to adjust the width at which this kicks in to fit 
your own title.
***/
@media(max-width: 500px) {
  
  .friend{
    display:none;
    }
  
  .title {
    padding-right: 0;
    }
  
  .title-text {
    
    margin-top: -5px;
    }
    
    .title-pic{
      display:none;
      
      }
    
  .title-text h1 {
    text-align: right;
    padding-left:1em;
    padding-right:1em;
    font-size: 6vw;
    line-height: 100%;
    }
    
  .title {
    height: calc(auto - 25px);
    }
    
  .page-wrapper {
    padding: 0.1px 7vw;
    }
    
  /*For extra narrow screens where the columns would get too skinny.*/
  .footer-column {
    display: block;
    width: 100%;
    margin: 0 auto;
    }
  }