body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    position: fixed;
    background-color: rgb(236, 245, 234);
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family:'Franklin Gothic Light', 'Arial Narrow', Arial, sans-serif;
    z-index: 10;
}

.redirectory {
    border: none;
    background: none;
    position: fixed;
    right: 0;
    top: 50px;
    font-size: 10px;
    cursor: pointer;
}

.redirectory:hover {
    color: blue;
    text-decoration: underline;
}

main {
    margin: 94px 18px 50px 18px ;
}

.subheader {
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;

}

.binCapacities {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 12px;
}

.binCapacity {
    border-radius: 14px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.15s, opacity 0.15s;
}

.binCapacity:hover {
    box-shadow: 2px 2px 18px rgba(0, 0, 0, 0.4);
}

.binCapacity:active {
    opacity: 0.7;
}

.columnHeading {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    padding-left: 22px;

}

.fullness {
    font-size: 12px;
    margin-top: 0px;
    padding-left: 22px;

}

/* This is for the progressbar*/
.progress-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background:
        conic-gradient(
            #3ddc50 calc(var(--percent) * 1%),
            #e6e9ee 0
        );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 14px auto;

    /* Depth */
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12),
        inset 0 0 12px rgba(255, 255, 255, 0.6);

    transition: all 0.6s ease;
    margin-bottom: 32px;
}

.progress-circle::before {
    content: "";
    width: 200px;
    height: 200px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;

    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.progress-circle span {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.5px;
}

@media (max-width: 1200px) and (min-width: 1050px) {
    .progress-circle {
        width: 250px;
        height: 250px;
    }

    .progress-circle::before {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 1050px) {
    .progress-circle {
        width: 200px;
        height: 200px;
    }

    .progress-circle::before {
        width: 140px;
        height: 140px;
    }
}


@media (max-width: 750px) {
    .progress-circle {
        width: 150px;
        height: 150px;
    }

    .progress-circle::before {
        width: 100px;
        height: 100px;
    }
}


@media (max-width: 600px) {
    .binCapacities {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .progress-circle {
        width: 250px;
        height: 250px;
    }

    .progress-circle::before {
        width: 180px;
        height: 180px;
    }
}


/* End of progressbar */

footer {
    display: flex;
    justify-content: center;
    font-size: 12px;
}

/* Leaderboard */
.leaderboardNumbers {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    box-shadow: 2px 2px 12px rgba(7, 91, 7, 0.2);
    transition: box-shadow 0.15s;
    margin: 18px auto;
    max-width: 800px;
}

.leaderboardNumbers:hover {
    box-shadow: 2px 2px 12px rgba(7, 91, 7, 0.4);
}

.leaderboardNumbers p {
    display: inline;
}

.placing {
    width: 40px;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
}

.ecocoin {
    position: absolute;
    right: 5%;
    height: 50px;
    width: 50px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(206, 243, 186);

}

.ecocoin img {
    width: 35px;
    transition: opacity 0.15s;
}

.ecocoin img:hover {
    opacity: 0.7;
}

.ecocoin img:active {
    opacity: 0.3;
}


.ecocoin p {
    padding: 6px 12px;
    color: white;
    font-size: 10px;
    position: absolute;
    bottom: -50px;
    left: -8px;
    font-weight: 600;
    background-color: rgb(95, 95, 95);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.ecocoin:hover .tooltip {
    opacity: 1;
}

.tooltip {
    pointer-events: none;
}

/* for glassmorphism design*/
:root {
    --glass-bg: rgba(255, 255, 255, 0.45);   /* more white */
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* lighter shadow */
    --glass-blur: blur(20px);
}

.quiz-background {
    background-image: url("https://phangchunhoe.github.io/smart_recycling_bin/images/quiz_background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-option {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;

    transition: transform 0.15s ease, background 0.2s ease;
}

.glass-option:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.glass-option:active {
    transform: scale(0.97);
}

.quiz-overlay {
    background: rgba(255, 255, 255, 0.15);
}

.glass-progress {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

/* ===============================
Voucher Celebration Styles
================================ */

.voucher-container {
    perspective: 1200px;
}

.voucher-card {
    width: 320px;
    height: 200px;
    position: relative;
    border-radius: 24px;
    perspective: 1200px;
}

.voucher-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.voucher-inner.flipped {
    transform: rotateY(180deg);
}

.voucher-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.voucher-back {
    transform: rotateY(180deg);
}

/* Confetti glow */
.voucher-glow {
    box-shadow:
        0 0 30px rgba(34, 197, 94, 0.6),
        0 0 80px rgba(34, 197, 94, 0.4);
}

/* Sparkle animation */
@keyframes floatUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-float {
    animation: floatUp 0.6s ease-out;
}

/* ===============================
   Results Page Typography
================================ */

.results-page {
    color: #111; /* near-black, softer than pure black */
}

.results-page h1 {
    color: #111;
    font-size: 2.5rem;
}

.results-page p {
    color: #222;
    font-size: 1.05rem;
}

.results-page .voucher-face p {
    color: #111;
}

.results-page button {
    color: #fff; /* keep button text white */
}





