body {
    font-family: 'Noto Sans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #121212;
    color: white;
    overflow: hidden;
}

#status-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    text-align: center;
    width: 80%;
    box-sizing: border-box;
    min-height: 120px;
    color: white;
}

#status-container p {
    margin: 5px 0;
    font-size: 1.1em;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 640px 1fr; 
    align-items: flex-start;
    justify-items: center;
    width: 100%;
    gap: 20px;
    box-sizing: border-box;
}

.side-panel {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 0; /* Remove padding to allow buttons to fill space */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 200px;
    height: 480px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure rounded corners on buttons */
}

.side-panel.left {
    justify-self: end; /* Align panel to the right of its grid cell */
}
.side-panel.right {
    justify-self: start; /* Align panel to the left of its grid cell */
    padding: 15px; /* Add padding back for the content */
}

.side-panel.left ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mode-button {
    background-color: transparent;
    color: #e0e0e0;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px;
    cursor: pointer;
    font-size: 1em;
    width: 100%;
    text-align: left;
    border-radius: 0;
    transition: background-color 0.3s, color 0.3s;
}

.mode-button:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.mode-button:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.mode-button:hover {
    background-color: #2a2a2a;
}

.mode-button.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

#pose-instruction {
    color: #28a745;
    font-size: 1.5em;
    font-weight: bold;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.container {
    position: relative;
    width: 640px;
    height: 480px;
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#webcam, #overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#webcam {
    transform: scaleX(-1);
}

#thirds-settings h3 {
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

#thirds-settings label {
    display: block;
    margin-bottom: 5px;
}
