/* Basic resetting */
html, body {
  margin: 0px;
  font-family: "Roboto", "sans serif";
}

/* Text */
h1 {
  margin: 0px; /* Avoid gap between sections */
  padding: 0.83em 0;
  font-size: 60px;
  font-family: "Comfortaa", "sans serif";
  font-weight: normal;
}

p {
  font-size: 24px;
  /* Although designer said light, but it's the font's "light", which refers to 300*/
  font-weight: lighter;
  line-height: 40px;
  margin: 0px;
}

/* header */
header.header {
  position: fixed;
  top:0;
  right:0;
  left: 0;
  background-color: #1bcef7;
  height: 60px;
  z-index: 999; /* HACK! */
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
}

a {
  text-decoration: none;
  color: inherit;
}


header.header a {
  color: white;
  
  font-size: 18px;
  line-height: 60px; /* vertical centering */
  padding-right: 20px;
}


/* Sections */
section {
  background-size: cover;
  background-repeat: no-repeat;
}

/* Section backgrounds */

#sec_chasewind {
  /* is relative path ok here? */
  height: 768px;
  background-image: url("../imgs/chasewind_bg.jpg");
  background-position: right top;
  position: relative;
}

#sec_feature {
  height: 768px;
  background-image: url("../imgs/feature_bg.jpg");
  background-position: left top;
  position: relative;
}

#sec_about {
  min-height: 1152px;
  background-image: url("../imgs/about.jpg");
  background-position: middle top;
  color: white;
}

#sec_just_a_glance {
  min-height: 1574px; /* the spec says so, but it's hard to overlap data and bike */
  /*min-height: 1600px; /* the spec says so, but it's hard to overlap data and bike */
}

#sec_contact, footer{
  background-color: #5d55ff;
  color: white;
}

/* Labels */
#label_1, #label_3 {
  float: left;
}

#label_2 {
  float: right;
}

#sec_video {
  color: #FFF;
  padding-top: 60px; 
  position: relative;
}

#sec_video video {
  width: 100%;
}

#sec_video h1 {
  margin: 0;
}

#sec_video p {
  font-size: 30px;
  margin: 30px 0 0 0;
}

#sec_video #learn_more_btn {
  color: #FFF;
  font-size: 24px;
  text-decoration: none;
  border-style: solid;
  border-width: 2px;
  border-radius: 36px; /*Hacky*/
  height: 72px;
  padding: 20px 40px;
  margin: 40px 0;
  display: inline-block;
  box-sizing: border-box;
}

#sec_video div.text_col {
  /* This is only for large screen, wrap this with media query later */
  position: absolute;
  left: 120px;
  top: 210px;
  max-width: 40%;
  color: white;
  text-shadow: 0px 0px 1px black;
}

#sec_chasewind div.text_col {
  /* This is only for large screen, wrap this with media query later */
  position: absolute;
  left: 180px;
  top: 220px;
  max-width: 40%;
}

#sec_chasewind div.text_col > h1  {
  /* This is only for large screen, wrap this with media query later */
  color: #5d55ff;
}

#sec_chasewind div.text_col > p  {
  /* This is only for large screen, wrap this with media query later */
  color: #546e7a;
  font-weight: lighter;
  line-height: 40px;
}

#sec_chasewind div.text_col > h1::after  {
  /* This is only for large screen, wrap this with media query later */
  display: block;
  content: "";
  height: 5px;
  width:120px;
  margin: 25px 0 50px 0;
  background: #05f3f4;
}

#sec_feature div.text_col {
  /* This is only for large screen, wrap this with media query later */
  position: absolute;
  left: 615px;
  top: 240px;
  max-width: 40%;
}

#sec_feature > div > div::before {
  display: block;
  content: "";
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

#sec_feature > div > div > h1 {
  color: #1bcef7;
  text-align: center;
}

#sec_just_a_glance div.text_col {
  /* This is only for large screen, wrap this with media query later */
  padding-left: 615px;
  max-width: 40%;
  text-align: left;
}

#sec_just_a_glance div.text_col > h1 {
  color: #5d55ff;
}

#sec_just_a_glance div.text_col > p  {
  /* This is only for large screen, wrap this with media query later */
  color: #546e7a;

}

#sec_just_a_glance div.text_col > h1::after {
  display: block;
  content: "";
  height: 5px;
  width:120px;
  margin: 25px 0 0 0;
  background: #05f3f4;
}

#sec_about {
  text-align: center;
}

#sec_about h1{
  margin:0 0 0 0;
  padding: 150px 0 60px 0;
}

.about_content_p{
  margin:0 180px 0 180px;
  font-size: 24px;
}

#award_cups{
  margin:60px 0 0 0;
}

#sec_contact, footer {
  padding-top: 150px;
  text-align: center;
}



#sec_contact {
  min-height: 768px;
}

footer {
  line-height: 36px;
  height: 36px;
  font-weight: lighter;
  font-size: 18px;
}

/* Images */
#bike_img {
  text-align: right;
}

#learn_more_btn {
  border: 2px solid white;
  padding: 1em;
  padding-left: 2em;
  padding-right: 2em;
  border-radius: 3em;
  color: white;
  text-decoration: none;
  display: inline-block; /* for the margin-top to work */
  margin-top: 16px; /* p has default margin 24px */
}

#learn_more_btn:hover{
  background-color: #5d55ff;
}

#award_cups {
  display: flex;
}

#award_cups span p {
  font-size: 18pt;
}

.icon_container {
  position: absolute;
  top: 200px;
  left: 120px;
  display: flex;
  width: 400px;
  flex-wrap: wrap;
}

.icon {
  margin: 25px 20px;
  width: 80px;
  height: 80px;
  cursor: pointer;
}

