html,
body {
    margin: 0;
    height: 100%;
}

body {
    background-color: black;
}

.model-display-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#rander-canvas {
    width: 100%;
    height: 100%;
}

.progress-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-masker {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 11;
}

.progress-background {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    z-index: 10;
}

.progress-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 10;
}

.progress-logo {
    display: block;
    width: 15%;
    min-width: 200px;
    margin: 0 auto;
}

.progress-content {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100;
    transform: translateX(-50%) translateY(-50%);
}

.progress-container .progress-track {
    position: relative;
    width: 15%;
    min-width: 200px;
    height: 10px;
    border-radius: 12px;
    margin: 0 auto;
    margin-top: 5px;
    overflow: hidden;
    background-color: #c2c2c2;
}

.progress-container .progress-slider {
    width: 100%;
    height: 12px;
    background-color: #1e2a7a;
    position: absolute;
    left: -100%;
    top: -1px;
}

.progress-text-container {
    width: 90%;
    height: 30px;
    position: relative;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    color: black;
}

.progress-rate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    font-size: 18px;
    text-align: center;
    font-weight: 800;
}

.progress-number {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 16px;
}

.progress-text {
    font-size: 22px;
    margin-top: 10px;
    text-align: center;
    font-weight: 800;
    color: white;
}

.operation-container {
    position: absolute;
    bottom: 3vw;
    right: 3vw;
}

.operation-item {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 90px;
    height: 90px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    opacity: 0.9;
    transition: all 0.3s;
}

.operation-item:first-child {
    margin-top: 0;
}

.operation-item-icon {
    width: 30px;
    display: block;
    margin: 0 auto;
    fill: rgba(239, 239, 241, 0.5);
    flex-grow: 1;
}

.operation-item-text {
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    margin-top: 5px;
}

.operation-item.active {
    /* background-color: #232424; */
    background-color: var(--primary);
}

.info-modal {
    position: absolute;
    width: 300px;
    top: 0;
    left: 0;
    z-index: 11;
    overflow: hidden;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transform: translate3d(0, 0, 0);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.info-modal-content {
    width: 100%;
    padding: 15px;
    padding-top: 0;
    border-radius: 10px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.info-modal-close-button {
    width: 100%;
    font-size: 22px;
    color: white;
    text-align: right;
    padding: 15px;
    padding-bottom: 0;
    cursor: pointer;
    line-height: 1;
}

.info-title {
    font-size: 18px;
    color: white;
}

.info-description {
    font-size: 14px;
    color: white;
    margin-top: 15px;
}


.exit-container {
    position: absolute;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    top: 20px;
    left: 20px;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.exit-container img {
    width: 25px;
    height: 25px;
}

@media (max-width: 767px) {
    .progress-text-container {
        margin-top: 10px;
    }

    /* .progress-container .progress-track {
        height: 20px;
    } */

    .progress-rate {
        font-size: 16px;
    }

    .progress-number {
        font-size: 14px;
    }
}

@media (max-width: 767px) and (orientation: portrait) {

    .model-display-container {
        display: none;
        transform-origin: top left;
        transform: rotate(90deg) translateY(-100%);
        width: 90vh;
        height: 100vw;
        z-index: 10;
    }

    #rander-canvas {
        z-index: 0;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    .progress-container .progress-slider {
        width: calc(100% - 1px);
    }

    .progress-background {
        width: calc(100% - 1px);
    }


    .operation-container {
        bottom: 3vh;
        right: 3vh;
        z-index: 9;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
    }

    .operation-item {
        width: 70px;
        height: 70px;
        padding: 10px;
    }

    .operation-item-icon {
        width: 25px;
    }

    .operation-item-text {
        font-size: 12px;
        line-height: 1.1;
        margin-top: 3px;
        word-break: break-all;
    }

    .progress-text {
        font-size: 12px;
    }

    .info-modal-close-button {
        font-size: 18px;
    }

    .info-title {
        font-size: 16px;
    }

    .info-description {
        font-size: 12px;
        margin-top: 8px;
    }

    .info-modal {
        width: 250px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        box-shadow:
            0 6px 20px rgba(31, 38, 135, 0.08),
            inset 0 1px 2px rgba(255, 255, 255, 0.4);
    }

    .exit-container {
        width: 50px;
        height: 50px;
        top: 20px;
        left: 20px;
    }

    .exit-container img {
        width: 20px;
        height: 20px;
    }

}