/* Make the body take up the full screen height and prevent scrolling */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevents the whole page from scrolling */
}

body {
    font-family: sans-serif;
    background-color: #121212;
    color: white;
    display: flex;
    flex-direction: column; /* Stack header, button, and frame vertically */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Force container to be exactly device height */
    padding: 20px;
    box-sizing: border-box;
}

header {
    flex-shrink: 0; /* Prevents header from shrinking */
    text-align: center;
    margin-bottom: 15px;
}

button {
    background-color: #5865F2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 0 auto;
}

/* THE ADJUSTING FRAME */
.frame {
    flex-grow: 1; /* This tells the frame to take up ALL remaining height */
    margin-top: 20px;
    background-color: #2f3136;
    border: 2px solid #444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Keeps image inside */
    position: relative;
}

#display-img {
    /* This ensures the image fills the dynamic frame without distortion */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

#status {
    font-size: 11px;
    color: #b9bbbe;
    text-align: center;
    margin-top: 5px;
}

.hidden { display: none; }
