/**
* Reset styling
**/
button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

a {
    color: inherit;
}

/**
* General styling
**/
html, body {
    margin: 0;
    padding: 0;
    height: 100%
}

body {
    background-color:#f6f6f6;
    font-size:16px;
    font-family: 'Lato', sans-serif;
}

.main {
    padding-bottom:200px;
}

.wrapper {
    margin: 0 auto 0 auto;
    width: 90%;
    padding: 0 2rem;
    max-width: 700px;
}

#header nav {
    float:right;
    padding:0.4rem;
    margin-top:0.5rem;
    font-size:1rem;
    color:#666;
}
#header nav a {
    padding: 0.2rem;
    text-decoration-style: dotted;
}
#header nav sup{
    color: #ff1eb2;
}

.logo {
    font-family: 'Patua One', serif;
    font-size: 2rem;
    font-weight: normal;
    border-bottom:3px solid #F5ED00;
    padding: 0.4rem 1rem;

}

.logo a {
    text-decoration:none;
}

.cookiebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    color:#fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:1.1rem;
 }

 .cookiebar p{
    padding:1rem;
    background: rgba(0, 0, 0);
 }

 .cookiebar button{
    margin:1rem 2rem;
 }

/**
* Text content styling
**/
.text-content {
    font-size: 1.1rem;
}

.text-content h1{
    padding: 2rem 2rem 0.1rem 1rem;
    font-size: 1.6rem;
    margin: 0;
}
.text-content h2{
    padding: 2rem 2rem 0.2rem 1rem;
    font-size: 1.4rem;
    margin: 0;
}
.text-content p{
    padding: 1rem 1rem;
    margin: 0;
}
.text-content p.in-text{
    padding-top: 0.2rem;
}
.text-content ul{
    list-style: square;
}
.text-content ul, .text-content ol{
    padding: 1rem 4rem;
    margin: 0;
}

.text-content li{
    margin-bottom: 1rem;
}

.box {
    display: inline-block;
    border-radius: 6px;
    background-color: #fff;
    width:45%;
    box-shadow: 3px 3px 10px 0px rgba(0,0,0,0.3);
    margin: 1rem 0 1rem 1rem;
}

.box strong{
    font-weight: 900;
}

.box a.text{
    color: #b60078;
}

.me {
    width: 20%;
    margin-left:2rem;
    float:right;
}

/**
* Questions styling
**/
.question {
    margin-top:0.4rem;
    display:none;
    padding: 1rem;
}

.question.active {
    display:block;
}

.question .text {
    font-size: 1.3rem;
    padding: 0;
    margin:0;
}

.question label {
    cursor:pointer;
}

.question label input{
    margin-right: 0.4rem;
}


.question .subtext {
    font-size: 1.1rem;
    font-style: italic;
    display: block;
    padding-top: 0.6rem;
}

.question .answers {
    font-size: 1.1rem;
    list-style: none;
    margin-top: 1.2rem;
    padding: 0;
}

.question .answers li {
    padding: 0.6rem 0;
}

.question .answers textarea {
    height:12rem;
    width:100%;
}

/**
* Timer styling
**/
.clock {
    color: #666;
}
.clock p{
    padding-left: 1rem;
    margin-bottom: 0;
}

.clock .days {
    display:none;
}

.clock.last-five-minutes {
    color: rgb(196, 44, 90);
    font-weight: 800;
    text-decoration: underline;
}

/** 
* Loading
*/
.loading-img {
    width:100%;
}
.loading-text {
    text-align: center;
    font-weight: bold;
    background-color: #ecf0f1;
    font-size:1.2rem;
    margin:0;
    padding: 1rem;
}

/**
* Summary styling
**/
.summary-content {
    padding: 1rem;
}

.percentages .number {
    font-weight:bold;
    font-size: 4em;
}

.percentages .bar {
    width:66%;
    border: 2px solid #333;
    padding: 5px 5px 0 5px;
}

.percentages .bar-correct {
    height: 1.2rem;
    display: inline-block;
    background-color: rgb(44, 196, 94);
    min-width: 2%;
    margin:0;
}
.percentages .bar-open {
    height: 1.2rem;
    display: inline-block;
    background-color: rgb(44, 128, 196);
    min-width: 2%;
    margin:0;
}
#summary .oq {
 font-weight: bold;
 border-bottom: 2px solid rgb(44, 128, 196);
}

#summary .mq {
    font-weight: bold;
    border-bottom: 2px solid rgb(44, 196, 94);
}

