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

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.container {
    width: 100%;
    max-width: 1500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    position: relative;
    width: 960px;
    height: 540px;
    margin-bottom: 30px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    border: 3px solid #333;
}

#input-video {
    width: 100%;
    height: 100%;
    display: none;
}

#output-canvas {
    width: 100%;
    height: 100%;
    background-color: transparent;
    transform: scaleX(-1);
}

#drum-pads {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.drum-pad {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 21px;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.drum-pad.circle {
    border-radius: 50%;
}

.drum-pad.square {
    border-radius: 0;
}

.jam-meter-container {
    width: 600px;
    margin-bottom: 20px;
    text-align: center;
}

.jam-meter-label {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.jam-meter {
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 15px;
    overflow: hidden;
}

#jam-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #88ff00, #00ff00);
    transition: width 0.3s;
}

.controls {
    margin-bottom: 30px;
}

#start-button {
    padding: 15px 30px;
    background-color: #4CAF50;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s;
}

#start-button:hover {
    background-color: #45a049;
}

.status {
    text-align: center;
    margin-bottom: 15px;
}

#status-message {
    font-size: 21px;
    color: #aaa;
} 