/* Global Styles */
body {
    font-family: 'Arial', sans-serif; /* Font for better visibility */
    background-color: #181818; /* Dark background */
    color: #f0f0f0; /* Light text color for contrast */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Video Container */
.video-container {
    position: relative; /* Position relative for absolute positioning of children */
    width: 80%;
    max-width: 600px;
    border: 2px solid #bb86fc; /* Light purple border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Darker shadow for depth */
    background-color: #121212; /* Darker background for video container */
}

/* Video Element */
.local-video {
    width: 100%;
    height: auto;
    display: block;
    transform: scaleX(-1);
}

/* Local Canvas Element */
#local-canva {
    position: absolute; /* Position absolute to overlay on video */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 100%; /* Full width to match video */
    height: 100%; /* Full height to match video */
    pointer-events: none; /* Disable interaction with the canvas */
    z-index: 10; /* Lower z-index to ensure it’s behind the feedback canvas */
    transform: scaleX(-1); /* Flip horizontally to match the video */
}

/* Feedback Canvas */
#feedback-canva {
    position: absolute; /* Keep it absolute to overlay */
    top: 20px; /* Adjust to provide some padding from the top */
    left: 20px; /* Adjust to position it on the left side */
    width: 200px; /* Set a fixed width for the feedback display */
    height: 100px; /* Set a fixed height */
    pointer-events: none; /* Ensure no interactions go to the feedback canvas */
    z-index: 20; /* Higher z-index to ensure it overlays the local canvas */
    background-color: rgba(30, 30, 30, 0.9); /* Slightly less transparent dark background */
    border: 2px solid #bb86fc; /* Light purple border for emphasis */
    border-radius: 8px; /* Slightly rounded corners */
    display: flex; /* Center content */
    flex-direction: column; /* Stack content vertically */
    padding: 10px; /* Padding for better spacing */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Dark shadow for depth */
}

/* Feedback Text Styles */
.feedback-text {
    font-size: 18px; /* Larger font for better readability */
    color: #e0e0e0; /* Light color for text */
    margin: 5px 0; /* Margin for spacing between lines */
    text-align: center; /* Center text */
}

/* Accuracy Indicator */
.accuracy {
    font-size: 22px; /* Larger font for accuracy */
    font-weight: bold; /* Bold for emphasis */
    color: #bb86fc; /* Light purple color for consistency */
}

/* Reps Display */
.reps-display {
    font-size: 20px; /* Slightly larger for emphasis */
    font-weight: bold; /* Bold for emphasis */
    color: #00e676; /* Bright green for reps counter */
    margin: 5px 0;
}

/* Dropdown Styles */
.dropdown-container {
    margin: 20px;
    background-color: #1f1f1f; /* Dark background for dropdown */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Dark shadow */
}

/* Select Element */
select {
    padding: 10px;
    border: 1px solid #bb86fc; /* Light purple border */
    border-radius: 5px;
    background-color: #303030; /* Dark background for select */
    color: #f0f0f0; /* Light text color for select */
    font-size: 16px;
    transition: border-color 0.3s;
    width: 100%; /* Full width for better usability */
}

select:focus {
    border-color: #3700b3; /* Darker purple on focus */
    outline: none; /* Remove default outline */
}

/* Label Styles */
label {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0; /* Light color for label */
    margin-right: 10px;
}

.feedbackBox{
    width: 100%;
    max-width: 600px;
    width: 80%;
    height: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
    line-clamp: 7;
    box-sizing: border-box;
    margin: 1rem;
    padding: 1rem;
    border: 1px solid #bb86fc;
    border-radius: 8px;
    background-color: #1f1f1f;
    color: #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .video-container {
        width: 95%; /* Wider on small screens */
    }

    label {
        font-size: 16px;
    }

    select {
        font-size: 14px;
    }
}
