@font-face {
    font-family: "spider_font";
    src: url("./font/Spiderman-Homecoming.otf");

}

* {
    box-sizing: border-box;
    font-family: "spider_font", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.parallax,
.mask {
    width: 100%;
    height: 100%;
    position: relative;
}

.parallax {
    background: url("./img/spiderman.jpg");
    background-position: 90% center;
    background-size: cover;
}

.mask {
    display: flex;
    flex-direction: column;
    justify-content: center;
    -webkit-mask-image: url("./img/mask.png");
    mask-image: url("./img/mask.png");
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: right center;
    mask-position: right center;
}

.header,
.descr {
    text-align: center;
    font-weight: bold;
}

.header {
    margin-bottom: 2vh;
    font-size: 5.5vmax;
    text-transform: uppercase;
    letter-spacing: .3em;
    background: rgb(126, 14, 14);
    background: linear-gradient(90deg, #7e0e0e 0%, #aa1912 5%, #b92018 34%, #b61f1b 50%, #7e0e0e 60%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-filter: drop-shadow(1px 1px #000000) drop-shadow(1px -1px 1px #ffcc00) drop-shadow(1px 1px #ad8911) drop-shadow(1px 1px #ffcc00) drop-shadow(1px 1px #333332) drop-shadow(3px 8px 3px #000000);
    filter: drop-shadow(1px 1px #000000) drop-shadow(1px -1px 1px #ffcc00) drop-shadow(1px 1px #ad8911) drop-shadow(1px 1px #ffcc00) drop-shadow(1px 1px #333332) drop-shadow(3px 8px 3px #000000);

    /* animation */
    -webkit-animation: showText ease-out 3s .3s;
    animation: showText ease-out 3s .3s;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;

}

.descr {
    margin: 0;
    padding: 0;
    font-size: 4vmax;
    text-transform: lowercase;
    letter-spacing: .1em;
    word-spacing: .3em;
    color: white;
    text-shadow: -1px -1px 7px #FF0000, 4px 4px 0px #FF0000;
    /* animation */
    -webkit-animation: showText ease-out 3s 2.3s;
    animation: showText ease-out 3s 2.3s;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;

}


@-webkit-keyframes showText {
    0% {
        transform: translate(1000px, -200%);
    }

    100% {
        transform: translate(-230px, -200%);
    }
}


@keyframes showText {
    0% {
        transform: translate(1000px, -200%);
    }

    100% {
        transform: translate(-230px, -200%);
    }
}