/**
* Results styling
**/
#results .question {
    display:block;
}

.question.true {
    background-color: #dfffdf;
}

.question.false {
    background-color: #fbd1d1;
}

.question.open {
    background-color: #cee6ffbf;
}

.question.open strong {
    font-weight: 800;
}

.question.open .keyAnswer {
    background-color:rgb(0, 133, 44);
}

.question .noAnswer {
    text-decoration: underline;
    text-decoration-color: rgb(133, 0, 0);
}

li.correct {
    text-indent: 2rem;
    background: url('../img/icon-green-mark.svg') no-repeat;
    background-size: 1.4rem;
    background-position: 0 0.4rem;
    text-decoration: underline;
    text-decoration-color: rgb(0, 133, 44);
}

li.incorrect {
    text-indent: 2rem;
    background: url('../img/icon-red-mark.svg') no-repeat;
    background-size: 1.4rem;
    background-position: 0 0.4rem;
    text-decoration: underline;
    text-decoration-color: rgb(133, 0, 0);
}

.explanation strong {
    font-weight: 800;
}


/**
* progress bar styling
*/
.progress {
    display:flex;
    height:2rem;
    align-items: center;
    color: #666;
    margin: -1rem 0 2rem 0;
}

.pbar {
    display: inline-block;
    width:50%;
    border:1px solid #999;
    padding:2px 2px 2px 2px;
    font-size: 8px;
    margin-left:1rem;
}
.pbar .pbar-progress {
    display: inline-block;
    background-color: #8fefff;
    height:0.6rem;
    vertical-align: middle;
}

/**
* Control links styling
**/
.controls {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.next {
    display:inline-block;
    padding: 1rem;
    background-color: #00e9e9;
    font-weight: bold;
    color:#333;
    text-decoration: none;
    border-radius: 5px;
}

.next:hover {
    background-color: #7cfdfd;
}

.next.finish {
    background-color: #fd7cd2;  
}

.next.finish:hover {
    background-color: #ffa9e2;  
}

.prev {
    float:left;
    color:#666;
    text-decoration: underline;
}

.bookmark {
    color: #666;
}
.bookmark button {
    text-decoration: underline;
}

.bookmark.bookmarked button {
    color:#000;
    font-weight:bold;
}
.bookmark.bookmarked button:before
{
    content: "un";
}

/**
* Questions navbar
*/
#question-nav{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    color:#666;
    margin-top:2rem;
    font-size:0.8rem;
}
#question-nav em{
    font-style: normal;
    margin-right:0.2rem;
}

#question-nav button{
    border:1px solid#666;
    min-width:30px;
    padding: 0.2rem 0.2rem 0 0.2rem;
    margin: 0.4rem;
    text-align: center;
}

#question-nav .active{
    background-color: #8fefff;
}

#question-nav .bookmarked{
    background-color: #F5ED00;
    font-weight:bold;
    color:#000;
}

#question-nav .bookmarked:after
{
    content: "*";
}

#question-nav button:hover{
    color:#000;
    border:1px solid#000;
}


/**
* Footer
*/
.footer {
    border-top: 2px solid #ccc;
    margin-top: 2rem;
}
.footer p {
    padding: 1rem 1rem 0 1rem;
    font-size: 0.9rem;
    color: #666;
}

.sticky-bottom {
    position: sticky; 
    bottom: 0;
    text-align:right;
    background-color: rgba(87, 87, 87, 0.2);
    padding: 1.4rem 0.4rem 0.4rem 0.4rem;
}

@media only screen and (max-width: 700px) {

    .wrapper {
        margin: 0 auto 0 auto;
        width: 100%;
        padding: 0rem;
    }

    .text-content {
        font-size: 1.1rem;
    }
    
    .text-content h1{
        padding: 2rem 1rem 1rem 1rem;
        font-size: 1.8rem;
        margin: 0;
    }
    
    .text-content p{
        padding: 1rem;
        margin: 0;
    }
    
    .text-content ul{
        padding: 1rem 2rem;
        margin: 0;
        list-style: square;
    }

    .clock {
        margin-top:1rem;
        margin-right:0.4rem;
    }

    .box {
        text-align:center;
        display: block;
        width:80%;
        margin:1rem auto 2rem auto;
    }


    .cookiebar button{
        display:block;
        margin:1rem 0;
     }

     #header nav {
        margin-top:0;
     }


}

/** things that take precedence*/
.hide {
    display:none !important;
}
