﻿/* From Uiverse.io by MijailVillegas */
.card {
    max-width: fit-content;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(15px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.192), inset 0 0 5px rgba(255, 255, 255, 0.274), 0 5px 5px rgba(0, 0, 0, 0.164);
    transition: 0.5s;
}

    .card:hover {
        animation: ease-out 5s;
        background: rgba(173, 173, 173, 0.05);
    }

    .card ul {
        padding: 1rem;
        display: flex;
        list-style: none;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
        flex-direction: column;
    }

        .card ul li {
            cursor: pointer;
        }

.svg {
    transition: all 0.3s;
    /* if you find some problems change w - h : 30px*/
    padding: 1rem;
    height: 60px;
    width: 60px;
    border-radius: 100%;
    color: rgb(255, 174, 0);
    fill: blue;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
}

.text {
    opacity: 0;
    border-radius: 5px;
    padding: 5px;
    transition: all 0.3s;
    color: blue;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    z-index: 9999;
    box-shadow: -5px 0 1px rgba(153, 153, 153, 0.2), -10px 0 1px rgba(153, 153, 153, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.082);
}

/*isometric prooyection*/
.iso-pro {
    transition: 0.5s;
}

    .iso-pro:hover a > .svg {
        transform: translate(15px, -15px);
        border-radius: 100%;
    }

    .iso-pro:hover .text {
        opacity: 1;
        transform: translate(25px, -2px) skew(-5deg);
    }

    .iso-pro:hover .svg {
        transform: translate(5px, -5px);
    }

    .iso-pro span {
        opacity: 0;
        position: absolute;
        color: #1877f2;
        border-color: #1877f2;
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.5), 0 5px 5px rgba(0, 0, 0, 0.164);
        border-radius: 50%;
        transition: all 0.3s;
        height: 60px;
        width: 60px;
    }

    .iso-pro:hover span {
        opacity: 1;
    }

        .iso-pro:hover span:nth-child(1) {
            opacity: 0.2;
        }

        .iso-pro:hover span:nth-child(2) {
            opacity: 0.4;
            transform: translate(5px, -5px);
        }

        .iso-pro:hover span:nth-child(3) {
            opacity: 0.6;
            transform: translate(10px, -10px);
        }


/* From Uiverse.io by Na3ar-17 */
.container {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.label {
    background-color: transparent;
    border: 2px solid blue;
    display: flex;
    align-items: center;
    border-radius: 50px;
    width: 160px;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 5px;
    position: relative;
}

    .label::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        width: 8px;
        height: 8px;
        transition: all 0.4s ease;
        border-radius: 100%;
        margin: auto;
        opacity: 0;
        visibility: hidden;
    }

    .label .input {
        display: none;
    }

    .label .title {
        font-size: 17px;
        color: black;
        transition: all 0.4s ease;
        position: absolute;
        right: 18px;
        bottom: 14px;
        text-align: center;
    }

        .label .title:last-child {
            opacity: 0;
            visibility: hidden;
        }

    .label .circle {
        height: 45px;
        width: 45px;
        border-radius: 50%;
        background-color: blue;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease;
        position: relative;
        box-shadow: 0 0 0 0 rgb(255, 255, 255);
        overflow: hidden;
    }

        .label .circle .icon {
            color: #fff;
            width: 30px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
        }

        .label .circle .square {
            aspect-ratio: 1;
            width: 15px;
            border-radius: 2px;
            background-color: #fff;
            opacity: 0;
            visibility: hidden;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
        }

        .label .circle::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            background-color: #3333a8;
            width: 100%;
            height: 0;
            transition: all 0.4s ease;
        }

    .label:has(.input:checked) {
        width: 57px;
        animation: installed 0.4s ease 3.5s forwards;
    }

        .label:has(.input:checked)::before {
            animation: rotate 3s ease-in-out 0.4s forwards;
        }

    .label .input:checked + .circle {
        animation: pulse 1s forwards, circleDelete 0.2s ease 3.5s forwards;
        rotate: 180deg;
    }

        .label .input:checked + .circle::before {
            animation: installing 3s ease-in-out forwards;
        }

        .label .input:checked + .circle .icon {
            opacity: 0;
            visibility: hidden;
        }

    .label .input:checked ~ .circle .square {
        opacity: 1;
        visibility: visible;
    }

    .label .input:checked ~ .title {
        opacity: 0;
        visibility: hidden;
    }

        .label .input:checked ~ .title:last-child {
            animation: showInstalledMessage 0.4s ease 3.5s forwards;
        }

@keyframes pulse {
    0% {
        scale: 0.95;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        scale: 1;
        box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    }

    100% {
        scale: 0.95;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes installing {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(-90deg) translate(27px) rotate(0);
        opacity: 1;
        visibility: visible;
    }

    99% {
        transform: rotate(270deg) translate(27px) rotate(270deg);
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes installed {
    100% {
        width: 150px;
        border-color: rgb(35, 174, 35);
    }
}

@keyframes circleDelete {
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes showInstalledMessage {
    100% {
        opacity: 1;
        visibility: visible;
        right: 56px;
    }
}
