.result-section {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 800px;
    height: 450px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.result-content {
    display: none;
    width: 100%;
}

.result-content h2 {
    margin-top: 0;
}

#duration-text {
    font-weight: bold;
    margin-bottom: 10px;
}

#transcription-text {
    white-space: pre-wrap;
    margin: 10px 0;
    text-align: left;
}

.download-button {
    display: inline-block;
    background-color: #000000; /* Navy blue background */
    color: #ffffff; /* White text color */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-top: 20px;
    text-align: center;
    position: absolute;
    bottom: 10%;
    right: 5%; /* Align the button to the bottom right */
}

.download-button a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.download-button a:hover {
    background-color: var(--secondary-color);
}

.download-button a:active {
    transform: scale(0.95);
}

/* Error message styling for inline display */
.error-message {
    display: none;
    color: red;
    white-space: pre-wrap;
    margin: 10px 0;
}
