* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@import url(http://fonts.googleapis.com/earlyaccess/notosanskr.css); 

@font-face {
  font-family: 'JetBrainsMono-Medium'; 
  font-style: 'normal'; 
  font-weight: 400; 
  src: url('JetBrainsMono-Medium.ttf'); 
}

@font-face {
  font-family: 'Acosta'; 
  font-style: 'normal'; 
  font-weight: 400; 
  src: url('Acosta.otf'); 
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    linear-gradient(to top, rgba(0,0,0,0.5), transparent 5%),
    linear-gradient(to bottom, rgba(0,0,0,0.3), transparent 5%),
    linear-gradient(to left, rgba(0,0,0,0.3), transparent 5%),
    linear-gradient(to right, rgba(0,0,0,0.3), transparent 5%);
}

body::before {
  content: "";
  position: fixed;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgb(132, 132, 132);
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0.3;
  border-radius:10px;
  z-index: 2;
  
}

/* top에만 한 줄 */
body::after {
  content: "";
  position: fixed;
  top: 85px;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: rgb(132, 132, 132);
  pointer-events: none;
  opacity: 0.3;
  /* z-index: 5; */
} 

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  background-size : cover;
  background-image:url('bg.png');
  position: relative;
  overflow:hidden;
  color: #e0dbd2;
}

.pace {
  pointer-events: none;
  user-select: none;
  z-index: 2000;
  position: fixed;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  border: 0px;
  height: 1px;
  overflow: hidden;
  background:#1b1b1b;
  }
  
  .pace .pace-progress {
  box-sizing: border-box;
  transform: translate3d(0, 0, 0);
  max-width: 400px;
  position: fixed;
  z-index: 2000;
  display: block;
  position: absolute;
  top: 0;
  right: 100%;
  height: 100%;
  width: 100%;
  background: grey;
  }
  
  .pace.pace-inactive {
  display: none;
  }
  
  #preloader{
  width:100%;
  height:100vh;
  background:#101010;
  overflow:hidden;
  position:fixed;
  z-index: 999;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  }

  
.website-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.website-content .header {
  width: 800px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

nav {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9;
  padding: 0 1em;
}

nav > div {
  flex: 1;
}

.logo img {
  width: 100px;
}

.logo-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-main img {
  width: 300px;
}

.toggle-btn {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.5em;
}

.burger {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5em 2em;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 0.25em;
  outline: none;
  height: 20px;
  width: 28px;
  border: none;
  transition: all 250ms ease-out;
  cursor: pointer;
}

.burger:before,
.burger:after {
  content: "";
  width: 28px;
  height: 1.5px;
  position: absolute;
  background: #fff;
  transition: all 250ms ease-out;
  /* transition-delay: 0.3s; */
  will-change: transform;
}

.burger:before {
  transform: translateY(-3px);
}

.burger:after {
  transform: translateY(3px);
}

.active.burger:before {
  transform: translateY(0) rotate(45deg);
}

.active.burger:after {
  transform: translateY(0) rotate(-45deg);
}

.burger:hover {
  background: rgba(255, 255, 255, 1);
}

.burger:hover:before,
.burger:hover:after {
  background: #000;
}
  
  .p {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Acosta';
  }
  
  .overlay_ {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
  }
  
  .overlay-block {
    flex: 1;
    height: 100%;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    margin-right: -2px;
  }
  
  .overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 10em 5em;
  }
  
  .menu-item,
  .menu-title {
    flex: 1;
    width: 100%;
    opacity: 0;
  }
  
  .menu-title {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .menu-item {
    display: flex;
    padding: 1em;
    transition: 0.3s;
    cursor: pointer;
  }
  
  .menu-item-year,
  .menu-item-link {
    flex: 1;
  }
  
  .menu-item-name {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .menu-item-name p {
    font-family: 'Acosta';
    font-size: 4vw;
    text-align: center;
  }
  
  .menu-item-link {
    text-align: right;
  }
  
  @media (max-width: 900px) {
    .logo-main img {
      display: none;
    }
  
    .website-content .header {
      width: 300px;
    }
  }
  .menu-item-name a {
    display: inline-block;
    padding: 1em 2em;
    transition: background-color 0.3s ease;
    background-color: transparent;
  }
  
  @media (max-width: 768px) {
    .menu-item-name a {
      padding: 1em 1em;
    }
  }
  
  .menu-item-name a p {
    color: #fff;
    transition: color 0.3s ease;
  }
  
  /* 마우스를 올렸을 때 변화 */
  .menu-item-name:hover a {
    background-color: rgb(82, 255, 255);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%, 0% 50%);
  }
  
  .menu-item-name:hover a p {
    color: #000;
  }

h1 {
  font-weight: 500;
  margin-bottom: 0.5em;
  font-size: 2em;
}

#item-category {
  font-family: 'Acosta';
  font-size: 3em;
}

