* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
html {
    scroll-behavior: smooth;
}
  
body {
    font-family: 'Roboto', sans-serif;
    background-color: white;
    /*background-color:#e3e2e0;*/
}

/* ------------- slider -------------------*/

.slider-backgroud {
    margin-top: 60px;
    width: auto;
    height: calc(100vh - 140px);
    background: url(pics/background.jpg);
    background-size: cover; 
    background-repeat: no-repeat;
    border: blue 1px solid;
}

.slider-wrapper, .slider-wrapper-2 {
    max-width: 1700px;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border: black 1px dotted;
    animation: slider-fade 12s ease-in-out;
    /*position: absolute;
    width: 100%;*/
}

.shide {
    display: none;
}

.slider-img {
    max-width: 55%;
    max-height: calc(100vh - 140px);
    border: red 1px solid;
}
  
.slider-text {
    max-width: 45%;
    font-family: 'Saira Condensed', sans-serif;
    font-size: calc(24px + (48 - 24) * ((100vw - 300px) / (1700 - 300)));
    /*
    font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
    font size in a range where: 
    14px is the minimum size at the smallest viewport width of 300px
    26px is the maximum size at the largest viewport width of 1600px
    */
    color: #1a592d;
    font-weight: 800;
    border: green 1px solid;
    opacity: 0.1;
}

@media screen and (orientation: portrait) {
    .slider-wrapper, .slider-wrapper-2 {
        flex-direction: column;
    }
    .slider-img {
        max-width: calc(100vh / 2);
        max-height: 100vw;
    }
    .slider-text {
        max-width: 100vw;
    }
}

.slider-text span {
    position:relative;
    top:10px;
    left:10px;
    opacity:0;
    animation: fade 300ms ease-in-out forwards;
}

@keyframes fade {
    0% {
        top:10px;
        left:10px;
        filter:blur(15px);
        opacity:0;
    }
    50% {
        filter:blur(10px);
        opacity:0.9;
    }
    100% {
        top:0px;
        left:0px;
        filter:blur(0px);
        opacity:1;
    }  
}

@keyframes slider-fade {
    0% {
        filter:blur(15px);
        opacity:0;
    }
    4% {
        filter:blur(0px);
        opacity:1;
    }
    96% {
        filter:blur(0px);
        opacity:1;
    }
    100% {
        filter:blur(0px);
        opacity:0;
    }  
}