body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 20px;
    background: #f5f5f5;
}

p {
    line-height: 2.25;
    margin: 0px;  
}

button {
    padding: 14px 22px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background: #4a6fa5;
    color: white;
    cursor: pointer;
}

button:hover, .download-sample-button:hover {
    background: #3b5a87;
}

input {
    width: 50px;
    padding: 6px;
    margin-right: 10px;
    font-size: 18px;
    text-align: center;
}

select {
    width: 100%;
    font-size: 16px;
    white-space: pre-wrap;
    flex: 1;
}

/* BANNER */
#banner {
    background: #4a6fa5;
    color: white;
    text-align: center;
    align-items: center;
    height: 60px;
    font-size: 30px;
    font-weight: bold;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#banner button {
    margin-right: 20px;
    margin-left: auto;
    padding: 5px;
}

#banner button:hover {
    background: #4a6fa5;
}

    
/* STEP STRUCTURE*/
.step {
    display: none;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}  

.step-title {
    height: 75px;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}

.step-content {
    height: 400px;
}


/* COMMON LAYOUTS */
.centered-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.two-column-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.two-column-block > div {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.list-title {
    font-weight: bold;
    text-align: center;
    padding-bottom: 15px;
}

.column-input-or-button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14pt;
    padding-top: 20px;
}



/* WELCOME */


/* TUTORIAL */
iframe {
    display: block;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
}


/* UPLOAD */
#fileDropzone {
    margin-left: auto;
    margin-right: auto;
    width: 750px;
    height: 350px;
    font-size: 20px;
    line-height: 2.25;
    background-color: #d9dde3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}


/* NUMBERS */
.numbers-column {
    display: grid;
    gap: 50px;
}

#studentCount {
    font-weight: bold;
}


/* TOPICS */
.topic-constraint-button {
    width: 135px;
}

#linkTopicsButton {
    margin-right: 50px;
}

#boundSetButton {
    margin-right: 10px;
}

#boundSetInputBlock {
}

#setMinTitle{
    font-size: 14px;
}

#minmaxDivider {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 20px;
}

.bound-input {
    width: 30px;
    margin: 0;
}

.bound-input::-webkit-outer-spin-button,
.bound-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* STUDENTS */
.student-constraint-button {
    width: 120px;
    margin-left: 15px;
    margin-right: 15px;

}


/* OVERRIDE */
.buffer-between-selectors {
    height: 20px;
}
.manual-override-button {
    width: 200px;
}

#forceAssignmentButton {
    margin-right: 40px;
}

.column-input-or-button-row-old button {
    width: 275px;
}


/* GENERATE */

.generate-block {
    display: block;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#generateButton {
    margin-top: 100px;
}


/* OUTPUT WINDOWS */
.output-window {
    width: 100%;            /* like select width */
    flex: 1;
    min-height: 0;
    border: 1px solid #ccc;  /* mimic select border */
    border-radius: 4px;
    overflow-y: auto;       /* make it scrollable */
    overflow-x: hidden;      /* no horizontal scroll */
    background-color: white;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    white-space: pre-wrap;     /* allows wrapping */    
}

.constraint-item {
    padding: 12px;
    margin-top: 2px;
    border-bottom: 1px solid black;
    font-size: 16px;
}

.delete-btn {
    padding: 5px;
    font-size: 18px;
    border: none;
    background: white;  
    color: #d00a0a; 
}

.delete-btn:hover {
    background: white;
}



/* NAVIGATION */
.navigation-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: auto;
}

.help-button-zone {
    margin-left: auto;
    margin-right: auto;
}
.next-button-zone {
    margin-left: auto;
}

.back-button, .help-button, .next-button {
    display: none;
    width: 100px;
}


/* MESSAGE DISPLAY */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);   
    display: none;                     
    justify-content: center;
    align-items: center;
    z-index: 1000;                    
}

.message-box {
    background: white;
    padding: 25px 35px;
    border-radius: 10px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.message-text {
    white-space: pre-wrap;
    text-align: center;
    line-height: 1.5;
}

.message-close {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 18px;
}


/* FORM DISPLAY */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);   
    display: none;                     
    justify-content: center;
    align-items: center;
    z-index: 2000;                    
}

.form-box {
    background: white;
    padding: 25px 35px;
    border-radius: 10px;
    width: 600px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.form-box p {
    margin-bottom: 25px;
}

.form-box input, textarea {
    width: 500px;
    margin: 0px;
    padding: 10px;
}

.form-box textarea {
   height: 200px;
   font-size: 18px;
   font-family: Arial, Helvetica, sans-serif;
}

.form-close {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 18px;
}


/*  ACTIVE  */
.active {
    display: block
}