/* --- Global Styles & Layout --- */
body {
    font-family: sans-serif;
    background-color: #121212; /* Very Dark Gray */
    color: #e0e0e0; /* Light Gray text */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    
    /* Layout for Sticky Footer: pushes content up and footer down */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* Centers everything horizontally */
}

/* --- Main Content Container --- */
.container {
    background-color: #1f1f1f; /* Slightly lighter gray for card effect */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 600px;
    width: 90%;
    
    /* Center vertically within the remaining space */
    margin: auto 0;
}

h1 {
    color: #4CAF50; /* Green highlight for the title */
    margin-bottom: 20px;
}

/* --- Controls and Buttons --- */
.controls {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

button {
    background-color: #333; /* Dark button background */
    color: #e0e0e0;
    border: 2px solid #4CAF50;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, border-color 0.2s, opacity 0.3s;
    flex: 1 1 150px;
}

button:hover {
    background-color: #444;
}

button:active {
    transform: scale(0.98);
}

button.active {
    background-color: #4CAF50; /* Green fill when active */
    color: #121212; /* Dark text for contrast */
    border-color: #e0e0e0;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Footer --- */
#em-footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 15px 0;
    text-align: center;
    width: 100%;
    
    /* Separator line */
    border-top: 1px solid #333;
    
    /* Ensure it doesn't shrink and stretches to the full width */
    flex-shrink: 0;
    align-self: stretch;
}

.footer-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#em-footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

#em-footer a {
    color: #4CAF50; /* Green accent color for links */
    text-decoration: none;
    transition: color 0.3s;
}

#em-footer a:hover {
    color: #e0e0e0; /* Light gray on hover */
}

#em-footer i {
    font-size: 1.2em;
}

.separator {
    display: inline-block;
    width: 15px;
}

/* --- Media Queries --- */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    .controls {
        gap: 10px;
    }
    button {
        padding: 10px 15px;
        font-size: 14px;
        flex-basis: 100%; /* Stack buttons on very small screens */
    }
}