.overlay {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 36px 56px 24px 56px;
  border: 1px solid var(--primary-color);
  border-radius: 18px;
  background: rgba(253, 247, 237, 0.5);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 30px rgba(46, 0, 0, 0.05);
  width: 48vw;
  min-width: 300px;
  transition: filter 0.3s ease, background-color 0.3s ease;
}

.initial-overlay {
    padding: 36px 56px 36px 56px;
    gap: 24px;
    width: 48vw;
}

.close-icon {
  position: absolute;
  right: 10px;
  top: 10px;
}

.back-button {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    font-size: 12px;
    gap: 6px;
    color: var(--primary-color);
    font-family: "Heebo-body";
}
.back-icon {
    transform: rotate(180deg);
}

#welcome-header {
    padding: 0;
    margin:0;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap:12px;
}
.start-button {
  display: flex;
  padding: 12px 24px;
  gap: 24px;
  align-items: center;
}

.data-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 250px;
}

#initial-instructions p {
  font-size: 16px;
}

.instruction-area {
  display: flex;
  flex-direction: column;
  min-width: 250px;
}

#instruction-header {
  font-family: "heebo-medium";
}

ul {
  font-family: "heebo-body";
  font-size: 16px;
  line-height: 24px;
  list-style-type: none;
  margin: 0;
  padding: 0;
  color: var(--primary-color);
}
ul li {
  margin-bottom: 4px;
}

.input-area-cont {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  justify-content: space-between;
}

/* #timer-display {
    font-weight: 900;
    font-size: 28px;
} */

.age-activity-cont {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
}

label {
  font-family: "heebo-body";
  font-size: 16px;
  color: var(--primary-color);
}

.step-number {
  font-family: "heebo-title";
  font-size: 48px;
  padding-right: 12px;
  color: var(--primary-color);
}

.input-type {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.input-cont {
  display: flex;
  flex-direction: column;
  min-width: 250px;
  gap: 4px;
}

input {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  font-size: 16px;
  color: var(--primary-color);
  padding: 6px 18px;
}

.button-container {
  width: 100%;
  display: flex;
  padding: 0px 0px 0px 0px;
  justify-content: flex-end;
}

.visualize-button {
  display: flex;
  padding: 12px 24px;
  gap: 24px;
  align-items: center;
}
#heartbeat-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pulse-instruction-area{
    display: flex;
    gap: 10px;
}
.heart-pulse-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.heart-icon {
  width: 200px;
  height: auto;
}
.pulse-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 96px;
  gap: 24px;
  font-family: "heebo-body";
  font-size: 16px;
  color: var(--primary-color);
  margin-top: -24px;
  margin-bottom: -24px;
}
#pulse-count-sec {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 72px;
  gap: 12px;
  min-height: 56px;
}
#heartrate-output-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: flex-end;
  padding-left: 24px;
  width: 100%;
}
.divider-area{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:12px;
    width: 100%;
}
.divider-line {
    width: 100%;
    border-top: 1px solid var(--primary-color);
}
.activity-button-area {
  display: flex;
  justify-content: space-between;
}
.activity-button-area label {
  display: inline-block;
  padding: 4px 16px;
  border: solid 1px #ccc;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s;
}

.activity-button-area input[type="radio"] {
  display: none;
}

.activity-button-area input[type="radio"]:checked + label {
  outline: solid 2px var(--primary-color);
  outline-offset: -1px;
}

.learn-more-btn {
  border: none;
  color: var(--primary-color);
  font-size: 16px;
  text-decoration: underline;
}

.heart-icon {
  transition: transform 0.2s ease;
}

.avg-hr-button {
  margin-top: 8px;
  padding: 4px 0;
  border: none;
  background: none;   
  background-color: transparent; 
  backdrop-filter: none;   
  color: var(--primary-color);
  font-family: "heebo-body";
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1124px) {
    .overlay {
        position: absolute;
        top: 72px;
        transform: translate(-50%, 0);
        overflow-y: auto;
    }

    .heart-pulse-container {
        flex-direction: column;
        gap: 0px;
        margin-top: -12px;
        margin-bottom: 24px;
    }
}
