/* Font Face Declarations */
@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "IBM Plex Serif";
  src: url("fonts/IBM_Plex_Serif/IBMPlexSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/Noto_Sans_Display/static/NotoSansDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/Noto_Sans_Display/static/NotoSansDisplay-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono/JetBrainsMonoNerdFont-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background: #0f1b2e;
  line-height: 133%;
  font-size: 0.98em;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  
  
/*Miscellanous custom styling for various elements.*/
h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  color: #eaf2ff;
  font-weight: 500;
  }
  
a {
  color: #4da3ff;
  }

a:hover, a:focus {
  color: #9cc9ff;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
blockquote {
  border-left: #4da3ff 3px solid;
  background: #dbe9ff;
  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: #050d1a;
  text-align: right;
  color: #fff;  
  font-size: 0.875em;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }
  
.navbar {
  padding: 1px 25px;
  }
  
.navbar a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 5px 4px;
  margin: 0 2px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }
  
.navbar a:hover, .footer a:hover, .navbar a:focus, .footer a:focus {
  color: #cfe4ff;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
  
/*Header image.*/
.header {
  height: 350px;
  background: linear-gradient(rgba(5, 13, 26, 0.6), rgba(5, 13, 26, 0.4)), url(/img/pexels-4254548-crop2.jpg);
  }

/*Title bar with icon and title/tagline.*/
.title {
  background: #2a4f7a;
  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;
  color: #ffffff;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  }

.title-text p {
  color: #dbe7ff;
  font-family: "Noto Sans", sans-serif;
  }
  
/*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: 5px solid #2a4f7a;
  border-radius: 10px;
  }
  
.title-pic img {
  height: 100%;
  overflow: hidden;
  }
  
/*Contains the main content and sidebar.*/
.page-wrapper {
  padding: 0 100px 100px;
  margin: 0 auto;
  background: linear-gradient(rgba(30, 60, 100, 1), rgba(15, 30, 60, 0.4)), url(/img/fancy1.png);
  padding-bottom: 500px; /* NEW: reserves space for tall sidebar (chatbox) */
  }

/*Contains the sidebar boxes.*/
.sidebar {
  width: 320px;
  margin: 50px 0;
  position: absolute;
  }
  
.sidebar h1 {
  font-size: 1.2rem;
  background: #2a4f7a;
  color: #fff;
  padding: 12px 10px 10px 10px;
  margin: auto;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  }
  
.sidebar a {
  display: block;
  border-left: 3px solid #4da3ff;
  background: #cfe4ff;
  padding: 5px;
  margin: 10px 0;
  color: #0a1a33;
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  }

.sidebar a img {
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -2px;
  }
  
.sidebar a:hover, .sidebar a:focus {
  background: #b7d7ff;
  transition: ease-in 0.1s, ease-out 0.1s;
  }
  
.sidebar, .main {
  display: inline-block;
  }

/*Contains main content boxes.*/
.main {
  margin: 50px 100px 50px 350px;
  width: auto;
  width: calc(100vw - 550px);
  }

/*Main content section headings*/
.main h1 {
  color: #eaf2ff;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 500;
  }
  
  
/*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: #f2f6ff;
  padding: 10px 25px;
  }

.inner p {
  font-family: "Noto Sans", sans-serif;
  }

.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: #050d1a;
  color: #fff;
  padding: 5px 20px;
  font-size: 0.75em;
  padding-bottom: 10px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }
  
.footer a {
  color: #9cc9ff;
  font-family: "JetBrains Mono", "Courier New", monospace;
  }

/*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;
  }

.footer-column-with-badges {
  text-align: left;
  }

.footer-badges {
  margin-top: 10px;
  }

.footer-column-ad {
    width: 300px;
    text-align: center;
    float: center;
}
  
.footer {
    overflow: hidden;
}  

.footer-badges a,
.footer-badges img {
  display: inline-block;
  vertical-align: middle;
  }

.footer-badges a + img,
.footer-badges a + a {
  margin-left: 10px;
  }

.footer-badges .html5-badge + a {
  margin-left: 0;
  }

.cc-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  }

.html5-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  }

.kde-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  }

.neocities-button {
  height: 31px;
  width: auto;
  display: inline-block;
  }


/*Adapt to narrower screens.*/
@media(max-width: 900px) {
  .page-wrapper {
    padding: 0 50px 80px;
    }
  
  .sidebar {
    width: 25vw;
    }
    
  .main {
    margin: 50px 0 50px calc(25vw + 30px);
    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: 60px;
    }
  
  .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;
    }
  
  .title {
    padding-right: 0;
    }
  
  .title-text {
    margin-top: -5px;
    }
    
  .title-text h1 {
    font-size: 6vw;
    line-height: 75%;
    }
    
  .title {
    height: calc(auto - 25px);
    }
    
  .page-wrapper {
    padding: 0.1px 7vw 60px;
    }
    
  /*For extra narrow screens where the columns would get too skinny.*/
  .footer-column {
    display: block;
    width: 100%;
    margin: 0 auto;
    }
  }