*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lazy Dog', sans-serif;
    font-family: 'Archivo', sans-serif;                                    
}

html{
    font-size: 24px;
    line-height: 1.44;
    height: 100%;
    scroll-behavior: smooth;   
}

body{
    background-color: #020403;
}

nav{
    text-align: center;
    padding: 20px 45px 0px 45px;
    justify-content: end;
    grid-template-columns: 1fr repeat(2, minmax(auto,auto));
    gap: 2.074rem;
    display: grid;
    position: sticky;
    top: 0;
    z-index: 7;
}

nav a::after{
    content: "";
    position:absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background:#ffffff;
    transition: width 0.3s ease-in-out;
}

nav a:hover::after{
    width: 100%;
}

nav a{
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-block;
}



.off-screen-menu{
    background-color:#282525 ;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    left: -450px;
    display: grid;
    grid-column: 1fr 1fr 1fr;
    justify-content: center;
    align-items: center;
    font-size: 1.728rem;
    transition: .3s ease;   
    z-index: 6;
    padding: 100px 0px 500px 0px;
}

.off-screen-menu.active{
left: 0;
}

.hamburger {
    height: 50px;
    width: 50px;
    margin-right: auto;
    position: relative;
    z-index: 999;
}

.hamburger span{
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    position:absolute ;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease-in-out;
}

.hamburger span:nth-child(1){
    top: 25%;
}

.hamburger span:nth-child(3){
    top: 75%;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform:translate(-50%, -50%) rotate(45deg) ;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3){
    top: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

header{
    width: 100%;
    height: 90vh;
}

header video{
    width: 100%;
    height: 95vh;
    object-fit: cover;
}

header img{
    position: absolute;
    top: 0;
    display: grid;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    scale: 80%;
}

header iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    overflow: hidden;
}

#ghosts{
    scroll-behavior: smooth;
}

.carousel {
  position: relative;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr repeat(26, max-content);
  gap: 20px;
  overflow: scroll;
  scrollbar-width: thin;
  scrollbar-color: #ffffff #020403;
  scroll-behavior: smooth;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}


.carousel:hover .front:not(:hover) {
    filter: blur(2px);
}

.carousel img {
  margin: 0px 0px;
  padding: 2px 2px 2px 2px;
transition: filter 0.2s ease-in-out;
}


.card:hover + .card .front, .card:has(+ .card:hover) .front {
    transform: translate3d(0px, 0px, 80px) translateY(2px) scale(1.02);
    transition: transform 0.2s ease-in-out 0.05s;
}

.front {
    perspective: 1000px;
    transition: transform 0.2s ease-in-out;
}

.card:hover .front, .front:hover {
    transition: transform 0.2s ease-in-out;
    transform: translate3d(0px, 0px, 90px) translateY(5px) scale(1.1);
}

.card:has(+ .card:hover) .front {
    transform: translate3d(0px, 0px, 75px) translateY(1px) scale(1.03);
    transition: transform 0.3s ease-in-out 0.1s;
}

.card {
    position: relative;
    width: 289px;
    height: 650px;
    margin: 0 10px;
    perspective: 1000px;
}

.card figure {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    padding: 60px;
}

.card .back {
    z-index: 0;
    transform: rotateY(-180deg);
}

.card .front {
    z-index: 1;
    cursor: pointer;
}

.card:active .front {
    transform: rotateY(180deg);
}

.card:active .back {
    transform: rotateY(0deg);
}

.back{
    scale: 120%;
}

dialog{
    position:fixed;
    top: 5vh;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0 auto;
} 

dialog::backdrop{
    background-color: rgb(33 33 33 /0.8);
}

#evidence{
    display: grid;
    grid-column: 1fr;
    gap: 2rem;
    max-width: 100%;
}

#evidence article{
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  background: white;
  padding: 10px 10px 20px 10px;
  text-align: center;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.502);
  margin-bottom: 10vh;
  margin-left: clamp(0%, 2vw, 5vw);
}

#evidence img{
    width: clamp(40%, 600px, 100%);
    height:auto;;
}

#evidence h3 {
    font-family: 'Lazy Dog', sans-serif;
    color: #020403;
    font-size: 1.6rem;
    font-weight: 250;
    text-align: center;
}

.evidence-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.evidence-text{
    font-family: 'Lazy Dog', sans-serif;
    color: #020403;
    font-size: 1.2rem;
    font-weight: 250;
    text-align: left;
    padding-top: 10px;
    width: 100%;
    max-width: 80%;
    white-space: normal;
    overflow-wrap: break-word;
}

@media (max-width: 1000px) {
  .evidence-item {
    grid-template-columns: 1fr;
  }
}


figcaption{
    font-family: 'Lazy Dog', sans-serif;
    color: #020403;
    font-size: 1.6rem;
    font-weight: 250;
}

#objects{
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-column: 1fr;
} 

#objects figure{
  width: clamp(0%, 600px, 100%);
  height: 400px;
  object-fit: cover;
  margin: 0 auto;
  position: relative;
}

#objects img{
    width: 100%;
    height:auto;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.89, 0.01, 0.58, 1);
    position: relative;
    z-index: 2;
}

.overlay{
    font-size: clamp(0.8rem, 2vw, 1.2rem);
}

.cursed-item:hover img{
    transform: translateX(-50%);
}

.cursed-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(0%, 600px, 100%);
  height: 400px;
  color: white;
  align-items: center;
  justify-content: center;
  opacity: 1;
  box-sizing: border-box;
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  z-index: 1;
  padding-top: 60px;
}

.cursed-item .overlay{
    transition: transform 0.4s cubic-bezier(0.89, 0.01, 0.58, 1);
}

.cursed-item:hover .overlay {
    transform: translateX(55%);
}


footer{
    background-color:#020403;
    text-align: center;
    padding: 15px;
    justify-content: end;
    gap: 2.074rem;
    position: absolute 0;
    bottom: 0;
    width: 100%;
    justify-content: end;
    gap: 2.074rem;
    color: white;
    z-index: 0;

}

footer a::after{
    content: "";
    position:absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background:#ffffff;
    transition: width 0.3s ease-in-out;
}

footer a:hover::after{
    width: 100%;
}

footer a{
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-block;
}

footer a:hover{
    background-color:#020403 ;
    display: block; 
}

h1{
    font-size: clamp(1.8rem, 5vw, 3.815rem);
    font-weight: 300;
    text-align: center;
    padding-top: 50px;    
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.441rem);
    font-weight: 250;
    text-align: center;
    font-family: 'Archivo', sans-serif;
    padding-top: 25px;
}

h3{
    font-size: clamp(1.25rem, 3vw, 1.563rem);
    font-weight: 250;
    text-align: center;
    font-family: 'Archivo', sans-serif;   
    padding-top: 35px;                                 
}

h1, h2, h3, p{
    color: white;
}

p{
    color: white;
    text-align: center;
    font-weight: 100;
    width: clamp(70vw, 80%, 100%);
    padding-top: 25px;
}

a{
    color: white;
    text-decoration: none;
}

/* Loading animation */
.fade-in-deblur {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 1s ease-out, filter 1s ease-out;
}

.fade-in-deblur.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Mobile layout for cursed items */
@media (max-width: 600px) {
  .cursed-item {
    display: grid;
    grid-template-rows: auto auto;
    height: auto;
  }

  .cursed-item .overlay {
    position: static;
    transform: none;
    height: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .cursed-item:hover img {
    transform: none;
  }

  .cursed-item:hover .overlay {
    transform: none;
  }
}
