body {
    background-color: #f4f4f9;
    font-family: 'Arial', sans-serif;
}

.frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.container {
    text-align: center;
    padding: 20px;
    margin: auto;
    max-width: 600px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#video, #canvas {
    border: 0px solid #000;
    border-radius: 15px; /* Bordes redondeados */
    width: 100%;
    height: auto;
    object-fit: contain; /* Mantener proporciones sin recortar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra alrededor */
    background-color: #ffffff;
}

#canvas-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
    overflow: hidden; /* Asegura que cualquier desbordamiento se oculte */
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px; /* Tamaño un poco más grande */
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px; /* Bordes más redondeados */
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    margin: 5px;
}

button i {
    margin-right: 8px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Escala ligera al pasar el mouse */
}

button:disabled {
    background-color: #cccccc;
}

button.whatsapp {
    background-color: #25D366;
}

button.whatsapp:hover {
    background-color: #1DA851;
}

button.email {
    background-color: #D44638;
}

button.email:hover {
    background-color: #B23121;
}

input[type="email"], input[type="tel"] {
    padding: 10px;
    font-size: 16px;
    width: calc(100% - 22px);
    margin: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#countdown {
    font-size: 120px;
    color: #07539F; /* Color azul */
    display: none;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8); /* Sombra blanca */
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    animation: pulse 1s infinite; /* Animación de pulso */
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

#logo {
    cursor: move;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 100px;
    height: 100px;
    user-select: none; /* Evitar selección del logo */
}

#logo:hover {
    /* Puedes añadir efectos al logo aquí si lo deseas */
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.frame-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.frame-thumbnail {
    width: 60px; /* Aumenta el tamaño */
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Añade una sombra suave */
}

.frame-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada al pasar el mouse */
}


#video.hidden {
    visibility: hidden;
    opacity: 0;
}

#canvas.hidden {
    visibility: hidden;
    opacity: 0;
}

.emoticon-options, .figure-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.emoticon-thumbnail, .figure-thumbnail {
    width: 60px; /* Aumenta el tamaño */
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Añade una sombra suave */
}

.emoticon-thumbnail:hover, .figure-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada al pasar el mouse */
}

.draggable-resizable {
    position: absolute;
    cursor: move;
    touch-action: none;
}

.delete-button {
    position: absolute;
    top: -10px; /* Asegura que el botón esté ligeramente fuera del contenido */
    right: -10px; /* Desplazamos ligeramente hacia la derecha */
    width: 20px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.7); /* Ajusta el color y opacidad */
    color: white;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    z-index: 100; /* Asegura que esté siempre por encima de la imagen */
    border-radius: 50%; /* Opcional: si deseas que sea circular */
    font-size: 12px; /* Reduce el tamaño de la fuente para que el icono sea más pequeño */
    transition: transform 0.2s;
}

.delete-button:hover {
    transform: scale(1.2); /* Aumenta el tamaño ligeramente al pasar el mouse */
}

.resize-handle {
    position: absolute;
    bottom: -10px; /* Desplazamos ligeramente hacia abajo para que quede fuera de la imagen */
    right: -10px; /* Desplazamos ligeramente hacia la derecha */
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: se-resize;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.resize-handle::before {
    content: '\2194'; /* Icono de flecha bidireccional horizontal */
    color: white;
    font-size: 14px;
    transform: rotate(45deg); /* Rota la flecha 45 grados a la derecha */
}

.resize-handle:hover {
    transform: scale(1.2); /* Aumenta el tamaño ligeramente al pasar el mouse */
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }

    button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .emoticon-thumbnail, .figure-thumbnail {
        width: 40px;
        height: 40px;
    }
}
