@font-face {
    font-family: 'Montserrat';
    src: url(font/Montserrat-Bold.ttf);
    font-weight: bold;
}

body {
    background-image: url('../imgs/bg.jpg');
    background-color: #f44336;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.modal-backdrop.show {
    opacity: 78%;
}

.flex-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 0;
    flex-direction: column;
    justify-content: space-around;
}

.text-content {
    flex: 0 0 auto;
    font-family: 'Montserrat';
    font-size: 26px;
    line-height: 32px;
    text-align: center;
    text-transform: uppercase;
    color: #FFC609;
    margin: 1rem 0;
}

.slot-machine {
    position: relative;
    width: 849px;
    height: 455px;
}

.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/screen.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
}

.select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imgs/select.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
    display: none;
}

.select.show {
    display: block;
}

.slot-mech {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    z-index: 2;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
}

.slot-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 33.3%;
}

.slot-item {
    width: 100%;
    height: 33.3%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: calc(435px / 3);
}

.stop-btn {
    position: absolute;
    bottom: -26px;
    left: calc((100% - 200px) / 2);
    width: 200px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../imgs/stop-btn.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    font-size: 26px;
    text-align: center;
    color: #FCE550;
    font-family: 'Montserrat';
    text-decoration: none;
}

.stop-btn:hover {
    color: #FCE550;
    transform: scale(1.02);
}

.start {
    animation-name: run-slots;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-duration: 2s;
}

.begin {
    animation-name: run-slots;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-duration: 0.2s;
    filter: blur(2px);
}

.stop {
    animation-name: run-slots;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
    animation-duration: 2s;
}

.modal-content {
    border: none;
    width: 401px;
    height: 455px;
    margin: auto;
}
.modal-content .img-fluid {
    height: 450px;
}
.img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}
.modal-content h2 {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    font-size: 36px;
    line-height: 44px;
    text-align: center;
    text-transform: uppercase;
    color: #FFC609;
    font-family: 'Montserrat';
}

.modal-content p {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    font-family: 'Montserrat';
    font-size: 26px;
    line-height: 32px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
}

.modal-content p span {
    color: #FFC609;
    font-size: 50px;
    line-height: 50px;
}

.sanemt-btn {
    width: 233px;
    position: relative;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../imgs/sanem-btn.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
}

.link {
    position: relative;
    color: #fff;
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    z-index: 1;
    margin-top: 1rem;
}

.sanemt-btn:hover {
    color: #FCE550;
    transform: scale(1.02);
}

.modal {
    background-image: url('../imgs/modal-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes run-slots {
    0% {

        transform: translateY(0);
    }

    100% {

        transform: translateY(725px);
    }
}

@media screen and (max-width:992px) {
    .slot-machine {
        height: 376px;
        width: 700px;
    }
    .slot-item {
        height: calc(356px / 3);
    }
    .slot-item img {
        height: 80%;
    }
    @keyframes run-slots {
        0% {
    
            transform: translateY(0);
        }
    
        100% {
    
            transform: translateY(593px);
        }
    }
}

@media screen and (max-width:768px) {
    body {
        background: url('../imgs/mobile-bg.jpg');
        background-color: #f44336;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .slot-machine {
        height: 286px;
        width: 526px;
    }
    .slot-item {
        height: calc(266px / 3);
    }
    .slot-item img {
        height: 80%;
    }
    @keyframes run-slots {
        0% {
    
            transform: translateY(0);
        }
    
        100% {
    
            transform: translateY(444px);
        }
    }
}

@media screen and (max-width:526px) {
    body {
        background: url('../imgs/mobile-bg.jpg');
        background-color: #f44336;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    .slot-machine {
        height: 193px;
        width: 350px;
    }
    .slot-item {
        height: calc(183px / 3);
    }
    .slot-item img {
        height: 80%;
    }
    .slot-mech {
        top: 5px;
        left: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }
    .stop-btn {
        position: absolute;
        bottom: -20px;
        left: calc((100% - 150px) / 2);
        width: 150px;
        height: 48px;
        font-size: 20px;
    }
    .link {
        margin-top: .5rem;
    }
    @keyframes run-slots {
        0% {
    
            transform: translateY(0);
        }
    
        100% {
    
            transform: translateY(305px);
        }
    }
}