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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(#87ceeb, #e0f7fa);
    font-family: Arial, sans-serif;
}

.traffic-light {
    width: 120px;
    height: 350px;
    background: #222;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.light {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.light.active {
    box-shadow: 0 0 30px currentColor, inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.red.active {
    background: #e17055;
    color: #e17055;
}

.yellow.active {
    background: #fdcb6e;
    color: #fdcb6e;
}

.green.active {
    background: #00b894;
    color: #00b894;
}

.status {
    margin-top: 20px;
    text-align: center;
}

#state-text {
    font-size: 2rem;
    font-weight: bold;
    color: #e17055;
}
