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

body {
    background-color: #272727;
}

.splash-container {
    width: 100%;
    height: 99vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background-color: #130f0f;
}

.splash {
    position: relative;
    display: inline-block;
}

.splash img {
    display: block;
    filter: drop-shadow(5px 5px 15px red);
}

.splash::before,
.splash::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/haloween-removebg-preview.png") center/cover;
    pointer-events: none;
}

.splash::before {
    animation: glitch1 2s infinite linear alternate-reverse;
    mix-blend-mode: screen;
}

.splash::after {
    animation: glitch2 1.5s infinite linear alternate-reverse;
    mix-blend-mode: screen;
}

@keyframes glitch1 {

    0%,
    90% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    92% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-8px, 2px);
    }

    95% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(8px, -2px);
    }

    100% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-4px);
    }

}

@keyframes glitch2 {

    0%,
    90% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    92% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-8px, 2px);
    }

    95% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(8px, -2px);
    }

    100% {
        clip-path: inset(30% 0 70% 0);
        transform: translate(-4px);
    }
}

/* horror font */
@font-face {
    font-family: blood-zombie;
    src: url(assets/fonts/Blood-Zombie.ttf);
}
@font-face {
    font-family: melted-moster;
    src: url(assets/fonts/Melted-Monster.ttf);
}

@font-face {
    font-family: blood-crow;
    src: url(assets/fonts/bloodcrow.ttf);
}
@font-face {
    font-family: fear;
    src: url(assets/fonts/Face-Your-Fears.ttf);
}

@font-face {
    font-family: bates;
    src: url(assets/fonts/Bates-Shower.ttf);
}

.splash-container h3 {
    color: rgb(218, 98, 98);
    font-family: blood-zombie;
    letter-spacing: 2px;
}

.splash-container button {
    padding: 5px;
    width: 100px;
    border: none;
    background-color: brown;
    color: rgb(165, 139, 144);
    cursor: pointer;
}

.intro {
    display: none;
}

.intro-text {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 30%;
    transform: translate(-50px);
    width: 50%;
    height: auto;
    text-align: center;
    color: rgb(21, 17, 17);
    font-size: 25px;
    z-index: 999;
    background: url("assets/horror-bg.jpg");
    border-radius: 10px;
    box-shadow: 3px 4px 3px rgb(21, 19, 19);
    animation: fadein 2s ease forwards;
}
.intro-text h2{
    padding: 10px;
        font-family: melted-moster;
        color: #e10909;
}
 @keyframes fadein{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
 }

.intro-text button {
    display: block;
    margin: 15px auto 0;
    padding: 8px 30px;
    background-color: #b52d2d;
    color: white;
    border: none;
    cursor: pointer;

}

.yesNote{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 300px;
    height: 400px;
    background: url("assets/grunge-paper-background.jpg");
     background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 10px;
            display: none;
            justify-content: center;
            align-items: center;
            animation: yesNote 2s ease forwards;
            box-shadow: 3px 4px 3px black;
}
.yesNote h2{
    padding: 30px;
    text-align: center;
    font-family: blood-crow;
}
@keyframes yesNote {
      0%{
     height: 100px;
      }
      25%{
        height: 200px;
      }
      75%{
        height: 300px;
      }
      100%{
        height: 300px;
      }
}

.scaredNoNote,.hmmOk{
      position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 300px;
    height: 400px;
    background: url("assets/grunge-paper-background.jpg");
     background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 10px;
            display: none;
            justify-content: center;
            align-items: center;
            animation: hmmok 2s ease forwards;
            box-shadow: 3px 4px 3px black;
}
.scaredNoNote ,.hmmOk h2{
     padding: 30px;
    text-align: center;
    font-family: blood-crow;
}
@keyframes hmmok {
    0%{
        height: 100px;
    }
    100%{
        height: 250px;
    }
}

 .ending-screen h1,.ending-screen{
    position: fixed;
    width: 100%;
    height: 99vh;
    top: 0;
    left: 0;
    z-index: 1000;
    background: #130f0f;
    animation: horror 5s alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}
 .ending-screen h1{
    font-family: fear;
 }
@keyframes horror {
     0%, 18%, 22%, 25%, 45%, 53%, 57%,90% {
        background-color: white;
    opacity: 1;
  }
  21%,30% ,35%, 60%, 80%{
    background-color: wheat;
    opacity: 0.3;
  }
  20%, 24%, 55% {
    background-color: beige;
    opacity: 0.4; 
  }
  100%{
    opacity: 1;
    background-color: #130f0f;
  }
}
.content h1{
    letter-spacing: 5px;
    font-family: bates;
}
.content{
    color: white;
    animation: showof 6s alternate;
}
@keyframes showof {
    0%,90% ,90%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
