* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    color: black;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Kindle 8th Gen Portrait Resolution is 600x800 */
    /* Make it 50px taller to enable the swipe-to-hide trick */
    width: 600px;
    height: 850px; 
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto; 
}

/* Portrait Layout */
.trmnl-layout {
    display: flex;
    flex-direction: column;
    
    /* The exact physical screen size */
    width: 600px;
    height: 800px;
    
    /* 50px buffer at the top. When you swipe up, this hides and the dashboard aligns perfectly */
    margin-top: 50px; 
    border: 6px solid black; 
}

/* Base Panel Styling */
.panel {
    flex: 1; /* Forces all 3 sections to be exactly equal in height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border-bottom: 4px solid black;
}

.panel:last-child {
    border-bottom: none;
}

/* TRMNL Typography Framework - Scaled for Portrait */
.title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.value {
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.content {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 15px;
}

.meta {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    border-top: 3px solid black;
    padding-top: 15px;
}

/* Status Text Formatting */
.center-text {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
}