/* STYLING FRONT ARTICLE */

.front {
  margin-top: 0;
  padding-top: 5em;
}

/* styling slogan and contact button */

.front__slogan-section {
  margin: auto;
  padding-top: 10px;
  width: 98%;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: auto auto;
  grid-template-columns: auto auto;
  grid-column-gap: 3em;
}

.btn.btn-blue.front__contact-button {
  margin: 0;
  width: 180px;
  justify-self: end;
  align-self: center;
  font-size: 14px;
  padding: 10px 0;
}

.front__slogan {
  justify-self: start;
  align-self: center;
  font-size: 18px;
  color: #0098d4;
  font-weight: bold;
}

/* general styling for boxes */

.front__boxes-container {
  width: 98%;
  margin: 1% auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  grid-column-gap: 2em;
}

.front__animation-fade-in {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  animation-duration: 2s;
  -webkit-animation-duration: 2s;
}

.front__first-column {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto;
  grid-row-gap: 1em;
}

/* styling price box */

.front__price-box {
  color: white;
  background-color: #0098d4;
  padding: 18px;
  display: grid;
  grid-template-columns: 75% 25%;
  grid-template-rows: auto auto auto auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}

.front__animation-tada {
  -webkit-animation-name: tada;
  animation-name: tada;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  animation-delay: 2s;
  -webkit-animation-delay: 2s;
}
.front__animation-tada--infinite {
  -webkit-animation-name: tada-infinite;
  animation-name: tada-infinite;
  animation-duration: 60s;
  -webkit-animation-duration: 60s;
  animation-delay: 5s;
  -webkit-animation-delay: 5s;
  animation-iteration-count: infinite;
}

.front__price-img {
  justify-self: end;
}

.front__price-h2 {
  font-size: 16px;
  align-self: center;
  line-height: 1;
}

.front__price-h2--big {
  font-size: 2em;
  font-weight: bold;
}

.front__price-p {
  font-size: 14px;
  grid-column: 1 / span 2;
  justify-self: start;
  margin-top: 14px;
}

.front__price-p--bold {
  font-weight: bold;
}

.front__price-p--italic {
  margin-top: 0.5em;
  grid-row: 3;
  font-size: 16px;
  font-style: italic;
  align-self: end;
}

.front__price-p--right {
  grid-column: 1;
  margin-top: 0.3em;
  font-style: italic;
  justify-self: end;
}

/* styling video box */

.front__video {
  width: 100%; 
  height: auto;
  align-self: end;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* styling for product boxes */

.front__product-box {
  color: white;
  background-color: #007ab0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 51px auto 130px;
  grid-row-gap: 1em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.front__product-headings {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.front__product-h2 {
  font-size: 20px;
  transform: scaleY(0.8);
}

.front__product-h3 {
  font-size: 14px;
  margin-top: .4em;
  margin-left: 0.7em;
}

.front__product-main-text {
  font-size: 12px;
}

.front__product-description--margin-bottom {
  margin-bottom: 1em;
}

.front__product-description--margin-top {
  margin-top: 2em;
}

.front__product-description--bold {
  font-weight: bold;
}

.front__product-read-more {
  color: white;
  font-size: 0.9em;
}

.front__buttons {
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.front__login-button {
  margin: 0.4em auto;
  width: 220px;
  font-size: 14px;
  padding: 10px 0;
}

.front__trial-button {
  margin: 0.4em auto;
  width: 220px;
  font-size: 14px;
  padding: 10px 0;
}

.float-clear {
  display: none;
}

/* FADE ANIMATION ON HOVER

.hvr-fade-green:hover, .hvr-fade-green:focus, .hvr-fade-green:active {
  background-color: #00bb72;
}
.hvr-fade-dark:hover, .hvr-fade-dark:focus, .hvr-fade-dark:active {
  background-color: #326C96;
  color: white;
} */

/* ANIMATIONS FOR FRONT ARTICLE */

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }
  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }
  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }
  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }
  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}
