body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
}

.traffic-light-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.traffic-light {
    background-color: #333;
    width: 100px;
    height: 250px;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.light {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #555;
}

#red-light.active {
    background-color: #ff0000;
    box-shadow: 0 0 20px #ff0000;
}

#yellow-light.active {
    background-color: #ffff00;
    box-shadow: 0 0 20px #ffff00;
}

#green-light.active {
    background-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
}

.countdown-container {
    background-color: #333;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#countdown {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

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

#status-text {
    font-weight: bold;
    color: #333;
}

.webcam-container {
    margin: 20px 0;
}

.webcam-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 5px;
    overflow: hidden;
}

#webcam {
    width: 100%;
    max-width: 640px;
    border-radius: 5px;
}

.detection-info {
    text-align: center;
    margin-top: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

#start-webcam.active {
    background-color: #f44336;
}

#start-webcam.active:hover {
    background-color: #d32f2f;
}

.model-status {
    text-align: center;
    margin-top: 20px;
    color: #666;
}