.slider {
    display: block;
    width: 100%;
    height: 82vh;
    overflow: hidden;
    position: relative;
}

.slider-wave {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
}

.slider-wave-bottom {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: auto;
    left: 0;
    bottom: 0;
}

.slider-x {
    margin-left: 0%;
    display: flex;
    height: 100%;
}

.slider-line {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.slider-img-pri {
    position: absolute;
    z-index: -10;
    left: -5%;
    top: -5%;
    width: 115%;
    height: 115%;
    filter: blur(25px);
}

.slider-img-sec {
    z-index: -5;
    top: 10%;
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 25px;
}

.slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.slider-text div {
    text-align: center;
}

.slider-text div h1 {
    color: white;
    font-size: 40px;
    text-shadow: 0px 4px 4px black;
}

.slider-text div h2 {
    padding-top: 40px;
    color: white;
    font-size: 25px;
    text-shadow: 0px 4px 4px black;
}

.slider-text div a {
    transition: 0.5s all;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0);
    border: 3px solid white;
    color: white;
    border-radius: 10px;
}

.slider-text div a:hover {
    box-shadow: inset 0px -50px 0px white;
    color: black;
}

.slider-text div a.primary {
    border: 3px solid var(--theme);
    background-color: rgba(0, 0, 0, 0.25);
    color: var(--scroll-back);
}

.slider-text div a.primary:hover {
    box-shadow: inset 0px -50px 0px var(--theme);
    color: white;
}

.img-out-slider {
    text-align: center;
}

.img-out-slider img {
    width: 200px;
    height: auto;
    text-align: center;
    padding: 5px;
}

@media only screen and (max-width: 512px) {
    .slider-text div h1, .slider-text div h2 {
        position: absolute;
        text-align: center;
        display: block;
        width: 100%;
        text-align: center;
    }

    .slider-text div h1 {
        top: 10%;
        font-size: 25px;
    }

    .slider-text div h2 {
        padding-top: 0px;
        font-size: 15px;
        top: 75%;
    }

    .slider-text {
        display: inline-block;
        justify-content: auto;
        text-align: center;
    }
}