@import url('https://fonts.googleapis.com/css2?family=Viga&display=swap');

:root {
  --fuenteTexto: 'Viga', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

figure {
  width: 1cm;
  height: 1cm;
  size: 0cm;
}

body {
  /* background-image: url(../image/FondoOmar.png);*/
  background: #005c97;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right,
      #363795,
      #005c97);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right,
      #363795,
      #005c97);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  font-family: var(--fuenteTexto);
}

main {
  height: calc(100vh - 100px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  overflow: hidden;
}

h1 {
  font-size: 20px;
  text-align: center;
  color: wheat;
}

.titulo {
  text-align: center;
  font-size: 30px;
  color: rgb(16, 124, 124);
  text-shadow: 0px 0px 8px rgb(255, 255, 255);
}

.content-all {
  width: 200px;
  perspective: 800px;
  position: relative;

}

.card {
  height: 200px;
}

.content-carrousel {
  width: 100%;
  position: absolute;
  animation: rotar 15s infinite linear;
  transform-style: preserve-3d;

}

.content-carrousel:hover {
  animation-play-state: paused;
  cursor: pointer;
}

.content-carrousel>figure {
  width: 65%;
  height: 130px;
  overflow: hidden;
  position: absolute;

  box-shadow: 0px 0px 20px 0px black;
  transition: all 300ms;
  background: rgb(231, 231, 231);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 1s;
}

.content-carrousel figure:hover {
  box-shadow: 0px 0px 3px black;
  transition: background 300ms;
  background: #11998e;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #38ef7d, #11998e);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #38ef7d, #11998e);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


}

.content-carrousel figure:nth-child(1) {
  transform: rotateY(0deg) translateZ(300px);
}

.content-carrousel figure:nth-child(2) {
  transform: rotateY(40deg) translateZ(300px);
}

.content-carrousel figure:nth-child(3) {
  transform: rotateY(80deg) translateZ(300px);
}

.content-carrousel figure:nth-child(4) {
  transform: rotateY(120deg) translateZ(300px);
}

.content-carrousel figure:nth-child(5) {
  transform: rotateY(160deg) translateZ(300px);
}

.content-carrousel figure:nth-child(6) {
  transform: rotateY(200deg) translateZ(300px);
}

.content-carrousel figure:nth-child(7) {
  transform: rotateY(240deg) translateZ(300px);
}

.content-carrousel figure:nth-child(8) {
  transform: rotateY(280deg) translateZ(300px);
}

.content-carrousel figure:nth-child(9) {
  transform: rotateY(320deg) translateZ(300px);
}

.content-carrousel figure:nth-child(10) {
  transform: rotateY(360deg) translateZ(300px);
}


.content-carrousel img {
  width: 90%;
  object-fit: cover;
}

.content-carrousel img:hover {
  transform: scale(0.9);
  transition: transform 300ms;
}

@keyframes rotar {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

.targetas {
  background: rgb(250, 244, 244);
  width: 100%;
  height: 100px;
  position: fixed;
  bottom: 0px;
  font-family: var(--fuenteTexto);
  text-align: center;
  padding: 20px 0 0 0;
}


@media screen and (max-width:600px) {

  .content-carrousel figure:nth-child(1) {
    transform: rotateY(0deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(2) {
    transform: rotateY(40deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(3) {
    transform: rotateY(80deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(4) {
    transform: rotateY(120deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(5) {
    transform: rotateY(160deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(6) {
    transform: rotateY(200deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(7) {
    transform: rotateY(240deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(8) {
    transform: rotateY(280deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(9) {
    transform: rotateY(320deg) translateZ(150px);
  }

  .content-carrousel figure:nth-child(10) {
    transform: rotateY(360deg) translateZ(150px);
  }

  .content-all {
    width: 150px;
  }
}