* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    padding: 5px;
    margin: 0;  /* Prevents default browser margins from causing scrollbars */
    
    display: flex;
    flex-direction: column;
    height: 100dvh; 
    align-items: center;
    overflow: hidden; /* Locks page to screen size */
}

h2 {
    margin-top: 5px;
    margin-bottom: 5px; /* Removes massive default spacing */
    text-align: center;
    flex-shrink: 0;     /* Prevents header from squishing */
}

.wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column; /* Forces everything to stack vertically */
    align-items: center;    /* Centers stacked items */
    justify-content: center;
    flex-shrink: 0;
}

#video {
    display: block;
    background-color: #000;
    border: 2px solid #333;
    border-radius: 8px;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; 
    object-fit: cover;   
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    /*max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;  Forces it to stay a normal camera shape when empty 
    object-fit: cover;  */
}

#status-box {
    margin-top: 5px;
    padding: 5px;
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: bold;
    font-size: 12px;
    color: #333;
    text-align: center;
    
    width: 100%;
    max-width: 640px; 
    flex-shrink: 0; /* Prevents status box from squishing */
}

#notification-area {
    margin-top: 5px;
    margin-bottom: 5px; 
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    
    width: 100%;
    max-width: 640px; 
    
    /* Auto Height */
    flex: 1 1 0;
    overflow-y: auto; 

    min-height: 0; 
    
    background-color: #f1f3f5; 
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
