/* styles.css */
@font-face {
  font-family: "Amperzand";
  src: url("https://raw.githubusercontent.com/bloomymarsh/bloomymarsh.github.io/main/font/Amperzand.ttf")
    format("truetype");
}

@font-face {
  font-family: "Noe";
  src: url("https://raw.githubusercontent.com/bloomymarsh/bloomymarsh.github.io/main/font/Noe-Display-Bold.ttf")
    format("truetype");
}

@import url("https://fonts.googleapis.com/css2?family=Gulzar&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap");

/* unvisited link */
a:link {
  color: black;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: orange;
}

/* selected link */
a:active {
  color: lightblue;
}

::-moz-selection {
  color: white;
  background: orange;
}

::selection {
  color: white;
  background: orange;
}

/* * {
  box-sizing: border-box;
} */

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Newsreader, serif;
  padding: 0;
  background-color: #f4f4f4;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  width: 100%;
  height: 71vh;
  max-width: 100%;
  box-sizing: border-box;
  background-image: url(https://raw.githubusercontent.com/bloomymarsh/bloomymarsh.github.io/refs/heads/main/Museum%20bg.png);
  mix-blend-mode: multiply;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: bottom;
  /*   border: 3px solid green; */
}

.header-section h4,
.header-section p {
  margin: 5px 0;
}

.header-section.left {
  width: calc(33.3% - 1px);
  text-align: right;
  border-right: 2px solid black;
  padding-right: 15px;
}

.header-section.middle {
  width: 100%;
  text-align: center;
  position: absolute; /* Make it take position relative to its container */
  top: 0; /* Align it at the top */
  left: 50%; /* Move it to the center horizontally */
  transform: translateX(-50%); /* Adjust to ensure it's perfectly centered */
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  justify-content: flex-start; /* Align content at the top of the section */
  max-width: 100%;
  /*   margin-top: 20px;  */
  /*   border: 3px solid green; */
}

.header-section.middle h1 {
  font-family: Amperzand, serif;
  font-size: 35px;
  margin: 0;
  line-height: 1.2;
}

.marshafabiola:hover::after {
  content: "?";
  color: orange;
}

nav ul {
  list-style-type: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 10px;
}

nav ul li a {
  color: black;
  text-decoration: none;
}

.header-section.right {
  display: flex;
  align-items: center;
  gap: 15px;
  width: calc(33.3% - 1px);
  text-align: left;
  border-left: 2px solid black;
  padding-left: 15px;
}

/* .rightpicsec {
  position: relative;
}

.rightpicsec .rightpic-hover {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.rightpicsec:hover .rightpic-hover {
  display: block;
} */

/* .header-section.right div.text-container {
  display: flex;
  flex-direction: column;
} */

.museum {
  /*   border: 3px solid red; */
  display: flex;
  position: relative;
  /*   top: -100px; */
  width: 100%;
  height: 400px;
  background-color: #f4f4f4;
}

.museumwall {
  position: absolute;
  left: 12%;
  top: -10%;

  /*   line-height: 0.5; */
}

.museumwall h4 {
  /*   border: 3px solid red; */
  font-size: 50px;
  color: grey;
  /*   position: absolute; */
  /*   left: 12%;*/
  top: -40%;
}

.museumwall p {
  font-size: 20px;
  color: grey;
}

.museumavatar {
  /*         border: 3px solid red; */
  transform: scale(1.5);
  position: absolute;
  left: 10%;
  /*   top: -10px; */
  width: 100px;
  height: 200px;
}

