/*
 * static/css/shouldiplay.css
 * Styles for both shouldiplay_quiz.html and shouldiplay_summary.html
 */

/* === GLOBAL STYLES === */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    /* This will be overridden by .summary-body */
    align-items: center; 
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 600px; /* Default max-width for quiz page */
    padding: 40px;
    background-color: #242424;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: auto;
}

h1 {
    color: #90ee90;
    margin-bottom: 30px;
    font-size: 2em;
}

h2 {
    color: #cccccc;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* === QUIZ PAGE STYLES === */
.question-box {
    padding: 25px;
    border: 2px solid #333;
    border-radius: 8px;
    margin-bottom: 25px;
    background-color: #2c2c2c;
}

p.question {
    font-size: 1.3em;
    margin-bottom: 25px;
}

/* Solution Box Styles */
.solution {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 6px;
    font-style: italic;
    font-weight: bold;
}

.solution.negative {
    background-color: #4a0000;
    border: 1px solid #ff4d4d;
    color: #ffebeb;
}

.solution.positive {
    background-color: #004d00;
    border: 1px solid #90ee90;
    color: #d9ffe0;
}

/* Button Styles */
.button-group button {
    /* Default Positive Button Style (Green) */
    background-color: #90ee90;
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
    display: block;
    width: 100%;
    margin: 10px 0;
}

.button-group button[value="negative"] {
    background-color: #ff4d4d; /* Bright Red */
    color: #1a1a1a;
}

.button-group button:hover {
    background-color: #76c776;
    transform: translateY(-2px);
}

.button-group button[value="negative"]:hover {
    background-color: #cc3c3c; /* Darker Red on hover */
    transform: translateY(-2px);
}

.hidden-inputs { display: none; }


/* === SUMMARY PAGE STYLES (Overrides/Additions) === */
.container.summary-container {
    max-width: 1100px; /* Wider container for the chart */
}

/* Adjustments for summary page body layout */
.summary-body {
    padding: 20px;
    /* Overrides the default "align-items: center" */
    align-items: flex-start;
}

.summary-list, .insights-list {
    list-style: none;
    padding: 0;
    text-align: left; /* Align list items left */
}

.summary-list li {
    background-color: #2c2c2c;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 5px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
}

.summary-answer-box {
    font-weight: bold;
    font-size: 1.05em;
    padding: 5px 12px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.answer-box-yes {
    background-color: #004d00;
    color: #90ee90;
}

.answer-box-no {
    background-color: #550000;
    color: #ff4d4d;
}

.answer-yes { border-left-color: #4CAF50; }
.answer-no { border-left-color: #ff4d4d; }

.insights-list li {
    margin-bottom: 15px;
    font-style: italic;
}

/* Chart Section for full-width look */
.chart-section {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    /* This section creates the full-width effect by using negative margins
       to counteract the 40px container padding */
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
    max-height: 400px;
}

#analyticsChart {
    max-height: 350px;
}

/* Navigation Links at the bottom */
.nav-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.nav-links a {
    color: #1a1a1a;
    background-color: #90ee90;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px;
    transition: background-color 0.3s, transform 0.1s;
}

.nav-links a:hover {
    background-color: #76c776;
    transform: translateY(-2px);
}