html {
    background-color: #FFFFFF;
  }

  *, *:before, *:after {
    box-sizing: inherit;
  }
  
  body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
  }

  /************** End CSS Reset **************/

  /************ Fonts ************/
  @font-face {
    font-family: "Hypermarket-Regular";
    src: url(fonts/Hypermarket-Regular.ttf) format("truetype"),
    url(fonts/Hypermarket-Regular.woff) format("woff"),
    url(fonts/Hypermarket-Regular.eot) format("embedded-opentype");
    }
    
  @font-face {
    font-family: "Hypermarket-Light";
    src: url(fonts/Hypermarket-Light.ttf) format("truetype"),
    url(fonts/Hypermarket-Light.woff) format("woff"),
    url(fonts/Hypermarket-Light.eot) format("embedded-opentype");
      }
  
  @font-face {
      font-family: "Hypermarket-Exp";
        src: url(fonts/Hypermarket-Exp.ttf) format("truetype"),
        url(fonts/Hypermarket-Exp.woff) format("woff"),
        url(fonts/Hypermarket-Exp.eot) format("embedded-opentype");
          }

body {
  font-family: Hypermarket-Light;
}

/********************************************* Navigation Bar ********************************************************/

  ul {
    background-color: white;
    font-family: Hypermarket-Exp;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 25%;
    height: 100vh; /* Full height */
  position: fixed; /* Make it stick, even on scroll */
  text-align: center;
  flex-direction: column;
  align-content: flex-start;
  overflow-y: scroll;
  }

  #logo {
    width:100%;
    height:100%;
    margin-top: 2%;
  }
  
  .nav-description {
    font-family: Hypermarket-Regular;
    margin-top: 15%;
    margin-bottom: 15%;
    margin-left: 3%;
    margin-right: 3%;
    font-size: calc(0.9vw + 0.9vh);
  } 

.linepattern {
  font-size: calc(0.6vw + 0.6vh);
  white-space: nowrap;
}

  li a {
    display: block;
    color: #000;
    padding: 5%;
    margin: 2%;
    text-decoration: none;
    border: 1px solid black;
    text-align: center;
    font-size: calc(1.1vw + 1.1vh);
    transition: background-color 0.3s ease-in-out;
    }

  /* Change the active button color on view */
  li a:hover:not(.active) {
    background-color: #555;
    color: white;
    cursor: pointer;
  }
  
  li a.active {
    background-color: black;
    color: white;
    cursor: pointer;
  }
  
  li a.active {
    background-color: black;
    color: white;
    cursor: pointer;
  }

  .container3D {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-left: 21%; 
    padding-bottom: 3%;
    padding-left: 9%;
    padding-right: 10%;
    padding-top: 2%;
    z-index: 1; /* Ensure it's above other content */
    overflow: scroll;
}

.box {
    width: 34vw;
    height: 45vh;
    background-color: black;
    cursor: grab;
    position: relative;
}

.box:active {
    cursor: grabbing; /* Set the cursor to grabbing when the box is clicked */
}

.hover-text {
    display: none;
    position: absolute;
    padding: 10px;
    color: white;
    font-size: calc(1vw + 1vh);
}

.box:hover .hover-text {
    display: block;
}
  
  .icon {
    position: absolute;
    top: 0.5%;
    right: 3%;
    font-size: calc(2vw + 2vh);
    cursor: pointer;
    color: white;
}

/**************************************** MODAL BOX ****************************************/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin-left: 50%;
    margin-top: 3%;
    margin-bottom: 3%;
    border: 1px solid #888;
    width: 30%;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Maintain the aspect ratio and fit the image within the container */
}

.close {
    color: #aaa;
    float: right;
    font-size: calc(1.8vw + 1.8vh);
    font-weight: bold;
    margin-right: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
