@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Asterisk wildcard selector to override default styles added by the browser */
* {
    padding: 0;
    margin: 0;
    /*height/width applied to whole element to include borders*/
    box-sizing: border-box;
}

/*html { height: 100vh;}*/
body {
    /*set footer at bottom:*/
    display: flex;
    flex-direction: column;
    font-weight: 200;
}

.truth {
    background: url('../images/background-2.png') center fixed repeat-y;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;    
}

.bgLightMode {
    background: url('../images/background-2.png') center fixed repeat-y;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;     
}


/*NAVBAR*/

#navIndex,
#navError {
    /*background-color: rgba(0, 0, 0, 0.8);*/
    padding: 7px 4%;
    /*position: fixed;
    top: 0;
    left: 0;
    right: 0*/;
    width: 100%;
    justify-content: space-between;
    height: 60px;
}

#navIndex {
    display: none;
    visibility: hidden;
}

#navError {
    display: flex;
}

#logo { /*only shows on devices max.767px, but width is specified here so is only reduced in @media max-width 280px and doesn't conflic with max-767px as rest of code is set*/
    /*width: 200px;*/
}

#logo1 {
    float: left;
    width: 200px;
    vertical-align: middle;
    width: 200px;
    margin-left: 0;
}

/* contains fontawesome icon fa-bars */
#list_symbol {
    margin-right: -7px;
    border-style: solid;
    border-color: #f94217;
    border-width: 2px;
    border-radius: 3px;
    padding: 0 10px;
    transition: color 0.5s linear;
}

/* style fontawesome icon fa-bars */
#list_symbol .fa-bars {
    color: #f94217;
    transition: color 0.5s linear;
}

#list_symbol .fa-bars:hover {
    color: whitesmoke;
}

#list_symbol:hover {
    border-color: whitesmoke;
}

/*end of fa-bars personal styling*/


/* Below RESPONSIVE NAVBAR Adapted from:
attribution to: Responsive Navigation based on Malia Havlicek's codepen: https://codepen.io/maliahavlicek/pen/LYeBwNY */
.menu {
    padding: 0;
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    list-style-type: none;
}

#menuToggle,
.show_mobile,
.toggle {
    display: none;
    align-content: center;
}

nav a {
/*    display: flex;*/
    align-content: center;
    text-decoration: none;
}

nav p {
    display: inline-flex;
    color: whitesmoke;
    font-size: 150%;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transform: rotate(-5deg);
    padding-top: 0;
    text-align: left !important;
    margin-bottom: 30px !important;
}

audio {
    display: none;
    visibility: hidden;
    position: absolute;
    top: 70px;
    left: 40%;
}

h1 {
    text-align: center;
/*    color: #f94217;*/
    font-size: 400%;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    padding-bottom: 0;
}

header p {
    color: whitesmoke;
    font-size: 200%;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    transform: rotate(-5deg);
    padding: 0;
    margin-top: 15vh;
}

noscript h2 {
    color: red;
    font-weight: bold;
    background-color: whitesmoke;
    padding: 15px 20px;
    line-height: 2rem;
}

noscript p {
    color: red;
    font-weight: 900;
    font-size: 16px;
    background-color: whitesmoke;
    padding: 15px 20px;
    line-height: 2rem;
}

noscript a {
    text-decoration: none;
}

footer {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    padding: 10px 30px;
    margin-top: auto;
    text-align: center;
    height: fit-content;
    position: fixed;
    bottom: 0;
}

#index header {
    text-align: center;
    padding: 0 4%;
}

.switchModesIcon {
    color: whitesmoke;
    margin: 5px;
}

#fa-pause{
    display: none;
    visibility: hidden;
}

#fa-play,
#fa-pause {
    color: #f94217;
    font-size: 24px;
    line-height: 40px !important;
    margin: -7px 30px 0;
    padding: 0 20px;
    transition: all 0.2s;
}

#fa-play:hover,
#fa-pause:hover {
    cursor: pointer;
    color: rgb(223, 255, 244);
}

#settings {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    margin-top: 10px;
    /* top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
}

.banner-text-left{
    margin-top: 50px;
}

.banner-text-left .logo img {
    max-width: 220px;
}

.banner-text-left h1{
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 42px;
    color: #FFFFFF;
    background: url(../images/ronde.png);
    background-size: 100% 100%;
    padding: 25px 70px 40px 70px;
}

.banner-text-left p{
    margin: 50px 0 10px 0;
    font-size: 24px;
    color: #FFFFFF;
    display: block;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
}

  /*** Toggle between MODES dark/light */
  .switch {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    width: 60px;
    height: 24px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f94217;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 20px;
    bottom: 4px;
    background-color: #001c3b;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #f94217;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #f94217;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 24px;
  }
  
  .slider.round:before {
    border-radius: 15px;
  }
  /*** end of toggler modes*/

