/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

 
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    font-size: 1em;
    line-height: 1.4;
    font-family:'Open Sans', helvetica, arial, sans-serif;

}


a {
  color:#111824;
  text-decoration: none;
}
/*
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
}

::selection {
    background: #b3d4fc;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}




 /* ==========================================================================
   Author's custom styles
   ========================================================================== */
















 /* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

 
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

   @media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/*===== Simple Token Standings ======*/

/*credit: https://www.behance.net/gallery/58852705/Flat-Space-Background-Free-JPG-PSD*/

#ajax-loader {
  background:transparent url('../img/ajax-loader.gif') no-repeat center center;
  width:100px;
  height:100px;
  position:absolute;
  z-index:999;
  left:50%;
  margin-left:-50px;
  top:400px;
}
body {
  background:#fff;
}
header {
  padding:2em 1em;
}

header .logo {
  width:33px;
  margin:0 auto;
}

header, footer {
  color:#111824;
  font-family:'Open Sans', helvetica, arial, sans-serif;
}
header h1 {
  font-weight:800;
  margin:0.25em 0 0;
}
header p {
  font-weight:400;
  margin:0.25em 0 .5em;
}

header a {
  color:#62BC70;
  font-family:georgia, serif;
  text-decoration: none;
  font-style:italic;
  display:block;
  margin-bottom:10px;
}

header a:hover {
  text-decoration: underline;
}

ul.tabs{
  margin: 0px;
  padding: 0px;
  list-style: none;
  text-align:center;
  margin-top:1em;
  margin-bottom:1em;
}
ul.tabs li{
  background: none;
  display: inline-block;
  padding: 10px 15px;
  cursor: pointer;
  background:transparent;
  border:2px solid #fff;
  border-radius:30px;
  padding:8px 15px;
  color:#111824;
  font-weight:bold;
  cursor:pointer;
  margin:2px 5px;
  font-size:13px;
        1px 2px 5px rgba(0,0,0,0.12),
        1px 3px 5px rgba(0,0,0,0.12);

}

ul.tabs li.current{
  color:#e48267;
  border-color:#e48267;
}

.tab-content{
  display: none;
}

.tab-content.current{
  display: inherit;
}



.rankings .rank {
  display:flex;
}

/*.rankings .rank * {
  flex:1;
}*/

/*columns should match up to 600px*/

.col1 {
  flex-basis:40px;
}

.col2 {
  flex-basis: 210px;
}

.col3 {
  flex-basis: 100px;
}

.col4 {
  flex-basis: 250px;
}
/* this doesnt work on html2canvas
.col3 h4::first-letter {
  padding-right:5px;
}*/

.col2 h4, .col3 h4 {
  font-weight:600;
}

.col2 h3, .col3 h3 {
  color: #6a717f;
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

.col3 h5, .col3 h6 {
  padding:0;
  margin:0;
}
.col3 h6 {
  font-weight:400;
}

.col3 h3.red {
  color:#f90000;
}

.col3 h3 {
}

.col3 h3.green {
  color:#09c08e;
}


.rankings .rank h4, .rankings .rank h3 {
  padding:0;
  margin:0;
}
.rankings .rank a {
  color:#111824;
  text-decoration: none;
}
.rankings .rank a:hover, .rankings .rank a:focus {
  
}
/*.rankings .rank .symbol {
  padding:
  margin:0;
  color:#6a717f;
  display:inline-block;
  font-size:13px;
  font-weight:400;
  text-transform:uppercase;
}
*/
.rankings .rank .position span {
  border:1px solid #fff;
  border-radius:50%;
  padding:0;
  width:38px;
  height:38px;
  text-align:center;
  display:inline-block;
  line-height:2;
}



.rankings {
  width:600px;

}
.rankings .rank {
  border-bottom:1px solid #f3f3f3;
  /*margin-bottom:1em;
  margin-top:1em;*/
  padding:1em 0;
}

.rankings .rank:last-child {
  border-bottom:0;
}

.rankings button {
  text-align:right;
  border:0;
  background:#00c78d;
  color:#fff;
  font-weight:700;
  padding:12px 35px;
  text-transform:none;
  font-weight:600;
  border-radius:5px;
  display:inline-block;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 4px 0px;
}

.rankings button.hide {
  display:none;
  visibility: hidden;
}

.rankings button:hover, .rankings button:focus {
  border:0;
  outline:none;
}

.alignright {
  text-align:right;
}

#output {
  background:#01c100;
  width:620px;
}

#output canvas {
  padding:10px;
}

#reminder {
  margin-top:100px 5px;
  padding:0 10px;
  font-size:32px;
}

#reminder h3 {
  margin-bottom:00px;
}
#reminder small {
  font-size:18px;
  color:#777;
  display:inline-block;
  margin-bottom:10px;
}
footer {
  padding:2em 1em;
}
footer a {
  color:#111824;
  display:block;
  margin:0.35em 0 0.35em;

}

footer a.alt {
  color:#60BC70;
}

footer .badger-button {
  background:#F59331;
  color:#111824;
  border-radius:5px;
  padding:0.5em 1em;
  border:0;
  margin-bottom:0.5em;
  font-size:15px;
  cursor:pointer;
}

footer .badger-button:hover, footer .badger-button:focus {
  background:#FF8007;
}


/*===== MEDALS =====*/
/*credit: https://codepen.io/Mobilpadde/pen/jakfi*/


.icon {
  width:32px;
  height:32px;
  background:#fff;
  padding:2px;
  margin:3px 8px 0 0;
  opacity:0;
  color:transparent;
  text-indent:-9999px

}