@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #1a1a1a;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #1a1a1a;
  font-family: 'Press Start 2P', monospace;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

img {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}

.background-container {
  position: relative
}

.bg-loader {
  display: block;
  visibility: hidden
}

.grass-background {
  position: absolute;
  top: 10%;
  left: 55%;
  width: 45%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

#cloud-container {
  position: absolute;
  top: 10%;
  left: 40%;
  width: 35%;
  height: 30%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.room {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/background/Room-book.png") no-repeat center/cover;
  z-index: 3;
}

.room::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/background/Room-glow.png") no-repeat center/cover;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.room.glow::after {
  opacity: 1;
}

#crystal {
  position: absolute;
  top: 32%;
  left: 22.5%;
  width: 7%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  animation: floatCrystal 4s ease-in-out infinite;
}

@keyframes floatCrystal {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0)
  }

  50% {
    transform: translate(-50%, -50%) translateY(-15px)
  }
}

.cloud {
  position: absolute;
  pointer-events: none;
  filter: blur(var(--blur));
  opacity: var(--opacity);
  z-index: 2;
  animation:
    bob 12s ease-in-out infinite alternate,
    slideCloud var(--slide-duration) linear forwards;
}

@keyframes bob {
  from {
    transform: translateY(0)
  }

  to {
    transform: translateY(10px)
  }
}

@keyframes slideCloud {
  from {
    left: var(--start-left)
  }

  to {
    left: 130%
  }
}

#book {
  position: absolute;
  top: 54%;
  left: 49%;
  width: 20%;
  height: 32%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 3;
  opacity: 0;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.about_me {
  width: 95%;
  line-height: 30px;
  margin: 6%;
  margin-top: 0%;
  color: #91665B;
  font-size: 70%;
  line-height: 20px;
}

.about_me_title {
  font-size: 120%;
  padding: 4% 5% 2% 4%;
  color: #1a1a1a;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container {
  margin-top: 10%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10%;
}

.icon {
  width: 100px;
  margin: 0;
  padding: 0;
  transition: filter 0.2s ease-in-out;
}

.icon:hover {
  filter: brightness(3);
}

.grid-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 25%;
  position: block;
}

.grid-container::-webkit-scrollbar {
  width: 10px;
}

.grid-container::-webkit-scrollbar-thumb {
  background-color: transparent;
}

.grid-container::-webkit-scrollbar-track {
  background-color: transparent;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-rows: repeat(6, 50px);
  gap: 21%;
  padding: 10px;
  box-sizing: border-box;
}

.item {
  width: 200%;
  height: 200%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 4px;
}

.book_popup {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.5s;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.book_container {
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -55%);
  width: 1800px;
  height: 1800px;
  display: flex;
  transition: 0.5s;
}

.page_left {
  top: 35%;
  left: 13.5%;
  width: 32%;
  height: 40%;
  position: relative;
}

.page_right {
  top: 35%;
  left: 19%;
  width: 32%;
  height: 40%;
  position: relative;
}

.animated_book {
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -55%);
  width: 1800px;
  transition: 0.5s;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 2;
}

.arrow_right {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 70px;
  cursor: pointer;
  z-index: 2;
}

.arrow_left {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  width: 70px;
  cursor: pointer;
  z-index: 2;
  display: none;
  transform: scaleX(-1);
}

.map_container {
  width: 400px;
  height: 400px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-top: 10%;
}

.selected_item_name {
  font-size: 100%;
  margin-top: 8%;
  margin-bottom: 2%;
}

.map {
  width: 352px;
  margin-top: 24px;
  margin-left: 24px;
}

