* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.thermometers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.thermometer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(33.333% - 20px);
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.emotion-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.thermometer {
    width: 40px;
    height: 200px;
    background-color: #ddd;
    border-radius: 20px;
    position: relative;
    overflow: visible;
    margin-right: 40px;
}

.fill {
    width: 100%;
    position: absolute;
    bottom: 0;
    transition: height 0.3s ease;
}

#thermo1 .fill { background-color: #FF0000; } /* Red */
#thermo2 .fill { background-color: #FF7F00; } /* Orange */
#thermo3 .fill { background-color: #FFFF00; } /* Yellow */
#thermo4 .fill { background-color: #00FF00; } /* Green */
#thermo5 .fill { background-color: #0000FF; } /* Blue */
#thermo6 .fill { background-color: #8B00FF; } /* Violet */

.scale {
    position: absolute;
    left: 100%;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    padding: 10px 0;
}

.scale-mark {
    width: 10px;
    height: 1px;
    background-color: #333;
    position: absolute;
    left: 0;
}

.scale span {
    position: absolute;
    left: 15px;
    transform: translateY(50%);
    font-size: 12px;
}

.value {
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
}

.emotions-link,
.bodyfeelings-link,
.thoughtreframe-link,
.cognitive-reframing-link,
.anger-management {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}

.emotions-link:hover,
.bodyfeelings-link:hover,
.thoughtreframe-link:hover,
.cognitive-reframing-link:hover 
.anger-management:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    .thermometer-container {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .thermometer-container {
        width: 100%;
    }
    .thermometer {
        margin-right: 30px;
    }
}