/* COLORS
========================================== */

:root {
  --gray: black;
  --blue: #689bf6;
  --yellow: #ffd84c;
  --orange: #f66867;
  --purple: #8e6ac1;
  --white: black;
  --black: #000000;
}

/* RESET
========================================== */

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--gray);
  font-family: 'Roboto Condensed', sans-serif;
}

/* BUTTON
========================================== */

.button {
  position: absolute;
  top: 0;
  /*left: 0;*/
  /*width: 100%;*/
  /*height: 100%;*/
  z-index: 2;
}

.button button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: inherit;
  background-color: var(--white);
  border: 0;
  padding: 15px 25px;
  color: var(--black);
  text-transform: uppercase;
  font-size: 21px;
  letter-spacing: 1px;
  width: 200px;
  overflow: hidden;
  outline: 0;
  transition: all .4s;
  visibility: visible;
  opacity: 1;
  font-weight: bold;
  box-shadow: 0px 6px 30px rgba(0,0,0,0.6);
}

.button button:hover {
  cursor: pointer;
  background-color: var(--purple);
  color: var(--white);
}

.button.clicked button {
  visibility: hidden;
  opacity: 0;
}

/* POP-UP
========================================== */

.pop-up {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  overflow-y: auto;
  box-shadow: 0px 6px 30px rgba(0,0,0,0.4);
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  z-index: 10;
  background-color: var(--white);
  width: 100%;
  height: 100%;
}

.pop-up .content {
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  text-align: center;
  position: relative;
  min-height: 100vh;
}

.pop-up .content .container {
  padding: 100px 20px 140px;
}

.pop-up .content .container h1 {
  font-size: 1.5rem;
  color: var(--gray);
  line-height: 130%;
  letter-spacing: 0.07rem;
  margin-bottom: 30px;
}

.pop-up .content .container h1 span {
  color: var(--orange);
}

.pop-up .content .close {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  color: var(--gray);
  transition: all .4s;
}

.pop-up .content .close:hover {
  cursor: pointer;
  color: var(--orange);
}

.pop-up .content .dots .dot {
  position: absolute;
  border-radius: 100%;
  z-index: 11;
}

.pop-up .content .dots .dot:nth-of-type(1) {
  top: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  background-color: var(--blue);
  animation: float 6s ease-in-out infinite;
}

.pop-up .content .dots .dot:nth-of-type(2) {
  bottom: -120px;
  left: -120px;
  width: 240px;
  height: 240px;
  background-color: var(--orange);
  animation: float 8s ease-in-out infinite;
}

.pop-up .content .dots .dot:nth-of-type(3) {
  bottom: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background-color: var(--yellow);
  animation: float 4s ease-in-out infinite;
}

.pop-up .content .title h1 {
  text-align: center;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: 0.05rem;
}

.pop-up .content img {
  width: 100%;
  max-width: 220px;
  display: inline-block;
  margin: 30px 0 40px 0;
  opacity: 0;
  transform: translateX(60px);
  transition: .2s;
  -webkit-backface-visibility: hidden;
}

.pop-up .content img.open {
  opacity: 1;
  transition: 1s;
  transition-delay: .3s;
  transform: translateX(0px);
}

.pop-up .content form {
  overflow: hidden;
}

.pop-up .content form input {
  width: 100%;
  float: left;
  padding: 15px 20px;
  text-align: center;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
  outline: 0;
}

.pop-up .content form input[type=email] {
  margin-bottom: 15px;
  border: 1px solid rgba(62, 65, 70, 0.5);
  transition: all .4s;
}

.pop-up .content form input[type=email]:focus {
  border-color: var(--gray);
}

.pop-up .content form input[type=submit] {
  background-color: var(--purple);
  color: var(--white);
  border: 1px solid var(--purple);
  transition: all .4s;
}

.pop-up .content form input[type=submit]:hover {
  cursor: pointer;
  background-color: darken(var(--purple), 10%);
  border-color: darken(var(--purple), 10%);
}

/* KEYFRAMES
========================================== */

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

.pop-up.open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pop-up .content img.open {
  opacity: 1;
  transition: 1s;
  transition-delay: .3s;
  transform: translateX(0px);
}

.flag-banner {
  width: 100%;
  height: 200px;
  background-image: url('../../assets/img/img/MericaBannerHD.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .flag-banner {
    height: 150px;
  }
}

@media (min-width: 480px) {
  .flag-banner {
    height: 120px;
  }
}

