* {
    margin: 0;
    padding: 0
}

body {
    background: #fafafa;
}

.buttons>a {
    text-decoration: none
}

.buttons {
    display: flex;
    height: 400px;
    width: 100%;
    /* $thia->{$video} */
    /*background-image: url(https://images.unsplash.com/photo-1469457245180-8b90ba0fdfa2?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=cf399f697c9dd104baf8e3c6786b7d4d&auto=format&fit=crop&w=1500&q=80);*/
    justify-content: center;
    align-items: center;
    position: relative;
    -webkit-background-size: cover;
    background-size: cover;
    z-index: 1;
}

.buttons:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    /*background: rgba(239 232 232 / 85%);*/
    z-index: 2;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ameer {
    width: 50px;
    height: 50px;
    background: #1e9bf4;
    border-radius: 50%;
    margin: 100px auto;
    position: relative;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 20px;
    z-index: 4;
}

.ameer span {
    display: block;
    position: absolute;
    border: 2px dotted #333;
    border-radius: 50%;
    animation: ameer 1s infinite
}

.ameer span:nth-child(2) {
    width: 250%;
    height: 250%;
    animation-delay: 0.1s
}

.ameer span:nth-child(3) {
    width: 350%;
    height: 350%;
    animation-delay: 0.2s
}

.ameer span:nth-child(4) {
    width: 450%;
    height: 450%;
    animation-delay: 0.3s
}

.ameer:after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 50%;
    background: #85c8f9;
    animation: ameer 1s infinite;
    z-index: -1;
}

@keyframes ameer {
    from {
        transform: scale(1);
        opacity: 1
    }
    to {
        transform: scale(1.4);
        opacity: 0
    }
}


/* Video Modal - Theater Mode
-------------------------------------------------------------------------------*/

.video-modal,
.video-modal .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 300;
}

.video-modal {
    overflow: hidden;
    position: fixed;
    opacity: 0.0;
    -webkit-transform: translate(500%, 0%);
    transform: translate(500%, 0%);
    -webkit-transition: -webkit-transform 0s linear 0s;
    transition: transform 0s linear 0s;
    /* using flexbox for vertical centering */
    /* Flexbox display */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    /* Horizontal alignment */
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    /* Vertical alignment */
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.video-modal .overlay {
    z-index: 0;
    background: #ff7675;
    /* dark blue */
    opacity: 0.0;
    -webkit-transition: opacity 0.2s ease-out 0.05s;
    transition: opacity 0.2s ease-out 0.05s;
}

.video-modal-content {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    height: auto;
    /*   width: 76%; */
    width: calc(100% - 200px);
    max-width: 1000px;
    max-height: calc(100% - 100px);
    margin: 0 auto;
    overflow-y: visible;
}


/* Mobile Layout Tweaks */

@media (max-width: 640px) {
    .video-modal-content {
        width: calc(100% - 16px);
    }
}


/* close button */

.close-video-modal {
    display: block;
    position: absolute;
    right: 0;
    top: -40px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    /*border: 2px solid red;*/
}

.close-video-modal svg {
    width: 30px;
}


/* using a 16:9 image to resize the video frame */

.video-sizer {
    display: block;
    width: 100%;
    height: auto;
}


/* set the iframe element to stretch to fit its parent element */

iframe#youtube {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.5);
}


/* show the modal */


/* add class to the body */

.show-video-modal .video-modal {
    opacity: 1.0;
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}

.show-video-modal .video-modal .overlay {
    opacity: 1.0;
}

.show-video-modal .video-modal-content {
    transform: translate(0%, 0%);
    -webkit-transform: translate(0%, 0%);
}