/* styles.css */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #7c7c7c;
}

.container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.194);
    transition: background-color 0.5s, color 0.5s;
}

.indicator {
    width: 0%;
    height: 60px;
    background-color: #73d974;
    transition: width 0.3s;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#value {
    font-size: 5em;
    margin: 10px 0;
}

#unit {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: block;
}

#averageValue, #highestValue {
    font-size: 1.8em;
}

#attribute {
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Background colors based on dB levels */
.excellent {
    background-color: rgba(43, 130, 43, 0.603);
    color: white;
}

.good {
    background-color: rgba(90, 90, 248, 0.884);
    color: white;
}

.not-good {
    background-color: rgba(195, 155, 79, 0.708);
    color: white;
}

.poor {
    background-color: rgba(249, 66, 66, 0.602);
    color: white;
}

/* styles.css */
/* Button styles */
button {
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:active {
    background-color: #3e8e41;
}

/* Switch button styles */
.switch-button {
    display: inline-block;
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.switch-button.active {
    background-color: #4caf50;
    color: white;
}

.switch-button:hover {
    background-color: #ddd;
}

.switch-button.active:hover {
    background-color: #45a049;
}

.switch-button:active {
    background-color: #ccc;
}

