/* Grundläggande stilar för quizet */
.hundquiz-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 30px;
    font-family: sans-serif;
    max-width: 800px;
    margin: 2em auto;
}
.hundquiz-button-primary, .hundquiz-answer-btn, .hundquiz-button-secondary {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid transparent;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}
.hundquiz-button-primary {
    background-color: #3498db;
    color: white;
}
.hundquiz-answer-btn {
    background-color: #ffffff;
    border-color: #bdc3c7;
}
.hundquiz-actions-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.hundquiz-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.hundquiz-progress {
    height: 100%;
    background-color: #3498db;
}

/*================================================*/
/* STYLING FÖR DEN SYNLIGA, VERTIKALA LAYOUTEN    */
/*================================================*/
#hundquiz-result-view-screen {
    text-align: center;
}
.result-main-title-screen {
    font-size: 28px;
    margin-bottom: 25px;
}
.summary-section, .feedback-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: left;
}
.summary-section h3, .feedback-section h3 {
    text-align: center;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
}
.final-text-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
    font-size: 14px;
    color: #555;
    text-align: left;
}


/*============================================*/
/* STYLING FÖR DEN Dolda BILDGENERERINGEN     */
/*============================================*/
#hundquiz-result-image-generator {
    width: 1280px;
    position: relative; /* Nödvändig för att positionera barn-element */
    background-color: #FFFFFF;
    overflow: hidden; /* Dölj delar av bilden som hamnar utanför */
    background-size: cover;
    background-position: center center;
    font-family: sans-serif;
    box-sizing: border-box;
}

.result-overlay {
    padding: 50px;
    background-color: rgba(255, 255, 255, 0.92); /* Vit med 92% opacitet */
}

.result-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.result-column-left, .result-column-right {
    vertical-align: top;
    text-align: left;
}
.result-column-left {
    width: 50%;
    padding-right: 35px;
}
.result-column-right {
    width: 50%;
    padding-left: 35px;
}

/* Typografi för bild */
.result-main-title {
    font-size: 42px;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
}
.summary-title, .hundquiz-feedback-section h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
}
.summary-text {
    font-size: 16px;
    margin-bottom: 25px;
}
.hundquiz-feedback-item {
    margin-bottom: 20px;
}
.hundquiz-feedback-item h4 {
    font-size: 18px;
    margin: 0 0 5px 0;
    text-transform: capitalize;
}
.hundquiz-feedback-item p {
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}
.feedback-positive {
    color: #27ae60;
}
.feedback-negative {
    color: #c0392b;
}

/* Diagram & Logotyp för bild */
.hundquiz-chart-container {
    width: 100%;
}
.hundquiz-branding-footer {
    margin-top: 40px;
    text-align: right;
}
.hundquiz-logo-footer {
    max-height: 50px;
}
.result-view-critical {
    padding: 30px;
    background: #fff;
    text-align: center;
}