body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #121212;
    font-family: Arial, sans-serif;
    overflow: hidden;
    margin-left: 5%;
    margin-right: 5%;
}

#text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

#instruction-text {
    font-size: 1rem;
    color: #cccccc;
    margin: 10px 0;
}

#button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #282828;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #ffffff;
    color: #121212;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

button:hover {
    background-color: #cccccc;
}

#record-button.active {
    background-color: #ff4d4d;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

button.disabled {
    background-color: #888888;
    cursor: not-allowed;
    pointer-events: none;
}

/* Overlay for the green checkmark */
#success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 255, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

#success-overlay svg {
    width: 100px;
    height: 100px;
}

/* Show overlay when active */
#success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}