@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: white;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

header {
    position: fixed; 
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 20px;
    color: #f8a3a4;
    z-index: 9999; 

}


.container {
    margin-top: 10px; 
}




.question-image {
    width: 100%;
    max-width: 300px; 
    height: auto;
    border-radius: 15px;
    object-fit: contain;
    display: block;
    margin: 15px auto;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


.question-image:hover {
    transform: scale(1.03);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.35);
}


.logo {
    max-width: 230px;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress {
    width: 0%;
    height: 100%;
    background: #f8a3a4;
    transition: width 0.5s;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answers button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #f8a3a4;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.answers button:hover {
    background: #e37879;
    transform: scale(1.05);
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-logo {
    width: 120px;
    animation: pulse 1s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.hidden {
    display: none;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.5s ease-in-out;
}


.popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}


.popup-text {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    line-height: 1.3;
}


.popup-highlight {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}


.highlight {
    font-size: 19px;
    font-weight: 700;
    color: #e44d26;
}


.next-btn {
    width: 70%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #f8a3a4;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    animation: pulse 2s infinite ease-in-out; 
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}


.popup-content button {
    background: #f8a3a4;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
}

.popup-content button:hover {
    background: #e37879;
    transform: scale(1.05);
}


.hidden {
    display: none;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.final-screen {
	top:20px;
	
	}
	
	
.final-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

.final-text {
    font-size: 17px;
    font-weight: 400;
    color: #444;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 15px;
}

.final-text .highlight {
    font-size: 20px;
    font-weight: 700;
    color: #e44d26;
}

.final-image {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    display: block;
    margin: 15px auto;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}


