/* Variables */

:root {
  /* palate variables */
  --eai-dark-grey: #454545;
}

/* --------------------------------------------------------*/

/* Base */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

html {
  font-family: "Source Sans Pro", sans-serif;
  color: var(--js-dark-grey);
}

h1 {
  font-weight: 200;
  font-size: 60px;
  color: white;
  margin: 0;
}

h2 {
  font-weight: 200;
  font-size: 60px;
  color: rgb(90, 100, 110);
  margin: 0;
}

h3 {
  font-weight: 200;
  font-size: 20px;
  opacity: 0.6;
  color: white;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 48px;
  }

  h3 {
    font-size: 16px;
  }
}

/* --------------------------------------------------------*/

/* Header */

.header {
  width: 100vw;
  height: 100vh;
  background-image: url("cyclist.jpg");
  background-size: cover;
}

.header_headline {
  width: 100%;
  margin: 0;
  margin-bottom: 20px;
  text-align: center;
}

.header_subheader {
  margin: 0;
  margin-bottom: 40px;
  text-align: center;
}

.header_overlay {
  top: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    to top right,
    rgba(61, 70, 100, 0.7),
    rgba(61, 70, 100, 0.9)
  );
  position: absolute;
}

.header-conent {
  position: absolute;
  z-index: 1;
  height: 100%;
  width: 100%;
  padding: 2em;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.email-form {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 600px;
}

.email-form_button {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  border-radius: 0 50px 50px 0;
  width: 80px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  outline: none;
  height: 60px;
  margin-bottom: 20px;
  text-decoration: none;

  transition: background-color 0.2s ease;

  display: flex;
  justify-content: center;
  align-items: center;
}

.email-form_button:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.email-form_input {
  color: rgba(255, 255, 255, 0.6);
  padding-left: 80px;
  width: 100%;
  font-size: 16px;
  text-align: center;
  border-radius: 50px;
  border-radius: 50px 0 0 50px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  outline: none;
  height: 60px;
}

.email-form_input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.iphone-demo {
  height: 600px;
}

/* --------------------------------------------------------*/

/* Section */

.section {
  width: 100vw;
  height: 100vh;
  padding: 2em;
  display: grid;
  margin: auto;
  grid-template-columns: 1fr minmax(400px, 600px) 400px 1fr;
  grid-gap: 1rem;
}

.section_description {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.section_description_text {
  padding: 0 28px 0 28px;
  border-left: 1px solid #5170dd;
  font-size: 19px;
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.section.odd {
  grid-template-columns: 1fr 400px minmax(400px, 600px) 1fr;
  grid-template-rows: 1fr;
  background-color: #f0f4f5;
}

.section_demo {
  grid-column: 3 / 4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.odd .section_description {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.odd .section_demo {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

@media (max-width: 850px) {
  .section.odd,
  .section {
    grid-template-columns: 1fr minmax(200px, 580px) 1fr;
    height: auto;
  }
  .section_demo,
  .odd .section_demo,
  .section_description,
  .odd .section_description {
    grid-column: 2 / 3;
    grid-row: auto;
  }

  .email-form_input {
    padding-left: 30px;
  }

  .email-form_button {
    width: 60px;
  }

  .iphone-demo {
    height: 400px;
  }
}