.startQuiz {
    padding: 0;
    margin: 0 auto;
    text-align: center;
/*    position: absolute;
    bottom: 80px;
    right: 8%;*/

}

.startQuiz button,
#btnNextQuestion,
#goToHomePage {
    background-color: #f94217;
    padding: 15px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    border-radius: 5px;
    border: 2px outset #b35800;
    transition: all 0.5s;
    position: relative;
    text-align: center;
    color: #fff;
}

#navRestartBtn {
    text-decoration: none;
    padding: 5px 15px;
    color: #fff;
    background-color: #f94217;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px outset #b35800;
    transition: all 0.5s;
    text-align: center;
    height: min-content;
    display: inline-flex;
    justify-items: center;
    margin: auto 0;
}

#navRestartBtn:hover,
.startQuiz button:hover {
    background-color: whitesmoke;
    /* color: #001c3b; */
    color: #001c3b;
    border-color: #f94217;
    cursor: pointer;
}

.startQuiz {
    visibility: visible;
}

.startQuiz button {
/*    margin: -40px auto 0 !important;*/
/*    width: 240px;*/
    font-size: 1.8rem;
}
.rules {font-family: 'roboto', sans-serif; color: #212529;background: url(../images/question-box.png);background-repeat: no-repeat;background-size: 100% 100%;padding: 40px 30px 0 35px;}
.rules ul {margin-left: 10%;}
.rules img {height: auto;max-width: 100%;}
.rules p {font-size: 170%;line-height: 120%;text-align: center;}
#goToHomePage {
    width: 240px;
    margin: -40px auto;
    font-size: 1.8rem;
}

#goToHomePage a {
    text-decoration: none;
    color: #001c3b;
}

#btnNextQuestion {
    display: block;
    margin: 40px auto 20px;
}

#btnCheckAnswer:hover, .btn-check:checked+.btn,
#btnNextQuestion:hover,
#goToHomePage:hover {
    cursor: pointer;
    background-color: #f94217;
    border-color: #f94217;
    color: #fff;
}

#questionSet {
    /*margin: 0 auto 0;
    width: 100%;*/
}

#question {
    display: none;
    background-color: rgba(0, 28, 59, 0.9);
    padding: 20px 15px;
    font-family: 'roboto', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin: auto;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border: 1px outset #f94217;
    border-top: none;
    color: whitesmoke;
}
#question p {font-weight: 300; font-size: 15px;}
#question img {max-width: 100%;}
#questionNum {
    font-family: 'Roboto', sans-serif;
    color: #f94217;
    font-weight: 500;
}

#question ul {
    margin: 25px auto 0;
}

#question li {
    padding: 10px 5% 10px 10%;
    list-style-type: none;
    color: whitesmoke;
}

#question label {
    padding: 11px;
    width: 47%;
/*    margin: 15px;*/
}

input[type=radio] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-clip: content-box;
    border: none;
    background-color: whitesmoke;
}

input[type=radio]:hover,
label:hover {
    cursor: pointer;
}

input[type="radio"]:checked {
    background-color: rgb(85, 0, 85);
    border: 1px solid #f94217;
}

.count {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    visibility: hidden;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border: 1px outset #f94217;
    background-color: #f94217;
    color: #fff;
}

.count p {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 5px 60px;
    margin-bottom: 0;
}

#correct {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
}

#incorrect {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
}

.btnsDiv {
    /*display: flex;
    flex-direction: row;
    justify-content: flex-start;*/
}

#hFinalMsg {
    text-align: center;
    color: #f94217;
    font-size: 40px;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    padding-bottom: 0;
}

#pFinalMsg {
    text-align: center !important;
    color: whitesmoke;
    font-size: 240%;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 2;
    /*padding-top: 20px;*/
}

#hFinalMsgLightMode {
    text-align: center;
    font-size: 200%;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    padding-bottom: 0;
}

#pFinalMsgLightMode {
    text-align: center !important;
    font-size: 140%;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 2;
    padding-top: 40px;
}

.result-buttons, .answer-buttons {position: sticky; bottom: 0; padding: 5px; margin: 0 auto;}
.result-buttons {}
.answer-buttons label {font-size: 17px;}

/** MODAL CHECK ANSWER DISPLAY ***/

/*div container for the modal pop up */
#modal {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column
}

