.thumbnail:hover:not(.calculating) .thumbnail-buttons {
    opacity: 1;
}

.calculating .thumbnail-link {
    pointer-events: none;
}

.calculating .thumbnail-buttons {
    opacity: 0;
}

.calculating .progress-indicator {
    display: flex;
}

/* .calculating img {
    filter: blur(4px);
} */

.progress-circle {
    border: 4px solid #ffffff;
    border-top-color: #00ffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 初始时隐藏弹出层 */
#popup_main {
    width: 81%;
    /* 设置宽度为父元素宽度的 80% */
    height: 80%;
    /* 设置高度为父元素高度的 60% */
    max-width: 800px;
    /* 设置最大宽度 */
    min-width: 300px;
    /* 设置最小宽度 */
    max-height: 500px;
    /* 设置最大高度 */
    min-height: 424px;
    /* 设置最小高度 */
    overflow: hidden;
    /* 隐藏滚动条 */
    position: relative;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* 初始为透明 */
    opacity: 0;
    /* 设置过度动画 */
    animation: fade-in-out-animation 0.5s ease-in-out 1 forwards;
  }
  
  /* 渐显过度动画 */
  @keyframes fade-in-out-animation {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* 去掉边框 */
    transform-origin: top left;
    /* 设置缩放变换的原点 */
  }

  /* 在屏幕宽度小于某个值时,隐藏 Logo 2 和 Logo 3 */
@media (max-width: 768px) {

    .logos {
        display: none;
        margin-right: 20px;
    }

    .create-text {
        display: none;
    }

    #popup_main {
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
}


/* supabase google login */
.google-login {
    display: flex;
    align-items: center;
    justify-content: center;  
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: #dadce0;
    background-color: #fff;
    font-size: 14px;
    color: #3c4043;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    user-select: none;
}

.google-login:hover {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    cursor: pointer;
}
  
.google-login__icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.google-login__icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.google-login__bd {
    flex-grow: 1;
    text-align: center;
}


/* 注册页面 loading 动画 */
.rest-notice,
.loading-box {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter:blur(1px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.rest-notice.show,
.loading-box.show {
    opacity: 1;
    pointer-events: auto;
}

.loading-box__circle {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 100%;
    animation: loading-circle infinite 0.75s linear;
}

.loading-box__text {
    margin-top: 10px;
}

.rest-notice__text {
    padding: 0 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    /* color: #4f46e5; */
    color: #000;
    transform: translateY(-50%);
}

@keyframes loading-circle {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 重置密码页面 */
.reset-password-page {
    transform: translateY(-10%);
}