* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Recurring logo background */
body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #FBEEC8;
    background-image: url("aslogo.png");
    opacity: 0.3
    background-repeat: repeat;
    background-size: 150px 150px;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    background-image: linear-gradient(rgba(251, 238, 200, 0.7), rgba(251, 238, 200, 0.7)), url("aslogo.png");
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background: #FBEEC8;
    padding: 40px 60px;
    color: #333;
}

header {
    background: transparent;
    color: #333;
    padding: 0;
    text-align: center;
    margin-bottom: 30px;
}

.title-container {
    margin-bottom: 30px;
}

.title-top {
    margin-bottom: 10px;
}

.title-thresher {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    display: inline-block;
}

.title-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
    position: relative;
}

.decorative-lines {
    width: 80px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.decorative-lines::before,
.decorative-lines::after {
    content: '';
    width: 100%;
    height: 1.5px;
    background: #000;
}

.decorative-lines::after {
    margin-top: 6px;
}

.decorative-lines::before {
    margin-bottom: 6px;
}

/* Add middle line */
.decorative-lines {
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 5px,
        #000 5px,
        #000 6.5px,
        transparent 6.5px,
        transparent 11.5px,
        #000 11.5px,
        #000 13px
    );
    background-size: 100% 60px;
}

header h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 3.5em;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.title-official {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-style: italic;
    font-size: 0.45em;
    color: #e60000;
    transform: rotate(-3deg);
    position: relative;
    margin-bottom: -8px;
    z-index: 1;
    display: inline-block;
}

.title-official::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
    opacity: 0.4;
}

.title-rice {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1em;
    color: #000;
    font-weight: bold;
}

.sub-header {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.2em;
    color: #000;
    margin-top: 15px;
    font-weight: normal;
}

.subtitle {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    font-style: italic;
    text-align: left;
}

.warning {
    font-size: 1em;
    margin: 15px 0;
    color: #333;
    font-weight: bold;
    text-align: left;
}

.instructions {
    font-size: 1em;
    margin-top: 15px;
    color: #333;
    text-align: left;
}

.instructions u {
    text-decoration: underline;
}

.score-display {
    background: transparent;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid #d4c5a9;
    margin-bottom: 30px;
}

.score-box {
    margin-bottom: 15px;
}

.score-label {
    font-size: 1.1em;
    color: #333;
    font-weight: normal;
    margin-right: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9e0d0;
    border: 1px solid #d4c5a9;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #8b7864;
    width: 100%;
    transition: width 0.3s ease;
}

.test-wrapper {
    display: none;
}

.test-container {
    padding: 0;
}

.questions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    background: transparent;
    cursor: pointer;
    transition: none;
    border: none;
}

.question-item:hover {
    background: transparent;
    transform: none;
    border: none;
}

.question-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 5px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #666;
    flex-shrink: 0;
}

.question-item input[type="checkbox"]:checked + .question-text {
    color: #333;
}

.question-item:has(input[type="checkbox"]:checked) {
    background: transparent;
    border: none;
}

.question-number {
    font-weight: normal;
    color: #333;
    margin-right: 5px;
    min-width: 30px;
    flex-shrink: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.question-text {
    flex: 1;
    line-height: 1.5;
    color: #333;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.question-text a {
    color: #0000ee;
    text-decoration: underline;
    font-weight: normal;
}

.question-text a:hover {
    text-decoration: underline;
}

.question-text strong {
    color: #333;
    font-weight: bold;
}

/* Start Screen */
.start-screen {
    text-align: center;
    padding: 60px 20px;
}

.start-content {
    max-width: 500px;
    margin: 0 auto;
}

.start-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.start-button {
    background: #333;
    color: #FBEEC8;
    border: 2px solid #333;
    padding: 15px 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', Times, serif;
    transition: all 0.3s ease;
}

.start-button:hover {
    background: #FBEEC8;
    color: #333;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 40px 0;
    margin-top: 30px;
    border-top: 2px solid #d4c5a9;
}

.submit-button {
    background: #333;
    color: #FBEEC8;
    border: 2px solid #333;
    padding: 15px 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', Times, serif;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #FBEEC8;
    color: #333;
}

/* Results Screen */
.results-screen {
    text-align: center;
    padding: 60px 20px;
    display: none; /* Will be shown via JavaScript */
    min-height: 400px;
}

.results-content {
    max-width: 600px;
    margin: 0 auto;
}

.results-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2em;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.final-score-box {
    margin: 30px 0;
}

.final-score-value {
    font-size: 5em;
    font-weight: bold;
    color: #333;
    font-family: Georgia, 'Times New Roman', Times, serif;
    display: inline-block;
}

.results-message {
    font-size: 1.3em;
    color: #333;
    margin: 30px 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.share-buttons {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    visibility: visible !important;
}

.share-button {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid #333;
    color: #333;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #FBEEC8;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.share-button svg {
    width: 20px;
    height: 20px;
}

.share-twitter:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
}

footer {
    background: transparent;
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    border-top: 2px solid #d4c5a9;
    margin-top: 30px;
}

@media (max-width: 768px) {
    body {
        background-size: 100px 100px;
    }
    
    .container {
        padding: 20px 30px;
    }
    
    header h1 {
        font-size: 2.5em;
    }
    
    .title-official {
        font-size: 0.5em;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .score-value {
        font-size: 2em;
    }
    
    .test-container {
        padding: 0;
    }
    
    .question-item {
        padding: 6px 0;
    }
    
    .question-number {
        min-width: 25px;
    }
    
    .decorative-lines {
        width: 40px;
        height: 40px;
    }
}