/* BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--main-text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--main-text-color);
}

:root {
  --main-text-color: #071030;
  --main-blue: #0070E8;
  --separator-color: #eeefef;
  --on-hover-blue: #004fa4;
}

.bold {
  font-weight: 700;
}

/* HEADER */

/* Common styles */
#nav-bar ul,
#logo h1 {
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#nav-bar ul,
.nav-button {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-button {
  font-size: 0.7em;
  padding: 12px 15px;
  border-radius: 5px;
}

/* login button */
#login-button {
  box-shadow: inset 0 0 0 2px var(--main-text-color); /* Creates a border around the button */
  margin-right: 12px;
}

#login-button:hover {
  box-shadow: inset 0 0 0 2px #ccc;
}

/* Sign up button */
#sign-up-button {
  background: var(--main-blue);
  color: #fff;
}

#sign-up-button:hover {
  box-shadow: inset 0 -3px 0 0 rgba(0,0,0,.18); /* Creates a border-bottom like effect */
}
/* \Common styles */

#header {
  display: flex;
  justify-content: space-between;
  padding: 50px 80px;
  height: 15vh;
  position: fixed;
  z-index: 1;
  background: white;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--separator-color);
}

#header-img {
  margin-right: 15px;
  font-size: 40px;
  color: var(--main-blue);
}

#logo {
  display: flex;
  align-items: center;
}

#logo h1 {
  font-weight: 300;
  font-size: 2.2em;
}

#nav-bar {
  display: flex;
  align-items: center;
}

#nav-bar ul {
  display: flex;
}

/* Select first three items */
.nav-link {
  margin-right: 48px;
  font-size: 0.9em;
}

/* HERO */
#hero {
  background-image: linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url('../images/hero.jpg');
  height: 100vh;
  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-attachment: fixed; /* Creates parallax scrolling effect */
}

/* Contains hero-information and get started button */
#hero-content {
  text-align: center; /* Centers the get started button */
  padding-top: 150px;
}

/* Container for hero text */
#hero-info  {
    margin-bottom: 40px;
    text-align: center;
}

/* Add a white color with a reduced opacity */
#hero-content h2,
#hero-content p {
  color: rgb(255, 255, 255, 0.85);
}

/* Coding made simple */
#hero-content h2 {
  font-family: 'Quicksand';
  font-size: 3em;
  margin-bottom: 20px;
}

/* mission text */
#hero-content p {
  font-size: 1.5em;
}

/* Get started button */
#hero-button {
  background: var(--main-blue);
  display: inline-block;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Quicksand', sans-serif;
  margin: 0 auto;
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 0.92em;
}

#hero-button:hover {
  box-shadow: 0 4px 8px 0 rgba(65,75,86,0.4);
}

/* SEEN ON SECTION */
#seen-on {
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid var(--separator-color);
  display: flex;
}

#seen-on img {
  max-width: 18%;
  max-height: 30px;
  margin-top: 2%;
  margin-bottom: 2%;
  vertical-align: middle;
  opacity: 0.2;
}

/* add a margin of 4% to the first 5 logos */
#seen-on img:nth-child(-n + 5) {
  margin-right: 4%;
}

/* HOW IT WORKS SECTION */
#how-it-works {
  padding: 40px 0;
  align-items: center;
  padding: 150px 60px;
  border-bottom: 1px solid var(--separator-color);
}

/* container for the three items */
#how-it-works-container {
  display: flex;
  justify-content: space-around;
}

/* 'How it works' heading */
#how-it-works h2 {
  text-align: center;
  margin-bottom: 70px;
  font-size: 2.3em;
  letter-spacing: 2px;
  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
}

#how-it-works p,
#how-it-works h3 {
  text-align: center;
}

#register-icon,
#learning-path-icon,
#study-icon {
  display: flex;
  justify-content: center;
}

#register-icon i,
#learning-path-icon i,
#study-icon i {
  margin-bottom: 20px;
  font-size: 40px;
  color: var(--main-blue);
}

/* Selects headings register, create your learning path and start learning */
#how-it-works h3 {
  margin-bottom: 15px;
  font-size: 1.5em;
  font-family: 'Quicksand', sans-serif;
}

#how-it-works p {
  color: #5d5b71;
  font-size: 1.12em;
  line-height: 1.5em;
}

/* BENEFITS SECTION */
#benefits {
  padding: 150px 60px;
}

#benefits-first-row,
#benefits-second-row {
  display: flex;
}

#benefits-first-row div,
#benefits-second-row div {
  width: 33.33%;
  padding: 0 20px;
}

#benefits-first-row {
  margin-bottom: 80px;
}

/* 'Benefits' heading*/
#benefits h2 {
  font-size: 2.3em;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Quicksand', sans-serif;
}
/* heading for each benefit */
#benefits h3 {
  margin-bottom: 20px;
  font-size: 1.25em;
  font-family: 'Quicksand', sans-serif;
}

/* icon for each benefit */
#benefits i {
  padding-right: 10px;
  color: var(--main-blue);
  font-size: 20px;
}

/* paragraph describing each benefit */
.benefit-description {
  color: #5d5b71;
  line-height: 1.5em;
  font-size: 1em;
}

/* paragraph describing the benefits section */
#benefits-main-paragraph {
  color: #5d5b71;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.3em;
  font-family: 'Quicksand', sans-serif;
}

