* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* background: #a7d9ae; */
  background: #222;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1 {
  text-align: center;
  color: white;
  font-size: 48px;
}

header {
  margin: 2em auto;
}

.card-container {
  width: 1080px;
  height: 600px;
  margin: auto;
  padding: 2em;
  border: 5px solid #fff;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: space-around;
}

.card-container:focus {
  outline: none;
}

.card {
  width: 210px;
  height: 360px;
  border: 5px solid #fff;
  border-radius: 10px;

  background: #5d878c;

  perspective: 1000px;
}

.card-name,
.card-title {
  color: white;
  margin: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: all 0.6s;
  transform-style: preserve-3d;
}

.card-inner.flipCard {
  transform: rotateY(180deg);
}

.card-back,
.card-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card-front {
  transform: rotateY(180deg);
}

.card-back {
}

/* .is-switched {
  transform-style: preserve-3d;
  animation: rotate-inverse 0.6s linear both;
}

.is-front {
  transform-style: preserve-3d;
  animation: rotate 0.6s linear both;
} */

.draw-btn {
  border: 6px #fff solid;
  border-radius: 50px;
  background: #f2668b;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  height: 80px;
  width: 80px;
  box-shadow: 0px 0px 10px #666;
  cursor: pointer;
}

/* #read-btn {
  display: none;
} */

.button-container {
  margin: 2em auto;
  padding: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 5px solid #fff;
  border-radius: 10px;
  width: 1080px;
}

.tarot-card {
  width: 200px;
  height: 350px;
  border-radius: 10px;
}

.reading-container {
  margin: 0 auto 2em auto;
  padding: 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 5px solid #fff;
  border-radius: 10px;
  width: 1080px;

  color: white;

  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-around;
}

.reading-tarot-container {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: space-around;
}

h2 {
  text-align: center;
  padding-bottom: 10px;
}

.tarot-reading-content {
  text-align: justify;
}

/* //anim

@keyframes rotate {
  0% {
    transform: rotateY(0);
  }
  70% {
    transform: rotateY(200deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}

@keyframes rotate-inverse {
  0% {
    transform: rotateY(180deg);
  }
  70% {
    transform: rotateY(-20deg);
  }
  100% {
    transform: rotateY(0);
  }
} */
