@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root{
    --skin-color: #A39;
    --bg-black-900: #151515;
    --bg-black-100: #222222;
    --bg-black-50: #393939;
    --text-black-900: #ffffff;
    --text-black-700: #e9e9e9;
}

body.dark{
    --skin-color: #A39;
    --bg-black-900: #f2f2fc;
    --bg-black-100: #fdf9ff;
    --bg-black-50: #e8dfec;
    --text-black-900: #302e4d;
    --text-black-700: #504e70;
}

*{
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

body{
    background: var(--bg-black-900);
}

body::-webkit-scrollbar{
    width: 1vw;
}

body::-webkit-scrollbar-thumb{
    border-radius: 20px;
    background: var(--skin-color);
}


body::-webkit-scrollbar-track{
    background: var(--bg-black-900);
}




/* ============================= header =================================== */
.active{
    color: var(--skin-color) !important;
    font-weight: 900;
}

.gallary{
    width: 100%;
    text-align: center;
    color: var(--text-black-900);
}



 h1{
    text-align: center;
    font-weight: normal;
    font-size: 35px;
    position: relative;
    margin: 40px 0;
    color: var(--text-black-700);
}

h1::before{
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--skin-color);
    bottom: -10px;
    left: 50%;
    transform: translatex(-50%);
    animation: animate 4s linear infinite;
}

@keyframes animate{
    0%{
        width: 100px;
    }
    50%{
        width: 200px;
    }
    100%{
        width: 100px;
    }
}

.top-content{
    background: var(--bg-black-50);
    width: 90%;
    margin: 0 auto 20px auto;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    box-shadow: 3px 3px 5px var(--bg-black-100) ;
    /* transition: 0.6s; */
}

.top-content h3{
    padding: 0 20px;
    color: var(--skin-color);
    background: var(--bg-black-100);
    height: 100%;
    /* line-height: 60px; */
}




.gallary a{
    display: inline-block;   
    height: 100%;
    padding: 0 10px;
    margin: 0 100px;
    line-height: 60px;
    font-size: 18px;
    color: var(--text-black-900);
    cursor: pointer;
    transition: 0.5s;
}

.gallary a:hover{
    color: var(--skin-color);
}

/* ============================= quizs =================================== */




.quiz-center{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-container{
    color: var(--text-black-700);
    /* float: right; */
    background-color: var(--bg-black-100);
    border-radius: 10px;
    box-shadow: 0 0 10px 2px rgba(100, 100, 100, 0.1);
    width: 600px;
    overflow: hidden;
    text-align: center;
    
}
  .quiz-header{
    padding: 4rem;
  }
  h2{
    padding: 1rem;
    text-align: center;
    margin: 0;
  }
  
  ul{
    list-style-type: none;
    padding: 0;
  }
  ul li{
    font-size: 1.2rem;
    margin: 1rem 0;
  }
  ul li label{
    cursor: pointer;
  }
  button{
    background-color: var(--skin-color);
    color: #fff;
    border: none;
    display: block;
    width: 100%;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
    padding: 1.3rem;
  }
  button:hover{
    background-color: var(--skin-color);
  }
  button:focus{
    outline: none;
    background-color: #44b927;
  }
  
  span.easy{
    color: greenyellow;
}
span.medium{
    color: orange;
}
span.hard{
    color: orangered;
}
span.imp{
    color: darkred;
    font-weight: 900;
}

  
/* ================== style switcher =================== */
.switcher{
    height: 90px;
    position: fixed;
    right: 0;
    top: 20px;
    padding: 15px;
    width: 100px;
    /* border: 1px solid var(--bg-black-50); */
    /* background: var(--bg-black-100); */
    z-index: 120;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.switcher .s-icon{
    top: 40px;
    position: absolute;
    height: 40px;
    width: 40px; 
    text-align: center;
    font-size: 20px;
    background: var(--bg-black-100);
    color: var(--text-black-900);
    /* right: 100%; */
    border: 1px solid var(--bg-black-50);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.switcher .s-icon i{
    line-height: 40px; /* centers the moon icon **/
}