/* ----------------------------------------------------------- */
/* == tingle v0.8.2 */
/* ----------------------------------------------------------- */

.tingle-modal * {
  box-sizing: border-box;
}

.tingle-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  visibility: hidden;
  background: rgba(0, 0, 0, .8);
  opacity: 0;
  cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAANpJREFUOBGNkz0KAjEQhYPYWXgCKws7LcXWyt7WG4i9jegBvIJ4AvEyXsRCsBDiN0sGkiE/O/A2O9n3viS7rPPeb9ETrVzPwrtHDzR1XF5I6oPWLQaeq5hDXQRw0I6xCuF5HH7Tz7oFuTkhrSyEhza8THaLoQhphpWUg/QOFyA/AFpy5nTbGrIjxvg4AiiGBzYc+rGZH9KPzFy+ZbX4bX9l+VDZr5NQMMbhbtvMxccpQ3JhpTchtXATQviItIpvW0CY7HHm8c9UDRd2chbABt3RQk2tEe8O3dDkD4JQ4iOR7BMpAAAAAElFTkSuQmCC"), pointer;
  transition: opacity .2s ease;
}

/* confirm and alerts
-------------------------------------------------------------- */

.tingle-modal--confirm .tingle-modal-box {
  text-align: center;
}

/* modal
-------------------------------------------------------------- */

.tingle-modal--noClose {
  cursor: default;
}

.tingle-modal--noClose .tingle-modal__close {
  display: none;
}

.tingle-modal__close {
  position: fixed;
  top: 1vw;
  right: 1vw;
  z-index: 1000;
  padding: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: normal;
  cursor: pointer;
}

.tingle-modal-box {
  position: absolute;
  width: 92%;
  border-radius: 4px;
  background: #fff;
  opacity: 1;
  cursor: auto;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  margin-top: 60px;
}


.tingle-modal-box__content {
  padding: 20px;
}


.tingle-modal-box__footer {
  padding: 1.5rem 2rem;
  width: auto;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  background-color: #f5f5f5;
  cursor: auto;
  text-align: center;
}

.tingle-modal-box__footer::after {
  display: table;
  clear: both;
  content: "";
}

.tingle-modal-box__footer--sticky {
  position: fixed;
  bottom: -200px; /* TODO : find a better way */
  z-index: 10001;
  opacity: 1;
  transition: bottom .3s ease-in-out .3s;;
}

/* state
-------------------------------------------------------------- */

.tingle-enabled {
  overflow: hidden;
  height: 100%;
}

.tingle-modal--visible .tingle-modal-box__footer {
  bottom: 0;
}

.tingle-enabled .tingle-content-wrapper {
  filter: blur(15px);
}

.tingle-modal--visible {
  visibility: visible;
  opacity: 1;
}

.tingle-modal--visible .tingle-modal-box {

}

.tingle-modal--overflow {
  padding-top: 5vh;
}

/* btn
-------------------------------------------------------------- */

.tingle-btn {
  width: 100%;
  display: inline-block;
  margin: 0 .5rem;
  padding: 10px;
  border: none;
  background-color: grey;
  box-shadow: none;
  color: #fff;
  vertical-align: middle;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  line-height: normal;
  cursor: pointer;
  transition: background-color .4s;
  margin: 4px 0;
}

.tingle-btn--primary {
  background-color: #7fcc26;
}

.tingle-btn--danger {
  background-color: #2e2d30;
}

.tingle-btn--default {
  background-color: #34495e;
}

.tingle-btn--pull-left {
  float: left;
}

.tingle-btn--pull-right {
  float: right;
}


@media only screen and (min-width:1024px) {
    .tingle-modal-box {
        width: 620px;
    }

    .tingle-modal-box__content {
      padding: 3rem 2rem;
    }

    .tingle-btn {
        width: auto;
        padding: 20px 40px;
        margin: 0 0 0 10px;
    }
}


/***********************************************/
/* WEBSOCKET HEALTH */
/***********************************************/
.goodHealth {
  border-radius: 10%;
  transform: scale(1);
  animation: pulse 2s infinite;
}
.badHealth {
  transform: scale(1);
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
  }
25% {
    transform: scale(0.98);
}

  50% {
    transform: scale(1);
  }
  
  50% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(0.95);
  }
}