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

/* ==========================================================================
   lINGUP GRALS
   ========================================================================== */
/*fin */
*{
    padding: 0;
    margin:0;
    box-sizing: border-box;
    text-decoration: none;
}

 body {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    background-image: url(../img/bck.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;
    overflow-y: scroll;
}
.brand{
    max-width: 1280px;
    display: flex;
    margin: auto;
    padding-top: 2%;
    padding-bottom: 5px;  
    justify-content: space-between; 
    align-items: center;
}
.brand .header{
    min-width: 244px;
height: 60px;
background: #fff;
border-bottom: none;
}
img.brand-logo{
    width: 20%;
    max-width: 100px;
}
/* 
    font-family: 'Acme', sans-serif;
    font-family: 'Francois One', sans-serif;
    font-family: 'Patua One', cursive;
 */
/*grilla desktop*/
    .home
    {
        display: grid;
        grid-template-columns:auto;
        max-width: 1280px;
        margin: auto;
    }
    .home-menu>.header
    {
    border-top: 0px;
    padding: 2px 0;
    background:#2d3436;;
    border-left: 1px #000 solid;
    }
    .home-menu>.header>.options
    {
        width: 100%;
        align-self: center;
        display: flex;
        justify-content: flex-end;
        flex-direction: row; 
    }
    .home-menu>.header>.logo img{
        width: 150px;
    }
    .home-menu>.header>.options>a.home-icon{
        display: none;
    }

    .home-menu>.header>.options>a.codegen{
        display: flex;
    }

    .lvls-box
    {
        padding: 10px 0;
    }

    .main-box {
    display: flex;
    max-width: 1280px;
    max-height: 800px;
    margin: auto;
    height: 85%;
    box-shadow: 0px 0px 10px gray;
    }

    aside{
    width: 20%;
    background-color: whitesmoke;
    }

.header-box{
    grid-area: header;
}
.header-box img{
    display: none;
}
.sidebar-box{
    overflow: hidden;
    grid-area: aside ;
}

.lesson-box {
width: 80%;
}
/*fin*/



input,button, a.btn{
font-family: roboto;
font-weight: bold;
height: 45px;
text-align: center;
padding: 5px;
/*width: 250px;*/
border:none;

}
button, a.btn{
   text-transform: uppercase;
   border-radius: 3px;
}
input{
    border-radius: 45px;
border: 1px solid #bdbdbd; 
 }
.btn-next{
background-color: #15cc9a;
color: white;
font-size: 18px;
}

.actions{
	width: 100%;
	display: flex;
	justify-content: space-evenly;
}

.display-result-bottom>.actions>.result-btn
{
	width: 33%;
	height: 54px;
	min-width: 120px;
	max-width: 200px;
}

.result-btn
{
	background: #fdcb6e;
	border-radius: 5px;
	border: 1px #e17055 solid;
	text-transform: uppercase;
	font-weight: bold;
	font-family: roboto;
	color: #d63031;
	box-shadow: 1px 3px 1px #e17055;
	font-size: 18px;


	display: flex;
	justify-content: center;
	align-items: center;
	

}

.big{
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2rem;
}
.circle{
border-radius: 50%;
}
.stars{
color: #ffd54f;
text-shadow: 1px 2px #e4be46;
}
[class*="coverall"]{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-between;
    z-index: 2;
}
[class$="-white"]{
    background-color: rgba(255,255,255,0.6);
}
[class$="-miss"]{
    background-color: rgba(214,48,49,0.6);
}
[class$="-ok"]{
    background-color: rgba(85,239,196,0.6);
    transition: all .3s ease;
}

.hidden {
    display: none !important;
}
.invisible {
    visibility: hidden;
}

/* ==========================================================================
   START OF FINAL PAGE STYLES
   ========================================================================== */
   .done-container{
    display: grid;
grid-template-columns: auto;
height: 100vh !important;
align-content: center;
}
.done-box{
    display: flex;
    background: white;
    padding: 10px;
    margin: 10px auto;
    width: 90%;
    box-shadow: 1px 1px 3px #636e72;
    border-radius: 3px;
}
.done-trophy img{
    width: 300px;
}
.done-content{

}
.done-content h1{
    font-family: roboto;
    text-transform: uppercase;
}
.done-content p{
    padding: 20px;
    font-family: open sans;
    font-weight: regular;
}
.module-done{
    margin: 20px auto;
    display: flex;
    justify-content: space-evenly;
    font-family: roboto;
    font-weight: bold;
    font-size: 1.7rem;
}
.lvl-circle{
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6c5ce7;
    border-radius: 50%;
    border: 3px solid #00cec9;
    color: white;
}


.done-stars>i{
    font-size: 4rem;
}

.alert{
    background: #ff7675;
    color: #d63031;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */
   @media screen and (max-width: 768px){
    body{
        background-size: 120%;
        height: auto;
        width: auto;
    }

    .brand .header{
        position: fixed;
        right: 0;
    }

    .main-box{
        flex-wrap: wrap;
    }
    aside{
        width: 100%;
    }
   
    .lesson-box{
        width: 100%;
        height: 500px;

    }

    .link-box h3{
        font-size: 12px;
        font-family: "roboto";
        color: #333;
    }

    .link-box p{
        display: none;
    }
    .display-result .stars
    {
        font-size: 3rem !important; 
    }
    .percent>h1
    {
        font-size: 3rem !important;
    }

    .percent p{
        color: white;
        text-shadow: 0px 0px 1px #333;
    }
    
    .img-group
    {
        width: 100% !important;
        grid-gap: 5px !important;
    }
    .hidden-xs{
        display: none !important;
        
    }
    .admin-content{
        padding: 0px;
        width: 100%;
    }
    .home{
        grid-template-columns: auto;
    }
    .home-menu>.header>.options
    {
        flex-direction: row;
    }
}
/*
 * Hide visually and from screen readers
 */



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



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


/* ==========================================================================
   CARD STYLES
   ========================================================================== */

   .cards-container{
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    grid-gap: 10px;
    justify-content: center;
}
.card{
    width: 100%;
    max-width: 480px;
    min-width: 240px;
    padding: 5px;

    background-color: white;
}
.card-content{
    /*background-image: url(../img/card-bg.jpg);*/
    background-size: cover;
background-color: #55efc4;
color: #2d3436;

}
.card-content img{
    width: 100%;
    max-width: 320px;
    margin: auto;
    padding: 15px;
    margin-bottom: 10px;
}
.card-content p{
font-size: 11px;
font-family: roboto;
line-height: 11px;
padding: 2px;
color:white;
background: #2d3436;
}
.card-content h1{
    margin: 20px auto;
    padding: 15px;
    width: 70%;
    background-color: white;
    font-size: 2em;
    letter-spacing: 2.5pt;
    font-family: "consolas";
    

    color: #2d3436;
}