/* container styles */
.container {
    background-image: url("assets/pepper.png");
    /* Set the background image */
    background-repeat: repeat;
    /* Repeat the image to fill the container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* Full viewport height */
    border-width: 7px;
    border-style: solid;
    border-image: url("https://file.garden/ZZ2PUl9MPilKgIvB/collection/borders/wq0kei.png") 8 fill round;

}

.container2 {
    background-color: black;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-width: 7px;
    border-style: solid;
    padding: 20px;
    margin: 20px;

}

.container3 {
    background-image: url(https://i.sstatic.net/IeN9i.jpg);
    background-size: cover;
    display: flex;
    flex-direction: row;
    justify-content: space-around
}

.flexbox1 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 10px;
    margin: 5px;
}

.container4 {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 50px;
    border-width: 7px;
    border-style: solid;
    padding: 20px;
    margin: 20px;
    background-color: black;
    animation: slideIn 2s ease-in-out 0.5s infinite alternate forwards;
    text-align: end;
}

.header {
    background-color: rgba(48, 255, 68, 0.8);
}

.text-container {
    background-color: rgba(0, 255, 94, 0.8);
    padding: 10px;
    margin: 10px;
    text-align: start;
}

/* image transformations */
.image1 {
    /* this image has a layer mask */
    mask-image: url(https://i.ibb.co/KhqQW5x/73696-B1-E-A0-D7-4529-B2-D2-FB27-F0-D5-B437.png);
    -webkit-mask-image: url(https://i.ibb.co/KhqQW5x/73696-B1-E-A0-D7-4529-B2-D2-FB27-F0-D5-B437.png);
    mask-size: 150%;
    -webkit-mask-size: 150%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}


.image2 {
    /* used flex to organize images in div and stretched them */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 5px;
    filter: blur(20px) hue-rotate(90deg) drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    width: 200px;
    height: 1500px;
}

.image3 {
    /* used blending mode to blend the image with the background of the div */
    width: 50x;
    height: 200px;
    object-fit: cover;
    background-repeat: repeat-x;
    mix-blend-mode: color-dodge;
    rotate: 45deg;
}

.image4 {
    image-rendering: pixelated;
    width: 500px;
    height: 500px;
    animation: spin 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(0, 255, 0, 0.5)) drop-shadow(0 0 10px rgba(0, 0, 255, 0.5)) invert(100%) sepia(100%) hue-rotate(180deg) brightness(150%) saturate(200%) contrast(150%) blur(5px);
}

.quote {
    font-size: 30px;
    font-family: 'DPSDbeyond', sans-serif;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(237, 19, 19, 0.5), 4px 4px 8px rgba(19, 237, 19, 0.5), 2px 2px 4px rgba(19, 19, 237, 0.5);
    /* background-color: rgba(48, 255, 68, 0.8); */
}

.img1text {
    font-family: 'DPSDbeyond', sans-serif;
    font-size: 30px;
}

/* *jumpscare */
.jumpscare {
    filter: drop-shadow(0 0 20px red) grayscale(100%) blur(5px) invert(100%);
    position: fixed;
    /* Locks it relative to the screen viewport */
    animation: shake 0.5s infinite;
    /* Apply the shake animation */
    z-index: 99999;
    /* Sits on top of absolutely everything else */
}

/* ! ids */
/*  * text id */
#text-container {
    background-color: rgba(159, 253, 166, 0.8);
    font-family: 'DPSDbeyond', sans-serif;
    font-size: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* *header id */
#main-header {
    font-size: 100px;
    font-family: 'pixel-italic', sans-serif;
    text-align: center;
}

/* *pepper image for jumpscare */
#random-image {
    position: fixed;
    /* Locks it relative to the screen viewport */
    top: 0;
    left: 0;
    width: 100vw;
    /* 100% of the viewport width */
    height: 100vh;
    /* 100% of the viewport height */
    object-fit: cover;
    /* Stretches/crops the image to fill perfectly without distortion */
    display: none;
    /* Hidden by default */
    z-index: 99999;
    /* Sits on top of absolutely everything else */
}

#img4-text {
    font-size: 30px;
    font-family: 'DPSDbeyond', sans-serif;
    text-align: end;
    color: white;
    text-shadow: 2px 2px 4px rgba(237, 19, 19, 0.5), 4px 4px 8px rgba(19, 237, 19, 0.5), 2px 2px 4px rgba(19, 19, 237, 0.5);
}

#jumpscare-text {
    text-shadow: 2px 2px 4px rgba(29, 20, 65, 0.5), 4px 4px 8px rgba(255, 17, 156, 0.5), 2px 2px 4px rgba(19, 19, 237, 0.5);
}

/* ! keyframes */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* shake animation */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* !fonts */
@font-face {
    font-family: 'pixel-italic';
    src: url(https://humantooth.neocities.org/fonts/CHNOPixelCodePro-Italic.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

/* smartphone scaling */
@media screen and (max-width: 768px) {

    .container,
    .container2,
    .container3,
    .container4 {
        flex-direction: column;
        align-items: center;
    }

    .image1,
    .image2,
    .image3,
    .image4 {
        width: 100%;
        height: auto;
    }
}

#img3-5 {
    rotate: 65deg;
}

@font-face {
    font-family: 'DPSDbeyond';
    src: url(https://humantooth.neocities.org/fonts/DPSDbeyond.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}