* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 255, 0.7), rgba(0, 0, 0, 0.1)),
    url("../images/logo.png");
  background-size: cover, 50% 100vh;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  overflow-y: auto;
  overflow-x: hidden;
}
.copyright{
  height: auto;
  width: 100vw;
  text-align: center;
  background-color: #00d6eb;
  font-size: 20px;

}

header {
  display: none;
}
nav {
  display: flex;
  width: 100vw;
  justify-content: space-evenly;
  height: 12vh;
  align-items: center;
  background-color: #edf6f9;
}

nav a {
  color: #006d77;
  display: inline-block;
  width: 15vw;
  text-align: center;
  height: 13vh;
  line-height: 13vh;
  text-decoration: none;
  font-size: 2vw;
  /* border: 3px solid red; */
}
nav a:hover {
  background-color: rgb(182, 148, 105);
  transform: scaleX(1.1);
}
#main-nav {
  width: 100vw;
  height: 13vh;
}

section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(40vh, 7);
  margin: 5%;
  grid-gap: 40px;
}

.block {
  /* border: 3px solid blue; */
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  background-color: rgba(233, 236, 37, 0.8);
  border-radius: 20px;
  transition: all 0.5s ease;
}
.block:hover {
  transform: scale(1.5, 1.5);
}
/* .block:hover img {
  height: fit-content;
} */
.block img {
  height: 50vh;
  /* max-width: 60vh; */
  width: 25vw;
  border-radius: 8px;
  line-height: 100%;
}

@media only screen and (max-width: 705px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 15vh;
    width: 100vw;
    background-color: #00d6eb;
  }
  .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%);
  }
  .topnav {
    height: 100%;
    display: flex;
    /* width: 0%; */
    justify-content: space-evenly;
    align-items: center;
  }
  .topnav a {
    text-decoration: none;
  }
  #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: 10vh;
    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% 100%;
  }
  .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;
    text-align: center;
    font-weight: 600;
    background-color: rgba(245, 229, 208, 0.581);
  }

  .hidden {
    display: none;
  }

  /* header portion ends */

  section {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(18, 44vh);
  }

  .block img {
    height: 40vh;
    width: 70vw;
  }
  #homeshort {
    display: block;
    height: 50px;
    width: 50px;
    background-image: url(../images/homeshort.png);
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center center;
    position: fixed;
    bottom: 10vh;
    right: 10px;
    opacity: 0.4;
    border-radius: 100%;
  }

  #homeshort:hover {
    opacity: 1;
  }
}
