@font-face {
    font-family: 'HandWritten';
    src: url(/assets/fonts/handWritten.woff);
}

@font-face {
    font-family: 'mainButton';
    src: url(/assets/fonts/mainButton.TTC);
}

ion-content {
    --background: #f8f8f8;
    position: relative;
    z-index: 0;
    height: 100vh;

    #background {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        object-fit: cover;
        z-index: 1;
        filter: blur(30px); // 添加模糊效果，数值越大模糊程度越高
    }

    #shade {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        object-fit: cover;
        z-index: 2;
        background-color: rgba(0, 0, 0, 0.4); // 设置半透明黑色遮罩效果
    }

    #share {
        position: fixed;
        bottom: 5vh;
        right: 5vw;
        height: 80px;
        width: 80px;
        object-fit: cover;
        z-index: 9;
        box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }

    ion-card {
        --background: none;
        color: white;
        box-shadow: none;
        margin: 20px 10px;
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
        z-index: 3;

        img.scan {
            width: 45%;
            border-radius: 20px;
            float: left;
            margin-right: 2%;
        }

        div {
            float: left;

            h1 {
                margin: 10px 0;
                font-size: 25px;
                font-family: 'HandWritten';
                font-weight: bolder;
            }

            h2 {
                margin: 5px 0;
                font-size: 15px;
                font-family: 'mainButton';
            }
        }
    }

    #score {
        --background: rgba(0, 0, 0, 0.4);
        border-radius: 10px;

        #up {
            width: 100%;

            #left {
                width: 30%;
                float: left;

                #score-title {
                    display: flex;
                    align-items: center;
                    width: 100%;
                    padding: 10px;

                    ion-avatar {
                        width: 20px;
                        height: 20px;
                    }

                    p {
                        margin: 0;
                    }
                }

                #score-content {
                    width: 100%;
                    border-right: 1px solid rgb(94, 94, 94);
                    text-align: center;

                    p {
                        text-align: center;
                        margin: 5px;
                        font-size: 35px;
                        color: orange;
                        font-weight: bold;
                    }

                    img {
                        height: 25px;
                    }
                }
            }

            #right {
                width: 70%;
                float: right;

                #shape-title {
                    width: 100%;
                    padding: 10px 20px;

                    p {
                        margin: 0;
                        color: rgb(150, 150, 150);
                    }
                }

                #shape-content {
                    width: 100%;
                    padding: 0 20px;

                    .shape-list {
                        width: 100%;
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        margin-bottom: 10px;

                        .label {
                            margin: 0;
                            color: white;
                        }

                        ion-progress-bar {
                            width: 60%;
                            height: 8px;
                            --progress-background: orange;
                            --background: rgba(28, 22, 22, 0.2);
                            border-radius: 1000px;
                        }

                        .value {
                            margin: 0;
                            color: white;
                        }
                    }
                }

            }
        }

        #down {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;

            p {
                margin: 0;
                color: rgb(162, 162, 162);
            }
        }
    }

    #show {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 20px;
        box-shadow: none;
        width: 96%;
        height: auto;
        margin: 2%;

        div {
            display: block;
            width: 100%;
            border-bottom: #6c6c6c 1px solid;
            overflow: hidden;
            max-height: 50px;
            transition: max-height 1s ease-in-out;

            h1 {
                font-family: 'mainButton';
                color: white;
                margin: 10px;
                font-size: 20px;
            }

            p {
                padding: 0 10px;
                font-family: 'HandWritten';
                color: white;
                font-size: 20px;
                margin-top: 10px;
            }

            &.expanded {
                max-height: 1000px;
            }
        }

    }
}