@import url('https://fonts.googleapis.com/css?family=Montserrat|Playfair+Display');
@import url('https://unpkg.com/flickity@2/dist/flickity.min.css');

:root {
  --yellow-text: #f0bd56;
  --header-text: #203517;
  --normal-text: #373737;
  --orange-text: #f39047;
  --light-gray: #f9f9f9;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  box-sizing: border-box;
  font-family: 'Playfair Display', serif;
  
  margin: 0;
}

.container {
  max-width: 1920px;
  margin: auto;
  position: relative;
  background: url(images/background.png) no-repeat;
  background-position: -150px 750px;
}

nav {
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav a {
  color: var(--yellow-text);
  text-decoration: none;
  cursor: pointer;
  margin-top: 20px;
  z-index: 2;
}

nav img {
  vertical-align: middle;
  cursor: pointer;
}

h1 {
  color: var(--header-text)
  line-height: 1.4;
  font-size: 48px;
  text-align: left;
}

section p, {
  font-size: 18px;
  font-family: "Montserrat";
  color: var(--normal-text);
  line-height: 1.667;
  text-align: left;
}

section {
  max-width: 1060px;
  margin: auto;
}

section.main {
  position: relative;
}

section#about {
  margin: initial;
  margin-top: 100px;
  max-width: 530px;
}

img.library {
  position: absolute;
  max-width: 50%;
  right: 0;
  top: 0;
}

img.library-m {
  display: none;
}

.buttons a {
  width: 216px;
  height: 54px;
  margin-top: 20xpx;
  line-height: 54px;
  text-align: center;
  display: inline-block;
  font-size: 15px;
  font-family: "Montserrat";
  color: white;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
}

a.btn-solid, {
  margin-right: 20px;
  background-image: -moz-linear-gradient( -27deg, rgb(240,189,86) 0%, rgb(243,149,73) 100%);
  background-image: -webkit-linear-gradient( -27deg, rgb(240,189,86) 0%, rgb(243,149,73) 100%);
  background-image: -ms-linear-gradient( -27deg, rgb(240,189,86) 0%, rgb(243,149,73) 100%);
}

a.btn-empty {
  font-size: 15px;
  font-family: "Montserrat";
  color: var(--orange-text);
  border-width: 2px;
  border-color: rgb(240, 189, 86);
  border-style: solid;
  border-radius: 10px;
}

section#how-it-works {
  display: flex;
  justify-content: space-around;
  padding-top: 100px;
  margin-bottom: 200px;
}

section#how-it-works div {
  max-width: 530px;
}

section#how-it-works div p:first-child {
  color: var(--orange-text);
}

section#how-it-works img {
  position: absolute;
  left: -350px;
}

section#how-it-works ul {
  list-style: none;
  padding: 0;
}

section#how-it-works li {
  padding-left: 175px;
  background: url('images/how-it-works-1.png') left no-repeat;
  font-size: 18px;
  font-family: "Montserrat";
  color: rgb(0, 0, 0);
  line-height: 1.667;
  height: 150px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: left;
}

section#how-it-works li:nth-child(2) {
  background: url('images/how-it-works-2.png') left no-repeat;
}

section#how-it-works li:nth-child(3) {
  background: url('images/how-it-works-3.png') left no-repeat;
}

section#benefits {
  max-width: 1000px;
  text-align: center;
}

section#benefits h1, section#benefits p {
  text-align: center;
}

section#benefits p:first-child {
  color: white;
}

section#benefits ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
}

section#benefits ul li {
  width: 20%;
}

section.costs {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  margin: auto;
  margin-bottom: 80px;
  background: url('images/open_book.png') no-repeat center;
  padding-top: 60px;
}

section.costs p, section.costs h1 {
  width: 275px;
  text-align: center;
  color: #ffffff;
  margin: auto;
}

section.costs p:first-child {
  margin-bottom: 30px;
}

section.costs p:last-child {
  margin-top: 30px;
}

