* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  font-family: "Bahnschrift SemiBold";
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  margin: 0;
}
body {
  background-color: #333;
}
header {
  background: #424949;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 100px;
}
.logo {
  font-size: 28px;
  color: white;
}
.hamburger {
  display: none;
}
.nav-bar ul {
  display: flex;
}
.nav-bar ul li a {
  display: block;
  color: white;
  font-size: 20px;
  padding: 10px 25px;
  border-radius: 50px;
  transition: 0.2s;
  margin: 0 5px;
}
.nav-bar ul li a:hover {
  color: black;
  background: white;
}
.nav-bar ul li a.active {
  color: black;
  background: white;
}
@media only screen and (max-width: 1320px) {
  header {
    padding: 0 50px;
  }
}
@media only screen and (max-width: 1100px) {
  header {
    padding: 0 30px;
  }
}
@media only screen and (max-width: 910px) {
  .logo {
    font-size: 18px;
    color: white;
  }
  .hamburger {
    display: block;
    cursor: pointer;
  }
  .hamburger .line {
    width: 30px;
    height: 3px;
    background: white;
    margin: 6px 0;
  }
  .nav-bar {
    z-index: 10;
    height: 0;
    position: absolute; /* Ensure position is set for z-index to work */
    top: 80px;
    left: 0;
    right: 0;
    width: 100vw;
    background: #424949;
    transition: 0.5s;
  }

  .nav-bar.active {
    height: 60vh;
    overflow: scroll;
  }

  .nav-bar ul {
    display: block;
    width: fit-content;
    margin: 80px auto 0 auto;
    text-align: center;
    transition: 0.5s;
    opacity: 0;
    overflow: scroll;
  }
  .nav-bar.active ul {
    opacity: 1;
  }
  .nav-bar.active ul li a {
    opacity: 1;
  }
  .nav-bar ul li a {
    margin-bottom: 28px;
  }
}

.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  row-gap: 10vh;
  column-gap: 15vw;
  justify-content: center;
  align-items: center;
  width: 45em;
  margin: auto;
  padding-top: 3em;
}

.flex-box {
  width: 100%;
  height: 0;
  padding-top: 100%; /* Padding-top for responsive square boxes */
  position: relative;
  background-color: rgba(104, 107, 107, 0);
  border-radius: 1em;
  overflow: hidden;
}

.flex-box svg,
.flex-box img {
  width: 100%; /* Adjust to fill the flex-box */
  height: 100%; /* Adjust to fill the flex-box */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(
    -50%,
    -50%
  ); /* Center the image or SVG within the flex-box */
}

.flex-box:hover {
  transform: scale(1.05); /* Slightly increase size on hover */
}

a {
  color: inherit; /* Ensures the hyperlink has no extra styles */
  text-decoration: none; /* Removes underline from hyperlinks */
}

@media (max-width: 960px) {
  .container {
    width: 35em;
    padding-top: 5em;
  }
}

@media (max-width: 600px) {
  .container {
    width: 20em;
    padding-top: 10em;
  }
}

@media (max-width: 360px) {
  .scroll {
    height: 100%;
    overflow: scroll; /* Prevents scrolling */
  }
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    margin-top: -5em;
    padding-bottom: 10em;
  }
  .flex-box {
    width: 90vw;
    height: calc((100vh - 6vw) / 4);
  }
}

.container {
  z-index: 1; /* Make sure this is lower than the nav-bar's z-index */
  /* ...other styles... */
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (min-aspect-ratio: 1/1) {
  /* Styles for screens where the width is greater or equal to the height */
  .background {
    position: fixed;
  }
  header {
    position: fixed;
    z-index: 10;
  }
  .container {
    padding-top: 10em;
  }
}
