/* ===================== */
/* Base */

body {
  font-family: Tahoma, Geneva, sans-serif;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: contain;
}

* {
  box-sizing: border-box;
}

/* ===================== */
/* Loading */

#p_loading,
.p_loading {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 99;
  background-color: #dadada;
}

/* ===================== */
/* Blink animation */

.parpadea {
  animation-name: parpadeo;
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  -webkit-animation-name: parpadeo;
  -webkit-animation-duration: 3s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
}

@-moz-keyframes parpadeo {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

@-webkit-keyframes parpadeo {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes parpadeo {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}

/* ===================== */
/* 3D swing */

.ladea {
  animation-name: ladea;
  animation-duration: 2000ms;
  animation-delay: 1500ms;
  animation-fill-mode: forwards;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform-origin: 50% 50%;
}

@keyframes ladea {
  0% {
    transform: rotateY(0deg);
    animation-timing-function: cubic-bezier(0.25, 0.25, 0.75, 0.75);
  }
  10%  { transform: rotateY(5deg); }
  20%  { transform: rotateY(-5deg); }
  30%  { transform: rotateY(5deg); }
  40%  { transform: rotateY(-5deg); }
  50%  { transform: rotateY(5deg); }
  60%  { transform: rotateY(0deg); }
  100% { transform: rotateY(0deg); }
}

/* ===================== */
/* Shake on hover */

.temblor:hover {
  animation: temblor 0.82s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  perspective: 1000px;
}

@keyframes temblor {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ===================== */
/* Infinite shake */

.temblor_inf {
  animation: temblor_inf 2s infinite;
}

@keyframes temblor_inf {
  0%   { transform: translate(1px, 1px) rotate(0deg); }
  10%  { transform: translate(-1px, -2px) rotate(-1deg); }
  20%  { transform: translate(-3px, 0) rotate(1deg); }
  30%  { transform: translate(3px, 2px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(1deg); }
  50%  { transform: translate(-1px, 2px) rotate(-1deg); }
  60%  { transform: translate(-3px, 1px) rotate(0deg); }
  70%  { transform: translate(3px, 1px) rotate(-1deg); }
  80%  { transform: translate(-1px, -1px) rotate(1deg); }
  90%  { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* ===================== */
/* Modal */

.p_modal {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.p_modal img {
  max-width: 100%;
  max-height: 20vh;
}

.p_modal h2 {
  color: #575757;
  font-size: 25px;
  text-align: center;
  font-weight: 600;
  margin: 25px 0;
}

.p_modal p {
  color: #797979;
  font-size: 15px;
  text-align: center;
  font-weight: 300;
  margin: 0;
  line-height: normal;
}

/* ===================== */
/* Buttons */

.p_modal_button {
  display: inline-block;
  background-color: #8cd4f5;
  color: #fff;
  border: 0;
  font-size: 17px;
  font-weight: 500;
  border-radius: 5px;
  padding: 10px 32px;
  margin: 26px 5px 0;
  cursor: pointer;
}

/* ===================== */
/* Checkmark */

.checkmark {
  display: none;
}

.checkmark.draw:after {
  animation: checkmark 800ms ease;
  transform: scaleX(-1) rotate(135deg);
}

.checkmark:after {
  content: "";
  position: absolute;
  left: 43%;
  top: 23%;
  width: 1.75em;
  height: 3.5em;
  border-right: 3px solid #5cb85c;
  border-top: 3px solid #5cb85c;
  transform-origin: left top;
  opacity: 1;
}

@keyframes checkmark {
  0%   { width: 0; height: 0; opacity: 1; }
  20%  { width: 1.75em; height: 0; opacity: 1; }
  40%  { width: 1.75em; height: 3.5em; opacity: 1; }
  100% { width: 1.75em; height: 3.5em; opacity: 1; }
}

/* ===================== */
/* Loader */

.circle-loader {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-left-color: #5cb85c;
  animation: loader-spin 1.2s infinite linear;
  border-radius: 50%;
  width: 7em;
  height: 7em;
  display: inline-block;
}

.load-complete {
  animation: none;
  border-color: #5cb85c;
  transition: border 500ms ease-out;
}

@keyframes loader-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================== */
/* Confetti */

.confeti {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

[class|="confetti"] {
  position: absolute;
}

.red    { background-color: #e94a3f; }
.yellow { background-color: #faa040; }
.blue   { background-color: #5fc9f5; }
