:root {
  --teal: #09b279;
  --violet: #9e00ff;
  --orange: #ee4e18;
}

* {
  box-sizing: border-box;
}

/*
Copyright 2010,2011 Canonical Ltd.

This Font Software is licensed under the Ubuntu Font Licence, Version
1.0.  https://launchpad.net/ubuntu-font-licence

License also available locally at /f/ubuntu-font-licence-1.0.txt
*/

@font-face {
  font-family: 'Ubuntu';
  src: url('/f/Ubuntu-R.ttf');
}

@font-face {
  font-family: 'Ubuntu Condensed';
  src: url('/f/Ubuntu-C.ttf');
}

/*
Courier Prime was designed by Alan Dague-Greene for John August and Quote-Unquote Apps.
Courier Prime is distributed under the Open Font License: /f/OFL.txt	
*/

/*Bundled with accompanying Python program below (you've gotta isolate it yourself, sorry)

count = 103
while count > 0:
	print("I still don't understand this part of the license but ok")
	count -= 1
*/

@font-face {
  font-family: 'Courier Prime';
  src: url('/f/Courier-Prime.ttf');
}

body {
  position: relative;
  min-height: 100vh;
  background: url('/img/header_bg_dark.png') left top repeat-x, black url('/img/bg.png') fixed;
  color: white;
  font-family: 'Courier Prime', 'Courier', monospace;
  font-size: 1em;
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--teal);
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: var(--violet);
}

a:active {
  text-decoration: underline;
  color: var(--orange);
  text-shadow: 0 0 8px var(--orange);
}

nav>a:link, nav>a:visited {
  color: white;
}

nav>a:active {
  color: var(--orange);
}

h1 {
  font-size: 3em;
  margin: 0;
  font-family: 'Ubuntu Condensed', sans-serif;
  text-shadow: 0 0 12px var(--violet), 0 0 12px var(--violet);
}

h2 {
  font-size: 1.5em;
  font-family: Ubuntu, sans-serif;
  margin: 0;
}

iframe {
  border: none;
  display: block;
  width: 100%
}

header {
  font-family: Ubuntu, sans-serif;
  background: url('/img/header_bg.png');
  background-clip: padding-box;
  border-right: 12px solid #999999;
  border-image-source: url('/img/header_bg_l.png');
  border-image-slice: 0 100% 0 0;
  border-image-width: 0 12px 0 0;
  height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-right: 12px;
  position: fixed;
  top: 0;
  z-index: 103;
}

nav {
  position: fixed;
  height: 100%;
  top: 64px;
  z-index: 8;
}

footer {
  font-family: Ubuntu, sans-serif;
  text-align: center;
  color: black;
  width: 100%;
  border: 2px solid #262626;
  border-image-source: url('/img/footer_top.png');
  border-image-slice: 18 1 2 1;
  border-image-width: 18px 1px 2px 1px;
  border-image-repeat: repeat;
  background-color: #999999;
  position: absolute;
  bottom: 0;
  z-index: 1;
  padding-left: 128px;
}

footer>a {
  color: black;
}

footer>a:visited {
  color: black;
}

footer>a:active {
  color: var(--orange);
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

main {
  width: 100%;
  padding-left: 128px;
  padding-top: 80px;
  padding-bottom: 176px;
}

.box {
  max-width: 1400px;
  border: 48px solid #262626;
  border-radius: 32px;
  border-image-source: url('/img/glow_border.png');
  border-image-slice: 40 48 48 48 fill;
  border-image-width: 40px 48px 48px 48px;
  border-image-repeat: repeat;
  margin: auto;
  margin-bottom: 16px;
  box-shadow: 0 0 16px black;
}

.subbox {
  margin: 0 -16px 8px -16px;
  word-wrap: break-word;
  overflow: hidden;
  font-size: 16px;
}

.flx {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  max-width: 1400px;
  justify-content: center;
  margin: auto;
}

.flx>div {
  flex-basis: 600px;
  margin: 16px;
  margin-top: 0;
  font-size: 0;
}

.fcont {
  border: 22px 16px 16px 16px solid #262626;
  border-radius: 16px;
  border-image-source: url('/img/accent_border.png');
  border-image-slice: 22 16 16 16 fill;
  border-image-width: 22px 16px 16px 16px;
  border-image-repeat: repeat;
  margin: 0;
  box-shadow: 0 0 16px black;
  padding: 22px 24px 16px 24px;
  font-size: initial;
}

.lbl {
  font-family: Ubuntu Condensed, sans-serif;
  font-size: 24px;
  margin-left: 0;
  border: 2px solid #262626;
  height: 40px;
  overflow: hidden;
  border-image-source: url(/img/tab.png);
  border-image-slice: 7 fill;
  border-image-width: 7px;
  border-image-repeat: repeat;
  position: relative;
  display: inline-block;
  top: 7px;
  padding: 8px 8px 0 8px;
}

.dbutton, .lbutton {
  position: relative;
  min-height: 64px;
  display: inline-block;
  border: 2px solid #262626;
  border-radius: 16px 16px 16px 16px;
  border-image-slice: 7 7 23 7 fill;
  border-image-width: 7px 7px 23px 7px;
  border-image-repeat: repeat;
  font-family: Ubuntu Condensed, sans-serif;
  font-size: 1.5em;
  padding: 8px;
  text-shadow: 0 0 4px black;
  box-shadow: 0 0 8px black;
}

.dbutton {
  border-image-source: url(/img/d_button.png);
  background-color: #262626;
}

.lbutton {
  border-image-source: url(/img/l_button.png);
  background-color: #262626;
  color: black;
}

.lbutton>a:link, .lbutton>a:visited {
  color: black;
}

.navbutton {
  height: 64px;
  width: 128px;
  background-color: #404040;
  border: 2px solid #262626;
  border-radius: 0 20px 20px 0;
  border-image-source: url('/img/navbutton_bg.png');
  border-image-slice: 12 12 32 2 fill;
  border-image-width: 12px 12px 32px 2px;
  border-image-repeat: repeat;
  position: relative;
  margin-top: -16px;
  font-family: Ubuntu Condensed, sans-serif;
  font-size: 1.5em;
  padding: 8px;
  padding-left: 10px;
  text-shadow: 0 0 4px black;
  box-shadow: 0 0 4px black;
}

.navbutton:hover, .dbutton:hover, .lbutton:hover {
  top: 8px;
  box-shadow: 0 0 8px black;
}

.sq-button:hover {
  filter: brightness(1.3);
  cursor: pointer;
}

header .sq-button {
  float: left;
  margin-left: 12px;
  box-sizing: content-box;
}

.ci {
  vertical-align: middle;
}

@media only screen and (max-width: 600px) {
  header {
    background: #999999 url('/img/header_bg.png');
    width: 100%;
    border-right: 0;
    border-image: none;
  }

  nav {
    position: static;
    padding-top: 64px;
    height: initial;
    width: 100%;
  }
  
  .navbutton {
    width: 100%;
  }
  
  main {
    padding-top: 8px;
  }
  
  main, footer {
    padding-left: 0;
    padding-right: 0;
  }
}
