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

/*
 * 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 {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * 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;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * 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
   ========================================================================== */


/* ==========================================================================
   Kong design
   ========================================================================== */
   html {
       font: normal 14px/11px 'Lucida Grande',Verdana,Arial,sans-serif;
   }
   * {
    margin:0;
    padding:0;
    box-sizing: initial;
   }
   .badge {
    position:relative
   }
   .badge img {
    border:0
   }
   .badge_image {
    width:44px;
    height:44px
   }
   .badge_image img {
    width:36px;
    height:36px;
    margin:4px
   }
   .badge_border {
    width:44px;
    height:44px;
    position:absolute;
    top:0;
    left:0
   }
   .badge_border span {
    width:44px;
    height:44px
   }
   .badge_border .complete {
    background-position:0 -775px
   }
   .badge_border .incomplete {
    background-position:0 -731px
   }

   .spriteall {
    display:block;
    text-indent:-9999px
   }
   .spritegame {
    background:transparent url(https://kongbadges.rahner.me/img/gamepage_sprite.png) no-repeat 0 0
   }
   .spritesite {
    background:transparent url(https://kongbadges.rahner.me/img/gamepage_sprite.png) no-repeat 0 0
   }
   
   .badge_row {
    position:relative;
    width:337px;
    height:60px;
    overflow:hidden;
    margin-bottom:2px;
    background-color:#FFF;
    padding:10px;
    margin-right:2px;
    font:normal 11px Verdana,Arial,sans-serif;
    cursor:pointer
   }

   .badges_set2 {
    clear:both
   }

   .badges_set2 .badge_row {
    float:left
   }

   .truncate_one_line,.truncate {
    display:inline-block;
    overflow:hidden;
    text-overflow:ellipsis;
    -o-text-overflow:ellipsis;
    white-space:nowrap
   }

   .clear {
    clear:both
   }

   .badge_row .badge {
    float:left;
    margin-right:9px
   }
   .badge_row .badge_details>a {
    color:#222;
    font-weight:bold;
    max-width:250px;
    text-decoration:none;
    vertical-align:text-bottom
   }
   .badge_row .badge_details em.badge_level {
    position:absolute;
    top:10px;
    right:52px
   }
   .badge_completed {
    background-color:#EFEFEF;
    color:#5b5b5b
   }
   .badge_completed .badge_details a {
    color:#5f5f5f;
    max-width:208px;
    text-decoration:none
   }
   .badge_completed:hover .badge_details>a {
    color:#222
   }
   .badge_completed .badge_details em.completed {
    color:#888888
   }

   .badge_details em.badge_level {
    color:#666;
    display:block;
    height:11px;
    text-indent:-9999px
   }
   .badge_details em.easy_difficulty {
    width:30px;
    background-position:0 -1770px
   }
   .badge_details em.medium_difficulty {
    width:35px;
    background-position:0 -1781px
   }
   .badge_details em.hard_difficulty {
    width:36px;
    background-position:0 -1792px
   }
   .badge_details em.impossible_difficulty {
    width:36px;
    background-position:0 -1803px
   }
   .badge_details em.awarded_count {
       display: block;
       position: absolute;
       top: 10px;
       right: 8px;
       width: 30px;
       border: 1px solid #ddd;
       float: right;
       border-radius: 4px;
       background: #ddd;
       padding: 0px 5px 0px 5px;
       text-align: center;
       font-size: 8px;
   }
   .category_listing {
    width:728px;
    float:left
   }

   .category_badges_listing {
    background-color:#DDD;
    padding:4px 4px 4px 6px
   }
   .category_badges_listing>span {
    display:block;
    padding:2px 5px;
    font:normal 11px Verdana, Arial, sans-serif
   }
   a:link,a:visited {
    color:#900;
    outline:none
   }
   a:hover,a:focus {
    color:#600;
    text-decoration:underline;
    outline:none
   }
   a img {
    border:0
   }

   .filter_menu {
       width: 176px;
       float: left;
       padding:4px 4px 4px 6px
   }

   .browser_sprite {
    background:transparent url(https://cdn1.kongcdn.com/compiled-assets/shared/browser_sidebar-99f5b4ad837aca0977b714f88a6bfd50.png) no-repeat 0 0
   }

   .browser_categories h3 {
    font:bold 13px/31px 'Lucida Grande',Verdana,Arial,sans-serif;
    text-transform:uppercase;
    width:176px;
    height:31px;
    color:#FFF;
    padding-left:6px
   }

   .man {
    margin-top:0 !important
   }

   .browser_categories {
       background-color: #333;
   }
   .browser_categories ul, .browser_gamegroups ul {
    background-color:#333;
    padding:4px 0;
    list-style:none;
    border-radius: 10px;
   }
   .filter_menu ul li {
    display:block;
    background-position:100px 100px;
    font:normal 12px/14px 'Lucida Grande',Verdana,Arial,sans-serif;
    height:auto;
    padding:6px 6px 5px 6px;
    color:#FFF;
    outline:none;
   }
   .filter_menu ul li a {
    color:#FFF;
    background-position:100px 100px;
    float: left;
    max-width: 125px;
   }
   .filter_menu ul li a:hover {
    color:#fac638;
    text-decoration:none
   }
   .filter_menu ul li.active {
    background-color:#0f0f0f;
   }
   .filter_menu ul li.active.desc a::after {
    content: " ⇓";
   }
   .filter_menu ul li.active.asc a::after {
    content: " ⇑";
   }
   .filter_menu ul li.active a {
    color:#fac638;
    text-decoration:none
   }


   .filter_menu li span {
       font-size: 10px;
       color: #ccc;
       float: right;
   }

    #username-input-group {
        display: inline-block;
        position: relative;
    }
    .browser_categories input {
        width: 70%;
        margin: 10px 6px 5px 6px;
        border-radius: 5px;
        position: relative;
        height: 20px;
    }

   .username-input-overlay {
       margin: 10px 6px 5px 6px;
       padding: 2px;
       border-radius: 0px 5px 5px 0px;
       position: absolute;
       text-align: center;
       left: 60%;
       top: 0;
       width: 10%;
       height: 20px;
       color: #000000;
       display: none;
   }

   .username-input-overlay.ok {
        background-color: rgba(0, 255, 0, 0.6);       
   }
   .username-input-overlay.error {
        background-color: rgba(255, 0, 0, 0.6);       
    }
    .username-input-overlay.loading {
        background-color: rgba(255, 255, 0, 0.6);       
    }

    .glyphicon.normal-right-spinner {
        -webkit-animation: glyphicon-spin-r 2s infinite linear;
        animation: glyphicon-spin-r 2s infinite linear;
    }

    @keyframes glyphicon-spin-r {
        0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
        }
    
        100% {
            -webkit-transform: rotate(359deg);
            transform: rotate(359deg);
        }
    }
    
    .tags {
        line-height:0 !important;
        overflow:hidden;
        padding-top: 5px;
        padding-bottom: 5px;
       }
    .tags .tag {
        display:inline-block;
        float:left;
        list-style:none;
        margin:0 2px 2px 0 !important
    }
    .tags .tag .term,.tags .tag .term:link,.tags .tag .term:visited {
        background-color:#ddd;
        color:#222;
        display:block;
        font:normal 11px/14px Arial,Helvetica,sans-serif;
        margin:0;
        padding:0 4px;
        text-rendering:optimizeLegibility;
        text-decoration:none;
        text-transform:uppercase;
        white-space:nowrap
    }
    .tags .tag a.term:hover {
        background-color:#999;
        color:#fafafa
       }

    .easy-autocomplete input {
        padding: 0px !important;
    }

/* ==========================================================================
   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;
        text-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;
    }
}
