* {box-sizing: border-box;}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: rgb(85, 102, 119);
}

.mySlide {display: none;}   /* also do the same work in JS file at line no.9 in first for loop, we can skip this statement here */

img {
    vertical-align: middle;
    width: 100%;    /* we can skip this because resolution (width + height) of all the images are already set */
}

h1 {
    color: rgb(224, 223, 220);
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: rgb(255, 255, 255) 0px -1px 0px, rgb(46, 46, 46) 0px 1px 0px, rgb(44, 44, 44) 0px 2px 0px, rgb(42, 42, 42) 0px 3px 0px, rgb(40, 40, 40) 0px 4px 0px;
    --darkreader-inline-color:#b3b0ac;
    --darkreader-inline-bgimage: initial;
    --darkreader-inline-bgcolor:#3a4651;
}

h1>span {
    display: inline-block;
    cursor: pointer;
    margin: auto;
    padding: 8px;
    color: white;
    background-color: #257793;
    font-size: 1rem;
    text-shadow: 2px 1px 2px black;
    box-shadow: 0 5px #8fbecf;
    border-radius: 4px;
    opacity: 0.8;
}

h1>span:hover {opacity: 1;}

h1>span:active {
    background-color: #257793;
    box-shadow: 0 2.5px #699fb3;
    transform: translateY(4px);
}

h3 {
    margin-top: -10px;
    color: rgba(0, 0, 0, 0.6);
    text-shadow: rgba(255, 255, 255, 0.2) 3px 2px 3px;
    --darkreader-inline-color:rgba(197, 195, 193, 0.6);
    --darkreader-inline-bgimage: initial;
    --darkreader-inline-bgcolor:#474d4f;
}

#container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    background-color: #E09F7D;
    box-shadow: 1px 1px 10px 3px white;
}

.prev, .next {
    position: absolute;
    cursor: pointer;
    width: auto;
    height: auto;
    top: 50%;
    padding: 3px 10px;
    margin-top: -22px;
    user-select: none;
    font-weight: bold;
    font-size: 18px;
    color: wheat;
    border: 2px dotted wheat;
    border-radius: 50%;
    transition: 0.5s ease;
}

.prev {left: 10px;}
.next {right: 10px;}

.prev:hover, .next:hover {
    background-color: wheat;
    color: #333;
}

.caption {      /* like Caption Image 1 */
    position: absolute;
    width: 100%;
    padding: 5px 12px;
    bottom: 8px;
    color: wheat;
    font-size: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.image-count {      /* like 1/5 */
    position: absolute;
    top: 0;
    padding: 10px 12px;
    color: wheat;
    font-size: 12px;
    z-index: 1;     /* z-index will prefer image-count properties over the others */
}

.dot {
    display: inline-block;
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 10px 2px;
    background-color: #2D3142;
    border-radius: 50%;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {background-color: #FEC601;}

.mySlide img {
    /* animation-name: animate;
    animation-duration: 1.5s;
    animation-timing-function: linear;
    animation-direction: alternate; */
    animation: animate 1.5s linear alternate;
    -webkit-animation: animate 1.5s linear alternate;   /*for Google Chrome, Apple Safari, iOS, Android, and BlackBerry Browsers*/
    -moz-animation: animate 1.5s linear alternate;     /*for Gecko Browsers like Mozilla Firefox*/
    -ms-animation: animate 1.5s linear alternate;     /*Microsoft Internet Explorer*/
    -o-animation: animate 1.5s linear alternate;     /*for Opera Browsers*/
}

@keyframes animate {
    from {
        transform: scale(1.5);
        opacity: 0.4;
    } to {
        transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes animate {
    from {transform: scale(1.5); opacity: 0.4;}
    to {transform: scale(1); opacity: 1;}
} @-moz-keyframes animate {
    from {transform: scale(1.5); opacity: 0.4;}
    to {transform: scale(1); opacity: 1;}
} @-ms-keyframes animate {
    from {transform: scale(1.5); opacity: 0.4;}
    to {transform: scale(1); opacity: 1;}
} @-o-keyframes animate {
    from {transform: scale(1.5); opacity: 0.4;}
    to {transform: scale(1); opacity: 1;}
}



/* Media Queries for Smaller Screens */
@media only screen and (max-width: 400px) {
    .caption {font-size: 6px;}
    .image-count {font-size: 5px; padding: 5px 6px}
    .dot {height: 10px; width: 10px;}
    #container {box-shadow: 1px 1px 5px 3px #85868d;}
    #id1 {font-size: 1em; font-weight: normal;}

    .prev, .next {
        width: 20px;
        height: 20px;
        font-size: 10px;
        padding: 1px 5px;
        margin-top: -10px;
    }
    .prev {left: 5px;}
    .next {right: 5px;}

    h3 {
        font-size: 10px;
        padding-top: 2.5px;
    }

    h1>span {
        padding: 5px;
        font-size: 7px;
        text-shadow: 1px 1px 1px black;
        box-shadow: 0 3px #8fbecf;
    }
    
    h1>span:active {
        box-shadow: 0 2px #699fb3;
        transform: translateY(2px);
    }
}