section#pricing {
  padding-top: 50px;
  padding-bottom: 100px;
  background: #f3f5f3;
  max-width: 100%;
}

section#pricing * {
  text-align: center;
}

section#pricing p:first-child {
  color: var(--orange-text);
}

section#pricing p {
  max-width: 85%;
  margin-right: auto;
  margin-left: auto;
}

section#pricing ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding-left: 0;
  flex-wrap: wrap;
  max-width: 1060px;
  margin: 20px auto;
}

section#pricing li {
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.07);
  width: 234px;
  height: 269px;
}

section#pricing .price {
  font-family: "PlayfairDisplay";
  font-weight: bold;
  height: 60px;
}

@import 'flickity.pkdg.min.css';

section#pricing .custom .price {
  height: auto;
}

section#pricing .price span {
  font-size: 32px;
}

section#pricing li a.button, #modal .submit {
  font-family: "Montserrat";
  text-decoration: none;
  cursor: pointer;
  color: var(--orange-text);
  margin: auto;
  text-transform: uppercase;
  display: block;
  line-height: 48px;
  border-width: 2px;
  border-color: var(--orange-text);
  border-style: solid;
  border-radius: 10px;
  width: 142px;
  height: 52px;
}

section#pricing li a.button:hover, #modal .submit:hover, #cookies-modal button:hover {
  background-color: var(--orange-text);
  color: white;
}

section#testimonials {
  text-align: center;
  padding-top: 50px;
  margin-bottom: 100px;
}

section#testimonials p:first-child {
  color: var(--orange-text);
}

section#testimonials h1 {
  text-align: center;
  margin-top: 20px;
}

section#testimonials .main-carousel {
  margin-bottom: 50px;
  margin-top: 50px;
}

section#testimonials .carousel-cell {
  width: 100%; /* full width */
  height: 300px; /* height of carousel */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 10px;
  padding: 10px 20px 50px 20px;
  border: 1px solid;
  border-radius: 10px;
  border-color: rgb(240, 189, 86);
  width: 80%;
}

section#testimonials .carousel-cell img {
  max-height: 100px;
  width: auto;
  max-width: 200px;
  margin: 0 auto;
}

section#testimonials .client-logos {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

section#testimonials .client-logos img {
  margin: 20px;
  filter: grayscale(100%);
  opacity: .5;
}

section#terms, section#cookies, section#faq {
  padding: 20px;
}

section#terms article, section#cookies article {
  margin: 20px 0;
  font-size: 18px;
  font-family: "Montserrat";
  color: var(--normal-text);
  line-height: 1.667;
  text-align: left;
}

section#team * {
  text-align: center;
}

section#team p:first-child {
  color: var(--orange-text);
}

section#team p {
  max-width: 80%;
  margin-right: auto;
  margin-left: auto;
}

section#team a {
  color: var(--yellow-text);
  cursor: pointer;
}

section#team .team-images {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 50px;
  padding: 0;
  justify-content: space-around;
}

section#team li {
  margin-bottom: 10px;
}

section#team p b {
  color: var(--orange-text);
}

section#team img {
  width: 200px;
  display: block;
  border: 2px solid var(--orange-text);
  border-radius: 20%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
}

section#faq input[type='checkbox'] {
  display: none;
}

section#faq article {
  min-height: 40px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--header-text);
  transition: max-height .5s smooth;
}

section#faq article:last-child {
  border: none;
}

section#faq article h4 {
  width: 100%;
  color: var(--orange-text);
  cursor: pointer;
}

section#faq article h4 label {
  width: 100%;
  display: block;
  text-decoration: underline;
  cursor: pointer;
}

section#faq article div {
  max-height: 0;
  opacity: 0;
  transition: max-height .5s ease, opacity .6s ease;
  padding-bottom: 10px;
  overflow: hidden;
}


section#faq input[type='checkbox']:checked + div {
  max-height: 500px;
  opacity: 1;
}

