@import "palette.css";
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&family=Urbanist&display=swap");

/* 0. Layout */
body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  overflow-x: hidden;
  background-color: var(--black);
}

body.flexed {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Typography */
html,
body {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.7px;
  font-size: var(--tg-normal);
}

@font-face {
  font-family: "Ethnocentric Rg";
  src: url("EthnocentricRg-Regular.woff2") format("woff2"),
    url("EthnocentricRg-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

h1,
h2 {
  font-family: "Ethnocentric Rg";
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 2px 2px 2px #000000;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 20px;
}

.color-red {
  color: var(--red);
}

.color-red-light {
  color: var(--red-light);
}

.shadowed-white {
  text-shadow: 0.2px 0.2px 1px var(--white-ht);
}

.border-red-light {
  border-color: var(--red-light);
}

/* 2. Navigation */

nav.main-nav {
  padding: 5px 5px;
}

nav.main-nav a {
  padding: 5px 10px;
  text-decoration: none;
  color: var(--red);

  font-family: "Ethnocentric Rg";
  letter-spacing: 1.5px;
  font-size: 14px;
}

nav.main-nav .logo, body.landing-checkout .logo {
  display: inline-block;
}

/* 3. CTAs */
.logo {
  display: none;
}

.logo img {
  display: inline-block;
  padding: 10px;
  width: 60px;
}

.CTA {
  display: inline-block;
  border-radius: 5px;

  padding: 15px 10px;

  margin-right: 5px;
  margin-top: 10px;

  text-align: center;
  letter-spacing: 2px;
  font-size: 12px;

  text-decoration: none;

  background-color: transparent;
  background-color: var(--red-light);
  color: white;

  transition: background-color 0.3s;
  font-family: "Ethnocentric Rg";
}

.CTA:hover {
  background-color: var(--red);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* 4. ATF Section */
#atf {
  width: 100%;
  height: 100%;
position:relative;
  background-image: url(../assets/hero-dsk-fade-202020.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

#atf-image-mobile {
  width: 100%;
  display: none;
}

#atf-title {
  position: absolute;
  top: 15vh;
  right: 0;
  padding: 10px;

  text-align: right;
}

#atf-title p {
  font-size: 25px;
  letter-spacing: 1px;
  margin-left: auto;
}

#atf .CTA {
  margin: 10px 0;
}

/* 5. Effects */
.bg-opaque-desktop {
  -webkit-box-shadow: 0px 10px 13px -7px #000000,
    5px 5px 15px 5px rgba(0, 0, 0, 0);
  box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
  background: linear-gradient(
    190deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(36, 38, 38, 0.8) 100%
  );
  -webkit-box-shadow: 0px -2px 10px -1px #000000;
  box-shadow: 0px -2px 10px -1px #000000;
  backdrop-filter: blur(10px);
}

/* 6. Profile */
#profile {
  display: flex;
  position: relative;
  z-index: 2;
  background-color: inherit;
}

#profile img {
  display: block;
  max-width: 35vw;
  height: max-content;
  margin-top: 10px;
}

#profile div {
  flex-grow: 1;
  padding: 5%;
}

/* 7. Fire */
.sticky-section.fire-section {
  background-color: black;
}

.content {
  padding: 5vw;
}

.sticky-section.fire-section .content {
  width: 50vw;
}

.sticky-section.fire-section .sticky-element {
  width: 40vw;
  height: 100vh;
  top: 1px;
}

.sticky-section.fire-section .sticky-element video {
  width: 100%;
}

/* 8. Solution */
.solution-section .sticky-element {
  background-size: cover;
  background-position: center center;
  background-image: url(../assets/solution/virginia-stacco.jpg);
}

.aside-cycling-section .sticky-element {
  width: 55vw;
  top: 1px;
  height: 100vh;
}

.aside-cycling-section .content > div {
  min-height: 100vh;
  justify-content: center;
  align-items: flex-start;
  display: flex;
  flex-direction: column;

  position: relative;
  z-index: 1;
}

.aside-cycling-section .content p {
  padding-right: 5%;

  text-align: justify;
}

.aside-cycling-section .content {
  width: 40vw;
  padding-left: 5vw;
  z-index: 1;
}

.chart-wrapper {
  justify-content: center;
  align-items: center;
  display: flex;
  margin: 0 auto;
  width: 100%;
  min-height: 500px;
  background-color: var(--black);
}

.chart-wrapper:not(.show) {
  display: none;
}

.canvasjs-chart-credit {
  display: none !important;
}