#item-copy {
  font-size: 1.1em;
}

a {
  text-decoration: none;
  color: #000;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 2em;
}

.items {
  position: absolute;
  width: 50%;
  display: flex;
  flex-direction: column;
  font-family: 'JetBrainsMono-Medium';
}

/* .item {
  display: flex;
  padding: 0.25em 0.5em;
  cursor: pointer;
} */

.item {
  position: relative;
  display: flex;
  overflow: hidden;
  z-index: 0;
  padding: 0.5em 1em;
  transition: background-color 0.3s ease;
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #e0dbd2;
  z-index: -1;
  transition: width 0.4s ease;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 98% 100%, 0 100%, 0% 50%);
}

.item:hover::before {
  width: 100%;
}

.item:hover {
  color: black; /* 배경 흰색일 때 대비되도록 */
}

.item-index {
  flex: 1;
}

.item-name {
  flex: 4;
}

.item-year {
  flex: 1;
}

.overlay {
  position: absolute;
  clip-path: polygon(
    0% 0%,        /* 왼쪽 상단 */
    25% 0%,       /* 탭 시작 */
    35% 10%,      /* 탭 끝 */
    100% 10%,     /* 오른쪽 상단 */
    100% 100%,    /* 오른쪽 하단 */
    0% 100%       /* 왼쪽 하단 */
  );
  bottom: -1200px;
  right: 0;
  width: 70%;
  height: 800px;
  padding: 2em;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  overflow-y: scroll;
  z-index: 2;
  will-change: bottom;
  transform: translateZ(0) rotate(20deg);
  transform-origin: bottom center;
}

.bg {
  width: 500px;
  height: 500px;
  z-index: -1;
  position: absolute;
}

.bg img{
  width: 100%;
  height: 100%;
  top: 30%;
  left: 110%;
  position: absolute;
}

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

.img-container {
  width: 100%;
  padding-bottom: 2em;
}

#img , #item-img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  padding: 0 10px 0 20px;
}

.overlay-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 5em 0 3em;
}

.col:nth-child(1) {
  flex: 3;
}

.col:nth-child(2) {
  /* flex: 2; */
}

#close-btn {
  cursor: pointer;
  opacity: 0.4;
  font-family: 'JetBrainsMono-Medium';
}

.item-details {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1em 0 4em 0;
}

.item-details p:nth-child(1) {
  flex: 3;
}

.item-details p:nth-child(2) {
  flex: 2;
  padding: 0 50px 0 20px;
}

@media (max-width: 900px) {
  #item-category {
    font-size: 2em;
  }

  #item-copy {
    font-size: 15px;
  }

  .bg img {
    top: auto;
    left: auto;
  }
  .item-details p:nth-child(2) {
    padding: 0 0px 0 0px;
  }

  #img , #item-img  {
    width: 60%;
    padding: 0 10px 0 0px;
  }
  .item::before {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%, 0% 50%);
  }
  .container {
    padding: 0em;
  }
  .item {
    padding: 0.5em 3em;
    font-size: 13px;
  }

  .items {
    width: 100%;
    bottom: 8em;
  }

  .overlay {
    width: 100%;
    height: 100vh;
  }

  html, body {
    background-image:url('bg_m.png');
  }
}