@keyframes tada-infinite {
  from {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  10%,
  20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }
  30%,
  50%,
  70%,
  90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }
  40%,
  60%,
  80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}
@keyframes tada-infinite {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  0.125%,
  0.25% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }
  0.375%,
  0.625%,
  0.875%,
  1.125% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }
  0.5%,
  0.75%,
  1% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }
  1.25% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}


/* MEDIA QUERIES FOR FRONT ARTICLE */

@media (max-width: 1380px) {
  .front__slogan-section {
    width: 98%;
  }

  .front__boxes-container {
    width: 98%;
  }
}

@media (max-width: 1270px) {
  .front__price-img {
    height: 75px;
    width: auto;
  }

  .front__price-h2--big {
    font-size: 1.85em;
  }
}

@media (max-width: 890px) {
  .front__slogan-section {
    width: 98%;
  }

  .front__boxes-container {
    width: 98%;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 3em;
    grid-column-gap: 3em;
  }

  .front__first-column {
    grid-column: 1 / span 2;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 3em;
  }

  .front__price-h2--big {
    font-size: 2em;
  }

  .front__price-img {
    height: 90px;
    justify-self: start;
  }

  .front__video {
    align-self: center;
  }
}

@media (max-width: 970px) {
  .front__boxes-container {
    grid-column-gap: 1.3em;
  }

  .front__first-column {
    grid-column-gap: 1.3em;
  }

  .front__price-box {
    padding-right: 0.5em;
  }

  .front__price-h2--big {
    font-size: 1.8em;
  }

  .front__price-img {
    height: 75px;
  }
}

@media (max-width: 768px) {
  .front {
    padding-top: 6em;
  }
  .front__slogan-section {
    grid-template-columns: 100%;
    grid-row-gap: 1.2em;
  }

  .front__contact-button {
    justify-self: center;
  }

  .front__slogan {
    justify-self: center;
    text-align: center;
  }

  .front__boxes-container {
    width: 65%;
    grid-template-columns: 100%;
  }

  .front__first-column {
    grid-column: 1;
    grid-template-columns: 100%;
    grid-row-gap: 3em;
  }

  .front__price-box {
    padding-right: 2em;
  }

  .front__price-h2--big {
    font-size: 2em;
  }

  .front__price-img {
    height: 90px;
  }

  .btn.btn-blue.front__contact-button {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .front__boxes-container {
    width: 75%;
  }
}

@media (max-width: 530px) {
  .front__boxes-container {
    width: 85%;
  }
}

@media (max-width: 470px) {
  .front__boxes-container {
    width: 90%;
  }
}

@media (max-width: 425px) {

  .front__boxes-container {
    grid-row-gap: 1.5em;
  }

  .front__contact-button {
    padding: 12px 0;
  }

  .front__first-column {
    grid-row-gap: 1.5em;
  }

  .front__product-box {
    grid-template-rows: 51px auto 130px;
  }

  .front__login-button {
    width: 200px;
    padding: 12px 0;
  }

  .front__trial-button {
    width: 200px;
    padding: 12px 0;
  }
}

@media (max-width: 361px) {
  .front__boxes-container {
    width: 95%;
  }
  .front__price-box {
    left: 5%;
    right: 5%;
  }
  .front__price-h2 {
    margin-left: 0.5em;
  }

  .front__price-p {
    margin-left: 0.5em;
  }

  .front__price-box {
    padding: 1.5em 0.5em;
  }

  .front__price-img {
    height: 70px;
    justify-self: start;
  }
}
@media (max-width: 320px) {
  .front__price-box {
    left: 2%;
    right: 2%;
  }

}

.btn.btn-xxl.front__login-button {
  width: 250px;
  font-size: 16px;
  padding: 15px 0;
}

.btn.btn-xxl.front__trial-button {
  width: 250px;
  font-size: 16px;
  padding: 15px 0;
}
