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

html {
  font: 62.5%/1.5 Arial, sans-serif;
}

h1, h2, h3, h4 {
  font-weight: normal;
}

p, li {
  font-size: 1.8rem;
}

p {
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
}

h3 {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.0em;
}

ul {
  margin: 0 0 20px 60px;
  font-family: 'Lato', sans-serif;
}

a {
  color: #2c2c2c;
}

footer ul {
  margin: 0;
}

.content-wrap {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  position: relative;
}

header {
  overflow: auto;
  padding-right: 512px;
  transition: all 0.5s;
}

footer {
  padding: 20px 0;
  overflow: auto;
}

#logo {
  float: left;
  margin-right: 2%;
  width: 20%;
}

header h1 {
  width: 100%;
  max-width: 353px;
  min-height: 38px;
  background: url("public/images/record-collection-logo-name.png") no-repeat;
  overflow: hidden;
  text-indent: -1000px;
  overflow: hidden;
  margin: 30px 0 2px 0;
  background-size: 100%;
}

.logo-name {
    float: left;
    width: 70%;
}

#spotify-accolade {
  width: 100%;
  max-width: 237px;
}

.top-section {
	background: url("public/images/background4.jpg") top left no-repeat;
  background-size: 100%;
  height: 850px;
}

.top-section .content-wrap {
  padding-top: 20px;
}

.top-description {
  padding: 100px 580px 0 0;
  max-width: 1000px;
}

.top-description h2 {
  font-size: 4.2rem;
  line-height: 1.3em;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
}

.top-description p {
  font-size: 1.4em;
  color: #fff;
}

.top-ipad {
  background: url("public/images/ipad-background.png") no-repeat;
  width: 562px;
  height: 757px;
  position: relative;
  right: -40px;
}

.ipad-collection-screenshot {
  background: url("public/images/ipad-collection-screenshot.jpg") no-repeat;
  width: 446px;
  height: 596px;
  position: absolute;
  top: 62px;
  left: 60px; 
}

.iphone-collection-screenshot {
  background: url("public/images/iphone-collection-screenshot.jpg") no-repeat;
  width: 226px;
  height: 401px;
  position: absolute;
  top: 79px;
  left: 20px;
}

.top-iphone {
  background: url("public/images/iphone-background.png") no-repeat;
  width: 262px;
  height: 552px;
}

#app-store-link {
  margin-bottom: 20px;
  display: block;
}

#app-store-link img {
  width: 100%;
  max-width: 291px;
}


.ipad-iphone {
  position: absolute;
  top: 20px;
  right: 0;
}

.top-iphone {
  position: absolute;
  bottom: 0;
}

.middle-section {
  overflow: auto;
  padding: 20px 0;
}

.middle-section .content-wrap {
  overflow: auto;
}

.middle-section ul {
  margin-bottom: 60px;
}

.middle-description {
  padding: 70px 0 0 322px;
}

.footnote {
  position: absolute;
  bottom: 0;
}

.middle-iphone {
  background: url("public/images/iphone-background.png") no-repeat;
  width: 262px;
  height: 552px;
  float: left;
  position: relative;
}

.iphone-nav-screenshot {
  background: url("public/images/iphone-nav-screenshot.jpg") no-repeat;
  width: 226px;
  height: 401px;
  position: absolute;
  top: 79px;
  left: 20px;
}

footer {
  background: url("public/images/pattern3.jpg");
  box-shadow: -1px 0 2px #000;
}

footer p, footer ul, footer li {
  float: left;
}

footer p {
  font-size: 1.4rem;
  margin: 0 20px 0 0;
}

footer ul {
  list-style: none;
}

footer a {
  display: inline-block;
}

footer li {
  margin-right: 5px;
  width: 20px;
  height: 24px;
}

footer img {
  width: 20px;
}

@media (max-width: 1200px) {
    .top-section {
        background-size: 1200px 873px;
    }

}

