* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    background-color: #CCC;
    font-size: 12px;
}
body:after{
    display: none;
    content: url('https://www.tot.co.th/webimages/surveytot/survey-01-2.png') url('https://www.tot.co.th/webimages/surveytot/survey-02-2.png') url('https://www.tot.co.th/webimages/surveytot/survey-03-2.png');
}
.label-container {
    z-index: 999;
    position: fixed;
    bottom: 48px;
    right: 105px;
    display: table;
    visibility: hidden;
}

.label-text {
    color: #FFF;
    background: rgba(51, 51, 51, 0.5);
    display: table-cell;
    vertical-align: middle;
    padding: 10px;
    border-radius: 3px;
}

.label-arrow {
    display: table-cell;
    vertical-align: middle;
    color: #333;
    opacity: 0.5;
}

.float {
    z-index: 999;
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #06C;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
}

.my-float {
    font-size: 24px;
    margin-top: 18px;
}

a.float+div.label-container {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
}

a.float:hover+div.label-container {
    visibility: visible;
    opacity: 1;
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 700px !important;
    }
}

.survey-icons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    width: 265px;
    z-index: 99
}

.img-res {
    width: 100%;
    align-self: flex-end;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    margin: 0 auto 0 auto;
    transform-origin: bottom;
}

.model-width {
    width: 800px;
}

.modal-dialog {
    width: 800px;
}

.img-balloon-survey {
    width: 100%;
    align-self: flex-end;
    margin: 0 auto 0 auto;
    transform-origin: bottom;
    position: relative;
    left: 50px;
    bottom:26px;
    opacity: 0;
    
    transition: opacity 1s 1s ease-in-out;
    
}
.img-balloon-survey.active{
    opacity:1;
    /* animation-duration: 2s;
    animation-delay: 0.05s;
    animation-iteration-count: infinite;
    animation-name: bounce-tot-survey;
    animation-timing-function: ease;
    transform: scale(1); */
    animation: fadeBallonIn 1s ease-in-out;
}
/*
.img-balloon-survey.active.xbounce{
    animation-duration: 2s;
    animation-delay: 0.10s;
    animation-iteration-count: infinite;
    animation-name: bounce-tot-survey;
    animation-timing-function: ease;
   
    
}
*/

@keyframes fadeBallonIn{
    0% {
        transform: scale(0); 
        left:30px;
        opacity: 0;
      }
      50% {
        transform: scale(1.25);
        opacity: 0.8;
        left:70px;
      }
      100% {
        transform: scale(1);
        opacity: 1;
        left:50px;
      }    
}

.img-smiley-survey {
    width: 100%;
    align-self: flex-end;
    animation-duration: 2s;
    animation-iteration-count: infinite; 
    margin: 0 auto 0 auto;
    transform-origin: bottom;
    position: absolute;
    top: 0;
    bottom: 0;
    padding-left: 15px;    
}

@keyframes bounce-tot-survey {
    0%   { transform: scale(1,1)      translateY(0); }
    10%  { transform: scale(1.1,.9)   translateY(0); }
    30%  { transform: scale(.9,1.1)   translateY(-50px); }
    50%  { transform: scale(1.05,.95) translateY(0); }
    57%  { transform: scale(1,1)      translateY(-7px); }
    64%  { transform: scale(1,1)      translateY(0); }
    100% { transform: scale(1,1)      translateY(0); }
}

/*
.bounce-tot-survey {
    animation-name: bounce-tot-survey;
    animation-timing-function: ease;
}
*/
@keyframes bounce-tot-survey-delay {
    0%   { transform: scale(1,1)      translateY(0); }
    10%  { transform: scale(1.1,.9)   translateY(0); }
    30%  { transform: scale(.9,1.1)   translateY(-50px); }
    50%  { transform: scale(1.05,.95) translateY(0); }
    57%  { transform: scale(1,1)      translateY(-7px); }
    64%  { transform: scale(1,1)      translateY(0); }
    100% { transform: scale(1,1)      translateY(0); }
}

.bounce-tot-survey-delay {
    /* -webkit-animation-duration: 1s;
    /* animation-duration: 1s;
    -webkit-animation-name: bounce;
    animation-name: bounce;
    animation-name: bounce-tot-survey;
    animation-timing-function: ease; */
    animation: fadeBallonIn 1s 1s ease-in-out;
    
}

.img-shadow-survey img {
    animation: shadow 2s 0.05s ease infinite;
}

@keyframes shadow{
    0%   { transform: scale(1) ; }
    10%  { transform: scale(1,.8)  ; }
    30%  { transform: scale(.8,1)  ; }
    50%  { transform: scale(1,.8) ; }
    57%  { transform: scale(1,1) ; }    
    64%  { transform: scale(1,1) ; }
    100% { transform: scale(1,1) ; }
}

/* @-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}
    40% {-webkit-transform: translateY(-30px) }
    60% {-webkit-transform: translateY(-20px);}
}  */

.img-balloon-survey.image_section img{
    display: block;
}
.img-smiley-survey.image_section img{
    display: block;
}
.img-shadow-survey.image_section img{
    display: block;
}

@media only screen and (max-width:480px) {
    .img-balloon-survey.image_section img:first-child{
        display:none;
    }
    .img-smiley-survey.image_section img:first-child{
        display:none;
    }
    .img-shadow-survey.image_section img:first-child{
        display:none;
    }
}