/* Modal (background: page darkened) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 70px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.modal-content {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: whitesmoke;
    margin: auto;
    padding: 20px;
    border-radius: 5px;
/*    width: 80%;*/
/*    min-height: 50vh;
    max-height: 80vh;*/
}

.modal-content h2 {
    margin: 0 auto;
    display: block;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #001c3b;
    font-weight: 600;
    font-size: 1.5rem;
    /* padding: 45% 8%; */
}

.modal-content p {
    margin: 0 auto;
    display: block;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #001c3b;
    line-height: 1.5;
    padding-top: 20px;
    /* padding: 45% 8%; */
}


/*** FOOTER social media*****/

footer .fab,
footer .fa {
    color: #F3F1F1;
    padding: 0 30px;
    font-size: 20px;
    transition: all 0.15s linear;
}

footer .fab:hover,
footer .fa:hover {
    color: #f94217;
    transform: scale(1.1);
    transform: rotate(-7deg);
}

footer .social_media {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 0 0px;
}


/**** 404 ERROR PAGE *****/

#errorPage header {
    height: 50vh;
    padding: 15vh 4%;
    background-color: rgba(0, 28, 59, 0.8);
    text-align: center;
}

#errorPage h1 {
    display: inline-flex;
    font-size: 3rem;
    margin: auto 0;
}

#errorPage nav p{
    display: inline-flex;
}



/** Reduce nav p in xx-smal devices, to maintain cirrect display*/
@media only screen and (max-width: 285px) {

    nav a {
        display: inline;
        align-content: center;
    }
    
    nav p {
        display: none;
        visibility: hidden;
    }

    #logo {
        margin-bottom: -40px;
    }
    
} 




/**** RESPONSIVE NAVBAR *******/
@media only screen and (max-width: 767px) {
    /* Below RESPONSIVE NAVBAR Adapted from:
attribution to: Responsive Navigation based on Malia Havlicek's codepen: https://codepen.io/maliahavlicek/pen/LYeBwNY */
    nav {
        padding: 15px 3% 9px;
        /* justify-content: space-around; */
    }

    a.show_mobile {
        text-decoration: none;
        color: #595959;
        display: inline-block;
    }

    #logo1 {
        display: none;
        visibility: hidden;
    }

    #logo {
        vertical-align: middle;
        margin-top: -10px;
        margin-left: 0;
    }

    .toggle {
        padding: 0;
        display: flex;
        justify-content: space-between;
        width: calc(100% - 2.4rem);
        text-align: left;
        line-height: 35px;
        cursor: pointer;
        height: 35px;
        font-size: 22px;
        transition: all 1s linear;
        margin-right: 0.5rem;
    }

    #menuToggle:checked ~ ul.nav_item li {
        opacity: 1;
        visibility: visible;
        transition: all .7s linear;
    }

    #menuToggle:checked ~ ul.nav_item {
        height: fit-content;
    }

    .menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: 0px;
        transition: height .3s linear;
        position: absolute;
        left: 0;
    }
    #menuToggle:checked ~ .menu{
        top: 5rem;
        background: rgb(0 28 59);
        padding: 20px;
        width: 100%;
        border: teal 1px solid;
    }

    .menu li a {
        text-align: left;
        align-self: center;
        align-content: center;
        margin-left: 1.2rem;
        margin-bottom: 15px;
        padding-top: 10px;
    }

    input[type=radio] {
        width: 20px;
        height: 20px;
    }
    .rules {margin-left: 10px;margin-bottom: 20px; padding-bottom: 30px;}
    .rules p {font-size: 20px;}

}


/* X-SMALL & SMALL MOBILE ****/

@media only screen and (max-width: 375.99px) {
    #logo {
        width: 260px;
        padding-top: 10px;
    }
    #navIndex, #navError {margin-bottom: 0 !important;}
    .menu li {
        display: flex;
        /* magic */
        align-self: center;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        height: 65px;
    }

    h1 {
        font-size: 320%;
        font-weight: 400;
        padding: 0 20px;
/*        margin-top: 18vh;*/
    }

    header p {
        font-weight: lighter;
    }

    header noscript p {
        font-weight: 900 !important;
    }

    #index header {
