/* Make the page clean and centered */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Headings */
h1, h3 {
    margin-bottom: 20px;
}

/* Container for status block */
#status h1 {
    font-size: 1.4rem;
    padding: 15px;
}

/* Base button style */
button {
    width: 90%;
    max-width: 350px;
    height: 100px;
    padding: 18px;
    font-size: 1.2rem;
    margin: 12px 0;
    border-radius: 12px;
    border: none;
    color: white;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

/* Green button for working */
#working {
    background-color: #28a745;
}

/* Red button for NOT working */
#not-working {
    background-color: #dc3545;
}

/* Button press animation */
button:active {
    transform: scale(0.96);
}

/* Mobile-specific tweaks */
@media (max-width: 600px) {

    /* Make text larger */
    h1, h3 {
        font-size: 1.6rem;
    }

    #statusBox {
        padding: 30px;
        font-size: 1.3rem;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
        box-sizing: border-box;
    }

    #statusText {
        width: 100%;
        box-sizing: border-box;
    }

    /* Put buttons at the bottom naturally */
    .button-container {
        margin-top: auto;      /* pushes buttons downward */
        padding-bottom: 20px;  /* spacing from bottom */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    button {
        width: 100%;
        max-width: none;
        height: 60px;
        font-size: 1.3rem;
        padding: 18px;
        margin: 10px 0;
        box-sizing: border-box;
    }
}

/* Default status box formatting */
#statusBox {
    width: 90%;
    max-width: 350px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
}

/* NOT working (red) */
.status-red {
    background-color: #ffcccc;
    color: #b30000;
}

/* Working (green) */
.status-green {
    background-color: #ccffcc;
    color: #006600;
}

.icon-green {
    color: white;
    background-color: #28a745;
    padding: 4px 6px;
    border-radius: 4px;
}

.icon-red {
    color: white;
    background-color: #dc3545;
    padding: 4px 7px;
    border-radius: 4px;
}