@media only screen and (max-width: 1100px) {
  /* 1. Typography */
  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 20px;
  }

  /* 2. Navigation */
  #mobile-nav-trigger {
    backdrop-filter: blur(10px);
    border-radius: 5px;
  }

  nav.main-nav.open .logo {
    position: relative;
    top: unset;
    left: unset;
  }

  nav.main-nav.open .logo img {
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
  }

  /* 3. CTAs */
  .logo {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;

    width: 60px;
  }

  /* 4. ATF */
  #atf {
    background-position: center;
  }

  #atf-title {
    position: absolute;
    text-align: center;
    top: unset;
    bottom: 0;

    width: 100%;

    background: linear-gradient(
      190deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(36, 38, 38, 0.8) 100%
    );
    -webkit-box-shadow: 0px -2px 10px -1px #000000;
    box-shadow: 0px -2px 10px -1px #000000;
  }

  #atf-title p {
    font-size: 15px;
    letter-spacing: 0;
  }

  /* 5. Effects, mobile */
  /* 5. Effects */
  .bg-opaque-mobile {
    -webkit-box-shadow: 0px 10px 13px -7px #000000,
      5px 5px 15px 5px rgba(0, 0, 0, 0);
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0, 0, 0, 0);
    background: linear-gradient(
      190deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(36, 38, 38, 0.8) 100%
    );
    -webkit-box-shadow: 0px -2px 10px -1px #000000;
    box-shadow: 0px -2px 10px -1px #000000;
    backdrop-filter: blur(10px);
  }

  /* 6. Profile */
  #profile {
    flex-direction: column;
  }

  #profile img {
    width: 50%;
    display: block;
    margin: 10px auto;
    object-fit: cover;
    max-width: unset;

    border: solid 1px white;
  }

  /* 7. Fire */
  .sticky-section {
    display: block;
    position: relative;
  }

  .sticky-section.fire-section .content {
    backdrop-filter: blur(10px);
  }

  .sticky-section.fire-section .content {
    width: 90vw;
  }

  .sticky-section.fire-section .content p {
    text-shadow: 0.5px 0.5px 3px black;
  }

  .sticky-section.fire-section .sticky-element {
    display: none;
    opacity: 0;
  }

  .sticky-section.fire-section.in-view .sticky-element {
    display: flex;

    position: fixed;
    bottom: 0;
    top: unset;

    padding: 0;
    height: 70vh;

    opacity: 0.8;
    width: 60%;
    left: 20%;
  }

  /* 8. Solution */
  .aside-cycling-section {
    background-color: inherit;
  }

  .aside-cycling-section .sticky-element {
    width: 100%;
    padding: 0;
    height: 50vh;
    top: 1px;

    align-items: flex-start;

    z-index: 2;
  }

  .sticky-section.aside-cycling-section .content {
    z-index: 1;
  }
}


/* Articles */
.article-thumbs-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}

@media (max-width: 1100px) {
  .article-thumbs-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .article-thumbs-wrapper {
    grid-template-columns: 1fr;
  }
}

.article-thumb {
  border: solid 1px white;
  border-radius: 5px;
}

.article-thumb img {
  display: block;
  width: 100%;
}

.article-thumb a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px;
}

.article-body, .article-heading {
  padding: 5%;
}

.content-entry {
  margin-bottom: 1%;
}

.content-entry img {
  display: block;
  width: 90%;
  margin: 10px auto;
}

.article-heading img {
  display: block;
  margin: 0 auto;
}

.article-heading h3 {
  text-align: center;
}

/* Swiper */
.aside-cycling-section .swiper {
  width: 100%;
  height: 100%;
}

.aside-cycling-section .swiper-slide img {
  display: block;
  width: 100%;
}

.aside-cycling-section .swiper-button-next,
.aside-cycling-section .swiper-button-prev {
  color: var(--red-light);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
  width:30px;
  height:30px;
}

.aside-cycling-section .swiper-button-next:hover,
.aside-cycling-section .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.aside-cycling-section .swiper-button-next:after,
.aside-cycling-section .swiper-button-prev:after {
  font-size: 30px;
  font-weight: bold;
}

.aside-cycling-section .swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}

.aside-cycling-section .swiper-pagination-bullet-active {
  background: var(--red-light);
  opacity: 1;
}

@media (max-width: 700px) {
  .aside-cycling-section .swiper-button-next,
  .aside-cycling-section .swiper-button-prev {
    padding: 20px;
  }

  .aside-cycling-section .swiper-button-next:after,
  .aside-cycling-section .swiper-button-prev:after {
    font-size: 16px;
  }
}

.swiper-slide img {
  display: block;
  width: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--red-light);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--red-light);
  opacity: 1;
}

@media (max-width: 700px) {
  .swiper-button-next,
  .swiper-button-prev {
    padding: 20px;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 16px;
  }
}


/* Plans */
.plans-section {
  margin-top: 1vh;
  text-align: center;
}

.plans-summary {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  gap: 1%;
  margin: 0 auto;
  justify-content: center;
}

.plan-entry {
  border: solid 1px white;
  border-radius: 5px;
  width: 48%;
  padding: 0.5%;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .plan-entry {
    width: 90%;
  }

  .plans-summary {
    flex-direction: column;
  }
}

.plan-features {
  text-align: left;
  list-style-type: square;
}

.plan-features li.not-active {
  text-decoration: line-through;
}

/* Footer */
footer {
  background-color: var(--red-light);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-content {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.footer-info p {
  margin: 5px 0;
  color: white;
  font-size: 14px;
}

@media only screen and (max-width: 1100px) {
  .footer-content {
    width: 95%;
  }
  
  .footer-info p {
    font-size: 12px;
  }
}