/*Master styles*/
@keyframes fade-in {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@keyframes fade-out {
    100%{
        opacity: 0;
    }
    0%{
        opacity: 1;
    }
}
body{
    margin: 0%;
    margin-left: 0%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(167deg, rgba(1,0,36,1) 0%, rgba(121,9,111,1) 49%, rgba(98,0,255,1) 100%);
    overflow: hidden;
    overflow-y: hidden;
    background-image: url("../assets/quiz/mathBG.png");
    background-size:     cover;                      /* <------ */
    background-repeat:   no-repeat;
}

.container{
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 6.5%;
    position: absolute;
    top: 0px;
    width: 86%;
    background-repeat: no-repeat;
    background: rgb(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 25px 0px rgb(0, 0, 0, 0.5);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: .2s ease-out;
}


/*Nav styles*/
.nav-wrapper{
    display: flex;
    justify-content: space-between;
    padding: 1%;
    background: rgb(0, 0, 0, 0.2);
    margin: 1%;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2);
}

.left-side{
    display: flex;
}

/*Nav bar*/

.flex{
    display: flex;
    gap: var(--gap, 2rem);
}

.primary-navigation {
    list-style: none;
    padding: 20px;
    --gap: 1.5em;
    position: absolute;
    text-align: center;
    flex-direction: column;
    padding-top: 0.6%;
    margin-left: -9.3%;
    margin-top: 3.15%;
    align-items: center;
}

.primary-navigation[data-visible="false"]{  /* fade-out */
    transition: 0.6s;
    visibility: hidden;
    z-index: -1;
    opacity: 0;
    background: transparent;
    text-decoration: transparent;
}

.primary-navigation[data-visible="true"]{
    transition: 0.6s;
    z-index: 1;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    backdrop-filter: blur(20px);
    background: rgb(0, 0, 0, 0.8);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.7);
}

.primary-navigation a{
    text-decoration: none;
    padding: 0px 10px;
    display: inline-block;
    color: #ddd9d9;
}

.primary-navigation a:hover{
    transition: 0.6s;
    text-decoration: none;
    color: springgreen;
}

.mobile-nav-toggle{
    position: relative;
    background:  rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: none;
    margin-left: 0%;
    width: 5rem;
    height: 1.6rem;
}

.mobile-nav-toggle:hover{
    cursor: pointer;
    transition: 0.6s;
    background-color: rgb(0, 0, 0, 0.1);
}

/*End Nav bar*/

.bottom-side{
    display: flex;
}

