body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 850px; /* Adjust max-width to accommodate new controls */
    width: 100%;
}

h1 {
    margin-top: 0;
    color: #333;
    text-align: center;
    width: 100%;
}

.controls {
    margin-bottom: 15px;
    display: flex; /* Use flexbox for better alignment of controls */
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px; /* Space between elements in a control row */
}
.controls-bottom {
    margin-bottom: 15px;
    display: flex; /* Use flexbox for better alignment of controls */
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between elements in a control row */
}

#menu{
    display: flex;
    flex-direction: column;
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}
label {
    min-width: 120px; /* Give labels a fixed width for alignment */
    text-align: left;
    font-weight: bold;
    color: #555;
    height: 25px;
}

input[type="file"] {
    flex-grow: 4; /* Allow file input to take available space */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

input[type="range"] {
    flex-grow: 1; /* Allow range input to take available space */
    -webkit-appearance: none; /* Override default look for better cross-browser consistency */
    width: 100%;
    height: 8px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

input[type="range"]:hover {
    opacity: 1;
}

span {
    min-width: 40px; /* For displaying the value */
    text-align: right;
    color: #333;
    font-weight: bold;
}

#downloadButton{
    clear: both;
}

button {
  background-color: #0071e3;
  color: white;
  font-size: 1.2 em;
  padding: 12px 30px;
  border-radius: 40px;
  margin: 20px 0 0 0;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  border: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

button:hover {
  background-color: #0078f1;
  font-size: 1.2 em;
  cursor: pointer;
}

canvas {
    border: 1px solid #ccc;
    background-color: #eee;
    display: block;
    margin: 20px auto 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

#left{
    display: inline;
    vertical-align: middle;
}

#right{
    padding-top: 5px;
    display: inline;
    vertical-align: middle;
}

#saveArea{
    background: #007bff;
    border-radius: 5px;
    height: 25px;
    vertical-align: middle;
}

#author{
    font-size: .8em;
    margin-bottom: 20px;
}

strong{
    color: #0071e3;
}