/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
background-color: #003366;
}
#recorded-screen {
  max-width: 440px;
}

}
/* Full-Screen Video Background */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
}

/* General Overlay Style */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #234f91e6;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Buttons */
button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin: 10px 0;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #0055a4;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Video for Live Recording */
#live-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
    background: black;
}

/* Recorded Video/Audio Display */
#recorded-video,
#recorded-audio {
    margin-top: 15px;
    width: 100%;
    border-radius: 5px;
}

/* Download Links */
a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #006400;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #228b22;
}

/* Responsive Design */
@media (min-width: 768px) {
    .overlay {
        max-width: 500px;
    }

    button {
        font-size: 1.1em;
    }
}
