/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('gobblin.png');
    background-repeat: repeat;
    background-size: 120px 120px; /* Bigger gobblins */
    opacity: 0.15; /* Very faded gobblins */
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
}

.logo-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

header h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #006633;
    margin-bottom: 15px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Questions List */
.questions-list {
    list-style: none;
    counter-reset: question-counter;
    margin-bottom: 40px;
}

.question-item {
    counter-increment: question-counter;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.question-item:last-child {
    border-bottom: none;
}

.question-item::before {
    content: counter(question-counter) ".";
    font-weight: 600;
    color: #333;
    margin-right: 10px;
    min-width: 30px;
    text-align: left;
}

.question-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 0px;
    transform: scale(1.1);
    cursor: pointer;
    vertical-align: middle;
}

.question-item label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
    color: #333;
}

.question-item:hover {
    background-color: #fafafa;
}

/* Score Section */
.score-section {
    text-align: center;
    border-top: 2px solid #e5e5e5;
    padding-top: 30px;
}

.calculate-btn {
    background-color: #006633;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background-color 0.2s ease;
}

.calculate-btn:hover {
    background-color: #004d26;
}

/* Disclaimer */
.disclaimer {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #006633;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

.disclaimer p {
    margin-bottom: 10px;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.score-display {
    margin-bottom: 30px;
}

.score-display h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #e5e5e5;
    border-color: #ccc;
}

/* Results Screen */
.results-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.results-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('gobblin.png');
    background-repeat: repeat;
    background-size: 120px 120px; /* Bigger gobblins */
    opacity: 0.15; /* Very faded gobblins */
    z-index: -1;
    pointer-events: none;
}

.results-screen.hidden {
    display: none;
}

.results-content {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

.results-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.results-content .score-number {
    font-size: 5rem;
    font-weight: 700;
    color: #006633;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-message {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
    line-height: 1.5;
}

.results-content .action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.results-content .action-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-btn.primary {
    background-color: #3b82f6;
    color: white;
}

.action-btn.primary:hover {
    background-color: #2563eb;
}

.action-btn.secondary {
    background-color: #FFCC33;
    color: #006633;
    font-weight: 700;
}

.action-btn.secondary:hover {
    background-color: #FFD700;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .question-item::before {
        min-width: 25px;
    }
    
    .score-number {
        font-size: 3rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .question-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .question-item::before {
        margin-right: 8px;
        min-width: 25px;
        margin-top: 1px;
        flex-shrink: 0;
        line-height: 1.2;
        align-self: flex-start;
    }
    
    .question-item input[type="checkbox"] {
        margin-right: 8px;
        margin-top: 1px;
        vertical-align: baseline;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .question-item label {
        margin-top: 0px;
        line-height: 1.4;
    }
}
