@import '../../colors';

ion-slides {
    display: block;
    height: 100%;
}

ion-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-card {
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 3px 3px 5px black;
    margin: 40px  auto;
    overflow: hidden;
    background-color: darken($blue-grey, 30%);

    header {
        font-size: 1.2rem;
        line-height: 1.5;
        color: $dark-blue;
        border-bottom: 2px solid rgba(white, 0.5);
        padding: 5px 5px 15px 5px;
        color: white;
        margin-bottom: 10px;
    }
    
    .options {
        list-style: none;
        padding: 0;
        margin: 0;

        &.show-votes {
            p {
                display: block;
            }
        }

        li {
            background-color: rgba(white, 0.1);
            border-radius: 10px;
            overflow: hidden;
            padding: 0px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 50px;
            margin: 20px 0;
            position: relative;

            .progress {
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 0%;
                background-color: $dark-blue;
                pointer-events: none;
                transition: transform 0.3s, width 0.3s, background-color 0.3s;
                border-radius: 10px;
            }

            &.active {
                .progress {
                    background-color: $pink;
                }
            }

            label {
                font-weight: 500;
                font-size: 0.9rem;
                position: relative;
                color: white;
            }

            &:last-child {
                margin: 20px 0px 10px 0px;
            }
        }

        p {
            margin: 0;
            display: none;
            font-size: 0.9rem;
            font-style: italic;
            font-weight: 500;
            position: relative;
        }
    }
}


.next-button {
    display: block;
    width: 150px;
    border-radius: 30px;
    height: 60px;
    background-color: darken($sea-blue, 15%);
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    position: fixed;
    z-index: 1;
    bottom: 10vh;
    left: calc(50% - 75px);
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        width: 30px;
        height: 30px;
        background-color: darken($sea-blue, 10%);
        border-radius: 50%;
        display: block;
        transform: scale(1.5)translateY(-5px);
    }

    &::after {
        content: '';
        position: absolute;
        right: 30px;
        bottom: 0;
        width: 30px;
        height: 30px;
        background-color: darken($sea-blue, 10%);
        border-radius: 50%;
        display: block;
        transform: scale(2.5)translateY(5px);
    }

    .text {
        position: relative;
        z-index: 1;
    }

    .dot {
        position: absolute;
        left: 30px;
        bottom: 0px;
        width: 30px;
        height: 30px;
        background-color: darken($sea-blue, 10%);
        border-radius: 50%;
        display: block;
        transform: scale(0.3);
    }
}