body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: sans-serif;
}

#video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;
}

#indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 5px solid red;
    background-color: red;
    z-index: 20;
}

#ui-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#model-selector {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    margin-bottom: 10px; /* Add space below selector */
}

/* New styles for confidence scores */
#confidence-container {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    min-width: 180px;
    text-align: right;
}

.confidence-label {
    font-size: 16px;
    font-weight: bold;
}
/* End of new styles */


#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 24px;
}

/* Add this new block to your existing style.css file */
#predictions-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
    min-width: 250px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Optional: Style for each prediction line */
.prediction-line {
    display: flex;
    justify-content: space-between;
}

/* Add this new block for the start overlay */
#start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.start-text {
    font-size: 2em;
    font-family: sans-serif;
    padding: 20px;
    border: 2px solid white;
    border-radius: 10px;
}

/* ... (keep body, video, canvas, indicator, ui-container, etc. styles) ... */
#controls-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.controls-box {
    text-align: center;
}

.control-button {
    font-size: 1.5em;
    font-family: sans-serif;
    padding: 15px 30px;
    margin: 10px;
    border: 2px solid white;
    border-radius: 10px;
    background-color: transparent;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.control-button:hover {
    background-color: white;
    color: black;
}
