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

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    background-image: url('fireworkbackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#fireworksCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#webcam {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 320px;
    height: 240px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    z-index: 2;
    transform: scaleX(-1);
}

#handCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.start-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.start-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
}

.start-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 500px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.start-button {
    padding: 15px 40px;
    font-size: 1.2em;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.start-button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.youtube-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.youtube-container iframe {
    display: block;
}

.mirror-button {
    position: absolute;
    top: 260px;
    right: 10px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 4;
    transition: all 0.3s ease;
}

.mirror-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.mirror-button.active {
    background-color: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

.audio-button {
    position: absolute;
    bottom: 200px;
    left: 10px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 4;
    transition: all 0.3s ease;
}

.audio-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.audio-button.active {
    background-color: rgba(107, 255, 107, 0.3);
    border-color: #6bff6b;
}

.change-song-button {
    position: absolute;
    bottom: 200px;
    left: 80px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    z-index: 4;
    transition: all 0.3s ease;
}

.change-song-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #webcam {
        width: 160px;
        height: 120px;
    }
    
    .youtube-container {
        width: 160px;
        height: 90px;
    }
    
    .youtube-container iframe {
        width: 160px;
        height: 90px;
    }
    
    .start-content {
        padding: 20px;
        margin: 0 20px;
    }
    
    .start-content h1 {
        font-size: 2em;
    }
    
    .start-content p {
        font-size: 1em;
    }
}