.dg-container{ width: 100%; height: 360px; position: relative; padding-top: 60px; } .dg-wrapper{ width: 500px; height: 320px; margin: 0 auto; position: relative; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; -o-transform-style: preserve-3d; -ms-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-perspective: 1000px; -moz-perspective: 1000px; -o-perspective: 1000px; -ms-perspective: 1000px; perspective: 1000px; } .dg-wrapper a{ width: 500px; height: 320px; display: block; position: absolute; left: 0; top: 0; background: transparent url(../images/browser-slider.png) no-repeat top center; box-shadow: 0px 0px 30px rgba(35, 175, 212, 0.4); } .dg-wrapper a.dg-transition{ -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; -ms-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; } .dg-wrapper a img{ display: block; padding: 25px 0px 0px; } .dg-wrapper .slide-name { text-align: center; line-height: 50px; font-size: 18px; width: 100%; top: -50px; display: none; position: absolute; text-transform: uppercase; color: #00b9ee; font-weight: 700; } .dg-wrapper .dg-center .slide-name { display: block; } .dg-container nav{ width: 58px; position: absolute; z-index: 1000; bottom: 0; left: 50%; margin-left: -29px; } .dg-container nav span{ text-indent: -9000px; float: left; cursor:pointer; width: 24px; height: 25px; opacity: 0.8; background: transparent url(../images/arrows.png) no-repeat top left; } .dg-container nav span:hover{ opacity: 1; } .dg-container nav span.dg-next{ background-position: top right; margin-left: 10px; } @media screen and (max-width: 1000px) { .dg-container {height: 250px;} .dg-wrapper {width: 300px; height: 200px; -webkit-perspective: 600px; -moz-perspective: 600px; -o-perspective: 600px; -ms-perspective: 600px; perspective: 600px;} .dg-wrapper a {width: 300px; height: 200px; background-size: contain;} .dg-wrapper a img {width: 100%; padding-top: 15px;} .dg-wrapper .slide-name {font-size: 15px; line-height: 40px; top: -40px;} } @media screen and (max-width: 800px) { .dg-container {padding-top: 0;} .dg-wrapper a {margin-top: 40px;} .dg-wrapper {-webkit-perspective: 1px; -moz-perspective: 1px; -o-perspective: 1px; -ms-perspective: 1px; perspective: 1px; overflow: hidden;} }