/* General Page Setup */
body {
    background-color: #e0e0e0;
    font-family: Arial, sans-serif;
    padding: 20px;
    margin: 0;
    
    /* Grid Configuration */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 20px; /* Space between the grid items */
    justify-items: center; /* Centers boxes horizontally */
}

/* The Main Box for each section (forSection, whileSection, dowhileSection) */
#forSection, #whileSection, #dowhileSection {
    background-color: #eeeeee; 
    border: 3px solid #000000; /* Thick black border from image */
    padding: 30px;
    width: 450px; /* Fixed width to match the image proportions */
    box-sizing: border-box; /* Ensures padding doesn't break the width */
}

/* Heading: "For Loop", etc. */
h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

/* Form Layout */
label {
    display: inline-block;
    width: 120px; 
    font-size: 16px;
    color: #000;
}

input {
    border: 1px solid #7a7a7a;
    padding: 2px 4px;
    width: 220px;
    font-size: 16px;
    background-color: #ffffff;
    margin-bottom: 5px;
}

/* Green Pill Buttons */
button {
    background-color: #1e7d1e; 
    color: white;
    border: 1px solid #145a14;
    border-radius: 20px; /* Pill shape from image */
    padding: 4px 18px;
    margin-top: 10px;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #156615;
}

/* Output Area */
#forOutput, #whileOutput, #dowhileOutput {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
}