body{ font-family: 'ITC Avant Garde Gothic'; padding:0; margin:0; text-align: center; height:100%; background: rgb(231 253 128); /*background-image: linear-gradient(180deg, #041123 30%, rgba(4, 12, 35, .85) 100%);*/ } .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { font-family: 'ITC Avant Garde Gothic'; font-weight: bold; } h1{font-size: 4em;margin:0.1em;color:black;margin-top:5%;} h3{font-size: 2em;margin:0.5em;} p{font-size: 1.2em;} img{ width:100%; transition-duration: 0.5s; border-radius:20px; } #actividad{ position: relative; width:65%; margin-top: 2%; } .card { float: left; perspective: 500px; width:33%; } .content { width: 100%; height: 100%; cursor: pointer; transition: transform 1s; transform-style: preserve-3d; } .front, .back { position: absolute; height: 100%; width: 100%; background: transparent; /*line-height: 300px;*/ text-align: center; font-size: 60px; border-radius: 5px; backface-visibility: hidden; } .back { color: white; transform: rotateY( 180deg ); } .splide__slide img{ vertical-align: top !important; border: 2px solid black !important; } .splide__arrow--prev { left: -3em; } .splide__arrow--next { right: -3em; } .frontSelected>.img, .backSelected>.img{height: auto; width: 100%;} #rotate{width:10%;height:auto;position:absolute;top:0;right:0;} #randomSelection, #randomSelection2{margin-top:1%;} button{font-family: 'ITC Avant Garde Gothic' !important;} @media screen and (max-width: 500px) { h1{font-size: 1.6em;margin-bottom: 0.4em;} #actividad{width:80%;} }