/* Full-screen dashboard grid layout */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Courier New', Courier, monospace; /* For that "dashboard" look */
    background-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px; /* Space between grid items */
    width: 100%;
    height: 100%;
}

.clock-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #333; /* Line between clocks */
    padding: 10px;
    box-sizing: border-box;
}

/* Numbers in the clock (large) */
.number {
    font-size: 48px;
    font-weight: bolder;
    color: #00ff00; /* Digital clock color */
    letter-spacing: 3px;
}

/* "years" and "days" text (half size) */
.unit {
    font-size: 12px;
    color: #00ff00; /* Same color but smaller */
    vertical-align: top; /* Align it better next to numbers */
}

.small-font {
    font-size: 22px;
    color: #999; /* Lighter descriptor */
    margin-top: 10px;
}

/* Make the grid responsive: 
   On smaller screens, change to a single-column layout */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Single column layout */
        grid-template-rows: none; /* Automatically adjust rows */
    }

    .number {
        font-size: 32px;
    }

    .unit {
        font-size: 16px;
    }

    .small-font {
        font-size: 14px;
    }
}

/* Extra small screens: Adjust font size even more for very small devices */
@media (max-width: 480px) {
    .number {
        font-size: 28px;
    }

    .unit {
        font-size: 14px;
    }

    .small-font {
        font-size: 12px;
    }
}