/* ----------  style.css  ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fa;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

header, footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1.5rem 0;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.greeting, .quote {
    background: #fff;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.greeting p {
    font-size: 1.1rem;
}

.quote blockquote {
    margin: 0;
    font-style: italic;
    color: #555;
    border-left: 4px solid #3498db;
    padding-left: 1rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

.chart-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    position: relative;
    height: 400px; /* ensures a fixed chart height */
}

canvas {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}


.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* centre the buttons horizontally */
    gap: 1.5rem;                /* space between the buttons */
    margin: 1.5rem 0;           /* vertical spacing from the greeting */
}

.big-button {
    display: inline-block;
    padding: 1.2rem 2.8rem;     /* generous touch area */
    background: #3498db;       /* primary colour */
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.15s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,.15);
}

.big-button:hover,
.big-button:focus {
    background: #2980b9;       /* darker shade on hover/focus */
    transform: translateY(-1px);
}