/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* Reset default margin and padding, set box-sizing to border-box, and set default font */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-size: 1vh; /* Use viewport height for scalable font size */
}

/* Style for canvas elements */
canvas {
  display: block; /* Display as block element */
  margin: 0; /* Remove default margin */
  font-family: "Montserrat", sans-serif;
  height: 100vh; /* Set the height to the full viewport height */
}

.navigation-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 10vh;
  height: 10vh;
  border-radius: 50%;
  background-color: rgb(255, 245, 203);
  box-shadow: 0 0 5vh rgba(0, 0, 0, 1); /* Shadow */
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.navigation-button:hover {
  background-color: hsl(49, 11%, 39%);
}

.navigation-button img {
  width: 90%;
  height: 90%;
}

/* VR PAGE ---------------------------------------------------------------------*/
/* Style for digital, wall, and install page content */
#digitalPageContent,
#installPageContent,
#wallPageContent,
#installPageContent,
#collabPageContent,
#aboutPageContent,
#exhibitionPageContent,
#muralPageContent {
  display: none; /* Hide by default */
  position: relative; /* Position relative */
  overflow-y: auto; /* Enable vertical scrolling */
  height: 100vh; /* Set the height to the full viewport height */
  z-index: 2; /* Set z-index to 2 */
}

#aboutPageContent {
  cursor: none; /* Hide cursor */
}

/* TEXT -------------------------------------------- */

/* Common styles for headers */
h1,
h2,
h3 {
  font-weight: 600; /* Semi-bold font weight */
  letter-spacing: -2px; /* Negative letter spacing */
  text-align: center; /* Center text */
  margin-bottom: 10px; /* Add some space below the title */
}

.header h1 {
  display: flex; /* Use flexbox for layout */
  align-items: center; /* Center items vertically */
  justify-content: center; /* Center items horizontally */
  flex-direction: column; /* Arrange items in a column */
  margin-bottom: 20px; /* Add some space below the header */
  font-size: 6vh; /* Font size of 4% of viewport height */
  font-weight: 900; /* Bold font weight */
  color: rgb(255, 245, 203);
}

h2 {
  font-size: 4vh; /* Font size of 3% of viewport height */
  color: hsl(48, 100%, 90%);
}

h3 {
  font-size: 3vh; /* Font size of 3% of viewport height */
  position: absolute; /* Position absolutely, which fixes the extra container space */
  margin-left: auto;
  transform: translate(30%, -500%); /* Center the element */
  color: rgb(255, 245, 203);
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease-in-out; /* Smooth transition */
}

h3:hover {
  opacity: 1; /* Show on hover */
}

/* Style for description of paragraph container */
.description {
  width: 80%;
  padding: 10px;
}

/* Style for paragraph elements */
p {
  color: rgb(255, 245, 203);
  font-size: 2vh; /* Font size of 2% of viewport height */
  text-align: left; /* Align text to the left */
}

/* IMAGE AND VIDEO-------------------------------------------- */

/* Style for section elements */
section {
  box-shadow: 0 0 5vh rgba(0, 0, 0, 1, 1); /* Shadow */

  background-color: rgba(47, 47, 47, 0.8);
  min-height: 100vh; /* Minimum height of 100% of the viewport height */
  width: 70%; /* Full width */
  display: flex; /* Use flexbox for layout */
  flex-direction: column; /* Arrange items in a column */
  align-items: center; /* Center items vertically */
  justify-content: flex-start; /* Align items to the top */
  margin: 50px auto; /* Center horizontally and add vertical margin */
  border-radius: 10vh; /* Rounded corners */
}

#about {
  background-color: rgb(70, 49, 75, 0.5); /* Light purple background color */
  outline-color: rgb(31, 15, 35);
  outline-style: solid;
  outline-width: 2vh;
  box-shadow: 0 0 5vh rgba(0, 0, 0, 1); /* Shadow */
}

.gallery-container {
  display: flex; /* Use flexbox for layout */
  flex-wrap: wrap; /* Wrap items to the next line */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  margin: 40px;
}

/* Style for gallery items */
.gallery-item {
  width: 40%; /* 30% of the container width *
  border-radius: 2vh; /* Rounded corners */
  padding: 0; /* No padding */
  margin: 30px; /* Add some space between items */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1), inset 0px 0 20px rgba(0, 0, 0, 0.5); /* Shadow */
  overflow: hidden; /* Hide overflow */
  align-items: center; /* Center items horizontally */
  justify-content: center; /* Align items center */
}

