* {
    box-sizing: border-box;
}

html, body{
    height: 100%;
}

body {
    margin: 0;
    background-color: green;
    font-family: Arial, sans-serif;

    display: flex;              
    flex-direction: column;     
    min-height: 100vh;          
}



#header {
    background-color: green;
    box-shadow: 0px 4px 6px -2px black;
    padding: 20px;
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

#header h2 {
    color: white;
    margin: 0;
    margin-top: 20px;
}

#header > div {
    display: flex;
    flex-direction: column;
}

#header p {
    margin: 0 0 5px 0;
    color: white;
    font-size: 14px;
}

input, select {
    padding: 6px;
    margin: 5px 0;
}

#resetButton {
    width: 100px;
    height: 35px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s ease;
    margin-top: 20px;
}

#resetButton:hover {
    background-color: #43a047;
}



#imageSection {
    margin-top: 50px;
    padding: 0;                 
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
    align-items: flex-start;

    flex: 1 0 auto;             
    min-height: 0;              
}

.imageCard {
    background: white;
    padding: 5px;           
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.15);

    display: inline-flex;
    flex-direction: column;
    align-items: center;

    width: auto;             
    max-width: none;  
    height: auto;       
}

.imageCard img {
    display: block;
    max-width: 100%;
    height: auto;            
    border-radius: 8px;
}

.downloadBtn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: green;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s ease;
}

.downloadBtn:hover {
    background-color: darkgreen;
}

a{
    text-decoration: none;
}

#file {
    display: flex;
    flex-direction: column; 
    gap: 5px;               
    margin-top: 20px;              
}

#file input {
    margin: 0;              
    padding: 6px;
    height: auto;           
    line-height: normal; 
}

footer {
    color: white;
    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;          
}

footer a{
    color: white;
}

#buttonGroup {
    display: flex;
    flex-direction: row !important;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

#downloadAllButton,
#resetButton {
    width: 120px;
    height: 35px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s ease;
}

#downloadAllButton:hover,
#resetButton:hover {
    background-color: #43a047;
}

#resetButton{
    margin-bottom: 18px;
}