#container {
    position: relative;
    margin: 0 auto;
    width: 640px;
    height: 480px;
    border: 10px #333 solid;
    display: flex;
    justify-content: center;
    align-items: center;
}

#videoElement {
    width: 640px;
    height: 480px;
    background-color: #666;
    transform: rotateY(180deg);
    -webkit-transform:rotateY(180deg); /* Safari and Chrome */
    -moz-transform:rotateY(180deg); /* Firefox */
}

#overlayCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 480px;
    pointer-events: none; /* Allow interactions with video */
}

#_photoCanvas {
    display: none;
}

#modeButton {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fd87c1, #e831d5); /* Gradient effect */
    border-radius: 50px;
    box-shadow: 0.5rem 0.5rem black, -0.5rem -0.5rem transparent;
    outline: none;
    cursor: pointer;
    border: 3px solid black;
}

#modeButton:hover {
    background: linear-gradient(to bottom, #fca1cd, #e457d6);
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
