.message_wrapper {
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 450px;
    border: solid 1px #aaa;
    background: #515151;
    position: fixed;
    z-index: 10000;
    transform: translate(-50%, -50%) scale(0, 0);
    -moz-transform: translate(-50%, -50%) scale(0, 0);
    -webkit-transform: translate(-50%, -50%) scale(0, 0);
    -ms-transform: translate(-50%, -50%) scale(0, 0);
    transition: all 0.5s;
    box-sizing: border-box;
}
.message_wrapper.with_buttons {
    padding-bottom: 35px;
}

.message_wrapper.with_buttons .splash {
    margin: 5px 0 15px 0;
}

.x-button-messages {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    z-index: 20;
    border: solid 1px #777;
    cursor: pointer;
    border-radius: 3px;
}
.x-button-messages::after,
.x-button-messages::before {
    content:"";
    position: absolute;
    transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    background: #ddd;
    width: 4px;
    height: 16px;
    top: 2px;
    left: 8px;
    z-index: 25;
    border-radius: 2px;
}

.x-button-messages::after {
    transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
}


.message_wrapper.show_popup {
    animation: popup 0.5s forwards;
    -webkit-animation: popup 0.5s forwards;
    -ms-animation: popup 0.5s forwards;
    -moz-animation: popup 0.5s forwards;
}

.message_wrapper.close_popup {
    transform: translate(-50%, -50%) scale(1, 1);
    -webkit-transform: translate(-50%, -50%) scale(1, 1);
    -mz-transform: translate(-50%, -50%) scale(1, 1);
    -moz-transform: translate(-50%, -50%) scale(1, 1);

    animation: popout 0.4s forwards;
    -webkit-animation: popout 0.4s forwards;
    -ms-animation: popout 0.4s forwards;
    -moz-animation: popout 0.4s forwards;
}

@-webkit-keyframes popup
{
    0%   {
        transform: translate(-50%, -50%) scale(0, 0);
        -webkit-transform: translate(-50%, -50%) scale(0, 0);
        -ms-transform: translate(-50%, -50%) scale(0, 0);
        -moz-transform: translate(-50%, -50%) scale(0, 0);
    }
    50%    {
        transform: translate(-50%, -50%) scale(1.2, 1.2);
        -webkit-transform: translate(-50%, -50%) scale(1.2, 1.2);
        -ms-transform: translate(-50%, -50%) scale(1.2, 1.2);
        -moz-transform: translate(-50%, -50%) scale(1.2, 1.2);
    }
    100%  {
        transform: translate(-50%, -50%) scale(1, 1);
        -webkit-transform: translate(-50%, -50%) scale(1, 1);
        -mz-transform: translate(-50%, -50%) scale(1, 1);
        -moz-transform: translate(-50%, -50%) scale(1, 1);
    }
}

@-webkit-keyframes popout
{
    0%   {
        transform: translate(-50%, -50%) scale(1, 1);
        -webkit-transform: translate(-50%, -50%) scale(1, 1);
        -mz-transform: translate(-50%, -50%) scale(1, 1);
        -moz-transform: translate(-50%, -50%) scale(1, 1);
    }
    100%  {

        transform: translate(-50%, -50%) scale(0, 0);
        -webkit-transform: translate(-50%, -50%) scale(0, 0);
        -ms-transform: translate(-50%, -50%) scale(0, 0);
        -moz-transform: translate(-50%, -50%) scale(0, 0);

    }
}

.popup_title {
    color: #fff;
    border: solid 1px #777;
    font-size: 18px;
    padding: 5px;
    margin: 2px;
    background: #656565;
}

.message_wrapper p.splash {
    color:#fff;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    margin:0;
}

.jqm_overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
}

.buttons_wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    text-align:right;
}

.pjs_buttons {
    display: inline-block;
    background: #b6c6d1;
    background-image: -webkit-linear-gradient(top, #b6c6d1, #a1adb5);
    background-image: -moz-linear-gradient(top, #b6c6d1, #a1adb5);
    background-image: -ms-linear-gradient(top, #b6c6d1, #a1adb5);
    background-image: -o-linear-gradient(top, #b6c6d1, #a1adb5);
    background-image: linear-gradient(to bottom, #b6c6d1, #a1adb5);
    -webkit-border-radius: 10;
    -moz-border-radius: 10;
    border-radius: 4px;
    font-family: Arial;
    color: #515151;
    font-size: 15px;
    padding: 7px 10px;
    text-decoration: none;
    border: none;
    margin: 0 7px 7px 0;
}

.pjs_buttons:hover {
    background: #e0f3ff;
    background-image: -webkit-linear-gradient(top, #e0f3ff, #c3d1db);
    background-image: -moz-linear-gradient(top, #e0f3ff, #c3d1db);
    background-image: -ms-linear-gradient(top, #e0f3ff, #c3d1db);
    background-image: -o-linear-gradient(top, #e0f3ff, #c3d1db);
    background-image: linear-gradient(to bottom, #e0f3ff, #c3d1db);
    text-decoration: none;
}

.ok_button {
    padding: 7px 25px;
}

/* Preloaders */


/* Preloader circling circles */

.sk-fading-circle {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  position: relative;
}

.sk-fading-circle .sk-circle {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.sk-fading-circle .sk-circle:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #333;
  border-radius: 100%;
  -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
          animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}

.show_once_checkbox {
    position: absolute;
    bottom: 0;
    left: 10px;
    z-index: 10;
}

.show_once_checkbox input {
    width: 18px;
    height: 18px;
    vertical-align: top;
    cursor: pointer;
    margin-right: 5px;
}

.show_once_checkbox label {
    padding-top:5px;
    color:#ccc;
    font-size: 13px;
    font-weight: normal;
}

.sk-circle.light:before{
    background-color: #efefef;
}

.sk-fading-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
      -ms-transform: rotate(30deg);
          transform: rotate(30deg);
}
.sk-fading-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
      -ms-transform: rotate(60deg);
          transform: rotate(60deg);
}
.sk-fading-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg);
}
.sk-fading-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
      -ms-transform: rotate(120deg);
          transform: rotate(120deg);
}
.sk-fading-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
      -ms-transform: rotate(150deg);
          transform: rotate(150deg);
}
.sk-fading-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
      -ms-transform: rotate(180deg);
          transform: rotate(180deg);
}
.sk-fading-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
      -ms-transform: rotate(210deg);
          transform: rotate(210deg);
}
.sk-fading-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
      -ms-transform: rotate(240deg);
          transform: rotate(240deg);
}
.sk-fading-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
      -ms-transform: rotate(270deg);
          transform: rotate(270deg);
}
.sk-fading-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
      -ms-transform: rotate(300deg);
          transform: rotate(300deg);
}
.sk-fading-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
      -ms-transform: rotate(330deg);
          transform: rotate(330deg);
}
.sk-fading-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
          animation-delay: -1.1s;
}
.sk-fading-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
}
.sk-fading-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
          animation-delay: -0.9s;
}
.sk-fading-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
          animation-delay: -0.8s;
}
.sk-fading-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
          animation-delay: -0.7s;
}
.sk-fading-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
          animation-delay: -0.6s;
}
.sk-fading-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
          animation-delay: -0.5s;
}
.sk-fading-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
          animation-delay: -0.4s;
}
.sk-fading-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s;
}
.sk-fading-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
          animation-delay: -0.2s;
}
.sk-fading-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
          animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleFadeDelay {
  0%, 39%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

@keyframes sk-circleFadeDelay {
  0%, 39%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* Preloaders */