/* Style général */
body {
    background-color: #ddd;
    color: lime;
    font-family: monospace;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    background-image: url('ASCII-camera-quentin-renaux-experiment.gif');
    background-size: cover; 
    background-repeat: no-repeat; 
    background-position: center; 
}

/* Icône photo */
#photo-icon {
    cursor: pointer;
    font-size: 40px;
    color: #ffffffc4;
    border: 2px solid #bfc4bfd6;
    border-radius: 50px;
    padding: 10px 30px;
    background-color: #d4d4d44d;
}

#photo-icon:hover {
    background-color: #ddd;
}

/*  mobiles */
@media screen and (max-width: 768px) {
    #photo-icon {
        font-size: 20px; 
        padding: 8px 20px; 
    }
}

/* Overlay */
#overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: top 0.5s ease-in-out;
}

/* Overlay actif */
#overlay.active {
    top: 0;
}

/* Canvas ASCII */
#ascii-canvas {
    image-rendering: pixelated;
    width: 100%;
    height: 100%;
}

#ascii-canvas {
    image-rendering: crisp-edges;
    transform: translateZ(0); /* Activation GPU acceleration */
}

/* Boutons */


.my-buttons {
    position: absolute;
    top: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: aliceblue;
    border: 2px solid #000;
    border-radius: 10px;
}

button {
    padding: 10px 15px;
    border-radius: 5px;
}

button:hover {
    cursor: pointer;
}

#close-button {
    background-color: red;
    color: white;
}

#pause-button {
    background-color: yellow;
}

#color-button {
    background-color: lightblue;
}

#resolution-button {
    background-color: #4CAF50; 
    color: white;
}

@media screen and (max-width: 768px) {
    .my-buttons {
        position: absolute;
        top: 40px;
        /*bottom: 10px;*/
        right: 10px;
        padding: 0px;
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        background-color: transparent;
        border: none;
    }

    button {
        padding: 5px 10px;
        font-size: 12px;
        margin-top: 10px;
    }
}