.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clearfix {
    /*display: inline-block;*/
}

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}

html {
  background-color: black;
  height: 100%;
}

body {
    padding: 0% 2% 1% 2%;
}

@media (min-width: 675px) {
    body {
        padding: 0% 1% 1% 1%;
    }
}


@media (min-width: 440px) {
  .narrow-only {
    display: none;
  }
}


body.working #working {
    background: transparent url('ajax-loader.gif') left top no-repeat;
    position: fixed;
    top: 5px;
    left: 5px;
    height: 12px;
    width: 45px;
    z-index: 1000;
}

#about {
  text-align: left;
}

#about h2 {
  padding-top: 10px;
}

#about p {
    margin-top: 10px;
    margin-left: 5px;
    color: #eee;
    font: 15px/20px courier, monospaced;
    margin-bottom: 20px;
    text-align: justify;
}
#about  {
  max-width: 420px;
}

#about p.source, .small {
    font-size: 10px;
}

@media (min-width: 1080px) {
    #about {
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
      margin-top: 2em;
      margin-bottom: 2em;
    }
    @media (min-height: 700px) {
      #about {
        margin-top: calc(50vh - 20em);
        margin-bottom: calc(50vh - 20em);
      }
    }
    #about .description {
        font-size: 200%;
        text-align: left;
    }

    #about p {
        font: 16px/40px courier, monospaced;
    }

    #about p.source, .small {
        font: 16px/40px courier, monospaced;
    }
  #about p,
  #about h2 {
    max-width: 900px;
  }
}


#about a, #about a:visited, #about a:link {
    color: white;
    text-decoration: none;
}

#about a:hover, #about a:active {
    color: yellow;
    text-decoration: underline;
}

#about p.error {
    color: red;
}

#footer {
}

#footer > p {
  max-width: 420px;
  color: #eee;
  font: 15px/20px courier, monospaced;
  margin-bottom: 20px;
  text-align: justify;
}

#footer a, #footer a:visited, #footer a:link {
  color: white;
  text-decoration: none;
}

#footer a:hover, #footer a:active {
  color: yellow;
  text-decoration: underline;
}


@media (min-width: 860px) {
  #footer {
    columns: 2;
    text-align: left;
  }
}
@media (min-width: 1080px) {
  #footer {
    columns: 2;
  }
}
@media (min-width: 1400px) {
  #footer {
    columns: 3;
  }
}


h2 {
    font: normal 21px ImpactLabelReversedRegular, verdana;
}

h2 a {
    color: #68f;
    text-decoration: none;
}

ul {
  clear: both;
}

ul li {
    float: left;
    background-color: #111;
    width: 78px;
    margin: -1px 0 0 -1px;
    padding: 0;
    cursor: pointer;
}

ul li div {
    border: 1px solid #333;
    padding: 5px;
    text-align: center;
    cursor: default;
    height: 71px;
    overflow: hidden;
    text-overflow: ellipsis;
}
ul li span {
    display: none;
    font-size: small;
    color: #999;
}

samp {
  margin: 0;
  padding: 0;
  background-color: #ccc;
  border: 1px solid #333;
  font-size: 50px;
  color: #333;
  display: block;
  line-height: 1.4;
  min-height: 70px;
  box-shadow: 2px 2px 5px #999 inset;
}

@media (min-width: 600px) {
    ul li {
      width: 25%;
    }
    ul li div {
      height: 100px;
    }
    ul li span.num {
      padding-top: 5px;
      font-family: courier, sans-serif;
      font-weight: bold;
      display: block;
    }
    ul li:hover span {
      color: white;
    }
}

@media (min-width: 720px) {
  ul li {
    width: 20%;
  }

  ul li div {
    height: 150px;
  }

  ul li span.desc {
    display: none;
  }

  ul li span.desc.d1 {
    font-style: italic;
    display: block;
  }
}

@media (min-width: 780px) {
    ul li {
      width: 16.66%;
    }
}


@media (min-width:900px) {
  ul li {
    width: 12.5%;
  }
  ul li div {
    height: 155px;
  }
  ul li span.num {
    font-size: medium;
  }
}

@media (min-width:1050px) {
  ul li {
    width: 11.1%;
  }
  ul li div {
    height: 160px;
  }
}
@media (min-width:1200px) {
  ul li {
    width: 10%;
  }
}
@media (min-width:1300px) {
  ul li {
    width: 8.3%;
  }
}

@media (min-width:1600px) {
  ul li {
    width: 7.14%;
  }
}

@media (min-width:1950px) {
  ul li {
    width: 6.66%;
  }
}

@media (min-width:2100px) {
  ul li {
    width: 6.25%;
  }
}

@media (min-width:2400px) {
  ul li {
    width: 5.55%;
  }
}


ul li.selected div {
    background-color: #68f;
    color: #fff;
  border-color: #999;
}

ul li.selected div samp, ul li:hover div samp {
    background-color: #fff;
    color: #000;
}

ul li.selected span {
    color: #fff;
}

@media (max-width: 600px) {
}

.show-more {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    height: 40px;
    text-align: center;
    font-family: courier, mono-spaced;
    color: gray;
    background-color: #181818;
}
.show-more:hover {
    color: white;
    background-color: #333;
}




