@import url("https://fonts.googleapis.com/css?family=Open+Sans");

/*************************************************************
    Section: overall document structure
*************************************************************/
:root {
  --bgcolor: #f7f8f5;
  --fgcolor: #19093f;
  --fbalpha0: rgba(25, 9, 63, 0);
  --fbalpha1: rgba(25, 9, 63, 1);
  --fbalpha9: rgba(25, 9, 63, 0.9);
  --fbalpha8: rgba(10, 05, 20, 0.8);
}

html,
body {
  background-color: var(--bgcolor);
  color: var(--fgcolor);
  font-family: "Open Sans", Helvetica, sans-serif;
  text-decoration: none;
  height: 90%;
  font-size: 16px;
  max-width: 1200px;
  margin: auto;
}

body {
  margin: 50px;
  padding-bottom: 2.5rem;
  animation: fadeInAnimation ease 2s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.articlebody {
  max-width: 850px;
  line-height: 1.6;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


#page-header {
  margin: 0;
  text-align: center;
  padding: 1rem 1rem;
}

#title-head {
  margin-top: 70px;
}

#page-footer {
  padding-top: 30px;
  height: 30px;
  right: 50;
  text-align: center;
  bottom: 0;
  font-size: 10px;
  opacity: 80%;
}

#main-content {
  word-wrap: break-word;
}

#main-content :first-child {
  margin-top: 0;
}

#main-content table {
  display: block;
  width: 100%;
  overflow: auto;
  word-break: normal;
  word-break: keep-all;
  -webkit-overflow-scrolling: touch;
}

#main-content table th {
  font-weight: bold;
}

#main-content table th,
#main-content table td {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

#main-content {
  padding: 2rem 6rem;
  margin: 0 auto;
}

@media only screen and (max-width: 800px) {
  body {
    margin: 5px;
  }

  #main-content {
    padding: 10px 10px;
  }
}

@media only screen and (max-width: 600px) {
  body {
    margin: 3px;
  }

  #main-content {
    padding: 1px 1px;
  }

  #outputwrapper {
    display: none;
  }
}

/*************************************************************
    Section: Standard elements
*************************************************************/
h1 {
  font-weight: bold;
  font-size: xx-large;
}

h2 {
  font-weight: bold;
  font-size: x-large;
}

h3 {
  font-weight: normal;
  font-size: large;
}

p,
label {
  font-weight: normal;
  font-size: normal;
}

a {
  color: inherit;
  text-decoration: underline;
}

a.noline {
  text-decoration: none;
}

a:hover {
  font-weight: bold;
}

a:hover,
a:focus,
a:active {
  color: inherit;
  text-decoration: none;
}

li {
  margin-bottom: 10px;
}

input[type="checkbox"],
input[type="radio"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

input[type="checkbox"]+label::before,
input[type="radio"]+label::before {
  content: '\a0';
  display: inline-block;
  margin: .2em .5em;
  width: .8em;
  height: .8em;
  line-height: .75em;
  transition: all .5s;
  border: 1px solid silver;
}

input[type="radio"]+label::before {
  border-radius: 50%;
}

input[type="checkbox"]:checked+label::before,
input[type="radio"]:checked+label::before {
  content: '\a0';
  background: var(--fgcolor);
  border: 1px solid var(--bgcolor);
  box-shadow: inset 0 0 0 1px var(--bgcolor), 0 0 0 1px var(--fgcolor);
}

input[type="range"] {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--fgcolor);
  border-radius: 5px;
  width: 100%;
  height: 1px;
  outline: 0;
  margin-top: 7px;
  margin-bottom: 7px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: var(--fgcolor);
  width: 10px;
  height: 16px;
  border-radius: 30%;
  cursor: pointer;
  transition: .3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1);
}

/*************************************************************
    Section: Commonly used elements
*************************************************************/
.reflink {
  position: relative;
  cursor: pointer;
  font-size: 17px;
  margin: 10px 10px 10px 10px;
  padding: 5px 12px 5px 12px;
  transition: all 1s;
  border-top: 1px solid var(--fbalpha0);
  border-bottom: 1px solid var(--fbalpha0);
}

.reflink:hover {
  font-weight: normal;
}

.refblock {
  display: inline-block;
}

.reflink::after,
.reflink::before {
  content: " ";
  width: 0px;
  height: 0px;
  position: absolute;
  border: 0px solid var(--fbalpha0);
  transition: all 0.3s;
}

.reflink::after {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--fbalpha0);
  border-left: 1px solid var(--fbalpha0);
}

.reflink::before {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--fbalpha0);
  border-right: 1px solid var(--fbalpha0);
}

