/* Styles for individual pages */
* {
  box-sizing: border-box;
}
/* Keeps images within browser size */
img {
  max-width: 100%;
}
a {
  text-decoration: none;
}
/* body {
  max-width: 100vw;
  overflow-x: hidden;
} */

/* Main Navigation - fixed */
.navigation {
  height: 40px;
  position: fixed;
  /* width: 100%; */
  z-index: 2;
  padding: 10px 0px 0px 10px;
  top: 6px;
  left: 0;
  display: block;
  /* display: flex; */
  /* border: 3px solid black; */
  padding: 6px;
  max-width: 100vw;
}
.navigation a {
  margin-right: 1rem;
  text-decoration: none;
  font-size: 100%;
  font-family: sans-serif;
  font-weight: bold;
  border: 4px solid;
  padding: 7px;
}
.navigation a:hover {
  font-style: italic;
}

/* TESTING FLEX NAV */
.navigation2 {
  display: flex;
  font-size: 100%;
  justify-content: left;
  position: fixed;
  border: 2px solid;
  flex-wrap: wrap;
}
.test-item {
  border: 4px solid black;
  padding: 15px;
  font-family: sans-serif;
  font-weight: bold;
}
.test-item:hover {
  font-style: italic;
}
#home {
  background-color: wheat;
  color: black;
}
#paposh {
  background-color: orange;
  color: black;
}
#port {
  background-color: lightsteelblue;
  color: black;
}
#burns {
  background-color: rgb(212, 254, 128);
  color: black;
}
#fishries {
  background-color: rgb(67, 67, 255);
  color: white;
}

/* MEDIA QUERY FOR NAVBAR */

.main {
  padding: 10px;
  margin-top: 1rem;
  margin-left: 1rem;
}

.main h1 {
  font-size: 85px;
  font-family: Noto Nastaliq Urdu;
}
.main h2 {
  font-size: 30px;
  font-family: sans-serif;
  margin-top: -2rem;
  margin-bottom: 2rem;
}

.main p {
  font-size: 20px;
  max-width: 70vw;
  font-family: monospace;
}

/* Informational Hover Box */
.hover-container {
  position: relative;
  display: inline-block;
}
.hover-text {
  visibility: hidden;
  opacity: 0;
  width: 200px;
  height: 90px;
  background-color: black;
  color: #fff;
  text-align: center;
  font-size: 80%;
  padding: 7px 5px;
  position: absolute;
  z-index: 1;
  top: 100%; /* Position below the container */
  left: 50%;
  margin-left: -60px; /* Center the box */
  transition: opacity 0.3s;
  font-style: italic;
}
.hover-container:hover {
  cursor: cell;
}
.hover-container:hover .hover-text {
  visibility: visible;
  opacity: 1;
}
/* Optional: Add arrow */
.hover-text::after {
  content: "";
  position: absolute;
  bottom: 100%; /* At the top of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}
/* Reduces size of NavBar at smaller screen, Changes main text to be wider in viewport */
@media screen and (max-width: 650px) {
  .navigation2 {
    border: none;
  }
  .test-item {
    font-size: 90%;
    padding: 10px;
    transition: font-size ease 1s;
  }
  .main p {
    max-width: 80vw;
  }
}