#font-controls {
  z-index: 1000;
  background-color: transparent;
  font-size: x-large;
  padding-right: 10px;
}
#font-controls>div {
  float: left;
  color: #777;
  padding: 5px 5px;
  cursor: pointer;
}


#font-controls>#font-button {
  /*padding-right: 20px;*/
}
#font-button.open {
  background-color: #111;
  border: 1px solid #333;
  border-bottom-width: 0;
}
@media (min-width: 750px) {
  #font-controls {
    position: fixed;
    right: 0;
    bottom: 0;
  }
  #font-button.open {
    border: none;
    background-color: transparent;
  }
  #font-controls:hover {
    background-color: black;
    border-top: 1px solid #555;
    border-left: 1px solid #999;
    padding-left: 10px;
    padding-top: 5px;
  }
}

#font-button.open, #font-button:hover {
  color: #fff;
}

#font-family {
  display: none;
  color: white;
  font-size: medium;
  opacity: .9;
  padding: 10px;
  background-color: #222;
  border: 1px solid #333;
  line-height: 24px;
  width: 15em;
  z-index: 1001;
  max-height: 90%;
  overflow-y: auto;
}

@media (min-width: 750px) {
  #font-family {
    line-height: 18px;
    background-color: black;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 5px 10px 45px 10px;
    text-align: right;
    border-top: 1px solid #333;
  }
}

#font-family ol {
  color: #999;
    z-index:100;
  font-family: courier, mono-spaced
}

#font-family ol li {
  display: block;
  padding-right: 10px;
  color: #68f;
  cursor: pointer;
}



@media (max-width: 600px) {
  .hide-on-narrow {
    display: none;
  }
}

.even-more {
  display: none;
}


#zoom-mask, #zoom {
  position: absolute;
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  margin: auto;
}
#zoom-mask {
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background-color: black;
}
#zoom {
  left: 50%;
  top: 50%;
  height: 320px;
  width: 300px;
  margin-top: -170px;
  margin-left: -150px;
  border: 10px solid #68f;
  background-color: #68f;
  overflow: hidden;
}

#zoom span.desc:hover {
  cursor: pointer;
  text-decoration: underline;
}

.close {
  left: 50%;
  top: 50%;
  height: 40px;
  width: 170px;
  margin-top: -185px;
  position: fixed;
  background-color: transparent;
  z-index: 2000;
  cursor: pointer;
}
.close div {
  position: absolute;
  right: 0;
  top: 0;
  background-color: #68f;
  color: white;
  border-radius: 20px;
  line-height: 34px;
  width: 40px;
  height: 40px;
  font-size: 35px;
  font-family: verdana;
  text-align: center;
}

#zoom samp {
  cursor: copy;
  font-size: 100px;
  background-color: white;
  text-align: center;
  line-height: 1.2;
  border: 2px solid #333;
  box-shadow: 2px 2px 5px #999 inset;
  padding-bottom: 0;
}

#zoom div span {
  display: block;
  font-size: medium;
  color: white;
  text-align: center;
  font-style: italic;
}

#zoom div span.desc {
  display: inline;
  opacity: 0.5;
  padding: 0 0 5px 0;
}
#zoom div span.desc:after {
  content: ',';
  padding: 0 4px 0 0;
  opacity: 0.5;
}


#zoom div span.desc:last-child {
  background-color: #68f;
  position: absolute;
  opacity: 0.5;
  bottom: -5px;
  right: 0;
}

#zoom div span.desc:last-child:after,
#zoom div span.desc:nth-last-child(2):after,
#zoom div span.desc.d1:after {
  content: '';
  padding: 0;
}



#zoom div span.d1 {
  font-size: x-large;
  text-align: center;
  display: block;
  opacity: 1;
}

#zoom div span.num {
  font-family: courier, monospaced;
  font-style: normal;
  cursor: copy;
}

@media (min-width: 600px) {
  #zoom {
    height: 500px;
    width: 400px;
    margin-top: -250px;
    margin-left: -200px;
    box-shadow: 3px 3px 7px #444;
    border-width: 15px;
  }

  #zoom samp {
    font-size: 140px;
    font-size: 126px;
    line-height: 180px;
    border: 4px solid #333;
    box-shadow: 4px 4px 5px #999 inset;
  }
  #zoom div span {
    font-size: xx-large;
  }

  #zoom div span.desc {
    font-size: x-large;
  }

  #zoom div span.desc.d1 {
    font-size: xx-large;
  }

  #zoom div span.desc:last-child {
    right: 10px;
  }

  .close {
    height: 40px;
    width: 220px;
    margin-top: -270px;
  }
}

@media (min-width: 900px) {
  #zoom samp {
    margin: 0 -10px;
  }
  #zoom>div {
    padding: 0 10px;
  }
  #zoom div span.desc:last-child {
    bottom: 0px;
    right: 15px;
  }

}

.floating-confirmation {
  position: absolute;
  z-index: 9999;
  color: cornflowerblue;
  background-color: lightyellow;
  font-family: verdana;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  cursor: wait;
  box-sizing: border-box;
  border: 1px solid black;
}
