/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background-color: white;
  color: black;
  font-size: 16px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}
.mainwrapper {
  width: 100%;
  height: 105vh;
  display: flex;
  justify-content: center;
}
.wrapper {
  width: 60%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.menu {
  width: 100%;
  height: 5.5vh;
  border: 1px solid black;
  background-color: rgb(12, 99, 240);
}
.menu > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}
.menu li {
  position: relative;
  border-right: 1px solid #b3b3b3;
  border-left: 1px solid #b3b3b3;
}
.menu a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  display: block;
  text-decoration: none;
  padding: 5px 20px;
  color: white;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.menu a:hover {
  color: blue;
  background-color: #78f404;
  color: #140573; 
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.banner {
  width: 100%;
  height: 15vh;
  border: 1px solid black;
  background-color: greenyellow;
}
.mid-container {
  width: 100%;
  display: grid;
  grid-template-columns: 30vh 1fr 30vh;
  grid-template-rows: 55vh;
}
.left,
.center,
.right {
  border: 1px solid black;
  background-color: rgb(21, 53, 53);
}
.center {
  background-color: rgb(230, 12, 143);
}
.center2 {
  background-color: blanchedalmond;
}
.center3 {
  background-color: palevioletred;
}
.center4 {
  background-color: purple;
}
.picture {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 20vh;
  background-color: rgb(243, 11, 61);
}
.pic1 {
  border: 1px solid black;
}
.footer {
  width: 100%;
  height: 5vh;
  border: 1px solid black;
  background-color: rgb(132, 11, 11);
}

/* =====================Media query for phone screens ================================*/
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .wrapper {
    width: 100%;
    height: 100vh;
  }

  .menu {
    height: 5.5vh;
  }

  .menu a {
    font-size: 15px;
    padding: 5px 14px;
  }

  .banner {
    height: 15vh;
  }

  .mid-container {
    grid-template-columns: 10vh 1fr 10vh;
    grid-template-rows: 55vh;
  }

  .picture {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 20vh;
  }

  .footer {
    height: 5vh;
  }
}

/* =========================Media query for tablet screens========================= */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 15px; /* Slightly larger font size for tablets */
  }

  .wrapper {
    width: 80%; /* Adjust wrapper width for tablet */
    height: 100vh;
  }

  .menu {
    height: 5.5vh;
  }

  .menu a {
    font-size: 18px;
    padding: 5px 14px;
  }

  .menu li {
    padding: 0;
    margin: 0;
  }

  .banner {
    height: 15vh;
  }

  .mid-container {
    grid-template-columns: 20vh 1fr 20vh;
    grid-template-rows: 55vh;
  }

  .picture {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 20vh;
  }

  .footer {
    height: 5vh;
  }
}