.reflink:hover {
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

.reflink:hover::before {
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  border-bottom: 1px solid var(--fbalpha1);
  border-right: 1px solid var(--fbalpha1);
}

.reflink:hover::after {
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  border-top: 1px solid var(--fbalpha1);
  border-left: 1px solid var(--fbalpha1);
}

.eybutton {
  display: inline-block;
  padding: 0.3em 1.2em;
  margin: 0 0.3em 0.3em 0;
  border-radius: 2em;
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: #FFFFFF;
  background-color: var(--fgcolor);
  text-align: center;
  transition: all 0.2s;
}

.eybutton:hover {
  opacity: 70%;
  cursor: pointer;
}

.nothighlight {
  background-color: #67529c;
}

@media all and (max-width:30em) {
  a.eybutton {
    display: block;
    margin: 0.2em auto;
  }
}

.bouncy {
  animation: bouncy 5s infinite linear;
  position: relative;
}

@keyframes bouncy {
  0% {
    top: 0em
  }

  40% {
    top: 0em
  }

  43% {
    top: -0.9em
  }

  46% {
    top: 0em
  }

  48% {
    top: -0.4em
  }

  50% {
    top: 0em
  }

  100% {
    top: 0em;
  }
}

.slider {
  width: 160px;
}

.center-container {
  margin: auto;
  text-align: center;
}

.centerelem {
  margin: auto;
  display: inline-block;
}

.callout {
  position: fixed;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 90%;
  display: none;
}

.callout-header {
  padding: 5px 5px;
  background: #555;
  font-size: 1.1em;
  color: white;
}

.callout-container {
  padding: 15px;
  background-color: #ccc;
  color: black
}

.closebtn {
  position: absolute;
  top: 5px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.closebtn:hover {
  color: lightgrey;
}

/*************************************************************
    Section: Navigation menu
*************************************************************/
.navbar {
  width: 120px;
  height: 160px;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 17px;
}

.nav-list {
  text-align: left;
  background-color: #eeefed;
  opacity: 0.9;
  visibility: hidden;
  padding: 20px;
}

.change .nav-list {
  top: 30px;
  position: absolute;
  visibility: visible;
  opacity: 0.8;
  transition: visibility 0.1s linear, opacity 0.8s linear;
}

.nav-item {
  color: var(--fgcolor);
  list-style: none;
  margin: 0px;
  text-transform: capitalize;
  letter-spacing: 1.5px;
  margin-top: 10px;
  font-weight: normal;
}

.nav-item:hover {
  font-weight: bold;
  transition: 0.2s;
}

.change .nav-list {
  top: 50px;
  right: 0px;
}

.nav-item {
  letter-spacing: 1.5px;
}

.line {
  width: 100%;
  height: 1px;
  background-color: black;
  transition: all 0.8s;
}

.change .line-1 {
  transform: rotateZ(-45deg) translate(-8px, 6px);
}

.change .line-2 {
  opacity: 0;
}

.change .line-3 {
  transform: rotateZ(45deg) translate(-8px, -6px);
}

.hamburger-menu {
  top: 10px;
  right: 10px;
  width: 35px;
  height: 30px;
  position: fixed;
  top: 50px;
  right: 50px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/*************************************************************
    Section: Some page-specific styles
*************************************************************/
/* home */
#about {
  text-align: justify;
  margin: 20px 10px 20px 30px;
}

#aboutframe {
  display: grid;
  grid-template-columns: auto auto;
}

.ascimgoutsmall {
  padding: 0.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font: 0.5rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 4px;
  color: var(--fgcolor);
  word-wrap: normal;
  border-radius: 0.3rem;
  text-align: center;
}

/* 24 */
.navcontainer {
  display: grid;
  justify-content: center;
  width: 100%;
  grid-template-columns: repeat(auto-fill, 140px);
  grid-gap: 0.2rem;
}

.btnitem {
  display: flex;
  justify-content: center;
  align-items: center;
}

#homecenter {
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 100px;
  text-align: center;
}

.txt24 {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  text-anchor: middle;
  font-family: Verdana;
  font-size: 64px;
  fill: white;
}

.txtop24 {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  text-anchor: middle;
  font-family: Verdana;
  font-size: 128px;
  fill: black;
}

#container24 {
  width: 720px;
  margin: 0 auto;
}

/* projects */
#projects-wrapper {
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-gap: 100px;
}

.project-card {
  border-bottom: 1px solid;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 20px 30px var(--fbalpha9);
}

.project-icon {
  text-align: center;
  padding: 10px;
  width: 120px;
  height: 120px;
}

.project-card:hover {
  transform: translate(3px, 10px);
  box-shadow: 0 20px 30px var(--fbalpha8);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ascii */
.asclabel {
  padding: 2px 4px;
  font-family: verdana;
  font-size: 1rem;
  margin: auto;
}

.asctext {
  flex: 1;
  height: 45px;
  width: 100%;
}

.asctextout {
  padding: 0.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font: 1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
  word-wrap: normal;
  background-color: #f3f6fa;
  border: solid 1px #dce6f0;
  border-radius: 0.3rem;
  text-align: center;
}

.ascimgout {
  padding: 0.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font: 0.5rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
  color: #567482;
  word-wrap: normal;
  background-color: #f3f6fa;
  border: solid 1px #dce6f0;
  border-radius: 0.3rem;
  text-align: center;
}

/* calc */
.calcitem {
  display: flex;
}

.calclabel {
  padding: 2px 4px;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9rem;
  color: #567482;
  border-radius: 0.3rem;
  margin: auto;
}

.calchistory {
  flex: 1;
}

.calccontent {
  flex: 1;
  height: 60px;
}

.invisible {
  color: transparent;
  font-family: Consolas;
}

.error {
  font-weight: bold;
}

.calchelp {
  float: right;
  width: 8em;
  padding: 3px;
}

.calchelptable {
  border: 1px solid black;
  padding: 0px;
  border-spacing: 0px;
}

/* latex */
#latexinput {
  height: 200px;
  margin: 0 auto;
  border: solid 1px var(--fgcolor);
}

