@font-face {
    font-family: 'HanaMeatball';
/*    src: url('../fonts/HanaMeatball-Medium.ttf') format('truetype');*/
}

body {
    font-family: 'HanaMeatball', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Index Page */
body.index-page {
    background-image: url('../images/bg1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}
.input-container {
    position: absolute;
    top: 51%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 40%;
    max-width: 300px;
}

.invite-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #000;
    font-family: 'HanaMeatball', sans-serif;
    font-size: 24px;
    text-align: center;
    outline: none;
    margin-bottom: 20px;
    padding: 5px;
}

.start-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 20px;
    font-family: 'HanaMeatball', sans-serif;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.start-btn:active {
    transform: scale(0.95);
}

/* Quiz Page */
body.quiz-page {
    background-image: url('../images/bg.png');
    align-items: flex-start; /* Align content to top */
    padding-top: 15%; /* Space for progress bar */
    background-size: 100% 100%;
}

.quiz-container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
/*    background: rgba(255, 255, 255, 0.9);*/
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30%;
}

.progress-bar-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #ff4d4d;
    width: 0%;
    transition: width 0.3s ease;
}

.question-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.option-label {
    display: block;
    padding: 10px 15px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.option-label:hover {
    background: #fff0f0;
    border-color: #ffcccc;
}

.option-input {
    display: none;
}

.option-input:checked + .option-text {
    font-weight: bold;
    color: #ff4d4d;
}

.option-label.selected {
    background: #ffe6e6;
    border-color: #ff4d4d;
}

.nav-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.nav-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-family: 'HanaMeatball', sans-serif;
    border-radius: 20px;
    cursor: pointer;
}

.nav-btn:disabled {
    background-color: #8c2627;
    cursor: not-allowed;
}

/* Result Page */
body.result-page {
    background-color: #f5f5f5; /* Fallback */
    background-image: url('../images/bg.png'); /* Reuse bg or different one */
    background-size: 100% 100%;
}

.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    max-width: 90vw;
    max-height: 85vh;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.result-container {
    text-align: center;
    width: 90%;
    max-width: 500px;
}

.result-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 20px;
    font-family: 'HanaMeatball', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
}

.footer-text {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    pointer-events: none;
}