.right-side{
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.right-side a{
    padding: 1em 1.5em;
    color: #0b0839;
    text-decoration: none;
}

.right-side a:hover{
    transition: 0.4s;
    text-shadow: 1px 0 10px #0b0839;
}

.nav-wrapper > .left-side > div{
    margin-right: 25%;
    font-size: 0.9em;
    text-transform: uppercase;    
}

.nav-link-wrapper{
    height: 22px;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.1s;
}

.nav-link-wrapper a{
    color: #ddd9d9;
    text-decoration: none;
    transition: color 0.1s;
}

.nav-link-wrapper:hover{
    border-bottom: 1px solid #0b0839;
}

.nav-link-wrapper a:hover{
    color: #0b0839;
}

.active-nav-link{
    border-bottom: 1px solid #0b0839;
}


.active-nav-link a{
    color: #0b0839 !important;
}

/*About styles*/

.two-column-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.profile-img-wrapper img{
    width: 100%;
}

.profile-content-wrapper{
    padding: 2%;
}

/*************Scroll bar**********/

::-webkit-scrollbar{
    width: 0.2em;
}

::-webkit-scrollbar-track{
    background: rgb(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-block: .2em;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(rgb(244, 112, 112),rgb(96, 60, 238));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover{
    background:  linear-gradient(rgb(244, 112, 112), rgb(251, 249, 183));
}

/*************** Math Quiz ****************/

.math-menu{
    position: absolute;
    top: 0;
    cursor: pointer;
    bottom: 0;
    height: 60px;
    border-radius: 15px;
    visibility: hidden;
    opacity: 0;
    margin: 5px;
    border: none;
    aspect-ratio: 1;
    background-color: rgb(255, 255, 255, 0.2);
    background-image: url('../assets/quiz/menu-icon.jpg');
    background-size:     cover;                      /* <------ */
    background-repeat:   no-repeat;
    backdrop-filter: blur(10px);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2);
    transition: .3s ease-in-out;
}

.math-menu.isVisible{
    visibility: visible;
    opacity: 1;
}

.math-menu:hover{
    background-color:  rgb(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.2);
}


.math-container {
    position: absolute;
    margin-left: 150px;
    top: 90%;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    width: 70%;
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    transition: .8s ease-out;
}

.difficulty-container{
    position: absolute;
    margin-left: 60px;
    top: 90%;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    width: 70%;
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    transition: .8s ease-out;
}

.math-container.isVisible{
    visibility: visible;
    opacity: 1;
    transform: translate3d(-50%, -350px, 0);
}

.difficulty-container.isVisible{
    visibility: visible;
    opacity: 1;
    transform: translate3d(-50%, -350px, 0);
}

/*********  addition *******/


.addition, .multiplication, .soustraction /*.division, .tout-en-un*/ {
    background-color: rgb(255, 255, 255, 0.4);
    height: inherit;
    aspect-ratio: 1;
    border-radius: 15px;
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2);
    transition: .1s ease-in-out;
    backdrop-filter: blur(15px);
}

.addition:hover, .multiplication:hover, .soustraction:hover, /*.division:hover, .tout-en-un:hover, */.star1:hover, .star2:hover, .star3:hover, .star4:hover{
    background-color: rgb(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.addition-img, .multiplication-img, .soustraction-img/*, .division-img, .tout-en-un-img*/{
    height: 100px;
    aspect-ratio: 1;
    margin-left: 26px;
}

/*********  star *******/

.addition-text, .multiplication-text, .soustraction-text, .division-text, .tout-en-un-text, .star1-text, .star2-text, .star3-text, .star4-text{
    font-size: 1.2rem; 
    color: rgb(35, 35, 35);
    outline: none;
    padding: 10px;
    background: none;
    font-weight: 700;
    font-family: sans-serif;
    letter-spacing: 1px;
    transition: .3s ;

}

.star1-img, .star2-img, .star3-img, .star4-img{
    display: grid;
    grid-template-columns: auto auto auto auto;
    column-gap: 0;
    padding-left: 60px;
}

.star1, .star2, .star3, .star4{
    background-color: rgb(255, 255, 255, 0.4);
    height: 80px;
    aspect-ratio: 1;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2);
    transition: .1s ease-in-out;
}

/*********  end star  *******/

.math-zone{
    position: absolute;
    background-color: rgb(255, 255, 255, 0.4);
    z-index: -1;
    top: 90%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    height: 100px;
    width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2);
    animation: none;
    transition: .3s ease-out;
}

.math-zone.isCorrect{
    background-color: rgb(0, 255, 0, 0.4);
}

.math-zone.isWrong {
    background-color: rgb(255, 0, 0, 0.4);
}


.correct-answer{
    position: absolute;
    background-color: rgb(255, 0, 0, 0.4);
    margin-top: 65px;
    z-index: -1;
    top: 15%;
    left: 50%;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    height: 30px;
    width: 400px;
    backdrop-filter: blur(20px);
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.2);
    transition: .4s ease-out;
}

.correct-answer.isVisible{
    visibility: visible;
    opacity: 1;
    top: 50%;
}

.correct-answer-text, .correct-answer-value {
    position: absolute;
    margin-left: 20px;
    font-size: 1rem; 
    color: rgb(35, 35, 35);
    outline: none;
    padding: 10px;
    font-weight: 700;
    font-family: sans-serif;
    letter-spacing: 1px; 
    left: 65px;
}

.correct-answer-value{
    left: 215px;
    top: -10px;
    font-size: 1.5rem;
    font-weight: 900;
}

.math-zone.isVisible{
    visibility: visible;
    opacity: 1;
    transform: translate3d(-50%, -350px, 0);
}

.submath-zone{
    position: absolute;
    border-radius: 20px;
    border: rgb(138, 122, 239) 3px solid;
    margin: 15px;
    margin-top: 12px;
    margin-left: 3px;
    height: 70px;
    width: 350px;
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 10px;

    backdrop-filter: blur(10px);
    box-shadow: 0px 10px 15px 0px rgba(255, 255, 255, 0.2);
}

.math-question{
    position: absolute;
    font-size: 1rem; 
    color: rgb(35, 35, 35);
    outline: none;
    padding: 10px;
    font-weight: 700;
    font-family: sans-serif;
    top: 16px;
    letter-spacing: 1px; 
    left: 5px;
}

.math-answer{
    border: 2px solid rgb(0, 0, 120, 0.3);
    height: 30px; 
    width: 100px;
    position: absolute;
    margin-top: 8px;
    margin-left: 216px;
    letter-spacing: 1px; 
    border-radius: 15px; 
    font-size: 1rem; 
    color: rgb(35, 35, 35);
    outline: none;
    padding: 10px;
    background: none;
    font-weight: 700;
    font-family: sans-serif;
    transition: .3s ;
}

.equal-sign{
    position: absolute;
    top: 10px;
    left: 185px;   
    color: rgb(35, 35, 35);
    outline: none;
    padding: 10px;
    background: none;
    font-size: 1.8rem; 
    font-weight: 700;
    font-family: sans-serif; 
}

.math-answer:hover {
    border-color:  rgb(0, 0, 120, .7);
}

