/*
--sage-green: #72a25e;
--toffee-brown: #8c6350;
--hunter-green: #306753;
--camel: #b39a79;
--sand: #cbbd84;
*/

@font-face {
  font-family: OCP; /*Internal name of the font you'll use for this stylesheet.*/
  src: url("GhoulFriAOE.ttf"); /*Put the url of the font on your site here. DO NOT HOTLINK.*/
}

@font-face {
  font-family: OCP2; /*Internal name of the font you'll use for this stylesheet.*/
  src: url("grimghost.ttf"); /*Put the url of the font on your site here. DO NOT HOTLINK.*/
}

@font-face {
  font-family: Mechanical; /*Internal name of the font you'll use for this stylesheet.*/
  src: url("Mechanical.otf"); /*Put the url of the font on your site here. DO NOT HOTLINK.*/
}

body {
  margin: 0;
  padding: 0;
  background: #2a2543;
  line-height: 133%;
  font-size: 0.98em;
  font-family: Mechanical;
  letter-spacing: -0.05vw;
  }


/*Miscellanous custom styling for various elements.*/
h1, h2, h3 {
  font-family: OCP;
  }

a {
  color: #4d4385;
  }

a:hover, a:focus {
  color: #2a2543;
  transition: ease-in 0.1s, ease-out 0.1s;
  }

blockquote {
  border-left: #b39a79 3px solid;
  background: #cbbd84;
  padding: 0.1px 0.75rem;
  margin: 0 1.5rem;
  }

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

/*Sticky navigation links at the top of the page.*/
.quick-nav {
  position:fixed;
  z-index: 999;
  width: 100%;
  background: #0a000a;
  text-align: right;
  color: #fff;
  font-size: 0.875em;
  }

.navbar {
  padding: 1px 25px;
  }

.navbar a {
  display: inline-block;
  text-decoration: none;
  color: #cbbd84;
  padding: 5px 4px;
  margin: 0 2px;
  }

.navbar a:hover, .footer a:hover, .navbar a:focus, .footer a:focus {
  color: #edeef3;
  transition: ease-in 0.1s, ease-out 0.1s;
  }


/*Header image.*/
.header {
  height: 350px;
  background: url("MAL_1920x622.png");
  background-size: cover;
  background-position: 50% 25%;
  }

.header img {
  max-width: 90%;
  max-height: 90%;
}

/*Title bar with icon and title/tagline.*/
.title {
  background: #72a25e;
  min-height: 60px;
  margin-bottom: -25px;
  text-align: right;
  }

.title-text, .title-pic {
  padding:0;
  margin: 0;
  display: inline-block;
  vertical-align: top;
  }

/*Contains the text tagline.*/
.title-text {
  padding-right: 1em;
  width: calc(85vw - 110px);
  line-height: 167%;
  margin-top: -3px;
  padding-bottom: 15px;
  }

.title-text h1 {
  padding:0;
  font-size: 32px;
  }

/*Contains the profile pic. This can be left out and should still look okay.*/
.title-pic {
  height: 100px;
  margin-right: 100px;
  margin-top: -25px;
  border-radius: 10px;
  }

.title-pic img {
  height: 100%;
  overflow: hidden;
  }

/*Contains the main content and sidebar.*/
.page-wrapper {
  padding: 0 100px;
  margin: 0 auto;
  background: #ddd;
  background: linear-gradient(#306753, #103c2c), url(/img/fancy1.png); /*Gradient makes tiles "fade in".*/
  }

/*Contains the sidebar boxes.*/
.sidebar {
  position: absolute;
  width: 320px;
  margin: 50px 0;
  margin-right: 50px;
  }

.sidebar h1 {
  font-family: OCP2;
  letter-spacing: 0.1rem;
  font-size: 1.5rem;
  font-stretch: 50%;
  background: #8c6350;
  color: #fff;
  padding: 12px 10px 10px 10px;
  margin: auto;
  }

.sidebar a {
  display: block;
  border-left: 3px solid #8c6350;
  background: #b39a79;
  padding: 5px;
  margin: 10px 0;
  color: #0e0718;
  text-decoration: none;
  }

.sidebar a:hover, .sidebar a:focus {
  background: #cbbd84;
  transition: ease-in 0.1s, ease-out 0.1s;
  }

.sidebar, .main {
  display: inline-block;
  }

.grid-container {
  display: grid;
  grid-template-columns: 55% 45%;
}

/*Contains main content boxes.*/
.main {
  margin-top: 50px;
  margin-bottom: 50px;
  margin-right: 50px;
  width: auto;
  width: calc(100vw - 600px);
  font-size: 1.25em;
  line-height: 125%;
  }

  .grid-container-cool {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 16px 16px;
  }

  .grid-item {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
  }

  .item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 6;
  }

  .item-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
  }

  .item-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 4;
  }

  .item-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 4;
  }

  .item-5 {
    grid-column: 3 / 5;
    grid-row: 4 / 6;
  }

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
}


/*Basic container type for subsections of main and sidebar divs*/
.box {
  margin-bottom: 15px;
  }

/*Inner content div for boxes. Padding goes here so sidebar headers etc can keep their no-margin look.*/
.inner {
  background:  #edeef3;
  padding: 10px 25px;
  }

.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;
  text-align: center;
  }

.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;
    margin-left: 30px;
    }

    iframe, embed {
      width:90%;
    }

  .grid-container {
    display: block;
  }

  .main {
    margin: 50px 0 50px 0px;
    width: calc(75vw - 150px);
    }

  .title-pic {
    margin-right: 7vw;
    }

  .title-text {
    padding-left: 1vw;
    padding-right: 2vw;
    }

  }

/*Mobile layout.*/
@media(orientation: portrait) {
  .page-wrapper {
    padding-top: 0.1px;
    padding-bottom: 0.1px;
    }

  .sidebar, .main {
    display: block;
    margin: 0 auto;
    position: static;
    width: 100%;
    }

  .sidebar {
    margin-top: 50px;
    }

  .main {
    margin-top: 30px;
    margin-bottom: 30px;
    }


  }

/***
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) {
  .header {
    height: 60vw;
    background: url("MAL_1600x900.png");
    background-size: 120vw;
    background-position: 50% -100%;
    }

    iframe, embed {
      width:100%;
      height:250px;
    }

  .title {
    padding-right: 0;
    }

  .title-text {
    margin-top: -5px;
    }

  .title-text h1 {
    font-size: 5vw;
    line-height: 100%;
    }

  .title {
    height: calc(auto - 25px);
    }

  .main {
    font-size: 4vw;
  }

  .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;
    }
  }
