﻿* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    
    color: #333;

    font-family: 'Open Sans', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}











#container {
    position: fixed;
    top: calc(50% + 1.5rem);
    left: 50%;
    -webkit-transform: translate3d(-50%, -50%, 0);
    -moz-transform: translate3d(-50%, -50%, 0);
    -o-transform: translate3d(-50%, -50%, 0);
    -ms-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
    /**/
    
    /*background-color:blueviolet;*/
}

#topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #334d41;
    padding: 0.25rem;
    text-align: center;
}

    #topbar button {
        background: none;
        border: 1px solid #fff;
        outline: none;
        margin: 0.1rem;
        padding: 0.4rem;
        font: inherit;
        font-size: 0.75rem;
        line-height: 1;
        color: #fff;
        cursor: pointer;
    }

        #topbar button:hover {
             background-color: #fff;
            /*background-color: LightSlateGrey;*/
            color: #444;
        }

.message {
    position: fixed;
    top: 2.5rem;
    left: 0;
    width: 100%;
    padding: 1rem 0.5rem;
    font-size: 0.5rem;
    text-align: center;
}




.NoActiv {
    /*background-color: #C0BDBF;*/
    background-color: red;
     /*opacity: 0.9;*/
}




@keyframes westHand {
    0% {
       

        transform: translate(150%,150%);
    }

    100% {
        
    }
}





.WestAnimateCard {
    /* animation: go-left-right 1s infinite alternate;*/
    /* применить анимацию "go-left-right" на элементе
       продолжительностью 3 секунды
       количество раз: бесконечно (infinite)
       менять направление анимации каждый раз (alternate)
    */

    animation: westHand 1s ease alternate;
}





@keyframes eastHand {
    0% {       
        transform: translate(-150%,150%);
    }

    100% {
       
    }
}



.EastAnimateCard {
   

    animation: eastHand 1s ease alternate;
}



@keyframes southHand {
    0% {
        

        transform: translate(-150%,-150%);
    }

    100% {
        
    }
}


.SouthAnimateCard {
    

    animation: southHand 1s ease alternate;
}





.SouthAnimateCardMovingCon {
    animation: southHandMovingCon 0.5s ease forwards;
}

@keyframes southHandMovingCon {
    0% {
        /* Начальное состояние, можешь оставить пустым */
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(0%, -50%);
    }
}




.EastAnimateCardMovingCon {
    animation: eastHandMovingCon 0.5s ease forwards;
}

@keyframes eastHandMovingCon {
    0% {
        /* Начальное состояние, можешь оставить пустым */
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(75%,-70%);
    }
}




.WestAnimateCardMovingCon {
    animation: westHandMovingCon 0.5s ease forwards;
}

@keyframes westHandMovingCon {
    0% {
        /* Начальное состояние, можешь оставить пустым */
    }

    100% {
        top: 50%;
        left: 50%;
        transform: translate(-75%,-70%);
    }
}
