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

@property --color-rdg-previews-and-predictions-column-bg {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-rdg-previews-and-predictions-header {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-rdg-previews-and-predictions-list {syntax: "<color>";inherits: true;initial-value: #F1F1F1;}
@property --color-rdg-previews-and-predictions-list-team {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-rdg-previews-and-predictions-versus {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-rdg-previews-and-predictions-footer-btn {syntax: "<color>";inherits: true;initial-value: #013b6b;}
@property --color-rdg-previews-and-predictions-footer-btn-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-rdg-previews-and-predictions-btn {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}

.rdg-blocks .rdg-previews-and-predictions {
    .preview-thumbs {
        background-image: url('../images/rdg-previews-and-predictions-template-preview.jpg');
    }
    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .column {
            padding: 1.25rem 0.625rem;
            border-radius: 0.8rem;
            background-color: var(--color-rdg-previews-and-predictions-column-bg);
            width: 25rem;
            height: 535.38px;

            @media (max-width: 450px) {
                width: 18.75rem;
                min-width: initial;
                height: auto;
            }

            @media (max-width: 860px) {
                height: auto;
            }

            .header {
                text-align: center;
                color: var(--color-rdg-previews-and-predictions-header);
            }
        
            .main {
                padding: 1.25rem 0.313rem;
                text-align: center;
            }
        
            .list {
                border-bottom: 0.063rem solid var(--color-rdg-previews-and-predictions-list);
                padding: 0.063rem 0.625rem;
                text-align: center;
                margin-bottom: 0.75rem;
                display: flex;
                justify-content: center;
        
                &:last-child {
                    border-bottom: none;
                    margin-bottom: 0;
                }
        
                .first-team-name, .second-team-name {
                    color: var(--color-rdg-previews-and-predictions-list-team);
                    min-width: max-content;
                    display: flex;
                    width: 50%;

                    @media (max-width: 450px) {
                        min-width: auto;
                    }
                }
        
                .first-team-name {
                    justify-content: flex-end;
                }
        
                .second-team-name {
                    justify-content: flex-start;
                }
        
                .versus {
                    color: var(--color-rdg-previews-and-predictions-versus);
                    margin: 0 0.3125rem;
                    display: flex;
                    justify-content: center;
                    width: 10%;
                }
            }
        
            .footer {
                display: flex;
                justify-content: center;
                gap: 0.625rem;
        
                .btn {
                    background-color: var(--color-rdg-previews-and-predictions-footer-btn-bg);
                    color: var(--color-rdg-previews-and-predictions-btn);
                    padding: 0.625rem;
                    min-width: 7.313rem;
                    text-align: center;
                    border-radius: 0.3125rem;
                    transition: 0.3s ease-in;
        
                    &:hover {
                        background-color: var(--color-rdg-previews-and-predictions-footer-btn);
                    }
                }
            }
        }
    }
}
