@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'GmarketSansMedium', sans-serif;
    background: #fff;
    color: #111;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#start-screen, #quiz, #result {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    margin: 50px auto 0;
    box-sizing: border-box;
}

#quiz {
    position: relative;
}

#start-screen {
    background: #f9f9f9;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

#start-screen h1 {
    white-space: pre-wrap;
    margin-top: 10%;
    margin-left: 10px;
    font-size: 36px;
    letter-spacing: -0.4px;
    color: #0a0a0a;
    line-height: 1.4;
}

.result-card {
    background: white;
    color: #333;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.result-card h2 {
    text-align: center;
    color: #000000;
    font-size: 27px;
    white-space: pre-wrap;
    margin-bottom: 0;
}

.result-card p {
    white-space: pre-wrap;
    text-align: left;
    line-height: 1.4;
    font-size: 16px;
    position: relative;
    padding-left: 12px;
}

.result-card p:after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0a0a0a;
    position: absolute;
    left: 0;
    top: 8px;
}

.result-card .img-wrapper img {
    width: 200px;
    position: relative;
    z-index: 1;
}

.result-card .img-wrapper {
    position: relative;
    display: inline-block;
    width: 220px;
}

.result-card .img-wrapper::after {
    content: '';
    width: 230px;
    height: 230px;
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #f3f3f3;
    z-index: 0;
}

.answers {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.answers button {
    width: 100%;
    margin: 8px 0;
    padding: 16px;
    font-size: 18px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    color: #040404;
}

.answers button:hover {
    background-color: #e0e0e0;
}

#progress-container {
    width: 100%;
    height: 8px;
    background-color: #eee;
    margin-top: 32px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

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

.question {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 42px;
}

.question p {
    font-size: 24px;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    word-break: keep-all;
    line-height: 1.5;
}

.question-number {
    font-size: 14px;
    background: #33d0b6;
    text-align: center;
    color: #ffffff;
    padding: 0 13px;
    width: fit-content;
    border-radius: 30px;
    height: 30px;
    line-height: 32px;
    display: block;
    margin: 0 auto 8px;
}

.question-count {
    text-align: center;
    font-size: 16px;
    margin-top: 28px;
    font-weight: 700;
}

#start-btn {
    font-size: 20px;
    padding: 14px 28px;
    background-color: #33d0b6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    bottom: 40px;
    left: 30px;
    right: 30px;
    font-weight: 700;
    align-self: center;
}
.language-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

#language-selector {
    position: absolute;
    top: 15px;
    right: 10px;
    z-index: 1100;
}

#language-toggle {
    padding: 8px 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-size: 16px;
    letter-spacing: -0.7px;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    width: 150px;
    right: 10px;
    top: 56px;
}

.dropdown-menu div {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu div:hover {
    background: #f2f2f2;
}

#share-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 35px;
}

#share-buttons button {
    background: #33d0b6e3;
    border: 0;
    border-radius: 15px;
    height: 45px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#share-buttons button:hover {
    background: rgba(11, 164, 140, 0.89);
}

.kingle-character {
    animation: floatyTiger 3s ease-in-out infinite;
    transform-origin: bottom center;
    left: 50px;
    position: absolute;
    bottom: 150px;
}

@keyframes floatyTiger {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.kingle-character-sub2 {
    animation: puppyWiggle 2.5s infinite ease-in-out;
    transform-origin: bottom center;
    right: 0px;
    position: absolute;
    bottom: 180px;
}

@keyframes puppyWiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(7deg);
    }
    40% {
        transform: rotate(-7deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
}

.kingle-character-sub {
    animation: frogBoing 2s infinite ease-in-out;
    transform-origin: bottom center;
    left: 45px;
    position: absolute;
    bottom: 270px;
}

@keyframes frogBoing {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) rotate(-5deg);
    }
    50% {
        transform: translateY(2px) rotate(5deg);
    }
    75% {
        transform: translateY(-3px) rotate(-3deg);
    }
}

.img-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: auto;
    display: contents;
}

.kingle-character {
    position: absolute;
    animation: floatyTiger 3s ease-in-out infinite;
    transform-origin: bottom center;
    left: 17%;
    bottom: 100px;
    width: 300px;
}

.kingle-character-sub {
    position: absolute;
    animation: frogBoing 2s infinite ease-in-out;
    transform-origin: bottom center;
    left: 13%;
    bottom: 200px;
    width: 100px;
}

.kingle-character-sub2 {
    position: absolute;
    animation: puppyWiggle 2.5s infinite ease-in-out;
    transform-origin: bottom center;
    right: 1%;
    bottom: 130px;
    width: 120px;
}

@media (max-width: 400px) {
    .kingle-character {
        width: 220px;
        bottom: 120px;
        left: 23%;
    }

    .kingle-character-sub {
        width: 75px;
        bottom: 210px;
    }

    .kingle-character-sub2 {
        width: 90px;
        bottom: 150px;
    }
}

.kingle-link-btn {
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kingle-link-btn button {
    background-color: #fff;
    border: 1px solid #33d0b6;
    color: #33d0b6;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.kingle-link-btn button:hover {
    background-color: #27b3a0;
    color: #fff;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    margin: 0 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content button {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    background-color: #33d0b6;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

