*{
    padding: 0;
    margin: 0;

}

html {
    font-size: 12px;
    color: #000;
    font-family: 'Alegreya Sans SC', sans-serif;
}

main {
    display: flex;
    flex-flow: column;
    align-items: center;
    height: 100vh;
    width: 100vw;

    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: center;
    background-color: #bdbdbd;
    animation: animateBackground 25s linear infinite;
    animation-timing-function:  ease-in-out;
    background-image: url('image/background/screen1.jpg');
}
@keyframes animateBackground {
    0% {
        background-image: url('image/background/screen1.jpg');
    }
    20% {
        background-image: url('image/background/screen2.jpg');
    }
    40% {
        background-image: url('image/background/screen3.jpg');
    }
    60% {
        background-image: url('image/background/screen4.jpg');
    }
    80% {
        background-image: url('image/background/screen5.jpg');
    }
}



header{
    display: flex;
    padding-top: 10vh;
    padding-bottom: 30vh;
    min-height: 52px;
}
header img {
    width: 160px;
    height: auto;
}

nav form{
    display: flex;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

nav form.show{
    opacity: 1!important;
}



nav input[type="submit"]{
    display: inline-block;
    background-color: black;
    color: white;
    width: 24rem;
    height: 3.5rem;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.5rem;
    letter-spacing: 0.15rem;
    border: 0px;
    margin: 1rem .5rem;
    cursor: pointer;
    border-radius:0;
    -webkit-appearance: none ;
    -moz-appearance: none ;
    -ms-appearance: none ;
    -o-appearance: none ;
    appearance: none ;
}
nav input[type="submit"]:hover{
    background-color: #323232;
}

nav input[type="submit"].redireting {
    background-image: repeating-linear-gradient(45deg,
    #000 0px,
    #000 10px,
    #323232 11px,
    #323232 20px);
    background-size: 150%;
    animation: stripe-slide 1s infinite linear;
}

@keyframes stripe-slide {
    0% {
        background-position-x: -30px
    }
    100% {
        background-position-x: -2px
    }
}


nav select{
    display: inline-block;
    width: 24rem;
    height: 3.5rem;
    border: 0px;
    font-size: 1.5rem;
    padding-left: 1rem;
    padding-right: 3rem;
    line-height: 2rem;
    margin: 1rem .5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border-radius:0;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='2rem' viewBox='0 0 24 24' width='2rem' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 7 5-7z'/></svg>");
    background-repeat: no-repeat ;
    background-position: right 0.5rem center;
    background-color: #ffffff;
    -webkit-appearance: none ;
    -moz-appearance: none ;
    -ms-appearance: none ;
    -o-appearance: none ;
    appearance: none ;
    outline: none;
}


@media (max-width: 767.98px) {
    header{
        padding-bottom: 25vh;
    }
    nav form{
        flex-flow: column;
    }
}

@media (max-width: 575.98px) {
    header img {
        width: 130px;
    }
    nav input[type="submit"],nav select{
        width: 85vw;
    }

    main{
        animation: animateBackgroundMobile 25s linear infinite;
        animation-timing-function:  ease-in-out;
        background-image: url('image/background/screen1-mob.jpg');
    }

    @keyframes animateBackgroundMobile {
        0% {
            background-image: url('image/background/screen1-mob.jpg');
        }
        25% {
            background-image: url('image/background/screen2-mob.jpg');
        }
        50% {
            background-image: url('image/background/screen3-mob.jpg');
        }
        75% {
            background-image: url('image/background/screen4-mob.jpg');
        }
    }


}