body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

.input-section {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.controls-section {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="file"], input[type="number"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    width: 100px;
}

button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#downloadLink {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
}

.canvas-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    overflow: auto;
}

.canvas-wrapper {
    min-width: 0;
}

canvas {
    border: 1px solid #ccc;
    max-width: 100%;
    height: auto; 
    display: block;
    margin: 0 auto;
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
}

/* Add this to allow canvas to grow when in actual browser fullscreen */
canvas:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    object-fit: contain; /* Ensures aspect ratio is maintained in fullscreen */
}

/* Custom Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

#seekSlider {
    flex-grow: 1;
    cursor: pointer;
}

/* Progress Bar Styles (used for recording progress) */
.progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin-bottom: 10px;
}

.progress-bar {
    width: 0%;
    height: 20px;
    background-color: #4CAF50;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 5px;
}

.progress-text {
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
}

/* Console Styles */
.console {
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 10px;
    height: 100px;
    overflow-y: scroll;
    text-align: left;
    font-family: monospace;
    font-size: 0.8em;
    margin-bottom: 20px;
}
