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;
  }
  
/********************************************* Stacked Receipt Container *********************************************/

.receiptcontainer {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  height: 100vh; 
  width: 75%; 
  margin-left: 25%;
  overflow: hidden; 
  position: relative;
  cursor: pointer;
}

.receiptcontainer img {
  max-width: 100%;
  max-height: 100%; 
  width: auto; 
  height: auto; 
  position: absolute;
  top: 50%; 
  left: 50%;
  transform-origin: bottom center; 
  transform: translate(-50%, -50%) rotate(-3deg) scale(0.7); 
}

/* Style for the pile effect */
.receiptcontainer img:nth-child(1) {
  z-index: 5;
  transform: translate(-50%, -75%) rotate(-10deg) scale(0.7); 
}
.receiptcontainer img:nth-child(2) {
  z-index: 4;
  transform: translate(-20%, -60%) rotate(-30deg) translate(0, -10%) scale(0.7); 
}

.receiptcontainer img:nth-child(3) {
  z-index: 3;
  transform: translate(-105%, -44%) rotate(-10deg) translate(0, -20%) scale(0.8); 
}

.receiptcontainer img:nth-child(4) {
  z-index: 2;
  transform: translate(-80%, -45%) rotate(15deg) translate(0, -30%) scale(0.7);
}

.receiptcontainer img:nth-child(5) {
  z-index: 0;
  transform: translate(-10%, -20%) rotate(10deg) translate(0, -40%) scale(0.9); 
}

.receiptcontainer img:nth-child(6) {
  z-index: 6;
  transform: translate(-60%, -60%) rotate(10deg) translate(-10%, 0%) scale(0.7); 
}

/********************************************* Button *********************************************/

.spread-out-button {
  font-family: Hypermarket-Exp;
  font-size: calc(0.6vw + 0.6vh);
  text-align: center;
  color:black;
  border-radius: 50%;
  border: 1px black;
  border-style: dashed;
  background-color: white;
  width: 6%;
  height: 8%;
  opacity: 80%;
  position: fixed;
  bottom: 2%; 
  right: 2%; 
  padding: 5px 10px;
  cursor: pointer; 
  z-index: 999;
}

.spread-out-button:hover{
  font-family: Hypermarket-Exp;
  font-size: calc(0.6vw + 0.6vh);
  text-align: center;
  color:white;
  border-radius: 50%;
  border: 1px white;
  border-style: dashed;
  background-color: grey;
}

.stack-together-button {
  font-family: Hypermarket-Exp;
  font-size: calc(0.6vw + 0.6vh);
  text-align: center;
  color:black;
  border-radius: 50%;
  border: 1px black;
  border-style: dashed;
  background-color: white;
  width: 6%;
  height: 8%;
  opacity: 80%;
  position: fixed;
  bottom: 15%; 
  right: 2%; 
  padding: 5px 10px;
  cursor: pointer; 
  z-index: 999;
}

.stack-together-button:hover{
  font-family: Hypermarket-Exp;
  font-size: calc(0.6vw + 0.6vh);
  text-align: center;
  color:white;
  border-radius: 50%;
  border: 1px white;
  border-style: dashed;
  background-color: grey;
}

.add-image-button {
  font-family: Hypermarket-Exp;
  font-size: calc(0.6vw + 0.6vh);
  text-align: center;
  color:black;
  border-radius: 50%;
  border: 1px black;
  border-style: dashed;
  background-color: white;
  width: 6%;
  height: 8%;
  opacity: 80%;
  position: fixed;
  bottom: 90%; 
  right: 2%; 
  padding: 5px 10px;
  cursor: pointer; 
  z-index: 999;
}

.add-image-button:hover{
  font-family: Hypermarket-Exp;
  font-size: calc(0.6vw + 0.6vh);
  text-align: center;
  color:white;
  border-radius: 50%;
  border: 1px white;
  border-style: dashed;
  background-color: grey;
}
