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

html {
  font-size: 62.5%;
}

.container {
  min-height: 100vh;
  min-height: 100svh;
  background-color: rgba(229, 211, 15, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* JOKE  */

.joke {
  background-color: rgba(211, 154, 9, 0.867);
  color: rgba(14, 14, 14);
  box-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, 0.2);
  width: min(90%, 70rem);
  padding: max(2vw, 2rem);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  font-family: monospace;
}

.joke__heading {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.2rem, 1vw + 1rem, 2.4rem);
  font-weight: 900;
  text-transform: capitalize;
}

.joke__text {
  font-size: 1.6rem;
  text-wrap: pretty;
  width: 75%;
  line-height: 1.65;
}

.joke__btn {
  border: none;
  padding: 1rem 3rem;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s;
}

.joke__btn span {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: capitalize;
  color: rgba(14, 14, 14, 0.6);
  transition: color 0.4s;
}

.joke__btn::after {
  content: '';
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
  width: 7rem;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  transition: all 0.4s;
}

.joke__btn:hover {
  transform: translateY(-0.4rem);

  span {
    color: rgba(255, 255, 255, 0.9);
  }

  &::after {
    width: 100%;
    border-radius: inherit;
  }
}
