
.review-hub-wrapper {
    .review-hub {
        border: 1px solid #ccc;
        border-radius: 5px;
        display: inline-block;
        vertical-align: top;
        width: 100%;
        margin: 15px auto;
        position: relative;
        box-sizing: border-box;
        overflow: hidden;

        .search-box {
            padding: 15px;
            vertical-align: top;
            width: 100%;
            background-color: #1c2d44;
            color: #fff;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: center;
            justify-content: flex-start;
            align-items: center;
            column-gap: 10px;    

            > span {
                width: 100%;
                font-size: 18px;
                font-family: helvetica;
                padding: 0 5px;
                font-weight: 500;
            }

            .search_controls {
                min-width: 302px;
                display: flex;
                flex-direction: row;
                flex-wrap: nowrap;
                align-content: center;
                justify-content: flex-start;
                align-items: center;
                column-gap: 6px;

                input[type="text"] {
                    border: none;
                    outline: none;
                    width: 200px;
                    min-height:40px;                    
                }
    
                button.search_button {
                    background: #73ac05;
                    color: #fff;
                    font-family: helvetica;
                    font-size: 18px;
                    line-height: 40px;
                    padding: 0 18px;
                    cursor: pointer;
                    border: 1px solid #73ac05;
                    position: relative;
                    overflow: hidden;

                    span {
                        z-index: 2;
                    }

                    &:after {
                        background: #fff;
                        position: absolute;
                        content: "";
                        height: 155px;                        
                        width: 50px;
                        z-index: 0;
                        left: -75px;
                        opacity: .2;                        
                        top: -50px;
                        transform: rotate(35deg);
                      }
    
                    &.ready{
                        &:after {
                            animation: ftm-swipe 1s 3 ease-in-out; ;
                            -webkit-animation: ftm-swipe 1s 3 ease-in-out;;                        
                        }                        
                    }

                    &:hover{
                        &:after{
                            -webkit-animation: none;
                            animation: none;    
                        }
                        background-color:#4a6b09;
                    }
                }
            }                    

            &.hidden{                
                min-height: 60px;
                .search_controls {
                    display: none;
                }
            }
        }

        .reviews-list-wrapper {
            background-color: #f7f7f7;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-content: flex-start;
            justify-content: center;
            align-items: flex-start;
            padding: 20px 0px;

            .review-box {
                border-radius: 5px;
                padding: 20px;
                margin: 10px;
                display: inline-block;
                vertical-align: top;
                width: 200px;
                background-color: #fff;
                box-shadow: 0px 0px 8px 7px #cccccc3b;
                text-align: center;

                a {
                    text-decoration: none;
                    color: #fff;

                    &:hover {
                        color: #fff;
                    }
                }

                > span {
                    font-size: 16px;
                    font-family: helvetica;
                    font-weight: 600;
                }

                > p {
                    color: #929292;
                }

                .read-review-btn {
                    background-color: #73ac05;
                    border: none;
                    color: white;
                    padding: 10px 20px;
                    text-align: center;
                    text-decoration: none;
                    display: inline-block;
                    font-size: 16px;
                    margin: 4px 2px;
                    cursor: pointer;
                    border-radius: 5px;
                    position: relative;
                    color:#fff;

                    &:visited{
                        color:#fff;
                    }

                    &:hover {
                        background-color: #0056b3;
                    }

                    i {
                        position: absolute;
                        right: 10px;
                        top: 50%;
                        transform: translateY(-50%);
                    }

                }

                > img {
                    max-width: 160px;
                    height: 84px;
                    object-fit: contain;
                    aspect-ratio: 16 / 9;
                }

                .stars {
                    position: relative;
                    top: 50px;
                }

                .site-rating {
                    font-size: 1rem;
                    height: 48px;
                    position: relative;
                    min-width: 140px;
                    display: flex;
                    flex-direction: column;
                    flex-wrap: nowrap;
                    align-content: center;
                    justify-content: center;
                    align-items: center;
                    max-width: 140px;
                    width: 100%;
                    padding: 10px 0px;
                    margin: 10px auto;

                    .just-stars {
                        font-size: 1.25rem;
                        height: 28px;
                        position: relative;
                        display: block;
                        width: 140px;   
                        
                        .star-rating__overlay {
                            background: url(/app/themes/ftm-base/assets/images/star-green.svg);
                            height: 100%;
                            left: 0;
                            position: absolute;
                            top: 0;
                            z-index: 4;
                        }

                        .star-rating__underlay {
                            background-size: 28px;
                            background: url(/app/themes/ftm-base/assets/images/star-green.svg);
                            height: 100%;
                            left: 0;
                            position: absolute;
                            top: 0;
                            filter: grayscale(1);
                            width: 100%;
                        }
                    }
                }

                ul.categories {
                    display: flex;
                    flex-direction: row;
                    flex-wrap: nowrap;
                    align-content: center;
                    justify-content: space-evenly;
                    align-items: center;
                    column-gap: 10px;
                    margin: auto auto 15px auto;
                    border-bottom: 1px solid #ccc6;
                    padding: 10px 0px;

                    > li{
                        list-style: none;
                        color: #616161;
                        font-family: helvetica;
                        font-size: 12px;
                        font-weight: 500;
                        text-transform: capitalize;

                        &.sports{
                            background: url(/app/themes/ftm-base/assets/images/sports.svg);
                            background-repeat: no-repeat;
                            background-position: left center;
                            padding-left: 15px;
                            background-size: 12px 12px;
                        }
                        
                        &.poker{
                            background: url(/app/themes/ftm-base/assets/images/poker-card.svg);
                            background-repeat: no-repeat;
                            background-position: left center;
                            padding-left: 15px;
                            background-size: 12px 12px;
                        }

                        &.casino{
                            background: url(/app/themes/ftm-base/assets/images/dice.svg);
                            background-repeat: no-repeat;
                            background-position: left center;
                            padding-left: 15px;
                            background-size: 12px 12px;
                        }

                    }
                }
            }
        }

        .pagination-container {
            display: flex;
            flex-direction: row;
            align-content: center;
            justify-content: center;
            align-items: center;
            column-gap: 10px;
            background-color: #f7f7f7;
            padding: 5px 0px;

            > .page-numbers {
                display: flex;
                flex-direction: row;
                align-content: center;
                justify-content: center;
                align-items: center;
                background-color: #73ac05;
                width: 30px;
                height: 30px;
                color: #fff;
                text-decoration: none;
                border-radius: 50%;
                border: 2px solid #fff;
                font-size: 12px;
                line-height: 12px;
                cursor: pointer;
                box-shadow: 0 0 10px 2px #ccc;

                &:hover{
                    background-color: #5d8312;
                }

                &.current{
                    background-color: #fff;
                    color: #73ac05;
                    border: 2px solid #73ac05;
                    cursor: default;
                }

            }
        }
        
        .lds-ftm-base {
            display: none;
            position: absolute;
            width: 100%;
            height: 100%;
            flex-direction: row;
            align-content: center;
            justify-content: center;
            align-items: center;
            column-gap: 12px;
            top: 0;
            background-color: #645e5e7d;

            div {
                display: inline-block;
                width: 16px;
                background: #6a9713;
                animation: lds-ftm-base 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;

                &:nth-child(1) {
                    animation-delay: -0.24s;
                }

                &:nth-child(2) {
                    animation-delay: -0.12s;
                }

                &:nth-child(3) {
                    animation-delay: 0;
                }
              }
        }    
        
        &.loading{
            .lds-ftm-base {
                display: flex;
            }
        }
    }
}

@keyframes lds-ftm-base {
    0% {
      top: 8px;
      height: 64px;
    }
    50%, 100% {
      top: 24px;
      height: 32px;
    }
  }          

@keyframes ftm-pulse {
    0% {
        transform: scale(.9);
        box-shadow: 0 0 0 0 rgba(#73ac05, 0);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 10px 4px rgba(#73ac05, 0.4);        
    }
    100% {
        transform: scale(.9);
        box-shadow: 0 0 0 0 rgba(#73ac05, 0);
    }
}

@keyframes ftm-swipe{
    0%{
        left: -75px;
        opacity: .2;                        
        top: -50px;
        transform: rotate(35deg);
        transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    }
    50%{
        left: 120%;
        transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    }
    100%{
        left: -75px;
        opacity: .2;                        
        top: -50px;
        transform: rotate(35deg);
        transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
    }
}