:root {
  --color--1: #A68163;
  --color--2:#546957;
  --color--3:#B6C3B7;
  --color--4:#F2F0ED;
  --color--5:#2B362D;
  --color--8:#b6c3b7;
}

main {
  display: grid;
  grid-template-rows: repeat(8, auto);
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  padding: 30px;
}

.imgschool1 {
  align-self: center;
}

.imgschool {
  grid-row: 15/16;
}

.imgschool img {
  max-height: 70px;
  max-width: 250px;
  padding-top: 40px;
  padding-bottom: 20px;
}

/*---- img size for both mobile and computer ---*/
main img {
  max-height: 500px;
}

h1, h2, h3 {
  color: --color--5;
}

main div {
  text-align: center;
  align-self: center;
  font-size: 2em;
}



@media screen and (max-width: 1040px) {
  main {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(16, auto);
  }

  main img {
    grid-column: 1;
    margin: 0 auto;
    width: 100%;
   
  }

  main p{
    margin: 10px 0;
    text-align: center;
  }

  /*---img for the schools----*/
  .imgschool1 {
    grid-row: 23;
    align-self: center;
  }

  /*---img for the schools----*/
  .imgschool2 {
    grid-row: 24;
  }
}

h2, h3 {
  grid-column: 1/3;
}

h2, h3, p {
  margin: 10px;
  text-align: center;
}
