
/* 숨김 */
.hidden {
    display: none;
}

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/record/common_dimm_transparent.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.toast-message {
    width: 406px;
    height: 102px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.countdown {
    width: 114px;
    height: 114px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
}


/* Confirm Dialog Overlay */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/record/common_dimm.png') center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Confirm Dialog 박스 */
.confirm-dialog {
    position: relative;
    width: 722px;
    height: 242px;
    background: url('../images/record/common_popup_bg.png') center center / contain no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 메시지 */
.confirm-confirm-message {
    width: 601px;
    height: 42px;
    background: url('../images/record/common_pop_comfirm_message.png') no-repeat center center;
    background-size: contain;
    margin-bottom: 30px;
}

.confirm-close-message {
    width: 608px;
    height: 43px;
    background: url('../images/record/common_pop_close_message.png') no-repeat center center;
    background-size: contain;
    margin-bottom: 30px;
}

.confirm-save-message {
    width: 465px;
    height: 42px;
    background: url('../images/record/common_pop_save_message.png') no-repeat center center;
    background-size: contain;
    margin-bottom: 30px;
}

/* 버튼 영역 */
.confirm-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: -10px;
}

/* 버튼 기본 스타일 */
.confirm-btn {
    width: 196px;
    height: 61px;
    background-size: contain;
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
}

    /* 각 버튼 별 이미지 */
    .confirm-btn.save {
        background-image: url('../images/record/common_popup_btn_save_n.png');
    }

        .confirm-btn.save:hover {
            background-image: url('../images/record/common_popup_btn_save_s.png');
        }

    .confirm-btn.not-save {
        background-image: url('../images/record/common_popup_btn_not save_n.png');
    }

        .confirm-btn.not-save:hover {
            background-image: url('../images/record/common_popup_btn_not save_s.png');
        }

    .confirm-btn.cancel {
        background-image: url('../images/record/common_popup_btn_cancel_n.png');
    }

        .confirm-btn.cancel:hover {
            background-image: url('../images/record/common_popup_btn_cancel_s.png');
        }

    .confirm-btn.done {
        background-image: url('../images/record/common_popup_btn_done_n.png');
    }

        .confirm-btn.done:hover {
            background-image: url('../images/record/common_popup_btn_done_s.png');
        }

    .confirm-btn.see {
        background: url('../images/record/common_popup_btn_see_n.png') no-repeat center center;
    }

        .confirm-btn.see:hover {
            background: url('../images/record/common_popup_btn_see_s.png') no-repeat center center;
        }

    .confirm-btn.download {
        background: url('../images/record/common_popup_btn_download_n.png') no-repeat center center;
    }

        .confirm-btn.download:hover {
            background: url('../images/record/common_popup_btn_download_s.png') no-repeat center center;
        }

.confirm-close-btn {
    position: absolute;
    top: 20px; /* 화면 상단에서 거리 */
    right: 20px; /* 화면 우측에서 거리 */
    width: 24px;
    height: 23px;
    background: url('../images/record/common_popup_btn_X.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

    /* hover 시 검정색 필터 효과 */
    .confirm-close-btn:hover {
        filter: brightness(0);
    }

.record-tool {
    position: fixed;
    top: 26px;
    right: 307.7px;
    transform: translateX(-50%);
    z-index: 2000;
    /*background-color: #F2F2F2;*/
    background: url('../images/record/common_record_bg1.png') no-repeat center center;
    background-size: 101%; /*녹화 토글 버튼 가리기 위함*/
    width: 310px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center; /* 수직 가운데 정렬 */
    justify-content: left; /* 수평 가운데 정렬 */
}


.record-content {
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: space-between; /* 요소 간 간격 일정하게 */
    box-sizing: border-box;
}

.record-icon {
    width: 20px;
    height: 20px;
    background: url('../images/record/common_record_icon_recording.png') no-repeat center center;
    background-size: contain;
    margin-left: 17px;
}

/* 깜박이는 애니메이션 */
@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }
}

/* 시작 버튼 클릭 시 적용될 클래스 */
#StartTool .record-icon.blinking {
    animation: blink 1s infinite;
}

.record-time {
    font-size: 27px;
    color: #000;
    width: 100px;
    height: 45px;
    text-align: center;
    letter-spacing: -1px; /*원하는 값으로 조정 */
    font-variant-numeric: tabular-nums;
    margin-top:2px;
}

.record-btn {
    /* width: 122px;
    height: 62px;*/
    width: 100px;
    height: 80px;
    background: url('../images/record/common_record_btn_done_n.png') no-repeat center center;
    background-size: 100.7%;
    border: none;
    cursor: pointer;
    margin-left: 7px;
    margin-right: 7px;
}

    .record-btn.recording {
        background: url('../images/record/common_record_btn_done_s.png') no-repeat center center;
        background-size: 100.7%;
    }

.play-tool {
    position: fixed;
    top: 26px;
    right: 307.7px;
    transform: translateX(-50%);
    z-index: 2000;
    /*background-color: #F2F2F2;*/
    background: url('../images/record/common_record_bg2.png') no-repeat center center;
    background-size: 101%; /*녹화 토글 버튼 가리기 위함*/
    width: 310px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center; /* 수직 가운데 정렬 */
    justify-content: left; /* 수평 가운데 정렬 */
}

.play-content {
    display: flex;
    align-items: center;
    /*gap: 7px;*/
    justify-content: space-between; /* 요소 간 간격 일정하게 */
    box-sizing: border-box;
}

.record-close-btn,
#playCloseBtn {
    width: 19px;
    height: 19px;
    background: url('../images/record/common_record_btn_close.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
}

.record-close-btn{
    border-left:10px;
    margin-left:10px;
}

#playCloseBtn{
    margin-left:13px;
}

.play-icon {
    width: 18px;
    height: 20px;
    background: url('../images/record/common_record_icon_play.png') no-repeat center center;
    background-size: contain;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    margin-top: 5px;

}

.play-buttons {
    display: flex;
    align-items: center;
    gap: 12px; /* 버튼과 구분선 사이 여백 */
    margin-left: 14px;
}

.play-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 10px;
}

#retryBtn {
    width: 18px;
    height: 20px;
    background: url('../images/record/common_record_btn_return.png') no-repeat center center;
    background-size: contain;
}

#downloadBtn {
    width: 23px;
    height: 21px;
    background: url('../images/record/common_record_btn_down.png') no-repeat center center;
    background-size: contain;
}

.button-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    top: 100%; /* 버튼 바로 아래 */
    left: 50%;
    transform: translateX(-50%);
    margin-top: -2px;
    background: black;
    color: white;
    border-radius: 5px;
    font-size: 18px;
    line-height: 39px;
    height: 39px;
    padding: 0 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.button-wrapper .tooltip-speed {
    margin-top: -6px;
}

.button-wrapper .tooltip-play {
    margin-top: 10px;
}

.tooltip.show {
    opacity: 1;
}

.tooltip.hidden {
    display: none;
}
