@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background-color: #111;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

#canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#video {
    display: none;
}

#ui-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.template-switcher button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    transition: background-color 0.3s, transform 0.2s;
}

.template-switcher button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.template-switcher button.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.color-selector {
    display: flex;
    align-items: center;
}

#color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

#color-picker::-webkit-color-swatch {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#color-picker::-moz-color-swatch {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
