@import "../../../../styles/my-career-styles/variables";

.assessment-wrapper {
    background: #FAFCFD;
    min-height: 100vh;

    .assessment {

        &-header {
            height: 76px;
            background: $darkColor;
            display: flex;
            justify-content: space-between;
            align-items: center;

            .header-logo {
                width: 260px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #fff;
                height: 100%;

                img {
                    width: 164px;
                    height: 32px;
                }
            }

            .header-actions {
                padding: 0 24px;
                font-weight: 600;

                .auto-saved {
                    color: #FFFFFF;
                    font-family: $bodyFont;
                    font-size: 14px;
                }

                button {
                    margin-left: 24px;
                }
            }
        }

        &-body {
            margin-top: 32px;

            &-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 8px;

                .assessment-heading {
                    color: $darkColor;
                    font-family: $headingFont;
                    font-size: 24px;
                    font-weight: bold;
                }

                .assessment-estimation {
                    color: $darkColor;
                    font-family: $bodyFont;
                    font-size: 14px;

                    .fa {
                        font-size: 16px;
                        color: $primaryColor;
                        margin-right: 8px;
                    }
                }
            }


            &-description {
                color: $darkColor;
                font-family: $bodyFont;
                font-size: 18px;
            }


            &-question-wrapper {
                margin-top: 32px;
                position: relative;


                .question {

                    &-title, &-completed, &-tag {
                        color: $darkColor;
                        font-family: $bodyFont;
                        font-size: 18px;
                    }

                    &-title {
                        margin-bottom: 32px;
                    }

                    &-tag {
                        color: $white;
                        text-align: center;
                        font-weight: 600;
                        background: $primaryColor;
                        padding: 12px;
                        margin-bottom: 56px;
                        text-transform: uppercase;
                    }

                    &-completed {
                        position: absolute;
                        right: 24px;
                        top: 24px;
                    }
                }

                .answer-wrapper {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    span {
                        color: $darkColor;
                        font-family: $bodyFont;
                        font-size: 18px;
                    }

                    .extreme-label-left {
                        margin-right: 10px;
                    }

                    .extreme-label-right {
                        margin-left: 10px;
                    }

                    .answer-options {
                        display: flex;
                        align-items: center;

                        .option-value {
                            width: 40px;
                            height: 40px;
                            border: 1px solid $primaryColor;
                            border-radius: 3px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            transition: .3s;
                            font-weight: 600;
                            color: $darkColor;
                            cursor: pointer;

                            &:not(:last-child) {
                                margin-right: 23px;
                            }

                            &:hover, &.selected {
                                background: $primaryColor;
                                color: $white;
                            }
                        }
                    }
                }
            }
        }
    }
}





@media only screen and (max-width: 1024px) {

    .header-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 12px;
        width: 100%;

        button {
            white-space: nowrap;
        }
    }


    .assessment-body {
        margin-top: 16px !important;

        &-header {
            padding: 0 4px;
            margin-bottom: 16px !important;

            .assessment-heading {
                white-space: nowrap;
            }

            .assessment-estimation {
                margin-left: 32px;
                text-align: center;
                position: relative;

                .fa {
                    position: absolute;
                    left: -16px;
                }
            }
        }

        &-description {
            text-align: center;
        }


        &-question-wrapper {
            margin-top: 24px !important;

            .question-title {
                margin-bottom: 16px !important;
                width: 80% !important;
            }

            .question-completed {
                position: absolute;
                right: 0 !important;
                top: 6px !important;
                font-weight: bold;
            }

            .question-tag {
                margin-bottom: 24px !important;
                text-transform: uppercase;
            }

            .answer-wrapper {
                position: relative;
                display: block !important;

                .answer-option-labels {
                    display: flex;
                    justify-content: space-between;

                    .extreme-label-right, .extreme-label-left {
                        font-size: 12px !important;
                        font-family: $bodyFont;
                        flex: 0.8;
                        max-width: 140px;
                    }
                }

                .answer-options {
                    justify-content: space-between;
                    width: 100%;

                    .option-value {
                        width: unset;
                        height: unset;
                        border: none !important;
                        margin: 0 !important;

                        &:hover {
                            background: transparent;
                        }
                    }
                }
            }
        }
    }

}
