@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap'); */

:root {
    --white-f: #FFFFFF;
    --back-degrade: linear-gradient(180deg, #F6F7F9, #E9ECF5);
    --shadow-v1: rgba(0, 0, 0, 0.1) 0 0 20px;
    --shadwo-v2: rgb(230, 230, 230, 0.5);
    --shadow-geen: rgb(4, 197, 0, 0.3);
    --placeholder: #D8D8D8;
    --green: #04C500;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", system-ui;
    font-style: normal;
}


body {
    overflow: hidden;
}

main {
    width: 100vw;
    height: 100vh;
    background-image: var(--back-degrade);
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: none;
}

.feedback {
    width: 170px;
    box-shadow: var(--shadow-v1);
    border-radius: 100px;
    position: fixed;
    bottom: 70px;
    text-align: center;
    padding: 10px;
    background-color: var(--white-f);
    font-size: 13px;


    &::after {
        content: "💚";
        margin-left: 5px;
    }

    &:hover {
        cursor: pointer;
        background-color: var(--green);
        color: var(--white-f);

        &::after {
            content: "🤍";
        }
    }



}

.timer {

    display: flex;
    flex-direction: column;
    align-items: center;

    height: 170px;
    width: fit-content;
    min-width: 600px;

    background: var(--white-f);
    border-radius: 300px;
    position: absolute;
    padding: 0 15px;

    /* background-color: red; */
    box-shadow: var(--shadow-v1);
    z-index: 1;

    >div {
        display: flex;
        flex-direction: row;
        gap: 10px;
        background-color: var(--white-f);
        padding: 8px;
        border-radius: 50px;
        box-shadow: var(--shadow-v1);
    }

    .actions {
        translate: 0 -20px;
        gap: 18px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 12px 15px;
        width: 120px !important;

        >.selected-span {
            /* background-color: red; */
            filter: invert(100%);
            transition: 0.5s;

        }

        >span:first-of-type {
            position: fixed;
            background-color: var(--green);
            height: 35px;
            width: 35px;
            border-radius: 100px;
            z-index: 1;
            transition: 0.5s;
            box-shadow: var(--shadow-geen) 0 0 10px 3px;
        }

        [data-action="play"] {
            background-image: url("../images/play.svg");
        }

        [data-action="pause"] {
            background-image: url("../images/pause.svg");
        }

        [data-action="stop"] {
            background-image: url("../images/stop.svg");
        }


        [data-action="play"], [data-action="pause"], [data-action="stop"] {
            width: 18px;
            height: 18px;
            display: inline-block;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            z-index: 2 !important;

            &:hover {
                cursor: pointer;
            }
        }


    }

    .value {
        translate: 0px -24px;
        box-shadow: var(--shadwo-v2);
        display: flex;
        flex-direction: row;
        gap: 5px;

        >span {
            color: var(--green);
            font-size: 90px;
            font-weight: 500;
            width: 100%;
        }
    }

    .clock {
        display: flex;
        align-items: center;
        justify-content: center;
        translate: 0 -25px;
        /* height: 40px; */
        width: 120px;

    }

}

.workflow-show {
    >.more {
        transform: rotate(180deg);
    }

    >.all-projects {
        translate: 0px 90px !important;
        opacity: 1 !important;
    }

}

.workflow {
    /* position: fixed; */
    display: none;
    visibility: hidden;

    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 8px;

    translate: 0 -35vh;
    padding: 10px;
    background-color: var(--white-f);
    border-radius: 123px;
    color: silver;

    width: 270px;
    height: 50px;

    /* z-index: 11; */

    >span {
        translate: 5px 0;
    }

    >.add {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--green);
        border-radius: 100px;
        background-size: 200% 200%;
        width: 30px;
        height: 30px;

        box-shadow: var(--shadow-geen) 0 4px 30px 0;

        &::before {
            content: "+";
            color: var(--white-f);
            font-weight: 300;
            font-size: 25px;
        }

        &:hover {
            cursor: pointer;
        }
    }

    >.more {
        display: inline-block;
        width: 40px;
        height: 40px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='silver' d='M16.293 9.293L12 13.586L7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z'/%3E%3C/svg%3E");
        transition: 0.5s;

        &:hover {
            cursor: pointer;
            filter: invert(100%);
        }
    }

    >.all-projects {
        position: absolute;
        width: 270px;
        height: 110px;
        max-height: 100px;
        background-color: var(--white-f);
        box-shadow: var(--shadow-v1);
        left: 0;
        border-radius: 10px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--green) transparent;
        display: flex;
        flex-direction: column;
        text-align: center;
        opacity: 0;
        translate: 0px 70px;
        transition: 0.6s;

        >span {
            /* border-top: silver 1px solid; */
            padding: 3px;
            /* margin-top: 10px; */

            &:hover {
                background-color: var(--green);
                cursor: pointer;
                color: var(--white-f);
            }
        }
    }


}

