@font-face {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: rgba(0, 0, 0, 0.87);
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.00938em;
  background-color: #fff;
  padding: 10px 15px 0;
  min-height: 100dvh;
  position: relative;
}

.hidden {
  display: none !important;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  max-width: 100%
}

.content {
  margin-top: 24px;
}

.footer {
  font-size: 1.2rem;
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  padding: 0 10px;
}

.footer .brand-name {
  color: #ff4b5c;
  padding-right: 5px;
}

audio, canvas, progress, video {
  display: inline-block;
  vertical-align: baseline;
  box-sizing: border-box;
}

.sound {
  margin-top: 30px;
  display: flex;
  gap: 3px;
}

.sound .sound-text {
  color: rgba(0, 0, 0, 0.67);
}

.sound .button {
  cursor: pointer;
}

.sound .button.pause {
  display: none
}

.sound.active .button.pause {
  display: unset
}
.sound.active .button.play {
  display: none
}

.sound.active .disc {
  display: inline-block;
  animation: spin 2s linear infinite; 
}

.heart-checkbox {
  display: flex;
  cursor: pointer;
  gap: 15px;
  align-items: center;
  font-size: 1.5rem;
}

.heart-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.heart-icon-box {
  height: 40px;
  outline: 2px solid #000;
  outline-offset: 4px;
  border-radius: 4px;
}

.heart-checkbox .heart-icon {
  width: 40px;
  height: 40px;
  fill: transparent;
  stroke: #52525252;
  stroke-width: 2;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.heart-checkbox:hover .heart-icon {
  transform: scale(1.1);
}

.heart-checkbox input:checked + * .heart-icon {
  fill: #ff4b5c;
  stroke: #ff4b5c;
}

.heart-checkbox .heart-icon.is-animating {
  animation: heart-beat 0.8s ease-in-out infinite;
}

.disabled {
  pointer-events: none;
}

.heart-text {
  color: #333;
  border-right: 2px solid transparent;
  white-space: nowrap;
  min-height: 36px;
  font-weight: 700;
}

.heart-text.blinking{
  border-right-color: #ff4b5c;
  animation: blink-caret 0.75s step-end infinite;
}
.heart-text.typing {
  border-right-color: #ff4b5c;
}

@keyframes heart-beat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); } /* 0.12 */
  30% { transform: scale(1); }   /* 0.24 */
  45% { transform: scale(1.3); } /* 0.36 */
  60% { transform: scale(1); }   /* 0.48 */
  100% { transform: scale(1); }  /* 0.8 */
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #ff4b5c; }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
