@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Outfit:wght@100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Yarndings+12&display=swap");

/*
Available Fonts:

Google Fonts:
- Cormorant Garamond
- Outfit
- Playfair Display
- Yarndings 12

Downloaded:
- Frieren La Belle "FrierenLB"
*/

@font-face {
  font-family: FrierenLB;
  src: url(./Fonts/FrierenLB/Frieren-La-Belle-Demo-BF6774e354d7ec6.otf)
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-family: "FrierenLB", system-ui;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(3rem, 15vw, 12rem);
  color: white;
  margin: 6rem;
  white-space: nowrap;
  align-self: flex-start;
}

.title span {
  display: inline-block;
  transform: scale(3, 6) translate(-5%, 8%);
}

h2 {
  color: white;
  font-weight: lighter;
  align-self: center;
  font-family: "Cormorant Garamond";
}

.text1 {
  position: relative;
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-size: 1.5rem;
  color: rgb(250, 250, 250);
  text-shadow: 1px 2px 5px black;
}

.main {
  display: flex;
}

body {
  display: flex;
  height: 100vh;
  justify-content: flex-start;
  align-items: center;
  align-content: flex-start;
  flex-direction: column;
}

.glass {
  box-sizing: border-box;
  width: 100%;
  interpolate-size: allow-keywords;
  height: auto;
  padding: 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4.9px);
  -webkit-backdrop-filter: blur(4.9px);
  overflow: hidden;

  transition:
    height 0.45s cubic-bezier(0.65, 0.5, 0.3, 1),
    padding 0.25s ease;
}

.window.minimized .glass {
  height: 2.9rem;
  width: auto;
  padding: 0.3rem 0.6rem;
  overflow: hidden;
  transition:
    height 0.45s cubic-bezier(0.65, 0.5, 0.3, 1),
    padding 0.25s ease;
}

.window {
  position: absolute;
  top: 48rem;
  left: -23rem;
  width: clamp(16rem, 70vw, 50rem);
  z-index: 12;
}

.grabbable {
  cursor: grab;
}

.grabbable:active {
  cursor: grabbing;
}

.title_overlay {
  position: relative;
  left: 0;
  width: fit-content;
  display: flex;
  justify-content: center;
}

.userimg {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
}

.usertxt {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.backdecor {
  position: absolute;
  left: -5rem;
  z-index: -1;
}

.frontdecor {
  position: absolute;
  z-index: 10;
}

.buttoncontainer {
  position: relative;
  display: flex;
  justify-content: flex-start;
  height: 3rem;
  z-index: 20;
}

.openbutton {
  background: rgb(255, 241, 191);
  z-index: 1;
  display: none;
}

.closebutton {
  background-color: #84c3ff;
  z-index: 2;
}

.closebutton,
.openbutton {
  position: absolute;
  top: 55px;
  left: 8px;
  margin: 0;
  padding: 10px;
  width: 1rem;
  height: 1rem;
  border-radius: 14px;

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

  font-family: "Cormorant Garamond";
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.buttonanchor {
  anchor-name: --anchorpoint;
  position: absolute;
  top: 0;
  left: 0;
}

/* Inactive Gallery */
.gallery {
  position: absolute;
  top: 48rem;
  left: 5rem;
}

.gallery-holder {
  position: absolute;
  width: 9rem;
  height: 10rem;
  border-radius: 16px;
  background-color: transparent;
  transform: translate(-200%);
  opacity: 0%;
  display: block;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  z-index: -1;
}

.gallery-holder img {
  border: 30px outset #ffeed1;
  box-sizing: border-box;
}

.gallery .gallery-photo {
  position: absolute;
  left: 0;
  top: 0;

  transform: rotate(0deg) scale(0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

  transition:
    left 0.7s cubic-bezier(0.65, 0, 0.35, 1),
    top 0.7s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Keep the stack order */
.gallery .gallery-photo:nth-child(1) {
  z-index: 5;
  transition-delay: 0ms;
}

.gallery .gallery-photo:nth-child(2) {
  z-index: 4;
  transition-delay: 80ms;
}

.gallery .gallery-photo:nth-child(3) {
  z-index: 3;
  transition-delay: 160ms;
}

.gallery .gallery-photo:nth-child(4) {
  z-index: 2;
  transition-delay: 240ms;
}

/* Active Gallery */
.gallery.active {
  position: absolute;
  top: 48rem;
  left: 5rem;
}

.gallery.active .gallery-holder {
  display: block;
  transform: translateX(0%);
  opacity: 100%;
}

.gallery.active .gallery-photo:nth-child(1) {
  z-index: 5;
  left: 0;
  transform: rotate(-5deg) scale(1);
}

.gallery.active .gallery-photo:nth-child(2) {
  z-index: 4;
  left: calc(200% + 2rem);
  object-position: top;
  background: linear-gradient(135deg, #72a3cf, #c6cbc9, #e7dece);
  transform: rotate(4deg) scale(1);
}

.gallery.active .gallery-photo:nth-child(3) {
  z-index: 3;
  left: calc(400% + 4rem);
  transform: rotate(-3deg) scale(1);
}

.gallery.active .gallery-photo:nth-child(4) {
  z-index: 2;
  left: calc(600% + 6rem);
  background: linear-gradient(215deg, #72a3cf, #c6cbc9, #e7dece);
  transform: rotate(6deg) scale(1);
}

.gallery.active .gallery-photo:nth-child(even) {
  top: -35%;
}

.gallery.active .gallery-photo:nth-child(odd) {
  top: 35%;
}

.gallery .grabbable {
  cursor: pointer;
}

.gallery .window {
  position: relative;
  top: auto;
  left: auto;
  width: 21rem;
}

.gallery-photo {
  position: absolute;
  width: 18rem;
  height: 24rem;
  object-fit: cover;
  border-radius: 8px;
}

.gallery .grabbable {
  cursor: pointer;
}

.button-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
  position: absolute;
  right: 10px;
  top: 10px;
  height: 85%;
  width: 50%;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0);
  z-index: 4;
  transition: background-color 0.4s ease;
}

.button-indicator:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.button-indicator:hover span {
  color: rgba(255, 255, 255, 0.5);
}

.button-indicator span {
  color: rgba(255, 255, 255, 0);
  display: inline-block;
  transform: scaleX(40%);
  transition: color 0.4s ease;
}

.button-indicator.active span {
  color: rgba(255, 255, 255, 0);
  display: inline-block;
  transform: scaleX(-40%);
  transition: color 0.4s ease;
}