.invisible {
    display: none;
    visibility: hidden;
}

.glass {
    position: fixed;
    background: #ffffff90;
    border-radius: 20PX;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    box-shadow: var(--shadow-v1);
}


.project-show {
    translate: 0 0 !important;
    transition: 0.8s;
    z-index: 12 !important;

    .pj-close {

        box-shadow: var(--shadow-v1) !important;
        height: 40px !important;
        width: 40px !important;
        background-color: var(--white-f) !important;
        transition: 0.5s;

        &::before {
            display: inline-block;
            width: 21px;
            height: 21px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            translate: -4px -5px !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2304C500' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 15l6-6l6 6'/%3E%3C/svg%3E") !important;
        }
    }
}

h3 {
    font-weight: 400;
}

.project {
    display: flex;
    flex-direction: column;
    background: #ffffff90;
    border-radius: 20PX;
    position: fixed;
    top: 0;
    transition: 0.5s;
    translate: 0 -95%;

    width: 100vw;
    height: 70vh;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3;
    box-shadow: var(--shadow-v1);


    align-items: center;
    justify-content: center;


    h3 {
        /* margin-top: 40px; */
        margin-bottom: 40px;
    }

    >div {
        display: flex;
        flex-direction: row;
        gap: 20px;

        >.pj-coins, .pj-type {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;

            background-color: var(--white-f);
            box-shadow: var(--shadwo-v2) 1px 1px 20px 10px;
            border-radius: 100px;
            padding: 10px;
            gap: 5px;

            width: 250px !important;

            >span {
                font-size: 18px;
                z-index: 2;

                &:hover {
                    cursor: pointer;
                }
            }

            >.selected-span {
                color: white;
                font-weight: 700;
                transition: 0.3s;
            }

        }

        .selected {
            position: absolute;
            background-color: var(--green);
            width: 55px;
            height: 40px;
            border-radius: 100px;
            box-shadow: var(--shadow-geen) 0 0 10px 3px;
            z-index: 1;
            transition: 0.3s;
            width: 130px
        }

        >.pj-coins>span {
            width: 90px;
            text-align: center;
        }

        >.pj-type {

            display: flex;
            justify-content: space-between;


            >span {
                width: 108px;
                text-align: center;
                font-size: 15px;
            }

            /* gap: 10px; */
        }


    }

    >.just-value>section {
        &:last-of-type {
            display: none;
        }
    }

    >.inputs {
        transition: 1s;
        margin-top: 40px;


        /* background-color: red; */


        >section {
            display: flex;
            flex-direction: column;
            gap: 5px;

            width: 250px !important;


            >input {
                padding: 15px 10px;
                border-radius: 100px;
                height: 45px;
                border: none;
                outline: none;
                font-size: 15px;
                box-shadow: var(--shadwo-v2) 1px 1px 20px 10px;

                &::placeholder {
                    color: var(--placeholder);
                }

            }
        }

    }

    >button {
        padding: 10px;
        border: none;
        outline: none;
        margin-top: 50px;
        border-radius: 100px;
        font-size: 18px;
        color: var(--white-f);
        background-color: var(--green);
        box-shadow: var(--shadow-geen) 1px 1px 10px 5px;
        width: 150px;
        font-weight: 700;

        &:hover {
            /* background-color: var(--white-f);
            color: #04C500; */
            filter: grayscale(10%);
            cursor: pointer;
        }
    }

    .pj-close {
        position: fixed;
        /* display: flex; */
        align-items: center;
        justify-content: center;
        bottom: -18px;
        background-color: var(--green);
        padding: 10px;
        border-radius: 100px;
        outline: var(--green) 2px solid;
        height: 100px;
        width: 30px;
        box-shadow: var(--green) 0 0 8px 3px;
        transition: 0.5s;

        &:hover {
            cursor: pointer;
        }

        &::before {
            content: "";
            background-repeat: no-repeat;
            background-size: 100% 100%;
            /* background-position: bottom; */
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6'/%3E%3C/svg%3E");
            height: 28px;
            width: 28px;
            translate: -9px 58px;
            position: absolute;
        }
    }
}