.map_frame {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.profile_frame {
  width: 50%;
  position: absolute;
  margin-left: 5%;
  pointer-events: none;
}

.profile_picture {
  width: 60%;
  height: 60%;
  margin-top: 2%;
  margin-left: 20%;
  pointer-events: none;
  border-radius: 10px;

}

.title_container {
  background-image: url("assets/header.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 120px;

  display: flex;
  justify-content: center;
  align-items: center;

  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
}

h2 {
  text-align: center;
  font-size: 170%;
  z-index: 2;
}

h3 {
  font-size: 150%;
}

.page_1 {
  display: none;
}

.page_2 {
  display: none;
}

.page_3 {
  display: none;
}

.selected_item_info {
  text-align: start;
  margin-left: 10%;
  width: 80%;
  font-size: 60%;
  line-height: 25px;
  color: #91665B;
}

.CV_container {
  width: 100%;
  height: 130px;
  cursor: pointer;
  margin-top: 10%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;

  background-image: url("assets/CVButtonFrame.png");
  background-repeat: no-repeat;
  background-size: 60% 60%;
  background-position: center;

  user-select: none;
}

/* on press  CV_container*/
.CV_container:active {
  background-image: url("assets/CVButtonFramepressed.png");
  background-repeat: no-repeat;
  background-size: 50% 50%;
  background-position: center;
}

.location_container {
  margin-top: 10%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.location_logo {
  width: 10%;
}

.location_container p {
  margin-top: 5%;
  font-size: 110%;
}

.selected_item_links {
  width: 210%;
}

.selected_item_links:hover {
  filter: brightness(3);
}

.description_text {
  text-align: start;
  margin-left: 30px;
  font-size: 90%;
}

.selected_item_date {
  position: absolute;
  font-size: 45%;
  bottom: 0px;
  right: 30px;
}

.animated_page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.inventory_grid {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 70px;
  overflow-y: auto;
  max-height: 520px;
  margin-left: 12%;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.inventory_grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.selected_item {
  align-items: center;
  text-align: center;
  gap: 10px;
  height: 100%;
  width: 100%;
}

.selected_item_image_container {
  margin-top: 4%;
  margin-left: 10%;
  width: 80%;
  background-color: #1a1a1a;
  overflow: hidden;
  display: flex;
  border-radius: 10px;
  justify-content: center;
  height: 250px;
}

.selected_item_image {
  /* width: 85%; */
  height: 100%;
}

.list_item {
  background-image: url("assets/item_frame.png");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  width: 100px;
  height: 100px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.list_item img {
  height: 80px;
  width: auto;
}

.link_container {
  display: flex;
  justify-content: space-between;
  padding: 5% 15% 10% 15%;
}

.selected_item_info {
  flex-grow: 1;
  height: 100px;
}

.contact_me {
  margin-left: 12%;
}

.link_buttons {
  width: 70px;
  height: 70px;
}

.page_right .page_3 {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page_right .page_3 img {
  margin-left: 5%;
  width: 90%;
  opacity: 0.3;
}

.selected_link_container {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.art_text {
  text-align: center;
  width: 100%;
  padding: 2%;
  color: #303030;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 80%;
  margin-left: 10%;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 15%;
  line-height: 25px;
}

.art_text a {
  font-weight: 900;
  text-decoration: none;
  color: black;
  font-size: 12px;
}

.art_text a:hover {
  color: blueviolet;
}

.license_text {
  margin-top: 20%;
  font-size: 7px;
  text-align: center;
  width: 80%;
  margin-left: 10%;
  color: #91665B;
  align-self: flex-end;
  line-height: 15px;
}

.filter-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

/* —— BUTTON —— */
.filter-toggle {
  display: inline-block;
  position: relative;
  cursor: pointer;
}
.filter-toggle .btn-bg {
  display: block;
}
.filter-toggle .btn-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 12px;
}
.filter-toggle .btn-arrow {
  position: absolute;
  top: 50%; left: 0.5rem;   
  transform: translateY(-50%);
  pointer-events: none;
}

/* —— DROPDOWN —— */
.filter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.filter-option {
  position: relative;
  line-height: 0;        /* collapse any font-heights so images sit flush */
  margin: 0; padding: 0;
}
.filter-option .opt-bg {
  display: block;
  width: 100%;
  cursor: pointer;
}
.filter-option .opt-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  font-size: 12px;
}

.tags_container {
  display: flex;
  text-align: start;
  margin-left: 10%;
  width: 80%;
  font-size: 50%;
  line-height: 25px;
  color: #91665B;
  margin-bottom: 30px;
}

.tags_container p {
  color: #1a1a1a;
  margin-right: 10px;
}

@media only screen and (max-width: 1350px) {
  .book_container {
    width: 1500px;
    height: 1500px;
  }

  .inventory_grid {
    max-height: 440px;
  }

  .inventory_grid {
    gap: 35px;
    max-height: 440px;
  }

  .about_me {
    font-size: 70%;
  }

  .contact_me {
    margin-top: 5%;
    font-size: 100%;
  }

  .selected_item_image {
    margin-top: 0px;
  }

  .selected_item_image_container {
    height: 200px;
  }

  .selected_item_holder {
    top: 16%;
  }

  .title_container {
    width: 90%;
    margin: 0 5% 0 5%;
    height: 80px;
  }

  h2 {
    font-size: 120%;
  }

  h3 {
    font-size: 100%;
  }

  .animated_book {
    top: 50%;
    left: 50%;
    position: absolute;
    width: 1500px;
  }

  .arrow_left {
    left: 0px;
  }

  .arrow_right {
    right: 0px;
  }

  .art_text {
    gap: 25px;
    width: 80%;
  }
}

@media only screen and (max-width: 1000px) {
  .book_container {
    width: 1500px;
    height: 1500px;
    transform: translate(-30%, -55%);
  }

  .page_left {
    top: 35%;
    left: 13.5%;
    width: 32%;
    height: 40%;
    position: relative;
  }

  .page_right {
    top: 35%;
    left: 19%;
    width: 32%;
    height: 40%;
    position: relative;
  }

  .animated_book {
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-30%, -55%);
    width: 1500px;
  }

  .arrow_left {
    left: 0px;
  }

  .arrow_right {
    right: 0px;
  }

  .book_cover {
    width: 250px;
  }
}


@media only screen and (max-width: 800px) {
  .inventory_grid {
    gap: 35px;
    max-height: 320px;
  }

  .list_item {
    width: 75px;
    height: 75px;
    padding: 5px;
  }
  
  .list_item img {
    height: 60px;
    width: auto;
  }

  .filter-wrapper {
    margin-bottom: 20px;
  }

  .background-container {
    transform: scale(0.7);
  }

  .selected_item_name {
    font-size: 70%;
    margin-top: 5%;
    margin-bottom: 2%;
  }

  .book_container {
    transform: translate(-67%, -55%);
    width: 1200px;
    height: 1200px;
  }

  .selected_item_image_container {
    height: 150px;
  }

  .page_left {
    top: 35%;
    left: 13.5%;
    width: 32%;
    height: 40%;
    position: relative;
  }

  .page_right {
    top: 35%;
    left: 19%;
    width: 32%;
    height: 40%;
    position: relative;
  }

  .animated_book {
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-67%, -55%);
    width: 1200px;
  }

  .link_buttons {
    width: 50px;
    height: 50px;
  }

  .arrow_left {
    left: 5px;
    width: 50px;
  }

  .arrow_right {
    right: 5px;
    width: 50px;
  }

  h2 {
    font-size: 15px;
  }

  .link_container {
    display: flex;
    justify-content: space-between;
    padding: 5% 10% 5% 10%;
  }

  .map_container {
    width: 300px;
    height: 300px;
    margin-top: 7%;

  }

  .map {
    margin-top: 16px;
    width: 269px;
    height: 269px;
  }

  .contact_me {
    margin-top: 8px;
    font-size: 10px;
  }

  .selected_item_links {
    width: 150%;
  }

  .CV_container {
    height: 70px;
    margin-left: 10%;
    width: 80%;
  }

  .selected_item_holder {
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 50%;
  }

  .selected_item_info {
    font-size: 40%;
    height: 130px;
  }

  .selected_item_date {
    display: none;
  }

  .tags_container {
    /* font-size: 35%;
    margin-bottom: 10px; */
    display: none;
  }

  .about_me_title {
    font-size: 100%;
    padding: 4% 0% 0% 0%;
    color: #1a1a1a;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about_me {
    width: 90%;
    line-height: 15px;
    margin-top: 10px;
    color: #91665B;
    font-size: 45%;
  }

  .location_container p {
    font-size: 80%;
  }

  .icon {
    width: 70px;
  }

  .art_text {
    height: 900%;
    gap: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 90%;
    margin-left: 5%;
    font-size: 8px;
  }
  
  .art_text a {
    font-size: 9px;
  }

  
.license_text {
  display: none;
}
}