section#faq div span {
  font-weight: bold;
  color: var(--yellow-text);
}

@media (max-width: 768px) {
  section#pricing li {
    width: 40%;
    margin: 10px 0;
  }
}

footer {
  padding: 50px 0 30px;
  margin: auto;
  margin-top: 50px;
  font-family: "Montserrat";
  color: rgb(243, 144, 71);
  background-color: rgb(243, 245, 243);
}

footer .contact {
  text-decoration: none;
  padding: 5px;
  font-size: 19px;
  font-family: "Montserrat";
  color: rgb(255, 255, 255);
  cursor: pointer;
  line-height: 1.583;
  border-radius: 10px;
  background-image: -moz-linear-gradient( 0deg, rgb(240,189,86) 0%, rgb(243,149,73) 100%);
  background-image: -webkit-linear-gradient( 0deg, rgb(240,189,86) 0%, rgb(243,149,73) 100%);
  background-image: -ms-linear-gradient( 0deg, rgb(240,189,86) 0%, rgb(243,149,73) 100%);
}

footer .links {
  max-width: 1060px;
  padding: 0 20px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

footer .links li:first-child {
  height: 35px;
  padding-left: 50px;
  line-height: 40px;
  color: var(--normal-text);
  background: url('images/logo_small.png') no-repeat;
}

footer .links li:first-child a {
  display: block;
  text-decoration: none;
  color: var(--yellow-text);
}

footer .copyright {
  color: var(--normal-text);
  margin-top: 30px;
  text-align: center;
  padding: 0 30px;
}

footer .privacy a {
  display: block;
  text-decoration: none;
  color: var(--yellow-text);
  text-align: center;
  cursor: pointer;
  margin: auto;
  margin-top: 10px;
  width: 200px;
}

.overlay {
  position: fixed;
  /*display: none;*/
  width: 100%;
  height: 100%;
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 2;
  cursor: pointer;
}

#modal, #thank-you-modal {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 4;
  cursor: pointer;
}

#modal .content, #thank-you-modal .content {
  max-width: 90%;
  background-color: white;
  margin: auto;
  padding: 10px 10px 20px 10px;
  border-radius: 10px;
  position: relative;
  top: 5vh;
  color: var(--normal-text);
  text-align: center;
  z-index: 3;
  max-height: 90%;
}

#thank-you-modal .content {
  top: 10vh;
}

#modal .content .close, #thank-you-modal .content .close {
  position: absolute;
  top: -5px;
  right: 25px;
  font-size: 4rem;
  color: var(--header-text);
  cursor: pointer;
}

#modal .content .close:hover {
  opacity: .7;
}

#modal label {
  color: var(--orange-text);
  text-align: left;
}

#modal ul {
  list-style: none;
  padding: 15px;
}

#modal li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#modal header, #thank-you-modal header {
  font-size: 1.5rem;
  padding: 10px;
  color: var(--orange-text);
}

#modal select {
  -webkit-appearance: none;
  text-align: center;
  border-radius: 0;
  padding-left: 5px;
}

#modal select:focus {
  outline: none;
}

#modal .submit {
  background-color: white;
  margin-bottom: 5px;
  font-size: 1rem;
}

#modal input {
  background-color: var(--light-gray);
  box-shadow: 0 0 2px darkgoldenrod;
  width: 30%;
  border: none;
  text-align: center;
}

#modal input:focus {
  outline: none;
}

#modal input, #modal select {
  width: 150px;
}

#modal input.error {
  box-shadow: inset 0px 0px 5px var(--orange-text);
}

#cookies-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1;
  background-color: rgba(255,255,255,.9);
  border-top: 1px solid var(--light-gray);
  padding: 30px;
  z-index: 9999999999;
}

#cookies-modal a {
  color: var(--orange-text)
}

