/* styles.css */

/* General Reset */
body, h1, h2, p, button, select, textarea {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0 20px;
}

/* Header Styling */
header {
    width: 100%;
    padding: 10px 0;
    background-color: #1e90ff;
    color: #fff;
    text-align: center;
    border-bottom: 3px solid #0066cc;
}

header h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Main Section Styling */
main {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Controls Section Styling */
#controls {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#controls label {
    font-size: 1rem;
    font-weight: bold;
    margin-right: 8px;
}

#controls select, #controls button {
    padding: 5px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

#controls button:hover {
    background-color: #1e90ff;
    color: #fff;
    border-color: #1e90ff;
}

/* Canvas Section Styling */
#visualization {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#stats-canvas {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 8px;
}

/* Detailed Stats Section Styling */
#detailed-stats {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#detailed-stats h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

#stats-display {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    background-color: #f9f9f9;
    color: #555;
    overflow-y: auto;
}

#stats-display:focus {
    outline: none;
    border-color: #1e90ff;
}

/* Footer Styling */
footer {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: #1e90ff;
    color: #fff;
    border-top: 3px solid #0066cc;
}

footer p {
    font-size: 0.9rem;
}