body {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background-color: #046386;
}

.letras {
  font-size: 10px;
}

#bg {
  background: url(https://vcard.mx/_/asset/css/1-2021/img/6.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100vw;
  filter: blur(30px);
  -webkit-filter: blur(30px);
  transform: scale(1.1);
}

.container {
  max-width: 400px;
  height: 95%;
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  grid-template-columns: repeat(12, 1fr);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media only screen and (max-width: 1100px) {
  .container {
    width: 95%;
  }
}

.instruct {
  width: 20%;
  max-width: 40px;
  position: absolute;
  right: 7px;
}

.head {
  grid-column-start: 1;
  grid-column-end: 10;
  grid-row-start: 1;
  grid-row-end: 13;

  display: grid;
  grid-template-rows: repeat(11, 1fr);
  grid-template-columns: repeat(12, 1fr);
}

.bottom {
  grid-column-start: 1;
  grid-column-end: 13;
  grid-row-start: 10;
  grid-row-end: 13;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
}

.top {
  grid-column-start: 1;
  grid-column-end: 13;
  grid-row-start: 1;
  grid-row-end: 9;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-content: center;
}
.card-container {
  height: 130px;
  perspective: 600;
  position: relative;
  width: 130px;
  margin: 0 auto;
}
.card {
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: all 1s ease-in-out;
  transition-delay: 0.1s;
  width: 100%;
  max-width: 170px;
  max-height: 170px;
}
.card:hover {
  transform: rotateY(180deg);
}
.photo {
  background-size: cover;
  backface-visibility: hidden;
  border-radius: 50%;
  height: 100%;
  cursor: pointer;
  position: initial;
  overflow: hidden;
  width: 100%;
}
.hover {
  font-size: 34px;
  position: absolute;
  bottom: 0;
  left: 75%;
  z-index: 99;
  opacity: 0;
  animation: hover 10s 1;
  animation: blinker 1s cubic-bezier(0.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes hover {
  0% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}
.photo-back {
  background: white;
  backface-visibility: hidden;
  border-radius: 50%;
  height: 100%;
  position: initial;
  overflow: hidden;
  width: 100%;
  color: #0087cc;
  line-height: 150px;
  text-align: center;
  transform: rotateY(180deg);
  font-size: 2.2em;
}
.photo-back a {
  color: hsl(0, 0%, 22%);
}
.fab {
  transition: color 0.5s ease;
}
.fab.fa-twitter {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 15px);
}
.fa-twitter:hover {
  color: #38a1f3;
}
.fab.fa-facebook-square {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(15px, -50%);
}
.fa-facebook-square:hover {
  color: #3b5998;
}
.fab.fa-instagram {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -15px);
}
.fa-instagram:hover {
  color: #ee2a7b;
}
.fab.fa-youtube {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(-15px, -50%);
}
.fa-youtube:hover {
  color: #ed3833;
}
.text {
  background: white;
  width: 200px;
  margin: 20px auto 0;
  border-radius: 10px;
  padding: 10px;
  font-family: "Oswald", sans-serif;
  position: relative;
}
.text:after {
  bottom: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.text:after {
  border-bottom-color: white;
  border-width: 10px;
  margin-left: -10px;
}

h2 {
  color: #fff;
  font-family: Verdana, Geneva, sans-serif;
  text-shadow: 3px 3px 6px #000;
  font-size: 12pt;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}
h3 {
  line-height: 30px;
  color: #fff;
  text-shadow: 2px 2px 5px #000;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11pt;
  text-align: center;
}
.bottom a {
  flex: 1;
  text-align: center;
  justify-content: center;
  align-content: center;
  color: white;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-size: 20px;
  text-transform: uppercase;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0px;
  transition: all 0.5s ease;
  position: relative;
}
.bottom a:not(:first-child):before {
  content: "";
  border-left: 2px solid rgba(255, 255, 255, 0.45);
  position: absolute;
  height: 80%;
  left: 0;
  top: 10%;
}
.bottom a:hover i {
  margin-bottom: 5px;
}

.boton_confirmar {
  text-decoration: none;
  padding: 10px;
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
  background-color: #1883ba;
  border-radius: 32px;
  border: 1px solid #acacac;
}

.boton_confirmar:hover {
  color: #1883ba;
  background-color: #ffffff;
}

.right {
  grid-column-start: 10;
  grid-column-end: 13;
  grid-row-start: 1;
  grid-row-end: 13;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
}
.right a {
  flex: 1;
  text-align: center;
  justify-content: center;
  align-content: center;
  color: hsl(0, 0%, 54.1%);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  font-size: 20px;
  text-transform: uppercase;
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  transition: color 0.5s ease;
}
#active {
  color: hsl(0, 0%, 20%);
}
.right a i,
.bottom a i {
  font-size: 29px;
  margin-bottom: 9px;
  transition: margin 0.3s ease, font-size 0.5s ease;
}
.right a:hover {
  color: hsl(0, 0%, 20%);
}
@media only screen and (max-height: 500px) {
  .container {
    height: 95%;
    max-width: 400px;
  }
  .card-container {
    width: 150px;
    height: 150px;
  }
}
@media only screen and (max-width: 420px) {
  .bottom a,
  .right a {
    font-size: 0.9em;
  }
  .bottom a i,
  .right a i {
    font-size: 25px;
  }
  .top .text {
    width: 80%;
  }
}

@media only screen and (max-width: 370px) {
  h2 {
    color: #fff;
    font-family: Verdana, Geneva, sans-serif;
    text-shadow: 2px 2px 2px #3c3c3c;
    font-size: 10pt;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
  }
  h3 {
    line-height: 30px;
    color: #fff;
    text-shadow: 2px 2px 2px #3c3c3c;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 9pt;
    text-align: center;
  }
}
