@font-face {
    font-family: 'Averta';
    src: url('https://pages.cicero.oslo.no/fonts/AvertaPE/regular.woff2') format('woff2'),
         url('https://pages.cicero.oslo.no/fonts/AvertaPE/regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta';
    src: url('https://pages.cicero.oslo.no/fonts/AvertaPE/bold.woff2') format('woff2'),
         url('https://pages.cicero.oslo.no/fonts/AvertaPE/bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Averta', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #FFFFFF;
    padding: 0 20px;
    box-sizing: border-box;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 20px;
    z-index: 100;
}

.header-logo {
    height: 45px;
    width: auto;
}

.quiz-container {
    background-color: #FFFFFF;
    padding: 20px 0;
    border-radius: 0px;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: #333;
}

h1 {
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 20px;
}

.progress {
    margin-bottom: 15px;
    font-weight: bold;
}

.question {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.options {
    list-style-type: none;
    padding: 0;
}

.options li {
    margin: 10px 0;
}

.options button {
    background-color: #e0e7ff;
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    width: 80%;
    transition: background-color 0.3s ease;
}

.options button:hover {
    background-color: #c7d2fe;
}

.result {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
}

.result.correct {
    color: #64d28c;
}

.result.incorrect {
    color: #d9534f;
}

.summary {
    display: none;
    margin-top: 20px;
    font-size: 16px;
    text-align: left;
}

.score-summary {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.answers-summary h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.summary-list {
    list-style-type: none;
    padding: 0;
}

.summary-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-question {
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-number {
    display: inline-block;
    margin-right: 5px;
}

.summary-answer {
    padding-left: 20px;
}

.summary-answer.correct {
    color: #64d28c;
}

.summary-answer.incorrect {
    color: #d9534f;
}

.result-icon {
    display: inline-block;
    margin-right: 5px;
    font-weight: bold;
}

.correct-answer {
    margin-top: 5px;
    color: #64d28c;
}

.source-link {
    display: inline;
    margin-left: 8px;
    color: #333;
}

.source-link a {
    color: #333;
    font-weight: 400;
    text-decoration: underline;
}

.source-link a:hover {
    color: #000;
}

.next-button {
    display: none;
    margin-top: 20px;
    font-weight: bold;
    color: #0056b3;
    cursor: pointer;
    text-decoration: underline;
}

.next-button:hover {
    color: #004499;
}

.back-link {
    margin-top: 20px;
    font-weight: bold;
    color: #0056b3;
    cursor: pointer;
    text-decoration: underline;
}

.back-link:hover {
    color: #004499;
}

.quiz-image {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.byline {
    font-weight: 400;
    font-size: 14px;
    color: #333;
    margin-top: -10px;
    margin-bottom: 20px;
}

.byline a {
    color: #333;
    text-decoration: underline;
}

.byline a:hover {
    color: #000;
}

.loading {
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.challenge-banner {
    padding: 15px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #0056b3;
}

.challenge-section {
    margin-top: 25px;
    padding: 20px;
    background-color: #e0e7ff;
    border-radius: 0px;
}

.challenge-section h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-button {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.share-button:hover {
    background-color: #004499;
}

.copy-feedback {
    display: none;
    color: #64d28c;
    font-weight: bold;
    margin-top: 10px;
}

.challenge-result {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 0px;
    font-weight: bold;
    text-align: center;
}

.challenge-result.beat {
    color: #64d28c;
}

.challenge-result.tie {
    color: #0056b3;
}

.challenge-result.lost {
    color: #d9534f;
}
