@media (max-width: 540px) {
    body {
        font-size:18px !important;
    }
}
html {
    background-color: #bbbbbb;
    padding: 0px;
}
body {
    width: 80%;
    min-height: calc(100vh - 4em);
    margin: 0 auto;
    padding: 2em;
    background-color: #dddddd;
    border-color: #eeeeee;
    border-left-style: solid;
    border-right-style: solid;
    border-width: 20px;
}
p {
    color: #444444;
    font-family: 'Roboto', sans-serif;
    font-size: 16pt;
    line-height: 1;
    margin: 4pt;
    text-align: center;
    text-wrap: pretty;
}
a{
    color: #2222DD;
}
a:hover{
    color: #22DDDD;
}
p.value-description {
    text-indent: -16pt;
    margin-left: 20pt;
}
p.question {
    margin: 16pt auto;
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
    width: 70%;
    min-width: 500pt;
    min-height: 144pt;
    background-color: #eeeeee;
    padding: 16pt;
    border-radius: 16pt;
    font-size: 36pt;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

}
h1 {
    color: #222222;
    font-family: 'Montserrat', sans-serif;
    font-size: 72pt;
    text-align: center;
    line-height: 72pt;
    margin-top: 0pt;
    margin-bottom: 0pt;
}
h2 {
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    font-size: 36pt;
    line-height: 36pt;
    margin-top: 12pt;
    margin-bottom: 0pt;
    text-align: center;
    text-wrap: balance;
}
h3 {
    color: #444444;
    font-family: 'Montserrat', sans-serif;
    font-size: 18pt;
    line-height: 18pt;
    margin-top: 12pt;
    margin-bottom: 0pt;
    text-align: center;
    text-wrap: balance;
}
li {
    font-size: 16pt;
    text-indent: 0;
    text-align: center;
    text-wrap: pretty;
    list-style-position: inside;
}
a {
    font-family: inherit;
}
img.center {
    display: block;
    margin: 1em auto;
    width: 50%;
    min-width: 500pt;
}
.button {
    background-color: #2196f3;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 8pt;
    color: white;
    padding: 8pt;
    width: 50%;
    min-width: 500pt;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 24pt;
    margin: -2px auto;
    cursor: pointer;
}
.small_button, .small_button_off {
    background-color: #333;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 8pt;
    color: white;
    padding: 8pt;
    width: 10%;
    min-width: 100pt;
    text-align: center;
    text-decoration: none;
    display: block;
    font-size: 18pt;
    margin: -2px auto;
    cursor: pointer;
}
.small_button_off {
    background-color: #ddd;
    color: #888;
    border: 2px solid #888;
    cursor: not-allowed;
    margin: -4px auto;
}
div.axis {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
div.bar {
    height: 36pt;
    line-height: 36pt;
    padding: 8pt;
    margin-top: 4pt;
    margin-bottom: 4pt;
    border-width: 4px;
    border-right-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-color: #222222;
    background-color: #eeeeee;
    display: block;
    width: 50%;
}
div.text-wrapper {
    font-family: 'Montserrat', sans-serif;
    font-size: 36pt;
    line-height: 36pt;
    color: #222222;
    display: inline-block;
}
div.federal {
    background-color: #ffeb3b;
    text-align: left;
    border-right-style: solid;
}
div.unitary {
    background-color: #f44336;
    text-align: right;
    border-left-style: solid;
}
div.democratic {
    background-color: #00897b;
    text-align: left;
    border-right-style: solid;
}
div.authority {
    background-color: #ff9800;
    text-align: right;
    border-left-style: solid;
}
div.globalist {
    background-color: #03a9f4;
    text-align: left;
    border-right-style: solid;
}
div.isolation {
    background-color: #9c27b0;
    text-align: right;
    border-left-style: solid;
}
div.pacifist {
    background-color: #ea90ab;
    text-align: right;
    border-left-style: solid;
}
div.militarist {
    background-color: #8bc34a;
    text-align: left;
    border-right-style: solid;
}
div.security {
    background-color: #3f51b5;
    text-align: left;
    border-right-style: solid;
}
div.freedom {
    background-color: #ffeb3b;
    text-align: right;
    border-left-style: solid;
}
div.equality {
    background-color: #f44336;
    text-align: left;
    border-right-style: solid;
}
div.markets {
    background-color: #00897b;
    text-align: right;
    border-left-style: solid;
}
div.secular {
    background-color: #ff9800;
    text-align: left;
    border-right-style: solid;
}
div.religious {
    background-color: #03a9f4;
    text-align: right;
    border-left-style: solid;
}
div.progress {
    background-color: #9c27b0;
    text-align: left;
    border-right-style: solid;
}
div.tradition {
    background-color: #8bc34a;
    text-align: right;
    border-left-style: solid;
}
div.assimilation {
    background-color: #ea90ab;
    text-align: left;
    border-right-style: solid;
}
div.multiculture {
    background-color: #3f51b5;
    text-align: right;
    border-left-style: solid;
}

span.weight-300 {
    font-weight: 300;
}
canvas {
    border-color: #444444;
    border-style: solid;
    border-width: 2px;
    border-radius: 8pt;
    display: block;
    margin: 8pt;
    margin-left: auto;
    margin-right: auto;
}

body.results-page {
    width: min(1060px, calc(100% - 2rem));
    border: none;
    padding: 1.5rem 1rem 2.5rem;
    background: transparent;
}

.results-shell {
    background: linear-gradient(160deg, #f5f8ff 0%, #eef2ff 100%);
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 2rem;
}

.results-header {
    background: linear-gradient(90deg, #1d4ed8, #7c3aed);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

.results-header h1 {
    color: #ffffff;
    text-align: center;
    font-size: clamp(34pt, 6vw, 56pt);
    line-height: 1;
}

p.results-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16pt;
    margin-top: 10pt;
    text-align: center;
}

body.results-page > .results-shell > h1 {
    font-size: clamp(38pt, 6.4vw, 58pt);
    margin-bottom: 0.7rem;
}

body.results-page hr {
    border: none;
    border-top: 1px solid #cbd5e1;
    margin: 1.4rem 0;
}

body.results-page .axis {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

body.results-page .axis img {
    height: 96pt;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.2));
}

body.results-page .bar {
    border-color: #0f172a;
    border-radius: 10px;
    margin: 0;
}

.results-summary {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    padding: 1.1rem 1.2rem 1.3rem;
}

.summary-title {
    margin-bottom: 0.9rem;
    font-size: clamp(24pt, 4vw, 34pt);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #d7e2f0;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.summary-card-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: clamp(14pt, 2.1vw, 18pt);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-result {
    margin: 0;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(24pt, 4.2vw, 34pt);
    line-height: 1.1;
    font-weight: 700;
}

.summary-meta {
    margin-top: 0.55rem;
    margin-bottom: 0;
    color: #334155;
    font-size: clamp(12pt, 1.9vw, 16pt);
    line-height: 1.3;
}

.summary-meta span {
    color: #1d4ed8;
    font-weight: 700;
}

.results-actions .button {
    min-width: 0;
    width: min(100%, 760px);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16);
}

@media (max-width: 900px) {
    .results-shell {
        padding: 1.2rem;
    }

    body.results-page h2,
    body.results-page .text-wrapper {
        font-size: clamp(16pt, 4.2vw, 28pt);
        line-height: 1.15;
    }

    body.results-page .axis img {
        height: 64pt;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

body.home-page {
    width: min(1120px, calc(100% - 2rem));
    border: none;
    padding: 1.5rem 1rem 2.5rem;
    background: transparent;
}

.home-shell {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2ff 45%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    padding: 1.4rem;
}

.hero-card,
.info-card,
.axes-card,
.footer-note {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hero-card {
    background: linear-gradient(120deg, #1d4ed8 0%, #4338ca 55%, #7c3aed 100%);
    border: none;
}

body.home-page h1 {
    color: #ffffff;
    font-size: clamp(42pt, 8vw, 74pt);
    line-height: 0.95;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.96);
    text-align: center;
    max-width: 900px;
    margin: 0.8rem auto 1rem;
    font-size: clamp(14pt, 2.4vw, 20pt);
    line-height: 1.35;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.hero-button {
    min-width: 0;
    width: min(100%, 760px);
    border-radius: 14px;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    font-size: clamp(20pt, 4vw, 34pt);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

.hero-link {
    color: #dbeafe;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(11pt, 2.2vw, 14pt);
}

.hero-highlights {
    margin: 1rem auto 0.6rem;
    max-width: 820px;
    color: #e2e8f0;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(12pt, 2.1vw, 16pt);
    line-height: 1.35;
}

.hero-highlights li {
    text-indent: 0;
    margin-bottom: 0.45rem;
}

.hero-image {
    width: min(100%, 720px);
    min-width: 0;
    margin-bottom: 0.2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.info-card h2,
.axes-card h2,
.footer-note h2 {
    font-size: clamp(22pt, 3.6vw, 34pt);
    line-height: 1.1;
    margin-bottom: 0.55rem;
}

.info-card p,
.axes-card p,
.footer-note p {
    line-height: 1.35;
    font-size: clamp(12pt, 2.2vw, 16pt);
    margin-bottom: 0.5rem;
}

.info-card ul {
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
}

.info-card li {
    text-indent: 0;
    margin-bottom: 0.4rem;
    color: #334155;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(12pt, 2.1vw, 16pt);
}

.axes-card,
.footer-note {
    margin-top: 0.9rem;
}

.axes-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

body.home-page p.value-description {
    margin-left: 0;
    text-indent: 0;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
}

.legal-note {
    opacity: 0.85;
}

@media (max-width: 900px) {
    .home-shell {
        padding: 1rem;
    }

    .info-grid,
    .axes-list {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .info-card,
    .axes-card,
    .footer-note {
        padding: 1rem;
    }
}

body.instructions-page,
body.quiz-page {
    width: min(1060px, calc(100% - 2rem));
    border: none;
    padding: 1.5rem 1rem 2.4rem;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
    border-radius: 28px;
    box-shadow: 0 24px 56px rgba(2, 6, 23, 0.45);
}

.instructions-shell,
.quiz-shell {
    background: linear-gradient(165deg, #ffffff 0%, #eff6ff 48%, #e0e7ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    padding: 1.35rem;
}

.instructions-hero,
.instructions-options,
.quiz-header,
.answer-grid,
.quiz-actions {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.instructions-hero,
.quiz-header {
    background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 50%, #7c3aed 100%);
    border: none;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}

body.instructions-page h1,
body.quiz-page h1 {
    color: #ffffff;
    font-size: clamp(40pt, 7vw, 68pt);
    line-height: 0.95;
}

.instructions-subtitle,
.quiz-subtitle {
    margin: 0.45rem 0 0.35rem;
    text-align: center;
    color: #dbeafe;
    font-size: clamp(13pt, 2.2vw, 18pt);
    font-family: 'Montserrat', sans-serif;
}

.instructions-lead {
    margin: 0.25rem auto 0;
    max-width: 820px;
    text-align: center;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(13pt, 2.3vw, 18pt);
    line-height: 1.35;
}

.instructions-options {
    margin-top: 0.85rem;
}

.instructions-options h2 {
    font-size: clamp(24pt, 4vw, 34pt);
    line-height: 1.1;
    margin-bottom: 0.45rem;
    text-align: center;
}

.instructions-options p {
    line-height: 1.35;
    font-size: clamp(12pt, 2.1vw, 16pt);
    margin-bottom: 0.9rem;
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.button-option {
    min-width: 0;
    width: min(100%, 760px);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    font-size: clamp(17pt, 3.4vw, 27pt);
}

.button-option-primary {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.button-option-secondary {
    background: linear-gradient(90deg, #0891b2, #0ea5e9);
}

.button-option-danger {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}


.instructions-actions {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.instructions-actions .button-option {
    margin: 0 auto;
}

.quiz-header {
    margin-bottom: 0.85rem;
}

.quiz-header h2 {
    color: #ffffff;
    text-align: center;
    margin-top: 0.55rem;
    font-size: clamp(22pt, 3.8vw, 34pt);
    line-height: 1.1;
}

body.quiz-page p.question {
    width: 100%;
    min-width: 0;
    min-height: 180px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    font-size: clamp(20pt, 4vw, 34pt);
    line-height: 1.22;
    color: #0f172a;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.answer-grid {
    margin-top: 0.85rem;
}

.answer-button {
    min-width: 0;
    width: min(100%, 760px);
    border-radius: 12px;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.14);
    font-size: clamp(17pt, 3.2vw, 25pt);
}

.answer-level-3 {
    background: linear-gradient(90deg, #14532d, #16a34a);
}

.answer-level-2 {
    background: linear-gradient(90deg, #3f6212, #65a30d);
}

.answer-level-1 {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.answer-level-0 {
    background: linear-gradient(90deg, #475569, #64748b);
}

.answer-level--1 {
    background: linear-gradient(90deg, #b45309, #f59e0b);
}

.answer-level--2 {
    background: linear-gradient(90deg, #c2410c, #f97316);
}

.answer-level--3 {
    background: linear-gradient(90deg, #991b1b, #dc2626);
}

.quiz-actions {
    margin-top: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    align-items: center;
}

body.quiz-page .small_button,
body.quiz-page .small_button_off {
    width: auto;
    min-width: 140px;
    margin: 0;
}

@media (max-width: 900px) {
    .instructions-shell,
    .quiz-shell {
        padding: 1rem;
    }

    .instructions-hero,
    .instructions-options,
    .quiz-header,
    .answer-grid,
    .quiz-actions {
        padding: 0.9rem;
    }

    body.quiz-page p.question {
        min-height: 150px;
    }
}

.politico-shell {
    padding-top: 1.4rem;
}

.politico-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.politico-meta {
    min-width: 0;
}

.politico-kicker {
    text-align: left;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11pt;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.politico-page .politico-header h1 {
    text-align: left;
    margin: 0.1rem 0;
    font-size: clamp(30pt, 6vw, 58pt);
}

.politico-page .politico-header .results-subtitle {
    text-align: left;
    margin: 0;
}

.politico-link {
    color: rgba(224, 242, 254, 0.98);
    font-family: 'Roboto', sans-serif;
    font-size: 13pt;
}

.politico-link:hover {
    color: #ffffff;
}

.politico-error {
    margin: 0.8rem 0;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #7f1d1d;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-family: 'Roboto', sans-serif;
    font-size: 14pt;
}

@media (max-width: 700px) {
    .politico-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .politico-page .politico-header h1,
    .politico-page .politico-header .results-subtitle,
    .politico-kicker {
        text-align: left;
    }
}


.politico-page .results-summary {
    text-align: center;
}

.politico-page .summary-grid {
    grid-template-columns: 1fr;
    justify-items: center;
}

.politico-page .summary-card {
    width: min(100%, 420px);
}