#cookies-modal button {
  font-family: "Montserrat";
  text-decoration: none;
  cursor: pointer;
  color: var(--orange-text);
  background-color: white;
  margin: auto;
  margin-left: 10px:
  text-transform: uppercase;
  display: block;
  line-height: 48px;
  border-width: 2px;
  border-color: var(--orange-text);
  border-style: solid;
  border-radius: 10px;
  width: 142px;
  height: 52px;
}

.g-recaptcha > div {
  margin: auto;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

@media (min-width: 769px ) {
  #modal .content {
    max-width: 700px;
    top: 10vh;
    overflow-y: none;
  }
}

@media (max-width: 768px ) {
  .container {
    max-width: 100vw;
    margin: auto;
    position: relative;
    overflow-x: hidden;
    background: url(images/background-m.png) no-repeat;
    background-position: 0 -1550px;
  }
  

  img.library {
    display: none;
  }

  img.library-m {
    display: block;
    width: 100vw;
    position: relative;
    z-index: 2;
  }

  nav, .nav-background-m {
    max-width: 100vw;
    width: 100%;
    position: fixed;
    top: 0;
    padding: 10px;
    z-index: 3;
  }

  nav a {
    text-shadow: 0px 0px 1px black;
    cursor: pointer;
  }

  .nav-background-m {
    background-color: var(--light-gray);
    height: 82px;
    z-index: 1;
  }

  #modal .content {
    overflow-y: scroll;
  }

  section#about {
    margin-top: 50px;
    max-width: 100vw;
  }

  section#about h1 {
    margin-top: 0;
    text-align: center;
  }

  section#about p {
    text-align: center;
    padding: 0 10px;
  }

  section#about .buttons {
    text-align: center;
    padding-top: 20px;
  }

  section#how-it-works * {
    text-align: center;
  }  

  section#how-it-works {
    flex-direction: column;
    text-align: center;
    margin-bottom: 150px;
  }

  section#how-it-works img {
    position: relative;
    max-width: 100vw;
    width: 100%;
    left: initial;
    padding: 0;
  }

  section#how-it-works div {
    padding: 0 10px;
    max-width: 100vw;
  }

  section#how-it-works li {
    padding: 170px 10px 10px 10px;
    background-position: top !important;
    text-align: center;
    height: initial;
    margin-bottom: 125px
    justify-content: flex-start;
  }

  section#how-it-works li:last-child {
    margin-bottom: 20px;
  }

  section#benefits ul {
    flex-direction: column;
    margin-bottom: 50px;
  }

  section#benefits ul li {
    width: 100%;
    padding: 0 10px;
  }

  section#benefits li img {
    margin: auto;
    display: block;
  }

  section.costs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    width: 110vw;
    height: 110vw;
    position: relative;
    left: -5vw;
    padding-top: 10px;
  }

  section.costs {
  }

  /*section.costs:before {
    content: "";
    display: block;
    padding-top: 100px;
  }*/

  section#pricing {
    margin-top: 100px;
  }

  section#pricing ul {
    justify-content: initial;
  }

  section#pricing li {
    display: inline-block;
    min-width: 300px;
    max-width: 300px;
    margin: 10px auto;
  }

  section#testimonials {
    background: white;
  }

  section#testimonials .carousel-cell {
    height: 400px; /* height of carousel */
    font-size: 14px;
  }

  footer .links {
   flex-direction: column;
  }

  footer .links li:first-child {
    margin: auto;
    margin-bottom: 20px;
  }

  footer .links li:last-child {
    text-align: center;
  }

  #modal li {
    flex-wrap: wrap;
    justify-content: center;
  }

  #modal label {
    width: 100%;
    text-align: center;
  }

  #modal input, #modal select {
    width: 300px;
    line-height: : 30px;
    font-size: 24px;
    margin-top: 5px;
    padding: 2px;
    background-color: var(--light-gray) !important;
  }

  #cookies-modal {
    flex-wrap: wrap;
  }
    
  #cookies-modal p {
    flex-basis: 100%;
    text-align: center; 
  }
}
