/* Fonts */
@font-face { font-family: 'Overpass Mono'; src: url(../fonts/OverpassMono-Regular.ttf); }

/* Custom colors */
:root {
  --color1: black;
  --color2: white;
  --color3: grey;
  --color4: dimgrey;
}

/* HTML tags */
* {box-sizing: border-box;}
body { margin: 0; padding: 0; font-family: 'Overpass Mono', monospace; font-size: calc(0.6em + 1.0vmin); background: var(--color2); color: var(--color1); line-height: 1.25; }
a { color: inherit; text-decoration: underline; }
a:hover { text-decoration: none; color: var(--color3); }

/* Various classes */
.container { max-width: 1200px; margin: 0 auto; }
.box { border: 2px solid var(--color1); box-shadow: 4px 4px 0 var(--color1); margin-bottom: 15px; padding: 15px; }
.text-center { text-align: center; }
.larger-text { font-size: 125%; }
.text-white { color: white; }

/* Site specific classes */
.header { background: var(--color1); color: var(--color3); padding: 15px 20px; }
.logo { font-size: 40px; }
.trigram { font-size: 40px; cursor: pointer; position: absolute; top: 15px; right: 20px; }
.trigram:hover { color: var(--color3); }
.footer { color: var(--color4); font-size: 85%; }
.footer a { color: var(--color4); }

/* Hero */
.image-center { position: relative; text-align: center; color: white; }
.image-center img { border: 2px solid var(--color1); box-shadow: 4px 4px 0 var(--color1); }
.centered { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Forms */
input, textarea, select { width: 100%; padding: 12px; margin-bottom: 12px; border: 2px solid var(--color1); box-shadow: 4px 4px 0 var(--color1); font-family: font-family: 'Cutive Mono', monospace; }
textarea { resize: vertical; }
label { margin-bottom: 6px; display: block; }

/* Checkboxes and Radio Buttons */
input[type="radio"], input[type="checkbox"] { display: inline-block; width: auto; margin-right: 8px; }
select[multiple] { height: auto; }

/* Buttons */
button, .button { display: inline-block; padding: 12px 24px; text-align: center; text-decoration: none; color: var(--color1); background-color: var(--color2); border: 2px solid var(--color1); box-shadow: 4px 4px 0 var(--color1); cursor: pointer; transition: all 0.2s ease; }
button:hover, .button:hover { box-shadow: 6px 6px 0 var(--color1); color: var(--color3); }

/* Modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
  background-color: var(--color2);
  margin: auto;
  padding: 20px;
  border: 2px solid var(--color1); box-shadow: 4px 4px 0 var(--color1);
  width: 80%;
  max-width: 960px;
}

/* Grid */
.row::after { content: ""; clear: both; display: table; }
[class*="col-"] { float: left; width: 100%; padding: 15px; }
@media only screen and (min-width: 600px) {
	.col-1 {width: 8.33%;}
	.col-2 {width: 16.66%;}
	.col-3 {width: 25%;}
	.col-4 {width: 33.33%;}
	.col-5 {width: 41.66%;}
	.col-6 {width: 50%;}
	.col-7 {width: 58.33%;}
	.col-8 {width: 66.66%;}
	.col-9 {width: 75%;}
	.col-10 {width: 83.33%;}
	.col-11 {width: 91.66%;}
	.col-12 {width: 100%;}
}

/* Sidenav full width */
.sidenav { height: 100%; width: 0; position: fixed; z-index: 1; top: 0; left: 0; background-color: #000; overflow-x: hidden; transition: 0.5s; padding-top: 60px; text-align:center; }
.sidenav a { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 30px; color: #ffffff; display: block; transition: 0.3s; }
.sidenav a:hover{ color: #808080; }
.sidenav .closebtn { position: absolute; top: 10px; right: 20px; font-size: 40px; margin-left: 50px; }
@media screen and (max-height: 450px) {
  .sidenav { padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

@media only screen and (max-width: 600px) {
  .image-center .centered { line-height: 1; font-size: 75%; }
}
