/* popups---------------- */
.popup{
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #00000070;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    z-index: 110;
    backdrop-filter: blur(4px);

}
.darkmode .popup{
    background: #ffffff30;
}
.popup form{
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    /* box-shadow: rgba(0, 0, 0, 0.479) 0 0 70px; */
    background: white;
    padding: 30px;

}
.darkmode .popup form{
    background: #111;
    /* box-shadow: rgba(255, 255, 255, 0.288) 0 0 70px; */
}
.popup form input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    outline: none;
    border: none;
    border-bottom: #333 2px solid;
    margin: 10px 0px;
    transition: border 0.3s;
    background: transparent;
    text-align: center;
}
.darkmode .popup form input{
    color: white;
}
.popup form input:focus {
    border-bottom: rgb(33, 147, 240) 3.5px solid;
    
}
.popup form input.valid {
    border-bottom: rgb(17, 221, 78) 2px solid;
}
.popup form input.err {
    border-bottom: var(--err) 2px solid;
}
.popup form input[type="submit"]{
    outline: none;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.24em;
    margin: 10px 0px;
    box-shadow: 0 2px 3px  #333;
    transition: box-shadow 0.1s;
    border-radius: 8px;
}
.popup form input[type="submit"]:hover{
    border: none;
    box-shadow: 0 1px 1px  #333;

}
.popup form div.err{
    color: var(--err);
    font-weight: 600;
    
}
.popup.active{
    display: flex;
}
.popup.active form{
    animation: popup .3s;
}
@keyframes popup {
    from{transform: scale(0);}
    to{transform: scale(1);}
}
/* header */
header img.user-pp{
    border-radius: 50%;
    width: 1.3em;
    height: 1.3em;
}
header img.user-pp:hover{
    box-shadow: 0 0 0 5px #ffffff77;
}
.darkmode header img.user-pp:hover{
    box-shadow: 0 0 0 5px #61616177;
}

/* profile info */
#profile-info{
    width: 90%;
    max-width: 300px;
    position: fixed;
    background: var(--primary);
    color: white;
    box-shadow: 0px 0px 8px black;
    top: 80px;
    transition: top 0.3s;
    right: 5px;
    border-radius: 2px;
    padding: 9px;
    text-align: center;
    display: none;
    z-index: 100000;
}
#profile-info img.pp{
    border-radius: 50%;
    height: 66px;
    width: 66px;

}
#profile-info .email{
    color: rgb(172, 172, 172);
}
#profile-info .nickname{
    font-size: 1.2em;
    font-weight:600;
}
#profile-info .icon{
    display: inline-block;
    font-size: 1.3em;
    width: 20%;
    cursor: pointer;
}
/* quizzes */
.quizzes{
    /* background: black; */
    display: none;
    flex-wrap: wrap;
    width: 97%;
    max-width: 960px;
    margin: 100px auto 0 auto;
    /* background: #fafafafa; */
    /* color: white; */
}
.quizzes::before{
    content: 'your quizzes:';
    flex-basis: 100%;
    color: white;
    
    z-index: 9;
    font-size: 1.8em;
    /* position: absolute; */
    
}
.quizzes .quiz{
    /* background: var(--sec); */
    background: #fff;
    color: rgb(0, 0, 0);
    box-shadow: #00000085 0 0 5px 1px;
    border-radius: 4px;
    margin: 10px;
    padding: 10px;
    width: 100%;
    height: 200px;
    font-size: 1.3em;
    position: relative;
    cursor: pointer;
    transition: background 0.15s;
}
.darkmode .quizzes .quiz{
    background: #111;
    color:#fff;
    box-shadow: #00000085 0 0 20px 0px;

}
.quizzes .quiz:hover{
    background: #efefef;
}
.darkmode .quizzes .quiz:hover{
    background: #151515;
}

.quizzes .quiz .submissions{
    font-size: 0.8em;
    color: #747474;
}
.quizzes .quiz .submissions span{
    font-weight: 600;
}
.quizzes .quiz .created-at{
    position: absolute;
    bottom: 0;
    font-size: 0.7em;
    color: #777;
    font-weight:lighter;
}
.quizzes .new-quiz{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 1.8em;
    color: var(--primary);
}
.background{
    background:  linear-gradient(to right, var(--primary), var(--sec));
    height: 320px;
    width: 100%;
    position: absolute;
    top: 20px;
    left: 0;
}
@media only screen and (min-width: 700px) {
.quizzes .quiz{
    width: 324px;
}
.quizzes {
    width:690px ;
    margin-top: 140px;
}
}
@media only screen and (min-width: 980px) {
.quizzes .quiz{
    width: 300px;
    
}
.quizzes {
    width:960px ;
}
}
