//thanks to https://jsfiddle.net/p270x1rj/ /*#map img:not([src$=".png"]) { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: grayscale(100%); }*/ #map { } .descriptioninfo { font-size: 20px; color: white; font-weight: bold; background-color: #555555; padding: 0px; margin: 0px; padding-left: 3px; padding-right: 3px; } .closewindow { color: yellow; } .loading { margin: 0px; padding: 0px; color: rgb(48, 119, 150); } /* animation https://www.cssportal.com/css-loader-generator/ */ .custom-loader { width:100px; height:100px; border-radius:50%; padding:1px; background:conic-gradient(#0000 10%,#3C95BB) content-box; -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg), radial-gradient(farthest-side,#0000 calc(100% - 18px),#000 calc(100% - 16px)); -webkit-mask-composite: destination-in; mask-composite: intersect; animation:s4 1s infinite steps(10); } .slider{ position: relative; background: #000116; width: 800px; min-height: 500px; margin: 20px; overflow: hidden; border-radius: 10px; } .slider .slide{ position: absolute; width: 100%; height: 100%; clip-path: circle(0% at 0 50%); } .slider .slide.active{ clip-path: circle(150% at 0 50%); transition: 2s; } .slider .slide img{ position: absolute; width: 100%; height: 100%; object-fit: cover; } .slider .slide .description{ position: absolute; color: white; background-color: rgba(0, 0, 0, 0.5); width: 75%; margin-top: 50px; margin-left: 50px; padding: 20px; border-radius: 5px; box-shadow: 0 5px 25px rgb(1 1 1 / 5%); } .slider .slide .info h2{ font-size: 2em; font-weight: 800; } .slider .slide .info p{ font-size: 1em; font-weight: 400; } .navigation{ height: 500px; display: flex; align-items: center; justify-content: space-between; opacity: 0; transition: opacity 0.5s ease; } .slider:hover .navigation{ opacity: 1; } .prev-btn, .next-btn{ z-index: 999; font-size: 2em; color: #222; background: rgba(255, 255, 255, 0.8); padding: 10px; cursor: pointer; } .prev-btn{ border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .next-btn{ border-top-left-radius: 3px; border-bottom-left-radius: 3px; } .navigation-visibility{ z-index: 999; display: flex; justify-content: center; } .navigation-visibility .slide-icon{ z-index: 999; background: rgba(255, 255, 255, 0.5); width: 20px; height: 10px; transform: translateY(-50px); margin: 0 6px; border-radius: 2px; box-shadow: 0 5px 25px rgb(1 1 1 / 20%); } .navigation-visibility .slide-icon.active{ background: #4285F4; } @media (max-width: 900px){ .slider{ width: 100%; } .slider .slide .info{ position: relative; width: 80%; margin-left: auto; margin-right: auto; } } @media (max-width: 500px){ .slider .slide .info h2{ font-size: 1.8em; line-height: 40px; } .slider .slide .info p{ font-size: 0.9em; } } @keyframes s4 {to{transform: rotate(1turn)}} @media only screen and (max-device-width: 699px) { .alertify { position: fixed; z-index: 99999; top: 50px; left: 10%; max-width: 80%; opacity: 1; } }