body {
  margin: 0;
  width: 100%;
  font-family: "Helvetica";
  font-size: 1.1rem;
}

#header {
  background: white;
  border-bottom: 1px solid gray;
  width: 100%;
  height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  }

#header-img { 
  height: 80%;
  margin-left: 5rem;
}

#nav-bar {
  width: 80%;
  margin-right: 5rem;
}

ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  list-style-type: none;
}

.nav-link {
  text-decoration: none;
  color: black;
}

li:last-child {
  background: rgb(161, 153, 153);
  height: 2.5rem;
  width: 11rem;
  text-align: center;
  line-height: 2.5rem;
  border-radius: 15px;
}

.pre-order {
  color: white;
}

.section {
  margin-bottom: 5rem;
  margin-left: 10%;
  margin-right: 10%;
  width: 80%;
  padding-top: 5rem;
}

#our-story {
  margin-top: 5rem;
  display: flex;
}

#our-story > article {
  display: flex;
  flex-direction: column;
  padding: 0em 3em 3em 0em;
}

#our-story-img {
  width: 45vw;
  height: 70vh;
}

#our-story-img-caption {
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

#features-header {
  text-align: center;
}

#features-header-highlight {
  font-size: 1.3em;
  margin-left: .5rem;
}

.sub-features {
  margin-top: 10rem;
}

#sub-features-improved-camera {
  margin-top: 5rem;
}

#sub-features-improved-camera > aside {
  display: flex;
  justify-content: center;
}

#sub-features-a16-bionic-processor {
  display: flex;
  flex-direction: row;
}

#sub-features-a16-bionic-processor > article{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 3rem;
}

#sub-features-redesigned-screen-img {
  width: 100%;
  margin-top: 2rem;
}

#sub-features-redesigned-screen > article{
  text-align: center;
  width: 70%;
  margin-left: 15%;
}

#grid-container {
  display: grid;
  gap: 1.5rem;
  margin-top: 5rem;
  grid-template-areas: 
    'one two three four five'
    'six seven eight nine ten'
    ;
}

.grids:nth-child(1) {
  grid-area: one;
}

.grids:nth-child(2) {
  grid-area: two;
}

.grids:nth-child(3) {
  grid-area: three;
}

.grids:nth-child(4) {
  grid-area: four;
}

.grids:nth-child(5) {
  grid-area: five;
}

.grids:nth-child(6) {
  grid-area: six;
}

.grids:nth-child(7) {
  grid-area: seven;
}

.grids:nth-child(8) {
  grid-area: eight;
}

.grids:nth-child(9) {
  grid-area: nine;
}

.grids:nth-child(10) {
  grid-area: ten;
}

.grid-img {
  display: flex;
  align-items: center; 
}

.testifiers-portrait {
  width: 100%;
}

.testifiers-name {
  font-weight: bold;
}

#pricing {
  font-size: 1.3em;
  text-align: center;
}

#price-container {
  display: flex;
  margin-top: 5rem;
  gap: 2rem;
}

.model-img {
  width: 100%;
  margin-bottom: 2rem;
}

.new-highlight {
  color: orange;
  font-size: 1rem;
}

.new-hidden {
  color: red;
  font-size: 1rem;
  visibility: hidden;
}

.model > p {
  font-size: 1rem;
}

#form, ::placeholder  {
  text-align: center;
}

#email {
  height: 3rem;
  width: 60%;
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid gray;
  border-radius: 10px;
}

#submit {
  display: block;
  margin: auto;
}

section:last-child {
  margin-bottom: 5rem;
}

footer {
  font-size: .75em;
  background: #f5f5f7;
  padding: 1rem;
}

footer > p {
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

footer > p:nth-child(3) {
  border-top: 1px solid gray;
  padding-top: 1em;
}

@media (max-width: 450px) {
  #grid-container {
    grid-template-areas: 
    'one'
    'six'
    'two'
    'seven'
    'three'
    'eight'
    'four'
    'nine'
    'five'
    'ten';
  }
}

@media (max-width: 900px) {
  #our-story {
    flex-direction: column;
  }

  #our-story-img {
    width: 100%;
    height: auto;
  }

  .sub-features {
  margin-top: 5rem;
}

  #sub-features-a16-bionic-processor {
    flex-direction: column-reverse;
  }

  #sub-features-a16-bionic-processor-img {
    width: 100%;
  }

  #sub-features-a16-bionic-processor > article {
    margin-bottom: 2rem;
    padding-left: 0;
  }

  

  #price-container {
    flex-direction: column;
    gap: 8rem;
  }
  
}


