@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  font-family: "Dancing Script", serif;
  font-weight: 500;
}

/*
    9. Create a root stacking context
  */
#root,
#__next {
  isolation: isolate;
}

main {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding-top: 60px;
}

:root,
body {
  min-height: 100%;
  height: 100%;
}
@media (min-width: 600px) {
  main {
    margin: 0 auto;
    width: 85%;
    padding-top: 120px;
  }
}

@media (min-width: 1024px) {
  main {
    margin: 0 auto;
    width: 80%;
    padding-top: 160px;
  }
}

body {
  background-color: hsl(281, 100%, 96%);
  font-family: "Lato", sans-serif;
}

.title {
  text-align: center;
  /* font-family: "Dancing Script", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal; */
  isolation: isolate;
}

.center {
  margin: 0 auto;
  width: 100%;
  /* display: flex; */
  flex-direction: column;
  align-items: center;
}

.buttons-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 5px;
}

.button-wrapper {
  max-width: 300px;
  min-width: 150px;
  height: 150px;

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

.yesnobutton {
  padding: 5px 15px;
  background-color: hsl(320, 100%, 75%);
  border-radius: 2px;
  color: hsl(317, 100%, 95%);
  border: none;
  cursor: pointer;
}

#button-runner-container {
}

#no-button {
  position: relative;
  left: 0;
  top: 0;
  transition: top 0.3s ease-out, left 0.3s ease-out;
}
.effect-text {
  color: hsl(350, 100%, 60%);
  font-weight: 600;
  position: relative;
  isolation: isolate;
  z-index: 2;
}
:root {
  --heartColor: hsl(349, 100%, 89%);
}
.heart {
  z-index: -1;
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--heartColor);
  transform: rotate(-45deg);
  animation: float 2s infinite ease-in-out;
  opacity: 1; /* Start fully visible */
  transition: opacity 0.5s ease-in-out; /* Smooth fade-out transition */
}

.heart::before,
.heart::after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--heartColor);
  border-radius: 50%;
}

.heart::before {
  top: -5px;
  left: 0;
}

.heart::after {
  top: 0;
  left: 5px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }
  50% {
    transform: translateY(-20px) rotate(-45deg);
  }
}
/* Fade-out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.heart.fade-out {
  animation: fadeOut 0.2s ease-in-out forwards; /* Apply fade-out animation */
}

.timerText {
  /* font-family: "Dancing Script", serif; */
  /* font-weight: 400; */
  font-size: smaller;
}
.timerDigit {
  /* font-family: "Lato", sans-serif;
  font-weight: 400; */
  font-size: large;
}

#kc-text {
  margin-top: 100px;
  font-family: "Dancing Script", serif;
  font-weight: 400;
  position: absolute;
  bottom: 10px;
}

.content-p {
  max-width: 400px;
  text-wrap: balance;
  text-align: center;
}
