* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

.page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.welcome h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.welcome p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.start-btn {
    padding: 15px 40px;
    font-size: 18px;
    cursor: pointer;
    background-color: #FF7F50;
    color: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
}

.start-btn:hover {
    background-color: #FF6347;
    transform: scale(1.05);
}

/* Progress Bar Page */
.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(72, 199, 228, 1) 0%, rgba(26, 145, 255, 1) 100%);
    border-radius: 5px;
    animation: progressAnimation 7s ease-out forwards;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 50%;
        background: linear-gradient(90deg, rgba(255, 162, 0, 1) 0%, rgba(255, 84, 0, 1) 100%);
    }
    100% {
        width: 100%;
        background: linear-gradient(90deg, rgba(72, 199, 228, 1) 0%, rgba(26, 145, 255, 1) 100%);
    }
}

/* Progress Bar Container Styling */
.progress-bar {
    width: 80%;
    height: 12px;
    background-color: #ddd;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Smooth Text Animation */
.progress-text {
    font-size: 20px;
    font-weight: bold;
    color: #444;
    margin-top: 20px;
    opacity: 0;
    animation: fadeText 7s ease-out forwards;
}

@keyframes fadeText {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Video Call Page */
.video-call {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
}

.background-video {
    width: 100%;
    height: 100%; /* Ensure it covers the full height of the container */
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover; /* Ensures the video covers the entire screen */
    z-index: -1; /* Keeps the video behind other elements */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent overlay */
    z-index: 1;
}

/* Popup styling */
.popup {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for exact centering */
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    color: white;
    z-index: 2; /* Ensure popup is on top */
}

.popup h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.popup-buttons {
    display: flex;
    justify-content: space-around;
}

.popup button {
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Green for "ANSWER" button */
.answer-btn {
    background-color: #4CAF50; /* Green for "ANSWER" */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.3); /* Subtle green shadow */
}

/* Red for "REJECT" button */
.reject-btn {
    background-color: #F44336; /* Red for "REJECT" */
    color: white;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3); /* Subtle red shadow */
}

.popup button:hover {
    transform: scale(1.1); /* Button hover effect */
}
