body {
  margin: 0;
  overflow: hidden;
  background-color: #2c3e50;
  font-family: sans-serif;
}

#container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#start-btn {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 40px;
  font-size: 20px;
  background: #E63946;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

#start-btn:hover {
  transform: translateX(-50%) scale(1.05);
}

.red {
  color: #E63946 !important;
}

.next-page-btn {
  position: absolute;
  left: 50%;
  margin-left: -32px;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #e63946;
  color: white;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.next-page-btn:hover {
  transform: scale(1.05);
}

.arrow-icon {
  position: relative;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.arrow-icon::after {
  position: absolute;
  top: 50%;
  right: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.text-source-host {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.card-copy {
  box-sizing: border-box;
  width: 440px;
  color: #29221d;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.08;
}

.card-copy h2 {
  margin: 10px 0 20px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: #0064E9;
}

.card-copy p {
  margin: 0 0 30px;
}

.card-copy p:last-child {
  margin-bottom: 0;
}

.card-copy--right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card-copy--right p {
  margin: 0;
}

.card-photo {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border-radius: 4px;
  object-fit: cover;
}

#credits-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  background: #E63946;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

#credits-btn:hover {
  transform: scale(1.1);
}

#credits-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

#controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.control-btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: #E63946;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.control-btn:hover {
  transform: scale(1.1);
}

#mute-btn .control-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#reload-btn {
  font-size: 24px;
}

#mute-btn[data-playing="true"] .icon-play,
#mute-btn[data-playing="false"] .icon-pause {
  display: none;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0064E9;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  transition: opacity 1.5s ease-in-out;
}
