body {
    width: 400px;
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

.logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
    padding-top: 50px;
    margin: 20px auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
    z-index: 2;
    position: relative;
}

.text-box {
    display: block;
    width: auto;
    max-width:85%;
    height: auto;
    padding-top: 40px;
    margin: 20px;
    opacity: 0;
    animation: showText 0s 1.2s forwards;
    z-index: 2;
    position: relative;
}

.answer-box-button {
    display: block;
    position: relative;
    width: auto;
    max-width: 62%;
    margin: 20px;
    margin-left: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    animation: showText 0s 2.2s forwards;
    z-index: 2;
}

.answer-box {
    display: block;
    width: 100%;
    height: auto;
}

.answer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
}

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.dialog-overlay.show {
    display: flex;
}

.dialog {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: dialogFadeIn 0.3s ease-out;
}

@keyframes dialogFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.dialog-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dialog-close:hover {
    color: #333;
}

.dialog-body {
    padding: 20px;
}

.dialog-body .input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dialog-body #dialogPasswordInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-submit {
    padding: 12px 24px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #333333;
}

.btn-submit:disabled {
    background-color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
}

.dialog-body .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
}

header, main {
    position: relative;
    z-index: 3;
}

.result-section {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.result-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.result-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-download {
    padding: 12px 24px;
    background-color: #FC4C4C;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #e63939;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes showText {
    to {
        opacity: 1;
    }
}

