#slides { width: 100%; } slides { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; /* margin-top: 20px; */ } slides slide { position: relative; border-radius: 10px; } slides arrow { position: absolute; z-index: 4; opacity: 1; cursor: pointer; top: 0; height: 100%; display: flex; justify-content: center; align-items: center; color: white; text-shadow: 0 0 2px black } slides img { border-radius: 10px; } slides cover { position: absolute; z-index: 3; top: 0; width: 100%; height: 100%; background: black; border-radius: 10px; /* opacity; */ cursor: pointer; opacity: 0.3 } slides slide play-cover { position: absolute; top: 0; z-index: 2; width: 100%; height: 100%; background: url(/images/icons/play.png) no-repeat center; background-size: auto 30%; cursor: pointer; } slides-buttons-cntr { position: absolute; bottom: 5px; display: block; margin: 0 auto; } slides-buttons { width: 100%; overflow: hidden; margin: 0 auto; ms-overflow-style: none; scrollbar-width: none; } slides-buttons>dot { display: inline-block; position: relative; border-radius: 50%; cursor: pointer; margin: 0 5px; border: 2px solid black; color: black; background-color: white; } slides-buttons>dot.active { border-color: ; color: ; } slides-buttons>dot.active n { opacity: 1; } slides-buttons>dot dot { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%; border-radius: 50%; background: white; } slides-buttons>dot n { position: absolute; font-family: Verdana; font-weight: bold; top: 0; left: 0; z-index: 2; width: 100%; height: 100%; opacity: 0.3; display: flex; justify-content: center; align-items: center } @media screen and (max-width: 640px) { //slides arrow{color:grey;text-shadow:none;} //slides ar{border-radius:50%;background:white;width:30px;height:30px;text-align:center;} slides-buttons { overflow: auto; touch-action: pan-x; white-space: nowrap; } slides-buttons-cntr { bottom: -10px; } }