@font-face {
    font-family: "OPPOSans";
    src: url('OPPOSans.ttf') format("truetype");
}

.disappear {
    animation: disshow 0.5s ease 0s 1 normal forwards;
}

.appear {
    z-index: 2 !important;
    animation: show 0.5s ease 0s 1 normal forwards;
}

@keyframes disshow {
    from {
        transform: scale(1);
        opacity: 1;
        z-index: 2 !important;
    }

    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes show {
    from {
        transform: scale(0);
        opacity: 0;
        z-index: 2 !important;
    }

    to {
        transform: scale(1);
        opacity: 1;
        
    }
}

:root {
    --success-color: #2ecc71;
    --error-color: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;

    #app {
        background-color: #ffffff;
        width: 100%;
        height: 100%;
        padding: 15px;
        border-radius: 10px;
        //font-family: 'Zoocool';
        font-size: 2rem;
        font-weight: bold;
        display: flex;
        flex-direction: column;
        position: relative;
        overflow-y: scroll;
        &::-webkit-scrollbar{
            display: none;
        }
        .title {
            width: 100%;
            text-align: center;
            font-family: 'OPPOSans';
        }

        .toolBar {
            width: 100%;
            display: flex;
            flex-direction: row;
            height: 20px;

            #newZone {
                line-height: 20px;
                height: 20px;
                margin-right: 10px;
                font-size: 15px;
                cursor: pointer;
                font-weight: normal;

                &:hover {
                    font-weight: bold;
                }

            }

            #addNewKey {
                height: 20px;
                line-height: 20px;
                font-size: 15px;
                margin-right: 10px;
                font-weight: normal;
                cursor: pointer;

                &:hover {
                    font-weight: bold;
                }
            }
            #sync{
                height: 20px;
                line-height: 20px;
                font-size: 15px;
                margin-right: 10px;
                font-weight: normal;
                cursor: pointer;
                &:hover {
                    font-weight: bold;
                }
            }

            #SwitchData {
                height: 20px;
                line-height: 20px;
                font-size: 15px;
                font-weight: normal;
                cursor: pointer;
                margin-right: auto;

                &:hover {
                    font-weight: bold;
                }
            }

            #emoji {
                font-size: 14px;
            }

            #trash {
                height: 20px;
                width: 200px;
                border-bottom: 1px dashed #cccccce7;
                position: relative;
                font-size: 10px;
                display: flex;
                flex-direction: row;
                font-weight: bold;

                .item {
                    width: 100%;
                    height: 20px;
                    margin: 2px 0 2px 0;
                    font-size: 10px;
                    font-weight: normal;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    background-color: #E81224;
                    overflow: hidden;
                    border-radius: 5px;

                    cursor: none;

                    &:hover {
                        border: 2px solid #ffffff;
                    }

                    .itemTitle {
                        font-size: small;
                        vertical-align: middle;
                        flex-shrink: 1;
                        width: 25%;
                        height: 20px;
                        line-height: 20px;
                        color: white;
                        padding-left: 5px;
                        overflow: hidden;
                    }

                    .itemKeys {
                        height: 20px;
                        display: flex;
                        flex-direction: row;
                        justify-content: flex-end;
                        flex-shrink: 3;
                        min-width: 75%;
                        overflow: hidden;

                        .itemKey {
                            height: 20px;
                            line-height: 20px;
                            font-size: small;
                            border-radius: 3px;
                            padding: 0 2px 0 2px;
                            margin: 0 2px 0 2px;
                            //background-color: #e9e8e8;
                            color: rgb(255, 255, 255);
                            font-family: 'OPPOSans';
                            overflow: hidden;
                        }
                    }
                }
            }

        }

        .content {
            width: 100%;
            min-height: 200px;
            
            .element {
                width: 20%;
                float: left;
                padding-left: 20px;

                .eleTitleZone {
                    margin-top: 10px;
                    width: 100%;
                    height: 30px;
                    position: relative;

                    .eleTitle {
                        position: absolute;
                        //display:block-inline;
                        left: 10px;
                        top: 5px;
                        font-size: 20px;
                    }

                    #addNewItem {
                        height: 20px;
                        position: absolute;
                        //display:block-inline;
                        top: 7px;
                        right: 10px;
                        width: 20px;
                        border-radius: 3px;
                        border: 2px solid #f5222d;
                        cursor: pointer;

                        &:hover {
                            border: 3px solid #f5222d;
                            background-color: #fff1f0;
                        }
                    }

                }

                .itemList {
                    width: 100%;
                    margin-top: 15px;

                    .item {
                        width: 100%;
                        height: 20px;
                        margin: 2px 0 2px 0;
                        font-size: 1.1rem;
                        font-weight: normal;
                        display: flex;
                        flex-direction: row;
                        align-items: center;

                        overflow: hidden;
                        cursor: none;

                        &:hover {
                            border: 2px solid #7a76764d;
                        }

                        .itemTitle {
                            font-size: 0.9rem;
                            vertical-align: middle;
                            flex-shrink: 1;
                            width: 50%;
                            height: 20px;
                            line-height: 20px;
                        }

                        .itemKeys {
                            height: 20px;
                            display: flex;
                            flex-direction: row;
                            justify-content: flex-end;
                            flex-shrink: 3;
                            min-width: 50%;

                            .itemKey {
                                height: 20px;
                                line-height: 20px;
                                font-size: 0.7rem;
                                border-radius: 3px;
                                padding: 0 2px 0 2px;
                                margin: 0 2px 0 2px;
                                background-color: #e9e8e8;
                                color: rgba(0, 0, 0, 0.774);
                                font-family: 'OPPOSans';
                            }
                        }
                    }
                }
            }
        }

        #popWindow {
            position: absolute;
            width: 97%;
            height: 97%;
            background-color: transparent;
            z-index: -1;
            display: flex;
            justify-content: center;
            align-items: center;

            .form {
                background-color: #fff;
                border-radius: 5px;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.103);
                width: 400px;
                padding: 20px 30px;

                h2 {
                    text-align: center;
                    margin: 0 auto;
                    font-size: 25px;
                }

                .form-control {
                    margin-bottom: 10px;
                    padding-bottom: 20px;
                    position: relative;

                    #keys {
                        height: 42px;
                        display: flex;
                        flex-direction: row;
                        justify-content: flex-start;
                        flex-shrink: 3;
                        min-width: 75%;
                        padding: 10px;
                        border:2px solid rgba(119, 119, 119, 0.363);

                        &:focus {
                            border: 2px solid #777;
                            outline: 0;
                            border-radius: 5px;
                        }

                        .itemKey {
                            margin-top: 2px;
                            height: 20px;
                            line-height: 20px;
                            font-size: small;
                            border-radius: 3px;
                            padding: 0 2px 0 2px;
                            margin: 0 2px 0 2px;
                            background-color: #e9e8e8;
                            color: rgba(0, 0, 0, 0.774);
                            font-family: 'OPPOSans';
                        }
                    }

                    label {
                        color: #777;
                        display: block;
                        margin-bottom: 5px;
                        font-size: 20px;
                        font{
                            font-size: 16px;
                            color: black;
                            cursor: pointer;
                        }
                    }

                    input {
                        width: 100%;
                        border: 2px solid #f0f0f0;
                        border-radius: 4px;
                        display: block;
                        padding: 10px;
                        font-size: 14px;

                        &:focus {
                            border-color: #777;
                            outline: 0;
                        }
                    }

                    small {
                        color: var(--error-color);
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        visibility: hidden;
                    }

                    .error small {
                        visibility: visible;
                    }

                    .success input {
                        border-color: var(--success-color);
                    }

                    .error input {
                        border-color: var(--error-color);
                    }
                }

                button {
                    cursor: pointer;
                    background-color: #3498db;
                    border: 2px solid #3498db;
                    border-radius: 4px;
                    color: #fff;
                    display: inline-block;
                    font-size: 16px;
                    padding: 10px;
                    margin-top: 20px;
                    margin-left: 20px;
                    width: 40%;
                }
            }

        }

        #footer{
            position: fixed;
            bottom: 0px;
            width: 97%;
            padding: 5px 9px 5px 10px;
            height: 40px;
            font-size: 1rem;
            .container {
                display: flex;
                width: 100%;
                height: 100%;
                flex-direction: row;
                .reminder{
                    margin-right: auto;
                    line-height: 30px;
                    display: flex;
                    .itemKey{
                        padding:0px 5px;
                    }
                }
                .config{
                    cursor: pointer;
                    font-size: 1.2rem;
                }
            }
        }
    }
}