
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

*{
    box-sizing: border-box;
}

body{
    margin: 0;
    background-color: #18181B;
}

button{
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.sidebar{
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 75px;
    height: 100%;
    background:  #18181B;
    transition: all 0.4s;
}

body.open .sidebar{
    width: 240px;
}

.sidebar-inner{
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
}

.sidebar-header{
    display: flex;
    align-items: center;
    height: 68px;
    padding: 0 1.25rem 0 0;
    background: rgba(0, 0, 0, 0.1);
    border-left: 3px solid transparent;
    transition: all 0.4s;
}

.sidebar-header:hover{
    border-left: 3px solid #bdbdbd;
}

.sidebar-burger{
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
}

.sidebar-burger > i, body.open .sidebar-burger > i{
    font-size: 25px;
    color: #f9f9f9;
    transition: all 0.4s;
}

.sidebar-burger:hover > i, body.open .sidebar-burger:hover > i{
    color: #bdbdbd;
}

.sidebar-logo{
    height: 30px;
    opacity: 0;
    transition: all 0.4s;
}

body.open .sidebar-logo{
    opacity: 1;
    transition: all 0.4s;
}

.sidebar-menu{
    display: grid;
}

.sidebar-menu > button{
    display: flex;
    gap: 12px;
    align-items: center;
    height: 55px;
    font-family: "Ubuntu";
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
    padding: 0 22px;
    border-left: 3px solid transparent;
    transition: all 0.4s;
}

.sidebar-menu > button:hover{
    border-left: 3px solid #f9f9f9;
}

.sidebar-menu > button.has-border{
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
}

.sidebar-menu > button > i{
    font-size: 25px;
    color: #f9f9f9;
    transition: all 0.4s;
}

.sidebar-menu > button:hover > i, .sidebar-menu > button:hover > span{
    color: #bdbdbd;
}

.sidebar-menu > button > span{
    color: #f9f9f9;
    opacity: 0;
    transition: all 0.4s;
}

body.open .sidebar-menu > button > span{
    opacity: 1;
    transition: all 0.4s;
}



  

/* Quiz Section Wrapper */
.quiz-section {
    display: none; /* Initially hidden */
    width: 420px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(9px);
    color: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
}

/* Title Style */
.quiz-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Question Style */
.quiz-section p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

/* Button Style */
.quiz-section button {
    width: 100%;
    height: 45px;
    background: #fff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 10px 0;
}

/* Button Hover Effect */
.quiz-section button:hover {
    background-color: #f1f1f1;
}



/* Responsiveness */
@media (max-width: 768px) {
    .quiz-section {
        width: 90%;
        padding: 20px;
    }

    .quiz-section h2 {
        font-size: 28px;
    }

    .quiz-section p {
        font-size: 16px;
    }

    .quiz-section button {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Hide the sidebar and show only the menu button */
    .sidebar {
        width: 0; /* Collapse the sidebar */
        overflow: hidden; /* Hide overflowing content */
        transition: all 0.4s;
    }

    /* Sidebar when open (for mobile mode) */
    body.open .sidebar {
        width: 240px; /* Expand sidebar */
    }

    /* Hide text and logos by default in mobile mode */
    .sidebar-logo,
    .sidebar-menu > button > span {
        display: none; /* Hide menu item text */
    }

    body.open .sidebar-logo,
    body.open .sidebar-menu > button > span {
        display: block; /* Show them when the sidebar is expanded */
    }

    /* Add a fixed menu button to toggle the sidebar */
    .menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1000;
        width: 50px;
        height: 50px;
        background: #18181B;
        color: #f9f9f9;
        display: grid;
        place-items: center;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.4s;
    }

    .menu-toggle:hover {
        background: #bdbdbd;
        color: #18181B;
    }
}