.history-show {
    translate: 0 0px !important;
    transition: 0.8s;

    .ht-close {
        translate: 0 15px;
        box-shadow: var(--shadow-v1) !important;
        height: 40px !important;
        width: 40px !important;
        background-color: var(--white-f) !important;
        transition: 0.8s;
        top: -35px !important;

        &::before {
            display: inline-block;
            width: 21px;
            height: 21px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            translate: -5px -5px !important;
            transform: rotate(180deg);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2304C500' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 15l6-6l6 6'/%3E%3C/svg%3E") !important;
        }
    }
}

.history {
    display: flex;
    flex-direction: column;
    background: #ffffff90;
    border-radius: 20PX;
    position: fixed;
    bottom: 0;
    transition: 0.8s;
    translate: 0 510px;

    width: 100vw;
    /* height: 400px ; */
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5;
    box-shadow: var(--shadow-v1);

    h3 {
        margin-top: 60px;
    }

    >.ht-close {
        position: fixed;
        /* display: flex; */
        align-items: center;
        justify-content: center;
        top: -20px;
        background-color: var(--green);
        padding: 10px;
        border-radius: 100px;
        outline: var(--green) 2px solid;
        height: 70px;
        width: 30px;
        box-shadow: var(--green) 0 0 8px 3px;
        transition: 0.8s;


        /* background-color: red; */

        &:hover {
            cursor: pointer;
        }

        &::before {
            content: "";
            display: inline-block;
            translate: -11px -8px;
            /* height: 150px; */
            width: 30px;
            height: 30px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13 3a9 9 0 0 0-9 9H1l3.89 3.89l.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7s-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42A8.95 8.95 0 0 0 13 21a9 9 0 0 0 0-18m-1 5v5l4.28 2.54l.72-1.21l-3.5-2.08V8z'/%3E%3C/svg%3E");
        }
    }


    >div {

        display: flex;
        flex-direction: row;
        width: 100%;
        /* background-color: red; */
        padding: 20px;
        padding-inline: 40px;
        gap: 15px;

        >div {
            background-color: var(--white-f);
            height: 400px !important;
            border-radius: 30px;
            box-shadow: var(--shadow-v1);
        }


        >div:first-child {
            width: 350px;
            display: flex;
            flex-direction: column;
            padding: 15px;
            gap: 10px;


            >span {
                padding: 10px;
                border-radius: 10px;
                box-shadow: var(--shadow-v1);
                /* text-align: center; */

                color: var(--placeholder);
                user-select: none;
                cursor: no-drop;

            }

        }


        >div:last-child {
            width: 100%;
            background-position: center;
            background-size: 300px 250px;
            /* background-size: 50% 50%; */
            background-image: url("../images/no-history.png");
            background-repeat: no-repeat;
        }

    }

}

@media (max-width: 600px) {

    .history{
        >div{
            >div:first-child{
                visibility: hidden;
                display: none;
            }

            >div:last-child{
                border-radius: 8px;
                padding: 10px;
                background-size: contain;
            }
        }
    }

    .project{
        >div{
            flex-direction: column !important;
        }

        >button{
            margin-top: 20px;
        }
    }

    .inputs{
        flex-direction: column !important;
    }
    
    .timer {
        min-width: 335px;
        /* max-width: 100px; */
        /* width: 100px !important; */
        height: 110px;

        .actions{
            translate: 0 -30px;
        }
       
        .value{
            *{
                font-size: 50px !important;
            }
        }
    }
}