body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e1e1e, #0c0c0c);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
}

#folder-container {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(2.2);
}

.folder-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #4e004e;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.folder-link:hover {
  color: #ffffff;
  background: rgba(228, 37, 78, 0.4);
  border-radius: 10px;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(228, 37, 78, 0.4);
}

/* Folder visuals */
:root {
  --folder-color: #7a1142;
  --folder-back-color: #3f021f;
  --paper-1: #e6e6e6;
  --paper-2: #f2f2f2;
  --paper-3: #ffffff;
}

.folder {
  position: relative;
  width: 160px;
  height: 120px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.folder:hover {
  transform: translateY(-8px);
}

.folder__back {
  position: relative;
  width: 160px;
  height: 120px;
  background: var(--folder-back-color);
  border-radius: 0 12px 12px 12px;
}

.folder__back::after {
  position: absolute;
  z-index: 0;
  bottom: 98%;
  left: 0;
  content: '';
  width: 50px;
  height: 16px;
  background: var(--folder-back-color);
  border-radius: 5px 5px 0 0;
}

.paper {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 50%;
  transform: translate(-50%, 10%);
  width: 80%;
  height: 100%;
  background: var(--paper-1);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper:nth-child(2) {
  background: var(--paper-2);
  width: 90%;
  height: 90%;
}

.paper:nth-child(3) {
  background: var(--paper-3);
  width: 100%;
  height: 80%;
}

/* Paper hover animation */
.paper:hover {
  transform: scale(1.08) translate(-50%, -5%);
  box-shadow: 0 0 25px rgba(228, 37, 78, 0.4);
  z-index: 10;
}

.folder__front {
  position: absolute;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: var(--folder-color);
  border-radius: 5px 10px 10px 10px;
  transform-origin: bottom;
  transition: all 0.3s ease-in-out;
}

.folder.open .paper:nth-child(1) {
  transform: translate(-150%, -100%) rotateZ(-15deg);
}
.folder.open .paper:nth-child(2) {
  transform: translate(10%, -100%) rotateZ(15deg);
}
.folder.open .paper:nth-child(3) {
  transform: translate(-50%, -150%) rotateZ(5deg);
}

.folder.open .folder__front {
  transform: skew(15deg) scaleY(0.6);
}
