/*===========================================Welcome Banner============================================*/

.welcome {
    position: relative;
}

.welcome > div {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0 7%;
    background-color: #444;
}



.welcome .block_one {
    position: relative;
    min-height: 90vh;
    padding: 2rem 7%;
    background-image: url("../assets/backgrounds/background_a.jpg");
    justify-content: flex-end;
    z-index: 10;
    animation-name: toggle;
    animation-duration: 32s;
    animation-delay: 8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.welcome .block_two {
    position: absolute;
}

@keyframes toggle {
    from {
        opacity: 1;
        pointer-events: all;
        z-index: 10;
    }

    20% {
        opacity: 1;
        pointer-events: all;
        z-index: 10;
    }

    25% {
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }

    75% {
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }

    80% {
        opacity: 1;
        pointer-events: all;
        z-index: 10;
    }

    to {
        opacity: 1;
        pointer-events: all;
        z-index: 10;
    }
}

@supports (pointer-events: none) {
    @keyframes toggle {
        from {
            opacity: 1;
            pointer-events: all;
            
        }
    
        20% {
            opacity: 1;
            pointer-events: all;
            
        }
    
        25% {
            opacity: 0;
            pointer-events: none;
            
        }
    
        75% {
            opacity: 0;
            pointer-events: none;
            
        }
    
        80% {
            opacity: 1;
            pointer-events: all;
            
        }
    
        to {
            opacity: 1;
            pointer-events: all;
            
        }
    }
}

.welcome .block_two {
    background-image: url("../assets/backgrounds/background_b.jpeg");
    justify-content: flex-start;
    z-index: 5;
}

@media screen and (max-width: 600px) {
    .welcome .block_one, .welcome .block_two {
        justify-content: center;
        padding: 0;
    }
}

.welcome .text {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    color: white;
    max-width: 45vw;
}

.welcome .block_one .text {
    max-width: 70vw;
}

.welcome .block_one .alt {
    display: none;
}

@media screen and (max-width: 600px) {
    .welcome .text, .welcome .block_one .text {
        display: block;
        max-width: 100vw;
    }

    .welcome .block_one .normal {
        display: none;
    }
}

.welcome .text h2{
    font-size: 2rem;
}

.welcome .text p {
    font-size: 1.3rem;
    margin: 10px 0;
}
