body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
}

.test-container {
    width: 95vw;
    max-width: 1400px;
    height: 95vh;
    background-color: #fff;
    padding: 20px 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #007bff;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

#test-screen {
    flex: 1; 
    display: flex;
    flex-direction: column;
    min-height: 0; 
}

#scrollable-content {
    flex: 1; 
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

#start-screen {
    text-align: center;
}

#task-title {
    font-size: 28px;
    font-weight: normal;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
    flex-shrink: 0; 
}

#question-area {
    flex: 1; 
    min-height: 0; 
    margin-bottom: 30px;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
}

#question-area ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

#question-area img {
    max-width: 100%;
    max-height: 100%; 
    height: auto;
    display: block;
    margin: 0 auto; 
    border: 1px solid #ddd;
    border-radius: 4px;
    object-fit: contain; 
}

.describe-image-layout {
    display: flex;
    gap: 20px;
    align-items: stretch; 
    width: 100%;
    height: 100%; 
}

.describe-image-layout .image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.describe-image-layout .image-wrapper img {
    max-width: 100%;
    max-height: 100%; 
    object-fit: contain;
}

.describe-image-layout .instructions-wrapper {
    flex: 1;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: flex; 
    flex-direction: column;
    justify-content: center;
}

#status-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0; 
}

.status-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

.status-box h3, .status-box p {
    margin: 0 0 10px 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

progress {
    width: 100%;
    height: 12px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    background-color: #28a745;
    border-radius: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 8px;
    background: #d3d3d3;
    outline: none;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
}

.footer-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.footer-controls button {
    margin-left: 10px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}