/* Generel styling og Mobile First */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.recorder-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

h1 {
    margin-top: 0;
}

.status-display {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
}

.status {
    color: #666;
    margin: 0;
    font-size: 1em;
}

.timer {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin: 5px 0 0 0;
    font-family: 'Courier New', Courier, monospace;
}

.controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.record-button {
    width: 100px;
    height: 100px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0; /* Forhindrer at knappen bliver mindre */
}

.record-button:hover {
    background-color: #c0392b;
}

.record-button.recording::before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.playback-container, .link-container {
    margin-top: 20px;
}

audio {
    width: 100%;
    margin-bottom: 15px;
}

.action-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background-color: #2980b9;
}

#uploadButton {
background-color: #2ecc71;
width: 100%;
}
#uploadButton:hover {
background-color: #27ae60;
}

.link-input-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.link-input-wrapper input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    flex-grow: 1; /* Fylder den resterende plads */
}

.copy-button {
    flex-shrink: 0; /* Forhindrer at knappen bliver mindre */
}


/* Styles for større skærme (PC) */
@media (min-width: 600px) {
    .recorder-container {
        padding: 40px;
    }
}
