@import '../colors';


.header-with-action-buttons {
    .action button {
        &.toggle {
            width: auto;
            padding: 0 10px;
            border-radius: 7px;
            color: $blue-grey;
            font-weight: 500;
            letter-spacing: 0.5px;
            
            ion-checkbox {
                pointer-events: none;
                margin: 0;
                margin-right: 10px;
                --border-color: #949599a6;
                --border-color-checked: #01b868;
                --background: #94959970;
                --background-checked: #01b868;
            }
        }
    }

}


.chat {
    padding: 10px 5%;
    height: calc(100vh - 65px);
    color: white;
    padding-bottom: 100px;
    overflow: auto;
}


.chat-per-over {
    margin: 20px 0;

    .over-heading {        
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;

        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: calc(50% - 2px);
            height: 4px;
            background-color: $blue-grey;
            width: 100%;
        }
        
        h5 {
            position: relative;
            background-color: $dark-blue;
            padding: 0 10px;
            margin: 0;
            font-size: 1.2rem;
            color: $blue-grey;
            font-weight: 500;
            letter-spacing: 1px;
        }
    }
}

.chat-per-ball {
    margin: 20px 0px 70px 0px;

    .ball-heading {        
        font-size: 1rem;
        color: $blue-grey;
        font-weight: 500;
        letter-spacing: 1px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 5%;

        img {
            width: 20px;
            margin-right: 10px;
        }
    }

    ul {
        list-style: none;
        padding: 0 10px;
        margin: 0;
    }

    li {
        background-color: lighten($dark-blue, 10%);
        color: white;
        max-width: 80%;
        display: block;
        border-radius: 15px;
        padding: 10px;
        margin: 25px auto 25px 0px;
        box-shadow: -2px 2px 10px -2px black;

        &.sender {
            margin: 25px 0px 25px auto;
            box-shadow: 2px 2px 10px -2px black;

            .user-data {
                flex-direction: row-reverse;
            }
        }

        p {
            margin: 0px;
            font-size: 0.9rem;
            color: white;
            line-height: 1.5;
            padding: 0 5px;
        }
    }

    .user-data {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        border-bottom: 2px solid rgba($blue-grey, 0.3);
        padding-bottom: 10px;
        margin-bottom: 10px;

        img {
            width: 30px;
            height: 30px;
            padding: 2px;
            object-fit: contain;
            border-radius: 50%;
            border: 1px solid $blue-grey;
            background-color: rgba($blue-grey, 0.3);
        }

        label {
            font-size: 0.9rem;
            color: $blue-grey;
            font-weight: 500;
            letter-spacing: 1px;
            margin: 0px 10px;
        }
    }
}

.question-card {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 10px 10px 15px -7px darken($dark-blue, 10%);
    margin: 40px 0;
    overflow: hidden;
    background-color: rgba($blue-grey, 0.3);

    header {
        font-size: 1.5rem;
        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: 1.1rem;
                position: relative;
            }

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

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

.input-holder {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1;
    background-color: lighten($dark-blue, 2%);
    box-shadow: 0px 0px 5px black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    width: 100%;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;

    input {
        flex-grow: 1;
        border: 0px;
        background-color: lighten($dark-blue, 10%);
        height: 40px;
        border-radius: 20px;
        color: white;
        font-size: 14px;
        font-weight: 500;
        padding: 0px 10px 0px 15px;
        margin-right: 5%;

        &::placeholder {
            font-style: italic;
            letter-spacing: 0.5px;
        }
    }

    button {
        background-color: $green;
        color: white;
        font-size: 15px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}