.webcam-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.webcam-message {
    font-size: 20px;
    color: #666;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.webcam-player-container{
    width: 100%;
    max-width: 770px;
    margin: 0 auto 20px;
    aspect-ratio: 620 / 439;
    position: relative;
}
#imageDisplay{
    aspect-ratio: 620 / 349;
}
#imageDisplay img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.controls-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 10px auto 0 auto;
}

.control-btn, .speed-selector {
    background-color: rgb(255,255,255,0.2); /* Fond blanc */
    border: none; /* Bordure discrète */
    color: #3e3e3e; /* Texte noir */
    cursor: pointer;
    font-size: 16px;
    padding: 12px;
    border-radius: 6px; /* Bordures arrondies */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
    outline: none;
    width: calc( 22% - 0px);
    max-width: calc( 22% - 0px);
    margin: 0;
    height: 40px;
}
.speed-selector {
    width: calc( 36% - 5px);
    min-height: 40px;
    padding: 6px;
}

.control-btn:hover,
.control-btn:focus,
.speed-selector:hover,
.speed-selector:focus {
    background-color: rgb(0,0,0,0.1) !important; /* Léger changement de fond au survol */
    color: #000000 !important;
    /*box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Ombre plus prononcée */
}
.control-btn:hover i,
.speed-selector:hover i {
    color: #000000 !important;
}

.control-btn:active, .speed-selector:active {
    background-color: #e6e6e6; /* Fond plus foncé au clic */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre réduite */
    transform: translateY(2px); /* Effet de pression */
}

/* CSS pour la timeline */
#timeline {
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    position: relative;
    cursor: pointer !important;
    display:flex;
    justify-content: space-between;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

#timeline .timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: red;
    cursor: pointer;
    height: 50px;
    z-index: 1;
}

#timeline .preview {
    position: relative;
    top: 0;
    height: 100%;
    display: block;
    background-size: cover;
    cursor: pointer !important;
}

#embedCode{
    padding: 20px;
    width: calc(100% - 40px);
    cursor: copy;
}

#copyEmbed{
    display: block;
    margin: 10px auto 20px;
    width: fit-content;
}