#wallPageContent #bigImg,
#installPageContent #bigImg,
#digitalPageContent #bigImg {
  width: 70%;
}

#collabPageContent #bigImg {
  width: 80%;
}

/* Style for images in gallery items */
.gallery-item img {
  width: 100%; /* Full width */
  height: auto; /* Fixed height */
  object-fit: cover; /* Scale the image to cover the frame */
  border-radius: 1vh; /* Rounded corners */
}

/* Style for images in gallery items */
.gallery-item iframe {
  width: 100%; /* Full width */
  height: 50vh; /* Fixed height */
  object-fit: cover; /* Scale the image to cover the frame */
  border-radius: 1vh; /* Rounded corners */
}

/* Style for profile video to remove white pixels */
#profileVid {
  position: absolute; /* Position absolutely for precise placement */
  top: 100%; /* Position right below the name */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  mix-blend-mode: multiply; /* Use multiply blend mode to remove white pixels */
  z-index: 2;
  height: 75vh; /* Adjust width to fit with the name above */
}

#name {
  font-size: 6vh; /* Smaller font size */
  font-weight: 700;
  color: rgb(59, 59, 59);
  text-shadow: 2px 2px 4px rgba(19, 19, 19, 0.2);
  letter-spacing: -1px;
  margin: 0; /* Remove default margins */
  position: absolute;
  top: 10%; /* Position right below the name */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  z-index: 3; /* Make sure it appears above other elements */
}

#profileVid:hover {
  mix-blend-mode: difference; /* Reset blend mode on hover */
}

#button-container {
  position: absolute;
  top: 0;
  width: 100%;
  height: 20%;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  box-shadow: 0 0 5vh rgba(0, 0, 0, 1); /* Shadow */
  background-color: #2f2f2f;
  background-color: rgb(255, 245, 203, 0.5);
  padding: 10px;
}

#button-container button {
  height: 40%; /* 50% of the container */
  margin: 0 2vh;
  padding: 20px 30px;
  font-size: 2vh;
  background-color: rgb(36, 36, 36);
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 0 5vh rgba(0, 0, 0, 1); /* Shadow */
  border-radius: 2vh; /* Rounded corners */
  border: none;
  color: rgb(255, 245, 203);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5%; /* Add some space at the top */
}

#button-container button:hover {
  background-color: hsl(48, 100%, 90%);
  color: rgb(36, 36, 36);
}

/* MOBILE/TABLET READY */

@media (max-width: 600px) {
  .navigation-button {
    top: 5vh;
    left: 5vw;
    width: 40px;
    height: 40px;
  }

  #profileVid {
    /* width: 50%;  Adjust height for smaller screens */
    /* height: 50%;  Adjust height for smaller screens */
    /* left: 20px;  Adjust position for smaller screens */
    /* top: 0;  Fix to the top of the screen */

    display: none;
  }

  #name {
    font-size: 5vh;
    font-weight: 700;
    color: rgb(255, 245, 203);
    text-shadow: 2px 2px 4px rgba(255, 245, 203, 0.2);
    letter-spacing: -1px;
    margin: 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 100vw;
    text-align: center;
    background: none;
    padding: 5% 0;
  }

  #button-container {
    flex-direction: column; /* Stack buttons vertically */
    height: auto; /* Adjust height for smaller screens */
    padding: 20px; /* Increase padding for smaller screens */
    margin-top: 80px; /* Add top margin to create space */
  }

  #button-container button {
    width: 80%; /* Make buttons wider on smaller screens */
    margin: 10px 0; /* Adjust margin for smaller screens */
    font-size: 3vh; /* Increase font size for smaller screens */
  }

  /* Make gallery items wider */
  .gallery-item {
    width: 90%; /* Almost full screen width */
    margin: 15px 0; /* Reduced vertical margin, no horizontal margin */
  }

  /* Make specific page images wider */
  #wallPageContent #bigImg,
  #installPageContent #bigImg,
  #digitalPageContent #bigImg {
    width: 95%; /* Even wider for bigImg */
  }

  #collabPageContent #bigImg {
    width: 95%; /* Match other big images */
  }

  /* Adjust gallery container */
  .gallery-container {
    margin: 15px 5px; /* Smaller margins */
  }

  /* Make sections wider */
  section {
    width: 95%; /* Wider sections */
    border-radius: 15px; /* Smaller rounded corners */
    margin: 30px auto; /* Less vertical margin */
  }
}
