@import '../colors';

.temp-image {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    transform: scale(0);
    transition: transform 0.1s;

    &.active {
        transform: scale(1);
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.back-button {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba($pink, 0.5);
    border: 0px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;

    ion-icon {
        color: white;
        font-size: 25px;
    }
}

.container {
    position: relative;
    z-index: 0;
}

.glass-image {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    transform-origin: 15% 50%;
}

#playback-video, #result-canvas, #three-container {
    display: block;
}

#result-canvas, #source-canvas, #source-image, #three-container {
    position: absolute;
    top: 0;
    left: 0;
}

#result-canvas {
    z-index: -1;
}

.left-eye, .right-eye {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.left-eye {
    background-color: blue;
}

.right-eye {
    background-color: red;
}


.action-buttons {
    position: fixed;
    left: 0;
    bottom: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 1;

    button {
        width: 50px;
        height: 50px;
        background-color: white;
        color: $pink;
        border-radius: 50%;

        ion-icon {
            font-size: 25px;
        }

        &.camera-button {
            margin-left: calc(50% - 25px);
            transform: scale(1.5);
        }

        &.skin-button {
            transform: scale(1.2);
            margin-left: 40px;
            background-color: transparent;
            border: 2px solid $pink;

            &.active {
                background-color: $pink;
                color: white;
            }
        }
    }
}

.image-action-buttons {
    position: fixed;
    left: 0;
    bottom: 20px;
    width: 90%;
    margin-left: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: rgb(253 253 253);
    border-radius: 30px;
    z-index: 1;

    button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid $brand-blue;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;

        &:last-child {
            transform: rotate(180deg);
        }

        img {
            width: 20px;
        }

        ion-icon {
            color: $brand-blue;
            font-size: 20px;
        }
    }
}