body {
    font-family: Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
    min-width: 950px;
}

body.light-mode {
    background: #F5F5F5;
    color: #333333;
}

body.dark-mode {
    background: #282828;
    color: #E0E0E0;
}

button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: #1976D2;
    color: #FFFFFF;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s;
    max-width: fit-content;
}

button:hover {
    background-color: #1565C0;
}

.container {
    width: 90%;
    margin: 0 auto;
}

.controls {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    justify-content: space-around;
}

.controls label,
.controls input,
.controls select,
.controls button,
.controls fieldset {
    margin: .5em 0;
}

.controls fieldset {
    max-width: fit-content;
    margin-right:.5em;
}

.controls .panels {
    display: flex;
    flex-direction: row;
}

#paint-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sphere-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em auto;
}

.sphere {
    width: 200px;
    height: 160px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    padding: 20px;
    font-size: larger;
    overflow: hidden;
}

.sphere strong {
    font-size: large;
}

.sphere span {
    font-size: medium;
}

.pill {
    display: inline-block;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: small;
}