/*        min-height: 70vh;*/
    }

    #errorPage header {
        min-height: 50vh;
        max-height: 50vh !important;
        padding: 20vh 4%;
    }

    #errorPage h1 {
        display: inline-flex;
        font-size: 2rem;
        margin: auto 0;
    }

    #errorPage p {
        font-size: 200%;
    }

    #navRestartBtn {
        position: absolute;
        left: 25px;
        top: 95px;
    }

    #questionSet {
        margin: 20px auto 0;
        width: 100%;
    }    

    #question {
        width: 95%;
    }

    .count {
        width: 95%;
        display: flex;
        padding: 20px 0;
    }

    .count p {
        text-align: center;
        font-size: 1rem;
        padding: 0 10px;
    }

    .btnsDiv {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }
    .modal {padding: 10px;}
    .modal-content {
        padding: 10px 10px 20px;
/*        width: 96%;*/
/*        max-height: 75vh;*/
    }

    #btnNextQuestion {
        margin: 40px 0 0 0;
    }

    footer {
        padding: 0;
    }

    footer .fab,
    footer .fa {
        padding: 10px 20px;
    }
    #hFinalMsgLightMode {font-size: 100%;}
    p#pFinalMsgLightMode {padding-top: 0;font-weight: 600;}
    #question {font-size: 1rem;font-weight: 200;line-height: 19px;}

}



/* MEDIUM to LARGE MOBILE *****/

@media only screen and (min-width: 376px) and (max-width: 576px) {

    .menu li {
        display: flex;
        /* magic */
        align-self: center;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        height: 65px;
    }    

    header {
        min-height: 75vh;
    }

    h1 {
        font-size: 360%;
        font-weight: 400;
        padding: 0 20px;
        margin-top: 30vh;
    }

    header p {
        font-weight: lighter;
    }

    header noscript p {
        font-weight: 900 !important;
    }

    #errorPage header {
        min-height: 50vh;
        max-height: 50vh !important;
        padding: 20vh 4%;
    }

    #errorPage header h1 {
        display: inline-flex;
        font-size: 2rem;
        margin: auto 0;
    }

    #errorPage header p {
        font-size: 200%;
    }

    #navRestartBtn {
        position: absolute;
        left: 25px;
        top: 95px;
    }

    #questionSet {
        margin: 120px auto 0;
        width: 100%;
    }    

    #question {
        width: 95%;
    }

    .count {
        width: 95%;
        font-size: 1.2rem;
        font-weight: 600;
        display: flex;
        flex-direction: column !important;
        padding: 20px 0;
    }

    .count p {
        text-align: center;
        font-size: 1.4rem;
        padding: 0 30px;
    }

    .btnsDiv {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }

    .modal-content {
        width: 95%;
        max-height: 75vh;
    }

    #btnNextQuestion {
        margin: 40px auto;
    }

    footer .social_media {
        flex-direction: row !important;
    }

    footer .fab,
    footer .fa {
        padding: 0 25px;
    }


}


/** MEDIUM DEVICES - TABLETS PORTRAIT **/

@media only screen and (min-width: 577px) and (max-width: 767px) {

    .menu li {
        display: flex;
        /* magic */
        align-self: center;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        /* height: 25px; */
    }

    #navRestartBtn {
        position: absolute;
        right: 4%;
        top: 25px;
    }

    #setttings {
        position: absolute;
        left: 0;
        top: 80px;
        background-color: rgba(0, 28, 59, 0.7);
        padding: 7px 10px;
        margin-top: -1px;
        width: 100%;
    }

    header {
        min-height: 60vh
    }

    h1 {
        margin-top: 20vh;
    }

    #errorPage header {
        min-height: 50vh;
        max-height: 50vh !important;
        padding: 20vh 4%;
    }

    #errorPage h1 {
        display: inline-flex;
        font-size: 2rem;
        margin: auto 0;
    }

    #errorPage p {
        font-size: 200%;
    }

    .count {
        width: 95%;
        font-size: 1.2rem;
        font-weight: 600;
        display: flex;
        flex-direction: column !important;
        padding: 20px 0;

    }

    .count p {
        text-align: center;
        font-size: 1.4rem;
        padding: 0 30px;
    }

    .btnsDiv {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
    }

    #btnCheckAnswer {
        width: 80%;
        margin: 0 auto;
    }

    .modal-content {
        width: 75%;
        max-height: 75vh;
    }

    #btnNextQuestion {
        margin: 40px auto;
        width: 80%;
    }

    #question {
        width: 85%;
    }

    .count {
        width: 85%;
    }


}


/** LARGE TABLETS - LANDSCAPE **/

@media only screen and (min-width: 768px) and (max-width: 992px) {

    #setttings {
        position: absolute;
        left: 0;
        top: 80px;
        background-color: rgba(0, 28, 59, 0.7);
        padding: 7px 10px;
        margin-top: -1px;
        width: 100%;
    }

    #question {
        width: 85%;
    }

    .count {
        width: 85%;
    }

    .modal-content {
        width: 60%;
        max-height: 75vh;
    }


}

.btn-outline-warning {border-color: #f94217; color: #fff; font-weight: 700;}
