.mySlides {display: none} /* Slideshow container */ .slideshow-container { max-width: 75%; position: relative; margin: auto; } /* Next & previous buttons */ .prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; padding: 1rem; margin-top: -2.2rem; color: black; font-weight: bold; font-size: 2rem; transition: 0.6s ease; border-radius: 5%; user-select: none; } /* Position the "next button" to the right */ .next { right: 0; border-radius: 5%; } /* On hover, add a black background color with a little bit see-through */ .prev:hover, .next:hover { background-color: rgba(0,0,0,0.2); } /* The dots/bullets/indicators */ .dot { cursor: pointer; height: 1rem; width: 1rem; margin: 0 0.3rem; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.6s ease; } .active, .dot:hover { background-color: #717171; } /* Fading animation */ .fade { animation-name: fade; animation-duration: 1.5s; } @keyframes fade { from {opacity: .4} to {opacity: 1} } /* On smaller screens, decrease text size */ @media only screen and (max-width: 300px) { .prev, .next,.text {font-size: 11px} }