#latexoutputbox {
  padding: 50px;
  margin: 0 auto;
}

#latexbuffer {
  display: block;
  min-height: 100px;
}

/* cops */
.gameovercallout {
  position: fixed;
  top: 40%;
  left: 30%;
  width: 40%;
  height: 20%;
  display: none;
}

.gamesetupselect {
  margin-left: auto;
  margin-right: auto;
}

.gamesetupchoice {
  background-color: #eeeeee;
  border: 1px solid green;
  width: 150px;
  text-align: center;
}

.gamesetuphighlighted {
  background-color: #eeeeee;
  border: 3px solid green;
  width: 150px;
  text-align: center;
  font-weight: bold;
}

/* fractal & graph */
.fractal {
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.centerfractaldiv {
  width: 800px;
  margin: 0 auto;
}

.graphctrldiv {
  width: 700px;
  margin: 0 auto;
}

.graphInput {
  font-family: Consolas, 'Courier New', monospace;
}


/* Other pages */
#filebox {
  display: none;
}

.contfrac {
  min-height: 400px;
}

#invgrid {
  left: 0;
  right: 0;
  display: grid;
  grid-gap: 50px;
}

.invgrid1c {
  grid-template-columns: auto;
}

.invgrid2c {
  grid-template-columns: auto auto;
}

.invcard {
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 10px;
  min-width: 150px;
}

.align-right {
  margin: auto 0 auto auto;
}

.align-center {
  margin: auto;
}

.align-left {
  margin: auto auto auto 0;
}

/* The property declarations are required to make the transition work. */
@property --headwidth {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@property --midwidth {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@property --tailwidth {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.infolink {
  margin: 0px 0px 18px 0px;
  padding-left: 30px;
}

.infolink>a {
  --headwidth: 0%;
  --midwidth: 0%;
  --tailwidth: 0%;
  padding: 0px 0px 4px 0px;
  background: linear-gradient(to right, var(--fbalpha1) var(--headwidth), var(--fbalpha0), var(--midwidth), var(--fbalpha0) var(--tailwidth));
  transition: --headwidth 0.6s, --midwidth 0.6s, --tailwidth 0.6s;
  border-radius: 12px;
}

.infolink>a:hover {
  --headwidth: 100%;
  --midwidth: 100%;
  --tailwidth: 100%;
  color: var(--bgcolor);
  font-weight: bold;
}

.infolink>a>span {
  display: inline-block;
  width: 24px;
  height: 24px;
  padding: 0px;
  margin: 0px 5px 0px 0px;
  background: var(--fgcolor);
  color: var(--bgcolor);
  border-radius: 12px;
  transform: translateY(3px);
}

.infolink>a>span>span {
  display: inline-block;
  font-size: large;
  transform: translate(8px, -0.5px);
}

.infodesc {
  margin: 0px 0px 0px 30px;
  color: black;
  font-size: 15px;
}

/** blockchain simulation **/
.blocksection {
  margin: auto;
  background-color: #f8f7f2;
  width: 930px;

  padding: 10px;
  border: 1px solid #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 10px;
  box-shadow: inset -2px -2px 0 #959da5;
}

.panelgrid {
  display: grid;
}

.blockleftpanel {
  grid-column: 1;

  width: 450px;
  background-color: #f2eedc;
  padding: 10px;

  border: 1px solid #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 #959da5;
}

.blockrightpanel {
  grid-column: 2;

  width: 420px;
  background-color: #e2e8ed;
  padding: 10px;

  border: 1px solid #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 6px;
  box-shadow: inset 0 -1px 0 #959da5;
}

.blockpane {
  margin: auto;
  background-color: #f2eedc;

  padding: 10px;
  border: 1px solid #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 10px;
  box-shadow: inset 0 -1px 0 #959da5;
}

.blockpaneTitle {
  font-weight: bold;
  font-size: 12pt;
}

.dbg {
  font-family: monospace, monospace;
  font-size: 8pt;
  padding: 5px;
  min-height: 2em;
}

.dbgHighlight {
  background-color: #e2e8ed;
  min-width: 40em;
}

/*************************************************************
    Section: Journal
*************************************************************/
.entry-wrapper {
  display: block;
  left: 0;
  right: 0;
  display: grid;
  width: 50%;
  grid-template-columns: 100%;
  grid-gap: 50px;
  margin: auto;
}

.entry-title {
  border-bottom: 1px solid;
  text-align: center;
  display: grid;
  grid-template-columns: 100%;
  /*80% 20%;*/
}

.entry-date {
  display: inline-block;
  right: 10px;
  font-size: small;
}

#golpanel {
  z-index: -1;
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: var(--bgcolor);
  opacity: 10%;
}