@import url('./global/base.css');


/* start page */
.main {
    background-color: var(--secondary-color);
    width: 100%;
    height: inherit;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    justify-content: space-evenly;
    align-items: center;
    gap: 100px;

    logo {
        width: 160px;
        height: 160px;
        display: flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        font-size: 2.5rem;
        background-color: var(--white);
        color: var(--secondary-color);
        border-radius: 50%;

        h2 {
            position: relative;
        }

        span {
            font-size: 1.25rem;
            color: var(--accent-color);
            position: absolute;
            bottom: 0px;
            right: 10px;
        }
    }

    form {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 300px;
        width: 100%;
        padding: 0 30px;

        label {
            display: flex;
            flex-direction: column;
            gap: 10px;
            color: var(--white);

            span {
                font-size: 1.125rem;
            }
            input {
                font-size: 0.75rem;
                height: 54px;
                background-color: transparent;
                border: 1px solid var(--white);
                outline: none;
                border-radius: 12px;
                color: inherit;
                padding: 0 10px;
            }
            input::placeholder {
                color: inherit;
            }
        }
        button {
            background-color: var(--accent-color);
            color: var(--secondary-color);
            border: none;
            outline: none;
            height: 54px;
            border-radius: 12px;
            font-size: 1.5rem;
            transition: all 0.4s ease;
        }
    }
}

@media only screen and (min-width: 698px) {
    main {
        display: flex;
        background-color: var(--secondary-color);
        justify-content: center;
    }
    .main {
        flex-direction: row;
        justify-content: center;
        padding: 0 40px;
        gap: 50px;

        logo {
            width: 200px;
            height: 200px;
        }
        form {
            width: 400px;
        }
    }

    #quiz {
        #question {
            position: relative;
            top: -85px;
        }
    }
    #leader {
        align-items: center !important;
        justify-content: space-evenly !important;
        gap: 100px;
    }
}


/* quiz page  */
#quiz {
    background-color: var(--gray);
    /* display: none; */
    gap: 0px;

    nav {
        position: absolute;
        top: 20px;
        left: 10px;

        a {
            color: var(--secondary-color);
            font-weight: 600;
            
        }
    }
    #question {
        #progress-bar {
            display: grid;

            p {
                grid-column-start: 1;
                grid-row-start: 1;
                align-self: center;
                margin: 0 auto;
                font-size: 1.5rem;
                font-weight: 600;
                z-index: 10;
            }
        }
        #question-container {
            max-width: 350px;
            max-height: 400px;
            text-align: center;
            margin: 0 25px;
            padding: 100px 20px;
            background-color: var(--white);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            border-radius: 20px;
            position: relative;
            top: -20px;
            z-index: 0;

            p {
                font-size: 1.125rem;
                font-weight: 600;
            }
        }
    }
    #options {
        max-width: 350px;
        max-height: 400px;
        width: 350px;

        ul {
            margin-bottom: 60px;
        }

        li {
            background-color: var(--white);
            width: 100%;
            height: 53px;
            cursor: pointer;
            margin-bottom: 20px;
            padding: 4px 8px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            line-height: 1.5rem;
            font-weight: 600;
            box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.07);
            transition: all 0.2s ease-in-out;
        }
        li:hover {
            color: var(--white);
            background-color: rgb(249, 187, 63);
            box-shadow: 4px 4px 0px rgba(248, 198, 96, 0.5);
        }
        li:active {
            color: var(--white);
            background-color: var(--primary-color);
            transform: scale(0.95);
            box-shadow: 4px 4px 0px rgba(5, 161, 154, 0.4);
        }
        button {
            color: var(--white);
            font-weight: 600;
            font-size: 1.5rem;
            background-color: var(--secondary-color);
            border: none;
            outline: none;
            width: 100%;
            height: 59px;
            border-radius: 15px;
            margin-bottom: 30px;
        }
    }
}

.correct {
    color: var(--secondary-color) !important;
    background-color: var(--correct) !important;
    box-shadow: 4px 4px 0px rgb(35, 229, 174, 0.4) !important;
}
.wrong {
    color: var(--black) !important;
    background-color: var(--wrong) !important;
    box-shadow: 4px 4px 0px rgba(255, 124, 124, 0.4) !important;
}
.progress-bar {
    grid-column-start: 1;
    grid-row-start: 1;
    width: 86px;
    height: 86px;
    display: block;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 50%;
    z-index: 10;
}

.bg {
    stroke: var(--primary-color);
    stroke-width: 10;
    fill: none;
}

#fg {
    stroke: var(--secondary-color);
    stroke-width: 10;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    fill: none;
    transform-origin: center;
    transform: rotate(-90deg);
    border-radius: 20px;
    transition: all 0.2s ease;
}

img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* leaderboard  */
#leader {
    justify-content: start;
    gap: 0px;

    #toppers {
        max-width: 350px;
        max-height: 400px;
        width: 100%;
        height: 350px;
        color: var(--white);
        /* background-color: var(--gray); */
    
        header {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            margin-bottom: 20px;

            a {
                position: absolute;
                left: -10px;
                top: -5px;
            }
            h3 {
                font-size: 1.375rem;
                font-weight: 600;
            }
        }
    }
    #top-three {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: inherit;
        gap: 40px;
        /* background: white; */

        .img1 {
            max-width: 120px;
            max-height: 120px;
            height: 96px;
            width: 96px;
            position: relative;
            outline-color: var(--accent-color);
        }
        .img2 {
            max-width: 100px;
            max-height: 100px;
            height: 84px;
            width: 84px;
        }
        .first {
            position: relative;
            top: -50px;
        }
        figure {
            display: grid;
            position: relative;
            margin-bottom: 20px;

            img {
                grid-column-start: 1;
                grid-row-start: 1;
                outline: 5px solid var(--primary-color);
            }
            figcaption {
                grid-column-start: 1;
                grid-row-start: 1;
                position: absolute;
                bottom: -10px;
                right: 40%;
                background-color: var(--primary-color);
                padding: 0 1px;
                border-radius: 50%;
                width: 20px;
                height: 20px;
                text-align: center;
            }
            .first-fig {
                background-color: var(--accent-color) !important;
            }
        }
        p {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 0.75rem;
            font-weight: 600;

            span {
                font-size: 0.625rem;
                font-weight: 500;
            }
        }
    }
    #user-list {
        background-color: var(--gray);
        width: 100%;
        max-width: 500px;
        max-height: 500px;
        height: 500px;
        padding: 30px 20px;
        margin: 0 10px;
        border-radius: 40px;
        color: var(--black);

        .list {
            height: 450px;
            overflow-y: auto;
        }
        .list::-webkit-scrollbar {
            width: 5px;
        }
        .list::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px var(--secondary-color);
            border-radius: 10px;
        }
        .list::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 6px var(--secondary-color);
        }
        li {
            background-color: var(--white);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 0.875rem;

            figure {
                display: flex;
                justify-content: space-around;
                align-items: center;
                gap: 15px;

                span {
                    font-size: 1.25rem;
                    font-weight: 600;
                }
            }
        }
    }
}
.hidden {
    display: none;
}
#msg {
    text-align: center;
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--white);
    transition: all 0.2s ease;
}

.disabled {
    background-color: var(--primary-color) !important; 
    cursor: not-allowed;
}