body {
    font-family: sans-serif;
    margin: 2em;
    background-color: powderblue;
}

button {
    margin: 0.5em;
    padding: 0.5em 1em;
}

#status {
    margin-top: 1em;
    color: #444;
}

#timer {
    font-weight: bold;
}

#results {
    margin-top: 2em;
}

/* Throbber / spinner styles */
.hidden { display: none; }
#throbber {
    margin-top: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    padding: 0.5em 1em;
}

#throbber.hidden {
    display: none;
}
.spinner {
    width: 24px;
    height: 24px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #0078d4; /* blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
#throbber-text {
    font-size: 0.95rem;
    color: #333;
}

img {
    max-width: 600px;
    display: block;
    margin-top: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#main-content {
    margin-top: 2em;
    background-color: white;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.flex-container {
    display: flex;
}
.flex-item {
    flex: 1;
    padding: 10px;
    border: 2px solid rgb(241, 241, 241);
    border-radius: 10px;
    background-color: powderblue;
    margin: 10px;
}  

div#results>img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
    display: block;
}

/* Settings panel */
.settings {
    margin-top: 1.5em;
    text-align: left;
}
.settings h3 { margin-bottom: 0.25em; }
#toggleSettings { margin-bottom: 0.5em; }
.setting-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.setting-row label { display: flex; align-items: center; gap: 0.5rem; }
.settings input[type="number"], .settings input[type="text"] { padding: 0.2em 0.4em; width: 8rem; }
.settings .hidden { display: none; }