/* css/styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #129B7F;
    color: #129B7F;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body stretches to at least the height of the viewport */
}

header {
    background-color: #122A44;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

header h2 {
    margin: 0;
    font-size: 1.2em;
    margin-top: 5px;
    font-weight: normal;
    color: #2BB9D9;
}

main {
    flex: 1; /* Allow the main content to grow and take up available space */
    padding: 20px 10px;
    margin-top: 80px; /* Ensure content isn't blocked by the header */
    margin-bottom: 80px; /* Ensure content isn't blocked by the footer */
}

#nodes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    justify-content: center;
}

.node-card, .details-card {
    background-color: #122A44;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    text-align: left;
}

.node-card h3, .details-card h3 {
    color: #129B7F;
}

.node-card p, .details-card p {
    margin: 5px 0;
    color: #129B7F;
}

.status {
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 5px;
}

.status.online {
    color: #36D282;
    background-color: #E7FBE7;
}

.status.offline {
    color: #129B7F;
    background-color: #FBE7E7;
}

a.button, button {
    display: inline-block;
    background-color: #2BB9D9;
    color: white;
    border: none;
    padding: 10px;
    margin: 10px 0;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}

a.button:hover, button:hover {
    background-color: #129B7F;
}

footer {
    background-color: #122A44;
    color: white;
    padding: 10px 0;
    text-align: center;
    margin-top: auto; /* Ensure footer stays at the bottom */
}

footer p {
    margin: 0;
}
