@charset "utf-8";

.at-content { padding: 10px 0; }
.amina-header { display: none; }
#thema_wrapper .at-lnb,
#thema_wrapper .pc-header,
#thema_wrapper .m-header,
#thema_wrapper .at-menu,
#thema_wrapper .at-footer {
    display: none;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#thema_wrapper {
    height: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#thema_wrapper::-webkit-scrollbar {
    display: none;
}

.at-go {
    display: none;
}

.panel-default {
    border: none;
    max-width: 728px;
    margin: auto;
}

.panel-default .panel-heading {
    background-color: unset;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

.panel-heading .mode-select {
    display: inline-block;
    padding: 4px 10px !important;
    font-size: 13px;
    color: #777;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.question-container {
    padding-bottom: 30px;
    padding-top: 30px;
    transition: height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;  /* 높이 애니메이션 중 내용 잘림 방지 */
}

#sheet-spinner {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

#transition-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #fff; /* 원하는 색으로 조정 가능 */
    z-index: 10000;
}

#transition-overlay, #transition-overlay * {
    user-select: none;
    pointer-events: none;
}

#transition-overlay .slow-notice-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#transition-overlay .slow-notice-overlay.visible {
    opacity: 1;
}

#modalBody > img {
	width: 100%;
    margin-bottom: 15px;
    max-height: 300px;
    object-fit: scale-down;
}

.modal-footer .btn {
    border-radius: 4px !important;
}

#exit_eaxm {
    cursor: pointer;
}

#nprogress .bar {
    z-index: 20000 !important;
}

#toast-container {
    position: fixed;
    z-index: 20000;
    pointer-events: none;
}
  
@media (min-width: 768px) {
    #toast-container {
        bottom: 16px;
        right: 16px;
    }
    #toast-container .toast {
        width: 350px;
        margin-bottom: 16px;
    }
}
  
@media (max-width: 767px) {
    #toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    #toast-container .toast {
        width: auto;
        margin-bottom: 8px;
    }
}
  
#toast-container .toast {
    display: flex;
    padding: 16px;
    background-color: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
    font-size: 14px;
}

#toast-container .toast.show {
    opacity: 1;
}
  
#toast-container .toast:not(.action-toast) .toast-body {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

#toast-container .toast:not(.action-toast) .toast-message {
    flex: 1;
    color: #212529;
}

#toast-container .toast:not(.action-toast) .btn-close {
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    margin-left: 8px;
}

#toast-container .toast:not(.action-toast) .btn-close:hover {
    opacity: 0.75;
}

#toast-container .toast.action-toast .toast-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

#toast-container .toast.action-toast .toast-header-inline {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

#toast-container .toast.action-toast .toast-header-inline .toast-message {
    flex: 1;
    color: #212529;
    line-height: 1.4;
}

#toast-container .toast.action-toast .toast-header-inline .btn-close {
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    margin: 0;
}

#toast-container .toast.action-toast .toast-header-inline .btn-close:hover {
    opacity: 0.75;
}

#toast-container .toast.action-toast .toast-action {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 4px !important;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    width: fit-content;
}

#toggle-dark {
    cursor: pointer;
}

.modal-content {
    color: #333;
}

#thema_wrapper,
#thema_wrapper .panel,
#thema_wrapper #explanation-section,
#thema_wrapper #explanation-section .badge-note,
#thema_wrapper #transition-overlay {
    transition: none;
}

#thema_wrapper.enable-transition,
#thema_wrapper.enable-transition .panel,
#thema_wrapper.enable-transition #explanation-section,
#thema_wrapper.enable-transition #explanation-section .badge-note,
#thema_wrapper.enable-transition #transition-overlay {
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

#thema_wrapper.dark-mode,
#thema_wrapper.dark-mode .panel,
#thema_wrapper.dark-mode #explanation-section,
#thema_wrapper.dark-mode #explanation-section .badge-note,
#thema_wrapper.dark-mode #transition-overlay {
    background-color: #121212 !important;
    color: #eee !important;
}

#thema_wrapper.dark-mode .answer-chip {
    background: #3b7b65 !important;
}