@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@700&display=swap");

#backdrop {
    display: flex;
    transition: opacity 1s ease-out 1s;
    opacity: 1.0;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    color: white;
}

#backdrop > div {
    display: block;
    padding: 1em;
    width: 60vw;
    background-image: linear-gradient(
    40deg,
    #fffc00 0%,
    #fc00ff 45%,
    #00fffc 100%
    );
    border-radius: 15px;
    color: white;
    box-shadow: 
    4px 4px 4px rgba(0, 0, 0, 0.5),
    inset 10px 0 0 rgba(255, 255, 255, 0.3),
    inset 0 10px 0 rgba(255, 255, 255, 0.3);
}

#backdrop .lovelies {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#backdrop .lovelyperson {
    background: black;
    color: #fffc00;
    font-size: 1.5rem;
    border-radius: 15px;
    padding: 0.5lh;
    margin: 2px 2px;
}

#backdrop .lovelyperson a {
    text-decoration: none;
    color: inherit;
}

#backdrop .lovelyperson:hover {
    outline: 4px solid #fffc00a0;
    outline-offset: -6px;
}

#backdrop .lovelyperson.wrong {
    opacity: 0.0;
    transition: opacity 0.5s ease-in;
}

#backdrop .lovelyperson.right {
    background-color: #fffc00;
    color: black;
    transition: background-color 0.4s ease-in;
    transition: color 0.6s ease-in;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: "Righteous", cursive;
  min-height: 100vh;
  background-color: #a9c9ff;
  background-image: linear-gradient(180deg, #a9c9ff 0%, #ffbbec 100%);
}

body h1, #backdrop h1 {
    padding: 0.33em 10vw;
    color: white;
    text-shadow: 2px 2px #000;
    /* background:rgba(255, 255, 255, 0.2); */
}

.container {
  max-width: 100vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 35px;
  margin: 0 auto;
  padding: 0px 0;
}

.container .card {
  position: relative;
  width: 300px;
  height: 400px;
  margin: 0 auto;
  background: #000;
  border-radius: 15px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

.card .face {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .face.face1 {
  box-sizing: border-box;
  padding: 20px;
}

.content .stars {
    position: absolute;
    display: block;
    width: 100%;
    height: 1lh;
    top: 0;
    right: 0;
    background: #fffc00;
    color: black;
    overflow: hidden;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    text-align: center;
    transition: opacity 0.4s linear;
    opacity: 0.5;
}

.content .stars:hover {
    transition: opacity 0.6s linear;
    opacity: 1.0;
}

.content .stars a {
    color: inherit;
    text-decoration: none;
    font-style: normal;
}

.content .stars .answer {
    display: none;
}

.content h2 {
  margin: 0;
  padding: 0;
  font-family: 'Noto Emoji', sans-serif;
  font-size: 200%;
  text-align: center;
}

.content a {
    font-style: italic;
    margin: 0 0.5ch;
    text-decoration: underline;
    text-decoration-color: #fffc00; 
}

.content h2, .content p {
  background-color: #fffc00;
  /* #00fffc #fc00ff */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
}

.card .face.face2 {
  transition: 0.5s;
}

.card .face.face2 h2 {
  margin: 0;
  padding: 0;
  font-size: fit-content;
  color: #fff;
  transition: 0.5s;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
  white-space: nowrap;
}

.card:hover .face.face2 {
  height: 60px;
}

.card:hover .face.face2 h2 {
  font-size: 2em;
}

.card:nth-child(3n+1) .face.face2 {
  background-image: linear-gradient(
    40deg,
    #fffc00 0%,
    #fc00ff 45%,
    #00fffc 100%
  );
  border-radius: 15px;
}

.card:nth-child(3n+2) .face.face2 {
  background-image: linear-gradient(
    40deg,
    #fc00ff 0%,
    #00fffc 45%,
    #fffc00 100%
  );
  border-radius: 15px;
}

.card:nth-child(3n+3) .face.face2 {
  background-image: linear-gradient(
    40deg,
    #00fffc 0%,
    #fc00ff 45%,
    #fffc00 100%
  );
  
  border-radius: 15px;
}