.avatars-container {
  /*     border: 3px solid green; */
  /*   cursor: grab; */
  background-image: url(https://cdn.pixabay.com/photo/2018/07/16/10/15/frame-3541621_960_720.png);
  background-size: 100px;
  background-repeat: no-repeat;
  width: 100px;
  height: 100px;
  position: relative;
  z-index: 1000;
  transition: background-color;
}

.avatars-container:hover {
  background-color: orange; /* Orange overlay */
  background-blend-mode: multiply;
}

.avatars-container img {
  width: 66px;
  display: none;
  position: absolute;
  left: 18%;
  rotate: 0.4deg;
}

img.displaySlide {
  display: block;
}

.avatardesc {
  width: 100%;
  font-size: 8px;
  position: absolute;
  top: 65%;
  text-align: center;
  font-weight: bold;
  text-shadow: #f4f4f4 -2px 2px;
}

/* /* .popup {
  display: inline-block;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Full-screen overlay */
.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  transition: opacity;
  z-index: 1000;
}

/* Show the overlay */
.popup-overlay.show {
  visibility: visible;
  opacity: 1;
}

/* The modal itself */
/* The modal itself */
.modal {
  position: fixed; /* Keep the modal fixed on the screen */
  top: 50%; /* Position from the top */
  left: 50%; /* Position from the left */
  transform: translate(-50%, -50%); /* Center it using translate */
  width: 80%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 3rem;
  padding-bottom: 3rem;
  border: 3px solid black;
  border-radius: 5px;
  background: white;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
  visibility: hidden;
  z-index: 1000; /* Ensure it's above other elements */
}

/* Show the modal */
.modal.show {
  visibility: visible;
}

.message {
  font-size: 1.1rem;
  margin-top: 0;
}

.done {
  width: auto;
  color: black;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  background: white;
  border: 3px solid black;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.done:hover {
  box-shadow: 0.4rem 0.4rem 0 black;
}

.done:active {
  box-shadow: 0 0 0 black;
}

#passwordInput {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid black;
  border-radius: 5px;
  margin: 1rem 0;
  box-sizing: border-box;
}

#passwordInput:focus {
  outline: none;
  border-color: orange;
  box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.3); /* subtle orange glow */
}

#passwordInput::placeholder {
  color: gray;
  font-style: italic;
}

.prev,
.next {
  color: black;
  font-size: 15px;
  cursor: pointer;
  position: absolute;
  top: 50%;
}

.next {
  right: 0%;
}

.prev:hover,
.next:hover {
  color: orange;
}

.prev:active,
.next:active {
  font-size: 10px;
}

.avatarlabel {
  width: 80px;
  border: 1px solid grey;
  background-color: transparent;
  position: inherit;
  bottom: 0px;
  padding: 3px 9px;
}

.museumdino {
  /*   border: 3px solid red; */
  position: absolute;
  left: 10%;
  bottom: 0px;
  width: 500px;
  height: 300px;
  box-sizing: border-box;
  overflow: hidden;
}

.dinolabel {
  background-color: #f4f4f4;
  border: 1px solid black;
  padding: 10px;
  position: absolute;
  left: 25px;
}

.table {
  position: relative;
  top: 10%;
  right: 17%;
  mix-blend-mode: multiply;
  width: 15%;
}

.fatimasec {
  position: inherit;
  bottom: 55px;
  left: 25px;
  z-index: 1;
}

.fatima-hover,
.fatimafirstname,
.fatimalastname {
  display: none;
}

.fatimasec:hover .fatima-hover,
.fatimasec:hover .fatimafirstname,
.fatimasec:hover .fatimalastname {
  display: block;
}

.fatimasec:hover .fatima {
  display: none;
}

.fatima-hover {
  transform: translateX(-15%) scale(0.9);
}

.fatimafirstname,
.fatimalastname {
  font-family: "Gulzar", serif;
  position: inherit;
}

.fatimafirstname {
  bottom: 160px;
  left: 25px;
  transform: rotate(-24deg);
}

.fatimalastname {
  transform: rotate(-50deg);
  left: -15px;
  top: -4px;
}

.globe {
  position: inherit;
  bottom: 55px;
  left: 160px;
  width: 23%;
  z-index: 2;
  filter: grayscale(1);
}

.globe:hover {
  width: 25%;
  filter: grayscale(0);
}

/* .dino {
  position: inherit;
  bottom: 55px;
  right: 10px;
} */

