*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
.slider {
    position: relative;
    width: 100%;
    background-color: #2c3e50;
}
.myslider {
    height: 480px;
    display: none;
    overflow: hidden;
    position: relative;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    font-size: 50px;
    padding: 15px;
    color: #fff;
    transition: 01.s;
    user-select: none;
    z-index: 2;
    transition: color 0.2s ease-in-out;
}
.prev:hover, .next:hover {
    color: #D2476A;
}
.next {
    right: 0;
}
.dotbox {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 20px;
    cursor: pointer;
    z-index: 2;
}
.dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out;
}
.active, .dot:hover {
    border-color: #D2476A;
}
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}
@-webkit-keyframes fade {
    from {opacity: 0.8}
    to {opacity: 1}
}
@keyframes fade {
    from {opacity: 0.8}
    to {opacity: 1}
}
.txt {
    position: absolute;
    color: #fff;
    top: 40%;
    left: 15%;
    -webkit-animation-name: posi;
    -webkit-animation-duration: 2s;
    animation-name: posi;
    animation-duration: 2s;
    z-index: 1;
    text-shadow: .1em .1em .3em hsl(200 50% 30%);
}
@keyframes posi {
    from {left: 25%}
    to {left: 15%;}
}
@-webkit-keyframes posi {
    from {left: 25%}
    to {left: 15%;}
}
.txt h1{
    color: #fff;
}

.myslider img {
    max-width: 100%; /* Ensure images don't exceed the width of their container */
    height: 100%; /* Allow images to adjust their height while maintaining aspect ratio */
    width: 100%; /* IE8 and below specific fix */
    transform: scale(1.5, 1.5);
    object-fit: cover;
    -webkit-animation-name: zoomin;
    -webkit-animation-duration: 40s;
    animation-name: zoomin;
    animation-duration: 40s;
    position: relative;
}
.myslider::before {
    content: ''; /* Create pseudo-element for overlay */
    position: absolute; /* Position the overlay */
    top: 0; /* Position from the top */
    left: 0; /* Position from the left */
    width: 100%; /* Take up full width */
    height: 100%; /* Take up full height */
    /* background-color: rgba(73, 176, 217, 0.2); /* Color overlay with opacity */
    pointer-events: none; /* Ensure pointer events pass through the overlay to the image */
    z-index: 1;
}
@-webkit-keyframes zoomin {
    from {transform: scale(1,1);}    
    to {transform: scale(1.5,1.5);}
}
@keyframes zoomin {
    from {transform: scale(1,1);}    
    to {transform: scale(1.5,1.5);}
}
@media screen and (max-width: 800px) {
    .myslider {
        height: 400px;
    }
    .txt {
        line-height: 25px;
        top: 50%;
        left: 42%;
        transform: translate(-50%, -50%);
        -webkit-animation-name: posi2;
        -webkit-animation-duration: 2s;
        animation-name: posi2;
        animation-duration: 2s;
    }
    @-webkit-keyframes posi2 {
        from {top: 35%;}
        to {top: 50%}
    }
    @keyframes posi2 {
        from {top: 35%;}
        to {top: 50%}
    }
    .txt h1 {
        font-size: 40px;
    }
    .txt p {
        font-size: 14px;
    }
}

@media screen and (max-width: 520px) {
    .txt h1 {
        font-size: 2.0rem;
    }    
}