#videoData {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 110vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding-bottom: 150px;
}

#progressContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ddd;
    margin: 0;
    z-index: 1002;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#progressBar {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    transition: width 0.3s ease;
}

.video-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: calc(100vh - 120px);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

#video, #overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#overlay {
    pointer-events: none;
    z-index: 1;
}

.dashed-oval {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 4px dashed white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.face-position-text {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#button-container {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    z-index: 1;
}

#cameraToggleBtn {
    display: none; /* Hidden by default */
    position: absolute;
    top: 30px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    z-index: 1002;
    cursor: pointer;
    padding: 10px;
}

#cameraToggleBtn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

#cameraAccessButton {
    background-color: #5291d0 !important;
    border-color: #5291d0 !important;
    color: white !important;
    padding: 12px 24px !important;
    font-size: 25px !important;
    border-radius: 30px !important;
    width: 100%;
    cursor: pointer !important;
    display: block !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#heart-container {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px !important;
    background-color: transparent;
    z-index: 1003;
    margin: 0;
    padding: 0;
}

#heartImage {
    width: 80px;
    height: 80px;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.beat-animation {
    animation: beat 1s infinite;
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#circularProgressBar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 2;
}

body.video-active {
    margin: 0;
    padding: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .video-container {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    #cameraToggleBtn {
        display: block; /* Show only on mobile */
    }

    .dashed-oval {
        width: 85%;
        height: 70%;
        border: 3px dashed white;
    }

    .face-position-text {
        font-size: 1rem;
        top: 80%;
    }

    #button-container {
        width: 90%;
        top: 88%;
    }

    #heart-container {
        width: 90% !important;
        top: 70%;
    }

    #heartImage {
        width: 60px;
        height: 60px;
    }
}

/* Small device adjustments */
@media (max-width: 375px) {
    .face-position-text {
        font-size: 0.9rem;
        top: 80%;
    }

    #button-container {
        width: 95%;
        top: 88%;
    }

    #heart-container {
        width: 95% !important;
        top: 70%;
    }

    #cameraAccessButton {
        padding: 10px 20px !important;
        font-size: 16px !important;
        width: 100% !important;
        min-width: 120px !important;
    }
}
