.header {
    background-color: #b50c00;
    padding: 15px;
    text-align: center;
    color: white;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    position: relative;
    top: -20px;
    width: 100%;
    left: -20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
}
.filter-container {
    margin: 10px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.filter-container label {
    margin-right: 20px;
    font-family: Arial, sans-serif;
}
.filter-container input[type="checkbox"] {
    margin-right: 5px;
}
.muscle-label {
    text-align: left;
    margin-left: 40px;
    margin-bottom: 10px;
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    display: block;
}
.visualization-container {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 20px;
    margin-top: 60px;
    margin-bottom: 100px;
}
.centered-image {
    max-width: 25%;
    margin-top: 4px;
    height: auto;
}
#arrow {
    display: none;
}

/* Responsive positioning container */
.visualization-container {
    /* aspect-ratio: 16/9; */
    min-height: 400px;
    max-height: 800px;
    position: relative;
    width: 96%;
}

/* Base styles for all overlays */
[class^="overlay-"] {
    position: absolute;
    transform: translate(-50%, -50%); /* Center the element relative to its position */
    display: none;
}

/* SOUNDS */
.overlay-image1 {
    max-width: 5%;
    height: auto;
    left: 62.9%; /* Position from left edge */
    top: calc(5.7vw);  /* Position from top edge */
}

.overlay-image2 {
    max-width: 4%;
    height: auto;
    left: 49.9%;
    top: calc(25.7vw);
}

/* ELECTRICAL */
.overlay-Pwave {
    max-width: 7%;
    height: auto;
    left: 45%;
    top: calc(-2.7vw);
}

.overlay-QRS {
    max-width: 7%;
    height: auto;
    left: 59%;
    top: calc(-1vw);
}

.overlay-Twave {
    max-width: 7%;
    height: auto;
    left: 59%;
    top: calc(25vw);
}

.overlay-Uwave {
    max-width: 7%;
    height: auto;
    left: 38%;
    top: calc(22.5vw);
}

/* ABNORMALITIES */
.overlay-S3 {
    max-width: 4%;
    height: auto;
    left: 37%;
    top: calc(17.5vw);
}

.overlay-S4 {
    max-width: 3.8%;
    height: auto;
    left: 52%;
    top: calc(-1.4vw);
}

.overlay-S_murmur {
    max-width: 7%;
    height: auto;
    left: 64%;
    top: calc(18vw);
}

.overlay-D_murmur {
    max-width: 7%;
    height: auto;
    left: 37%;
    top: calc(5vw);
}

/* MODAL */
.overlay-box {
    display: none;
    transform-origin: top center;
    position: absolute;
    top: 65%;
    left: 13.5%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    max-width: 20%;
    height: auto;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}
.overlay-box2 {
    display: block;
    top: 60%;
    right: 13.5%;
    transform: translate(50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    max-width: 20%;
    height: auto;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}
.overlayheading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.text-content {
    margin: 0;
    padding-right: 20px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
}
#playAnimation {
    display: block;
    margin: 0 auto 20px;
    padding: 10px 20px;
    background-color: #b50c00;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;    
    text-align: left;
    margin-left: 40px;
    margin-top: 20px;
    font-size: 15px;
}
#playAnimation:hover {
    background-color: #800900;
}
#arrow.centered-image {
    animation: rotate 2s linear infinite;
    display: none;  
}
#arrow.centered-image:hover {
    animation-play-state: paused;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}   
#stopAnimation {
    display: none;
    margin: 0 auto 20px;
    padding: 10px 20px;
    background-color: #b50c00;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;    
    text-align: left;
    margin-left: 40px;
    margin-top: 20px;
    font-size: 15px;
}
#stopAnimation:hover {
    background-color: #800900;
}   
.playSound {    
    padding: 12px; 
    background-color: #b50c00; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    font-family: 'Montserrat', sans-serif; 
    cursor: pointer; 
    margin-top: 10px;
    align-items: center;
    display: none;
}
.playSound.active {
    display: flex;  /* or display: block; */
}
.playSound:hover {
    background-color: #800900;
}
#stopSound {
    display: none;
}
.playIcon {
    width: 20px;
    height: auto;
    padding-left: 10px;
}
.horizontalECG {
    padding-left: 20px;
    padding-top: 20px;
}
.arrow1 {
    width: 20px;
    height: auto;
    padding-left: 20px;
    animation: moveArrow 2s linear infinite;
    top: 50%;
    left: 0;
}

@keyframes moveArrow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200px); /* Adjust this value based on ECG image width */
    }
}
.footer {
    text-align: left;
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    margin-top: 40px;
    margin-left: 40px;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-decoration: none;
}
a {
    color: #333;
    text-decoration: none;
}   
a:hover {
    color: #b50c00;
}