.bluetooth_icon {
  background-image: url("../imgs/icon_bluetooth.png");
  cursor: pointer;
}

.mobile_icon {
  background-image: url("../imgs/icon_mobile.png");
}

.gps_icon {
  background-image: url("../imgs/icon_gps.png");
}

.record_icon {
  background-image: url("../imgs/icon_record.png");
}

.camera_icon {
  background-image: url("../imgs/icon_camera.png");
}

.stream_icon {
  background-image: url("../imgs/icon_stream.png");
}

.coach_icon {
  background-image: url("../imgs/icon_coach.png");
}

.player_icon {
  background-image: url("../imgs/icon_player.png");
}

.alert_icon {
  background-image: url("../imgs/icon_alert.png");
}

.bluetooth_icon:hover {
  background-image: url("../imgs/icon_bluetooth_hover.png");
}

.mobile_icon:hover {
  background-image: url("../imgs/icon_mobile_hover.png");
}

.gps_icon:hover {
  background-image: url("../imgs/icon_gps_hover.png");
}

.record_icon:hover {
  background-image: url("../imgs/icon_record_hover.png");
}

.camera_icon:hover {
  background-image: url("../imgs/icon_camera_hover.png");
}

.stream_icon:hover {
  background-image: url("../imgs/icon_stream_hover.png");
}

.coach_icon:hover {
  background-image: url("../imgs/icon_coach_hover.png");
}

.player_icon:hover {
  background-image: url("../imgs/icon_player_hover.png");
}

.alert_icon:hover {
  background-image: url("../imgs/icon_alert_hover.png");
}

.bluetooth_feature::before {
  background-image: url("../imgs/icon_bluetooth_big.png");
}
 
.mobile_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_mobile_big.png");
}

.gps_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_gps_big.png");
}

.record_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_record_big.png");
}

.camera_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_camera_big.png");
}

.stream_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_stream_big.png");
}

.coach_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_coach_big.png");
}

.player_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_player_big.png");
}

.alert_feature::before {
  content: "";
  width: 100px;
  height: 100px;
  background-image: url("../imgs/icon_alert_big.png");
}


.email_input_container {
  height: 74px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 37px;
  background: #4f47c1;
  width:500px;
  padding: 0 24px;
  margin: 0 auto;
}

.email_input_container > input {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: lighter;
  font-family: "Roboto";
  color: #b0bec5;
  margin-left: 24px;
  outline: none;
  flex: 1 0 0;
}

.email_input_container > input::-moz-placeholder {
  color: #b0bec5;
}

.email_input_container > input::-webkit-input-placeholder {
  color: #b0bec5;
}

.email_submit {
  border:none;
  background: white url("../imgs/arrow.png");
  background-repeat: no-repeat;
  background-position: center center;
  display: inline-block;
  width: 55px;
  height: 55px;
  border-radius: 28px;
}

.email_submit:hover {
  background: #05f3f4 no-repeat center center url("../imgs/arrow.png");
}

.email_address {
  font-size: 24px;
  font-weight: lighter;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email_address::before {
  display: inline-block;
  content:"";
  background: url("../imgs/mail.png");
  width: 43px;
  height: 36px;
  margin-right: 8px;
}

#success_subscribe {
  padding: 8px;
  font-size:24px;
}
/*vim: expandtab sw=2 ts=2*/

/* RWD */
@media (max-width: 768px) {
  /* Hidden stuff */
  nav {
    display: none;
  }

  nav,
  #label_1, 
  #label_2, 
  #label_3, 
  #icon_container
  {
    display: none;
  }

  #sec_video p {
    display: none;
  }

  #sec_video #learn_more_btn {
    display: none;
  }

  /* Resetting the header */
  header.header  {
    padding-left: 5%;
  }

  h1 {
    font-size: 36px;
    text-shadow: 0px 0px 1px grey;
    padding: 0.83em 0;
  }
  
  p {
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0px 0px 1px grey;
  }

  #sec_video video {
    width: 100%;
  }

  #sec_video h1 {
    position: absolute;
    top: 45%;
    text-shadow: 0px 0px 3px black;
    font-size: 22px;
    width: 50%;
    line-height: 28px;
  }

  #sec_chasewind div.text_col > p {
    font-weight: bold;
    text-shadow 0px 0px 1px black;
  }

  #sec_video div.text_col,
  #sec_chasewind div.text_col,
  #sec_feature div.text_col, 
  #sec_just_a_glance div.text_col {
    padding-left:0px;
    padding-right:0px;
    position: static;
    margin-left: 5%;
    width: 90%;
    max-width: 90%;
  }

  /* backgrounds */
  #sec_chasewind,
  #sec_feature,
  #sec_just_a_glance,
  #sec_contact {
    height: auto;
    min-height: auto;
    background-size: 200%; /* width */
    padding-bottom: 20px;
  }

  #sec_chasewind,
  #sec_feature {
    padding:420px 0 20px 0;
  }

  #sec_about {
    height: auto;
    background-size: cover;
    padding-top: 1em;
  }

  #sec_feature div.text_col div {
    display: block !important;
    top: 1em;
    left: 5%;
  }

  .about_content_p {
    margin: 0;
  }

  #sec_just_a_glance figure img {
    max-width: 100%;
  }

  #sec_about > p {
    max-width: 90%;
    margin-left:5%;
  }

  #award_cups {
    flex-direction: column;
  }
  #award_cups span p {
    font-size: 12pt;
    padding: 0% 5%;
  }

  .email_input_container {
    width: 90%;
  }
  .email_input_container > input {
    width: 70%;
    font-size: 20px;
  }
}
