body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center; /* Center vertically */
    padding: 40px 0; /* Space at top and bottom */
    min-height: 100vh; /* Allows content to grow beyond viewport */
}

.terminal {
    width: 80%;
    max-width: 800px;
    background-color: #1a1a1a;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    overflow: hidden;
    border: 2px solid #0f0;
    margin-bottom: 20px; /* Ensure space at the bottom */
}

.terminal-header {
    background-color: #333;
    color: #0f0;
    padding: 5px 10px;
    font-size: 16px;
    border-bottom: 1px solid #0f0;
}

.terminal-body {
    padding: 20px;
    color: #0f0;
    position: relative;
    min-height: 0; /* Allow content to dictate size */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
}

form {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

.cron-field {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    background-color: #222;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #0f0;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.1);
}

label {
    margin-right: 15px;
    width: 150px;
    color: #0f0;
}

select {
    background-color: #333;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 5px;
    outline: none;
    border-radius: 3px;
    width: 200px;
    font-family: 'Courier New', Courier, monospace; /* Ensure consistent font */
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    background-color: #0f0;
    border: none;
    color: #000;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    margin: 5px; /* Space between buttons */
    font-family: 'Courier New', Courier, monospace; /* Ensure consistent font */
}

button:hover {
    background-color: #0d0;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

#randomButton {
    background-color: #ff0;
    color: #000;
}

#randomButton:hover {
    background-color: #cc0;
}

.examples-btn {
    background-color: #0f0;
    border: none;
    color: #000;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    margin: 5px;
    font-family: 'Courier New', Courier, monospace;
}

.examples-btn:hover {
    background-color: #0d0;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

.example-btn {
    background-color: #0f0;
    border: none;
    color: #000;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    margin: 2px; /* Small space between example buttons */
    font-size: 12px; /* Smaller font for many buttons */
    font-family: 'Courier New', Courier, monospace;
}

.example-btn:hover {
    background-color: #0d0;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
}

.output {
    margin-top: 20px;
    white-space: pre-wrap;
    text-align: center;
}

.description {
    margin-top: 10px;
    white-space: pre-wrap;
    text-align: center;
    color: #0f0;
    font-style: italic;
    max-width: 600px; /* Added to prevent overflow with new text */
}

.cursor {
    animation: blink 1s step-end infinite;
    position: absolute;
    bottom: 10px;
    color: #0f0;
    left: 50%;
    transform: translateX(-50%);
}

.examples {
    margin: 20px 0;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.examples h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .terminal {
        width: 95%;
        margin-bottom: 10px;
    }
    .cron-field {
        flex-direction: column;
        align-items: flex-start;
    }
    label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
    select {
        width: 100%;
    }
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    button, .examples-btn {
        width: 100%;
        max-width: 300px;
    }
    .example-btn {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px; /* Slightly larger for mobile readability */
    }
    .terminal-body {
        padding: 10px;
    }
}