.math-answer:focus{
    border-color:  rgb(0, 0, 80, 1);
}

.submit-answer{
    margin-top: 18px;
    margin-left: 370px;
    height: 60px;
    aspect-ratio: 1;
    cursor: pointer;
    border: none;
    border-radius: 15px;
    background-color: rgb(255, 255, 255, .4);
    backdrop-filter: blur(10px);
    box-shadow: 0px 15px 25px 0px rgba(0, 0, 0, 0.2);
    transition: .4s ease;
}

.submit-answer:hover{
    background-color: rgb(255, 255, 255, 1);
    box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 1);
}

.math-score{
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
    visibility: hidden;
    opacity: 0;
    color: rgb(255, 255, 255, .7);
    outline: none;
    padding: 10px;
    background: none;
    font-size: 3.8rem; 
    font-weight: 900;
    font-family: sans-serif; 
    transition: .4s ease-out;
}

.math-score.isVisible{
    visibility: visible;
    opacity: 1;
}

.life-bar{
    position: absolute;
    top: 30px;
    z-index: -1;
    right: 120px;
    height: 20px;
    width: 270px;
    opacity: 0;
    visibility: hidden;
    display: grid;
    background-color: rgb(0, 0, 0, .5);
    grid-template-columns: auto auto auto;
    column-gap: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 15px 25px 0px rgba(0, 0, 0, 0.4);
    transition: .4s ease-out;
}

.life-bar.isVisible{
    visibility: visible;
    opacity: 1;
}


.heart{
    box-shadow:       
    0 0 21px #0fa,
    0 0 42px #0fa,
    0 0 82px #0fa,
    0 0 92px #0fa,
    0 0 102px #0fa;
    margin: 7px;
    height: 6px;
    border-radius: 3px;
    width: 60px;
    background-color:#0fa;
}

.heart.depleted{
    box-shadow:       
    0 0 21px rgba(227, 35, 35, 0.996),
    0 0 42px rgba(227, 35, 35, 0.996),
    0 0 82px rgba(227, 35, 35, 0.996),
    0 0 92px rgba(227, 35, 35, 0.996),
    0 0 102px rgba(227, 35, 35, 0.996);
    margin: 7px;
    height: 6px;
    border-radius: 3px;
    width: 60px;
    background-color:rgba(227, 35, 35, 0.996);
}

/* Result style */

.result-screen{
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    background-color: rgb(0, 0, 0, .7);
    backdrop-filter: blur(15px);
    transition: .5s ease-out;
}

.result-screen.isVisible{
    visibility: visible;
    opacity: 1;
}

.result-screen.isVisible .result-zone{
    transform: translate3d(-50%, -450px, 0);
}

.result-zone{
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 260px;
    width: 170px;
    background-color: rgb(255, 255, 255, .4);
    backdrop-filter: blur(10px);
    box-shadow: 0px 15px 25px 0px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    transition: 1.5s ease-out;
}

.result-text{
    margin: 5px;
    margin-left: 30px;
    color: rgba(2, 2, 2, 0.7);
    outline: none;
    background: none;
    font-size: 1.2rem; 
    font-weight: 800;
    font-family: sans-serif; 
}

.result-value{
    margin-left: 30px;
    color: rgb(0, 0, 0, .7);
    outline: none;
    padding: 10px;
    background: none;
    font-size: 3.5rem; 
    font-weight: 900;
    font-family: sans-serif;
}

.result-time{
    margin-top: 20px;
    margin-left: 39px;
    color: rgb(0, 0, 0, .7);
    outline: none;
    padding: 10px;
    background: none;
    font-size: 1rem; 
    font-weight: 900;
    font-family: sans-serif;
}

.try-again-button{
    margin-top: 40px;
    margin-left: 35px;
    height: 30px;
    color: rgb(0, 0, 0, 1);
    background-color: rgb(155, 155, 155, .8);
    backdrop-filter: blur(10px);
    box-shadow: 0px 15px 25px 0px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    border: none;
    border-radius: 15px;
    font-size: 1rem; 
    font-weight: 900;
    font-family: sans-serif;
    transition: .2s ease-in;
}

.try-again-button:hover{
    box-shadow: 0px 15px 25px 0px rgba(0, 0, 0, 1);
    background-color: rgb(255, 255, 255, .8);
}

.screen-shot{
    position: absolute;
    border: none;
    height: 45px;
    width: 50px;
    cursor: pointer;
    border-radius: 15px;
    background-color: rgb(255, 255, 255, .3);
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 15px 0 rgb(0, 0, 0, .5);
    top: 450px;
    left: 710px;
    transition: .3s ease;
}

.screen-shot:hover{
    background-color: rgb(255, 255, 255, .9);
    box-shadow: 0px 0px 15px 0 rgb(0, 0, 0, .9);
}