/* VIDEO SECTION */
#video-section {
  display: flex;
  padding: 100px 40px;
  background: #F8F8F9;
}

#video-section-first-column {
  margin-right: 40px;
}

/* Video copyright */
#video-section-first-column p {
  text-align: center;
  margin-top: 20px;
}

/* Container for appstore and playstore images */
#download-app {
  margin-top: 40px;
}

/* playstore and appstore images */
#download-app img {
  width: 120px;
  cursor: pointer;
}

/* Select first image inside images container*/
#download-app img:nth-of-type(1) {
  margin-right: 5px;
}

#video-section-second-column h2 {
  margin-bottom: 25px;
  font-family: 'Quicksand', sans-serif;
}

#video-section-second-column p {
  margin-bottom: 10px;
  line-height: 1.5em;
}

/* CUSTOMERS SECTION */
#customers {
    padding: 100px 60px;
    background: #F8F8F9;
}

/* Container for the testimonials */
#customers-container {
  display: flex;
}

/* Styles in common */
#customers h2,
#customers-main-paragraph {
  text-align: center;
  font-family: 'Quicksand', sans-serif;
}

/* Heart icon */
#customers-heart {
  display: block;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  color: #ed4840;
}

/* Main heading */
#customers h2 {
  margin-bottom: 20px;
  font-size: 2.3em;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Main paragraph */
#customers-main-paragraph {
  margin-bottom: 120px;
  color: #5d5b71;
  font-size: 1.3em;
}

/* Container for each testimonial */
.testimonial-container {
  border: 1px solid #E7E7E8;
  border-radius: 5px;
  flex: 1;
  margin: 0 20px;
  padding: 25px;
  background: rgba(255,255,255,0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.testimonial-container img {
  border-radius: 50%;
  position: absolute;
  top: -64px; /* 128(image height) / 2 */
}

.testimonial-container h3 {
  margin-top: 80px;
  margin-bottom: 20px;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 1px;
}

.testimonial-container p {
  line-height: 1.5em;
  color: #5d5b71;
}

/* PLANS SECTION */
#plans {
  padding: 100px 60px;
  border-bottom: 1px solid var(--separator-color);
}

#plans-container {
  display: flex;
  align-items: flex-start;
}

#plans h2,
#plans-main-paragraph {
  text-align: center;
}

#plans h2,
#plans-main-paragraph,
.plan h3 {
  font-family: 'Quicksand', sans-serif;
}

/* Main heading */
#plans h2 {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.3em;
}

#plans-main-paragraph {
  margin-bottom: 40px;
  font-size: 1.3em;
  color: #5d5b71;
}

/* Styles for a single plan */
.plan {
  flex: 1;
  border: 1px solid #E7E7E8;
  border-radius: 5px;
  padding: 30px;
}

/* Create a space between the basic and for teams plan */
#pro-plan {
  margin: 0 20px;
}

/* Heading for the type of plan */
.plan h3 {
  display: inline-block;
  margin-bottom: 20px;
  margin-right: 160px;
  font-size: 1.4em;
  letter-spacing: 2px;
}

/* ul container for all features */
.features {
  margin-bottom: 40px;
}

/* Styles for a single feature */
.features li {
  margin-bottom: 20px;
  color: #5d5b71;
  position: relative;
  padding-left: 30px;
  line-height: 1.5em;
}

/* Styles for the features icon */
li i {
  position: absolute;
  left: 0;
  color: var(--main-blue);
  font-size: 20px;
}

.start-plan-button {
  padding: 20px 0;
  background: var(--main-blue);
  color: #fff;
  border-radius: 5px;
  font-family: 'Quicksand',sans-serif;
  font-size: 1.02em;
  letter-spacing: 1px;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: background 1s;
}

.plan-price {
  font-size: 25px;
  color: var(--main-blue);
}

.start-plan-button:hover {
  background: var(--on-hover-blue);
}

/* JOIN SECTIOn */
#join {
  padding: 30px 0;
  background: var(--main-blue);
}

#join p {
  text-align: center;
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1em;
  letter-spacing: 1px;
}

/* FOOTER */
footer {
  padding: 30px 220px;
  display: flex;
  justify-content: space-between;
}

/* Container for the Customer service and Company columns */
#links-container {
  display: flex;
}

/* Costumer service container */
#links-container-first-column {
  margin-right: 40px;
}

#links-container-first-column p,
#links-container-second-column p,
#subscribe p {
  margin-bottom: 40px;
  color: #a0a5aa;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 1px;
  font-size: 0.75em;
  text-transform: uppercase;
}

#links-container-first-column p,
#links-container-second-column p {
  font-weight: 700;
}

#links-container-first-column li,
#links-container-second-column li {
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 1px;
}

#links-container-first-column li a,
#links-container-second-column li a {
  color: var(--main-blue);
}

#links-container-first-column li a:hover,
#links-container-second-column li a:hover {
  color: #4a98eb;
}

#subscribe form  {
  border-bottom: 1px solid #a0a5aa;
  padding: 8px;
}

#subscribe form:hover {
  border-bottom: 1px solid #414b56;
  color: #414b56;
}

#subscribe input[type="email"] {
  border: none;
  outline: none;
  font-size: 1.2em;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 1px;
}

#subscribe input[type="submit"] {
  color: #a0a5aa;
  background: none;
  border: none;
  outline: none;
  font-size: 24px;
  width: 26px;
  cursor: pointer;
}
