html {
  font-family: "Helvetica", sans-serif;
  font-size: 18px;
  background-color: white;
}
body {
  line-height: 1.4;
}
.container {
  max-width: 960px;
  margin: auto;
}
.flex {
  display: flex;
}
/* Header */
header {
  height: 30rem;
  padding-top: 1rem;
  background-image: url("https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-5/tortoiseshell-optics/resources/images/glasses-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background-color: cadetblue;
  color: white;
}
nav div {
  display: flex;
  align-items: center;
}
nav img {
  height: 1.5rem;
  margin-left: 2rem;
  margin-right: 1rem;
}
nav ul {
  margin-right: 1rem;
}
nav li {
  display: inline;
  padding: 0 1rem;
}
.truncated-menu {
  display: none;
}
header .flex {
  justify-content: flex-end;
}
.main-banner {
  display: inline-block;
  padding: 1.5rem 5rem;
  margin-top: 10rem;
  margin-right: -2rem;
  background-color: white;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: bold;
}
@media only screen and (max-width: 1024px) {
  header {
    height: 22rem;
    padding-top: 0;
  }

  nav.container {
    max-width: 100%;
  }

  .main-banner {
    padding: 0.75rem 4rem;
    margin-top: 5rem;
    margin-right: 2rem;
  }

  .main-banner h1 {
    font-size: 1.33rem;
  }
}

@media only screen and (max-width: 700px) {
  .menu ul {
    display: none;
  }
  .menu ul.truncated-menu {
    display: block;
  }
}

@media only screen and (max-width: 560px) {
 header div span {
   display: none;
 }

 header {
   background-position: 20%;
   height: 17rem;
 }

 .main-banner {
   width: 100%;
   padding: 0 1rem;
   margin: 9rem auto 0 auto;
   text-align: center;
 }

 .main-banner h1 {
   font-size: 1rem;
 }
}

/* Supporting Sections */

.supporting {
  display: flex;
  justify-content: center;
}
@media only screen and (max-width: 560px) {
  .supporting {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin-top: 3rem;
  }
}

 /* Service Section */

.service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 5rem;
  height: 8rem;
  margin: 3rem;
  text-align: center;
}
.service img {
  width: 5rem;
  margin-bottom: 1rem;
}
.service img.paper-icon {
  width: 3.5rem;
}
@media only screen and (max-width: 560px) {
  .service {
    height: auto;
    margin: .77rem;
    font-size: .77rem;
  }
}

/* Info Section */
.info {
  width: 35%;
  margin-right: 5%;
  margin-bottom: 4rem;
}
.info p {
  padding: 1rem 0;
}
.title {
  max-width: 10rem;
  padding: 0.5rem 1.25rem;
  background-color: cadetblue;
  font-weight: bold;
  color: white;
}
@media only screen and (max-width: 560px) {
  .info {
    width: 100%;
  }

  .info .title {
    width: 100%;
    max-width: none;
    margin-right: 0;
    text-align: center;
  }
  .info p {
    padding: 1rem;
    font-size: .77rem;
  }

/* Footer */

footer {
  display: flex;
  align-items: center;
  background-color: azure;
  padding: 4rem 2rem;
}
footer img {
  height: 1.5rem;
  margin-left: 2rem;
  margin-right: 1rem;
}
@media only screen and (max-width: 560px) {
  footer {
    justify-content: center;
  }

  footer div {
    display: none;
  }

                    /* my work (mistakes)
html {
  font-size: 18px;
}
body {
  font-family: Helvetica;
  line-height: 1.4;
}
h1 {
  font-weight: bold;
  font-size: 2rem;
  line-height: 1.2;
  padding: 1.5rem 5rem;
}
.container {
  max-width: 960px;
  margin: 0 auto;
}
 nav {
  color: white;
  display:flex;
  align-items: center;
  justify-content: space-between;
  background-color: cadetblue;
}

header {
  background-image: url(https://s3.amazonaws.com/codecademy-content/courses/freelance-1/unit-5/tortoiseshell-optics/resources/images/glasses-bg.png);
  height: 30rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  align-items: center;
  padding-top: 1rem;
}
nav Img {
  height: 1.5rem;
  padding:  0 1rem 0 2rem;
}
.menu li {
  display: inline-flex;
  padding: 1rem 2rem;
}
@media only screen and (max-width: 470px){
  header {
    height: 17rem;
    padding-top: 0;
    background-position: 20%;
  }
  header span{
    display: none;
  }
  .menu li {
    display: none;
  }
}

.truncated-menu {
  display: none;
}
.flex.container{
  display: flex;
  justify-content: center;
}
.main-banner {
  position: relative;
  top: 10rem;
  left: 12rem;
  background-color: white;
}
@media only screen and (max-width: 1024px) {
  .container {
    max-width: 100%;
  }
  header {
  height: 22rem;
  padding-top: 0;
  }
  h1 {
    font-size: 1.33rem;
    padding: 0.75rem 4rem;
    }
  .main-banner{
    top: 5rem;
    left: 14rem;
  }
}
@media only screen and (max-width: 470px){
  .container {
    max-width: 100%;
  }
  h1{
    font-size: 1rem;
    padding: 1rem;
    margin: 0 auto;
  }
  .truncated-menu {
    display: block;
    text-align: center;
}
  .main-banner{
    position: relative;
    top: 9rem;
    left:  0rem;
  }
}

.supporting {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}
.service{
  height: 8rem;
  width: 5rem;
  display: inline-flex;
  align-items: center;
  padding: 0 3rem;
  flex-direction: column;
  justify-content: space-between;
}
.service div{
  text-align: center;
}
.service img{
max-width: 5rem;
}
.paper-icon{
width: 3.5rem;
}
@media only screen and (max-width: 470px){
  .supporting {
    flex-wrap: wrap;
    padding-top: 3.77rem;
  }
  .service{
    padding-top: 1.54rem;
  }
  .service div{
    font-size: 0.77rem;
  }
}

 .info{
  width: 35%;
  padding: auto;
  margin-right: 5%;
}
  .title{
  width: 10rem;
  color: white;
  font-weight: bold;
  padding: .5rem 1.25rem;
  background-color: cadetblue;
}
 p{
  padding-top: 1rem;
  margin-bottom: 5rem;
}

footer {
  display: flex;
  align-items: center;
  background-color: azure
}
footer img{
  height: 1.5rem;
  padding: 4rem 1rem 4rem 4rem;
}
@media only screen and (max-width: 470px){
.info{
  padding-bottom: 4rem;
  font-size: 0.77rem;
  width: 90%;
  margin: auto;

}
.tittle{
  display: block;
  flex-wrap: wrap;

}
footer img{
  display: flex;
  justify-content: center;
}
footer div {
                                                */