/* iPad or resized screen down to 900 */
@media (max-width: 850px), (max-device-width : 1024px) {
  
    .top-section {
      background-size: 1024px 745px;
    }

    #app-store-link img {
      margin: 0 auto;
      display: block;
    }
  
    .top-description h2, .top-description p {
        display: none;
    }
    
    #spotify-accolade, #logo {
      display: none;
    }
    
    .ipad-iphone {
      position: static;
    }
    
    header {
      padding-right: 0;
      text-align: center;
      margin-bottom: 20px;
    }
    
    .top-section {
      height: 980px;
    }
    
    .top-section .content-wrap {
      padding-bottom: 100px;
    }
    
    .top-description {
      padding: 0;
      max-width: 100%;
    }
    
    .middle-description {
      padding-left: 0;
    }
    
    .middle-iphone {
      display: none;
    }
    
    header h1 {
      background-position: center;
      background-size: 353px 38px;
      margin: 0;
      height: 127px;
      max-width: 100%;
      background: url("public/images/logo-full.png") no-repeat center;
    }
    
    .top-iphone {
      display: none;
    }
    
    .top-ipad {
      position: relative;
      left: 0;
      margin: 0 auto;
    }
    
    header .logo-name {
      width: 100%;
      float: none;
    }

}

@media (max-device-width : 480px) and (-webkit-min-device-pixel-ratio: 2) {
  
  p, li {
    font-size: 3.6rem;
  }
  
  footer p {
    font-size: 2.4rem;
  }
  
  footer img {
    width: 40px;
  }
  
  footer li {
    width: 40px;
  }
  
  header h1 {
    background-image: url("public/images/record-collection-logo-name.png");
    height: 38px;
    background-size: 80%;
  }
  
  .top-section { 
    height: auto;
  }
  #app-store-link {
    max-width: 100%;
  }
  #app-store-link img {
    width: 100%;
    max-width: 100%;
  }
  
  .top-section .content-wrap {
    padding-bottom: 0;
  }
  
  .top-description {
    display: block;
    position: static;
    margin-left: 0;
    max-width: 100%;
  }
  header {
    text-align: center;
    height: auto;
    margin-bottom: 20px;
  }
  
  .top-iphone {
    background-image: url("public/images/iphone-background@2x.png");
    width: 552px;
    height: 1102px
  }
  
  .iphone-collection-screenshot {
    background-image: url("public/images/iphone-collection-screenshot@2x.jpg");
    width: 452px;
    height: 802px;
    top: 158px;
    left: 38px;
  }
  
  header h1 {
    background-position: center;
    background-size: 353px 38px;
    margin: 0;
    height: 76px;
    max-width: 100%;
    background: url("public/images/record-collection-logo-name@2x.png") no-repeat center;
  }
  
  #logo {
    display: block;
    float: none;
    width: 50%;
    margin: 0 auto 10px auto;
  }
  
  
  .top-section {
    background-size: 1100px 800px;
  }
  
  .top-ipad {
    display: none;
  } 
  
  .top-iphone {
    display: block;
    position: relative;
    margin: 0 auto;
  }
  
  .ipad-iphone {
    margin-bottom: 20px;
  }
  
  .middle-section {
    padding: 0;
  }
  
  .middle-description {
    padding-top: 0;
  }
  
  .middle-description h3, .middle-description p {
    display: none;
  }
}

@media (max-width: 550px) {
  
  .top-section { 
    height: auto;
  }
  #app-store-link {
    max-width: 100%;
  }
  #app-store-link img {
    width: 100%;
    max-width: 100%;
  }
  
  .top-section .content-wrap {
    padding-bottom: 0;
  }
  
  .top-description {
    display: block;
    position: static;
    margin-left: 0;
    max-width: 100%;s
  }
  header {
    text-align: center;
    height: auto;
  }
  
  .top-iphone {
    background-image: url("public/images/iphone-background.png");
    width: 262px;
    height: 552px
  }
  
  .iphone-collection-screenshot {
    background-image: url("public/images/iphone-collection-screenshot.jpg");
    width: 226px;
    height: 401px;
    top: 79px;
    left: 19px;
  }
  
  #logo {
    display: block;
    float: none;
    width: 50%;
    margin: 0 auto;
  }
  
  header h1 {
    background-position: center;
    margin: 0;
    height: 38px;
    max-width: 100%;
    background: url("public/images/record-collection-logo-name.png") no-repeat center;
    background-size: 100% auto;
  }
  
  .top-section {
    background-size: 550px 400px;
  }
  
  .top-ipad {
    display: none;
  } 
  
  .top-iphone {
    display: block;
    position: relative;
    margin: 0 auto;
  }
  
  .ipad-iphone {
    margin-bottom: 20px;
  }
  
  .middle-section {
    padding: 0;
  }
  
  .middle-description {
    padding-top: 0;
  }
  
  .middle-description h3, .middle-description p {
    display: none;
  }
  
}
