@media screen and (max-width: 768px) {
  #section1 {
    height: 100vh;
  }

  .logo {
    width: 16vw;
    height: 15vh;
    font-size: 5vw;
    color: white;
    font-family: "Abril Fatface", cursive;
    background-image: url(../images/logo.png);
    background-size: 100% 100%;
    /* border: 2px solid blue;   */
    filter: contrast(200%);
  }

  header {
    height: 15vh;
    background-color: #00d6eb;
  }

  .topnav {
    width: 60vw;
    height: 15vh;
    display: flex;
    align-items: center;
  }
  .topnav a {
    font-size: 13px;
  }

  #mob-nav {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0);
  }
  #mob-nav .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    height: 70vh;
    width: 100vw;
    top: 15vh;
    left: 0;
  }

  #mob-menu {
    background-color: rgba(0, 0, 0, 0);
  }
  .ham-img {
    display: inline-block;
    height: 6vh;
    width: 10vw;
    background-image: url(../images/ham.png);
    filter: contrast(200);
    background-size: 100% 98%;
  }
  .ham {
    background-image: url(../images/ham.png);
  }
  .cross {
    background-image: url(../images/cross.png);
  }
  #main-nav {
    display: none;
  }

  nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background-color: rgba(182, 149, 105, 0.281);
  }

  #mob-nav nav a {
    color: #006d77;
    /* border: 3px solid red; */
    border-bottom: 3px solid #006d77;
    height: 15%;
    width: 100%;
    font-size: 5vw;
    line-height: 8vh;
    background-color: rgba(245, 229, 208, 0.581);
  }

  .hidden {
    display: none;
  }

  main {
    height: 90vh;
  }

  .discover {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    height: 110vh;
    background-size: cover;
  }

  .discover h1 {
    font-size: 35px;
  }

  #textcont {
    text-align: center;
    font-size: 20px;
  }
  #grid-1 {
    height: 70vh;
    width: 100vw;
  }
  #grid-2 {
    height: 30vh;
    width: 90vw;
    text-align: center;
    margin-bottom: 10px;
    /* padding-top: 60px; */
  }
  #grid-2 img {
    height: 30vh;
    width: 90vw;
    margin: 5vw;
    padding-top: 0px;
  }
  #grid-3 {
    display: none;
  }

  #poster2 {
    height: 170vh;
    width: 100%;
    /* background-image: url(../Capture2.JPG); */
    display: grid;
    grid-template-columns: 100vw;
    grid-template-rows: repeat(5, 1fr);
    background-image: url(../images/poster2back.jpeg);
    background-position: center center;
  }

  #moving_text a {
    font-size: 25px;
  }
  .post2 {
    margin-top: 15px;
  }
  #post1 {
    /* grid-column: 1/2; */
    grid-row: 1/2;
    display: none;
  }
  #post2 {
    grid-column: 1/2;
    grid-row: 1/2;
    /* display: grid; */
    /* place-items: left; */
    color: black;
    text-align: center;
    padding: 0;
    font-size: 17px;
  }
  #post3 {
    grid-row: 2/3;
    height: 35vh;
  }
  #post4 {
    grid-row: 3/4;
    height: 35vh;
  }
  #post5 {
    height: 35vh;

    grid-row: 4/5;
  }
  #post6 {
    height: 35vh;

    grid-row: 5/6;
  }
  #post3:hover,
  #post4:hover,
  #post5:hover,
  #post6:hover {
    height: 35vh;
  }

  #book {
    /* margin: 20% 10%; */
    /* margin-top: 10px; */
    margin: 10px auto;
    align-items: center;
  }
  #banner1 {
    background-color: rgb(238, 113, 180);
    height: 100%;
    width: 80%;
    margin: 10px auto;

    text-align: center;
  }
  #banner1:hover {
    height: 100%;
  }
  #banner2 {
    background-color: rgb(230, 226, 24);
    height: 100%;
    width: 80%;
    margin: 10px auto;

    align-self: center;
    text-align: center;
  }

  #banner2:hover {
    height: 35vh;
  }
  #teaching {
    margin: 10px auto;
    text-align: center;
  }
  #library {
    margin: 10px auto;
  }

  /* developer section */
  #developers {
    display: grid;
    height: fit-content;
    width: 106vw;
    gap: 10px;
    /* transform: translateX(6vw); */
    grid-template-rows: 0.5fr repeat(7, 1fr);
    grid-template-columns: 1fr;
    background-color: #00d6eb;
    /* overflow: hidden; */
  }

  #devheading h1 {
    font-size: 25px;
    padding: 15px;
  }

  .devs {
    background-color: rgb(230, 226, 24);
    height: 80vh;
    width: 60vw;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    margin: 10px auto;
    justify-content: space-evenly;
    align-items: center;
    transform: translateX(25px);
  }

  .head {
    height: 80vh;
    width: 60vw;
    z-index: 5;
    margin: 20px auto;
    transform: translateY(0vh);
    box-shadow: 7px 0px 8px brown, -7px 0px 8px brown;
    transition: none;
  }
  .head:hover {
    transform: scale(1, 1);
  }
  #dev3 {
    transform: perspective(0px) translate(0, 0) rotateY(0deg);
    transition: none;
  }

  #dev2 {
    transform: perspective(0px) translate(0, 0) rotateY(0deg);
    transition: none;
  }

  #dev1 {
    transform: perspective(0px) translate(0, 0) rotateY(0deg);
    transition: none;
  }

  #dev5 {
    transform: perspective(0px) translate(0, 0) rotateY(0deg);
    transition: none;
    z-index: 3;
  }

  #dev6 {
    transform: perspective(0px) translate(0, 0) rotateY(0deg);
    transition: none;
    z-index: 2;
  }

  #dev7 {
    transform: perspective(0px) translate(0, 0) rotateY(0deg);
    transition: none;
    z-index: 1;
  }

  #dev3:hover {
    z-index: 10;
    transform: translate(0, 0) rotateY(0deg);
  }

  #dev2:hover {
    z-index: 10;
    transform: translate(0, 0) rotateY(0deg);
  }

  #dev1:hover {
    z-index: 10;
    transform: translate(0, 0) rotateY(0deg);
  }

  #dev5:hover {
    z-index: 10;
    transform: translate(0, 0) rotateY(0deg);
  }

  #dev6:hover {
    z-index: 10;
    transform: translate(0, 0) rotateY(0deg);
  }

  #dev7:hover {
    z-index: 10;
    transform: translate(0, 0) rotateY(0deg);
  }

  .devcontent {
    font-size: 6vw;
  }
  .devpic {
    height: 60%;
    width: 40%;
    background-color: white;
    border-radius: 100%;
    margin: 15% 0;
  }

  .section_container {
    height: 120vh;
    padding: 20px 0;
    background-size: cover;
  }

  #section2 {
    grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 1fr 1fr 1fr;
    height: 100%;
    width: 90%;
    background-size: cover;
  }
  .block {
    width: 90%;
    margin: auto;
    /* border: 3px solid red; */
  }

  #div1 {
    grid-row: 1/2;
    grid-column: 1/-1;
  }
  #div2 {
    grid-column: 1/-1;

    grid-row: 2/3;
  }
  #div3 {
    grid-column: 1/-1;

    grid-row: 3/4;
  }
  #div4 {
    grid-column: 1/-1;

    grid-row: 4/5;
  }

  /* section3 */
  #section3cont {
    height: 170vh;
    padding: 20px 0;
  }
  #section3 {
    background-color: #00d6eb;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 2fr 0.5fr 2fr 0.5fr 2fr;
    /* grid-gap: 30px; */
    height: 100%;
    width: 80%;
    align-items: center;
    /* margin: auto; */
    border-radius: 50px;
    padding: 10vh 5vw;
  }
  .s3block {
    font-weight: 900;
    text-align: center;
  }
  #s3div2 {
    grid-row: 1/2;
  }
  #ans1 {
    grid-row: 2/3;
  }
  #s3div3 {
    grid-row: 3/4;
  }
  #ans2 {
    grid-row: 4/5;
  }
  #s3div3 {
    grid-row: 5/6;
  }
  #ans3 {
    grid-row: 6/7;
  }

  #section4 {
    grid-template-columns: 1fr;
    grid-template-rows: 0.5fr 2fr 2fr 2fr;
    height: 125vh;
    gap: 10px;
    width: 95%;
    padding: 10px;
  }
  .sec4_vid iframe {
    width: 90%;
  }
  #divid1 {
    grid-row: 1/2;
    grid-column: 1/-1;
  }
  #divid2 {
    grid-row: 2/3;
    grid-column: 1/-1;
  }
  #divid3 {
    grid-row: 3/4;
    grid-column: 1/-1;
  }
  #divid4 {
    grid-row: 4/5;
    grid-column: 1/-1;
  }

  footer {
    flex-direction: column;
  }

  #td1,
  #td2,
  #td3 {
    width: 100vw;
    height: 4 0vh;
    padding: 10px 0;
  }

  #homeshort {
    display: block;
  }
}

@media screen and (max-width: 550px) {
  .devpic {
    height: 60%;
    width: 50%;
    background-color: white;
    border-radius: 100%;
    margin: 15% 0;
  }
}
@media screen and (max-width: 425px) {
  .devpic {
    height: 40%;
    width: 60%;
    background-color: white;
    border-radius: 100%;
    margin: 15% 0;
  }

  .devs {
    height: 60vh;
  }
}
@media screen and (max-width: 375px) {
  .devpic {
    height: 40%;
    width: 65%;
    background-color: white;
    border-radius: 100%;
    margin: 15% 0;
  }
}
