body {
    font-family: Arial, sans-serif;
    background: #E0F7FA;
    color: #01579B;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    padding-bottom: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
    color: #0288D1;
}

.subbox {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 500px;
    text-align: center;
    margin-bottom: 0.2em;
}

#mainbox {
    width: 500px;
}

#logo {
    width: 280px;
}

#caltopoMap {
   width: 500px;
   height: 500px; 
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #0288D1;
    border-radius: 4px;
    text-align: center;
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #E0F7FA;
    border-radius: 4px;
    outline: none;
    border: 1px solid #0288D1;
}

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

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

#expand_factor_value {
    font-weight: normal;
    color: #0288D1;
}

button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #0288D1;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

button:hover {
    background-color: #0277BD;
}

button:disabled {
    background-color: #B0BEC5;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button-link {
    display: inline-block;
    /* margin-top: 20px; */
    padding: 10px 15px;
    background-color: #4CAF50;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;

}

.button-link:hover {
    background-color: #45A049;
}

#logbox {
    border: 1px solid #000000;
    height: 50px;
    text-align: left;
    font-size: 0.8em;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    /* width: 300px; */
    /* padding: 2px; */
    display: none;
}

#responsebox {
    display: none;
}

.warning {
    color: firebrick;
}

#advanced-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

#advanced-section.expanded {
    max-height: 500px;
    /* A value high enough to show the content */
}

#toggle-advanced {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 10px;
    background-color: #5a5a5a;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.8em;
}

#toggle-advanced:hover {
    background-color: #454545;
}


.help-text {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
    margin-bottom: -15px;
}

.downloadlinks {
    margin-top: 10px;
}
.downloadlinks a {
    text-decoration: none;
    font-style: italic;
}

.downloadlinks a:hover {
    text-decoration: underline;
}

.downloadlinks a:visited {
    color: #01579B;
}



/* 

#submitbutton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#submitbutton.loading {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    font-size: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */