@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-picks-vs {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;

        @include title;

        .picks {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.2rem;
    
            .pick {
                display: flex;
                flex-direction: column;
                width: 25rem;
                border-radius: .5rem;
                background-color: $color-white;
                padding-top: 1rem;
                padding-bottom: 2rem;
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }
    
                .pick-header {
                    display: flex;
                    flex-direction: column;
    
                    .content {
                        width: 100%;
                        display: flex;
                        padding: .5rem;
    
                        .sport {
                            width: 20%;
                        }
    
                        .date-time {
                            width: 60%;
                            display: flex;
                            justify-content: center;
                            text-align: center;
                        }
    
                        .status {
                            width: 20%;
                            display: flex;
                            justify-content: end;
                        }
                    }
                }
    
                .pick-body {
                    display: flex;
                    flex-direction: column;
                    padding: 0 .5rem;
    
                    .teams {
                        display: flex;
    
                        .team {
                            display: flex;
                            align-items: center;
                            justify-content: end;
                            flex-direction: column;
    
                            &:nth-last-of-type(1), &:nth-last-of-type(3) {
                                width: 38%;
                            }
    
                            &:nth-last-of-type(2) {
                                width: 24%;
                            }
    
                            .team-logo {
                                img {
                                    max-width: 90px;
                                    max-height: 90px;
    
                                    @media (max-width: 450px) {
                                        & {
                                            max-width: 70px;
                                            max-height: 70px;
                                        }
                                    }
                                }
                            }
    
                            .team-name {
                                padding: .3rem;
                                text-align: center;
                            }
                        }
    
                        .team-vs {
                            display: flex;
    
                            .vs-logo {
                                width: 100%;
                                height: 100%;
                                display: flex;
                                align-items: center;
                                justify-content: center;
    
                                span {
                                    display: flex;
                                    justify-content: center;
                                    align-items: center;
                                    height: 1.7rem;
                                    width: 1.7rem;
                                    font-weight: 500;
                                    color: $color-white;
                                    border-radius: 50%;
                                    font-size: .9rem;
                                    background-color: var(--color-picks-vs-picks);
                                }
                            }
    
                            .vs-name {
                                width: 100%;
                                display: flex;
                                justify-content: center;
                                border-radius: .3rem;
                                padding: .4rem;
                                background-color: var(--color-picks-vs-picks);
    
                                span {
                                    text-align: center;
                                    font-weight: 600;
                                    color: $color-white;
                                    text-transform: uppercase;
                                    font-size: .9rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    
        .buttons {
            padding-top: 1rem;
            display: flex;
            justify-content: center;
            gap: 1rem;
    
            @media (max-width: 350px) {
                & {
                    flex-direction: column;
                }
            }
    
            a {
                margin-top: 1rem;
                padding: .8rem 1.5rem;
                font-size: 1rem;
                font-weight: 500;
                //margin-right: 1rem;
                color: var(--color-white);
                border-radius: .4rem;
                min-width: 10rem;
                text-align: center;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: .2s background-color ease-in-out, .2s color ease-in-out, .2s border-color ease-in-out, .2s opacity ease-in-out, .2s box-shadow ease-in-out;
                
                &.link-success {
                    border-top: 3px solid var(--color-success-light);
                    background-color: var(--color-success);
                }
    
                &.link-warning {
                    border-top: 3px solid var(--color-warning-light);
                    background-color: var(--color-warning);
                }
    
                &.link-danger {
                    border-top: 3px solid var(--color-danger-light);
                    background-color: var(--color-danger);
                }
    
                &.link-default {
                    color: var(--color-primary);
                    border: 2px solid var(--color-primary);
                    background-color: var(--color-gray);
                }
    
                &:last-of-type {
                    @media (max-width: $breakpoint-sm) {
                        & {
                            margin-top: 0;
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-picks-vs {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