canvas {
  /*   border: 3px solid red; */
  height: 40%;
  width: 20%;
  position: relative;
  left: 65%;
  bottom: 2.5%;
  filter: grayscale(1);
  mix-blend-mode: hard-light;
  cursor: grab;
  z-index: 10;
  transform: rotate(-2deg);
}

canvas:hover {
  filter: grayscale(0);
}

#canvas-hover {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
  z-index: 10;
  pointer-events: none;
}

.mobile-only-paragraph {
  display: none;
  font-size: 1rem;
  text-align: center;
  margin-top: 10px;
  font-family: Noe, serif;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid orange;
}

.typewrite > .wrap {
  border-right: 0.08em solid orange;
  animation: blink-caret 0.75s step-end infinite;
  display: inline-block;
}

/* .typewrite {
  text-align: center;
  display: block;
  width: 100%;
} */

.typewrite.mobile-only {
  position: absolute;
  top: 60%; /* adjust as needed */
  left: 50%;
  transform: translateX(-50%);
/*   z-index: 10; */
  text-align: center;
  width: 100%;
/*   color: black; */
  padding: 0 1rem;
}


@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: orange; }
}

.stock-ticker {
  font-size: 15px;
  border-block: 3px solid;
  overflow: hidden;
  user-select: none;
  --gap: 20px;
  display: flex;
  gap: var(--gap);
}

.stock-ticker ul {
  list-style: none;
  flex-shrink: 0;
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.stock-ticker .content {
  font-weight: bold;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  height: 100vh;
}

#carouselNav {
  display: none; /* Hidden by default */
}

.column {
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.column:last-child {
  border-right: none;
}

.column.left {
  /*   background: #fff;
  font-size: 14px;
  line-height: 2;
  color: #999; */
}

.column.middle {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  /*   background: #fff; */
}

.column.right {
  /*   background: #fff; */
}

.column.right img {
  /*   width: 100%;
  margin-bottom: 2rem; */
}

.resume-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 12px;
}

.entry {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.tag {
  width: 30px; /* or even 100px if you want tighter */
  flex-shrink: 0;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.detail {
  flex: 1; /* takes up the remaining space */
}

.detail div {
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.column {
  overflow-y: auto;
  padding: 2rem;
  border-right: 1px solid #eee;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.column::-webkit-scrollbar {
  display: none;
}

fieldset {
  border: 3px solid #000;
}

legend {
  background-color: #000;
  color: #fff;
  text-align: center;
  width: 100%;
}

legend span {
  background-color: #000;
  color: #fff;
  padding: 5px 10px;
  display: inline-block;
}

.side-by-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 2rem auto;
}

.side-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.side-image:hover {
  filter: grayscale(0%);
}

.side-text {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

.side-text h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.side-text p {
  font-size: 1rem;
  color: #333;
}

.side-text h1,
.side-text p {
  margin: 5px;
}

.box.amnh {
  position: relative;
  line-height: 1.2;
  text-align: justify;
  height: 2304 px;
  margin-bottom: 2rem;
}

.box.amnh img {
  width: 100%; /* Ensure the image adapts to column width */
}

.box.amnh .posters-hover {
  display: none;
/*   position: absolute; */
  top: 0;
  left: 0;
}

.box.amnh:hover .posters-hover {
  display: block;
}

.box.amnh:hover .posters {
  display: none;
}

.mobile-only {
  display: none;
}

footer {
  font-family: Newsreader, serif;
  color: black;
  padding: 10px;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
}

/* Adjust layout of header and sections for small screens */
@media (max-width: 768px) {

  * {
  max-width: 100vw;
  box-sizing: border-box;
}

  #header {
    display: flex !important; /* <-- Make sure it's not hidden */
    background-image: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 75vh;
    scroll-snap-align: start;
    position: relative;
  }

  .header-section.left,
  .header-section.right,
  #museumavatar,
  .table,
  #modal {
    display: none;
  }

  .header-section.middle {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  padding-top: 20px;
  width: 100%;
  z-index: 20;
}

  canvas#c {
    width: 100%;
    height: 50vh; /* Adjust height as needed */
    display: block;
    position: static;
  }

  .mobile-only-paragraph {
    display: block;
  }

 .grid-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100vw;
    height: 100vh;
  }

  .column {
    min-width: 100vw;
    max-width: 100vw;
    scroll-snap-align: start;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  .carousel-label {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #f4f4f4;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  border-bottom: 2px solid black;
}

 #carouselNav {
    font-size: 1.2rem;
    padding: 10px 0;
    font-family: Noe, serif;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
  }

  #carouselNav span {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
  }

  #carouselNav span.active {
    color: orange;
    opacity: 1;
  }
  
.desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    width: 100%; /* Optional: scale for responsiveness */
  }
  
  html, body {
    overflow-x: hidden;
  }
}

/* RAT START */

#ratContainer {
  /*   background-image: url(https://raw.githubusercontent.com/bloomymarsh/bloomymarsh.github.io/refs/heads/main/Ratatouille.png); */
  /*   width: 315px; */
  /*   height: 650px; */
  width: 100%;
  height: 650px;
  border: 10px solid black;
  outline: 3px solid black;
  outline-offset: -20px;
  background-color: transparent;
  overflow: hidden;
  position: relative;
}

.rectangle {
  position: absolute;
  top: -450px;
  left: -50px;
  width: 500px;
  height: 1000px;
  border: 3px solid black;
  border-radius: 5rem;
  outline: 3px ridge;
  outline-offset: 50px;
  background-color: lightgray;
  transform: rotate(40deg);
  z-index: -1;
}

button {
  background: black;
  color: white;
  font-family: inherit;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 5px 5px;
  cursor: pointer;
  align-content: center;
}

#gameTitle {
  animation: pulse 1s steps(1) infinite;
  position: absolute;
  bottom: 5%;
  right: 15%;
  color: black;
  z-index: 10;
  font-weight: bold;
  text-align: right;
  line-height: 0.8;
}

@keyframes pulse {
  0% {
    transform: scale(1); /* Initial size */
  }
  50% {
    transform: scale(1.2); /* Bigger size */
  }
  100% {
    transform: scale(1); /* Back to original size */
  }
}

#score {
  position: absolute;
  bottom: 75px;
  right: 65px;
  font-weight: bold;
  font-size: 60px;
}

#time {
  /*   display: none; */
  background: black;
  border: 2px solid grey;
  color: white;
  font-weight: bold;
  font-size: inherit;
  position: absolute;
  top: 30px;
  right: 50%;
  transform: translateX(50%);
  width: 70%;
  padding: 4px 6px;
  text-align: center;
}

#popupContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-110%, -200%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10; /* Make sure the image is on top */
}

#popupImage {
  width: 100px; /* Adjust the size of the image */
  height: auto;
}

#rat {
  width: 80%;
  transform: translate(0px, 100px) rotate(35deg);
  cursor: pointer;
}

@keyframes rat1 {
  0% {
    transform: translateX(-320px) translateY(550px) rotate(-135deg);
  }
  50% {
    transform: translateX(320px) translateY(-100px) rotate(-135deg);
  }
  51% {
    transform: translateX(320px) translateY(-200px) rotate(45deg);
  }
  100% {
    transform: translateX(-320px) translateY(550px) rotate(45deg);
  }
}

#paw {
  position: absolute;
  width: 100%;
  bottom: 150px;
  left: 200px;
  transform: rotate(-20deg);
  transform-origin: bottom center;
  transition: transform 0.2s;
  pointer-events: none;
}

#medium {
  /*    background-image: url(https://stumptown-content.imgix.net/1fSMAQzO5aJLaon5QH9zsq/21b06749ec6fccda378551c6280b306b/STC_Shopify_Locations_Ace_New_York_STC_Shopify_Locations_Hero1.jpg?w=1400&auto=format,compress); */
  background-size: 100px;
  font-family: Noe, serif;
  font-size: 30px;
  text-decoration: none;
  color: black;
  text-align: left;
}

/* .typewrite {
    color: black;
} */
