body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2em;
}

.form-section {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1em;
}

input, select {
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
}

#calculateButton {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: #fff;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 5px;
}

#calculateButton:hover {
    background-color: #0055aa;
}

#results {
    margin-top: 20px;
}

.table-container {
    overflow-x: auto;
}

.electrode-table {
    width: 100%;
    border-collapse: collapse;
}

.electrode-table th, .electrode-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.electrode-table th {
    background-color: #0066cc;
    color: white;
}

.electrode-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#visualization {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

#visualization svg {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5em;
    }

    label, input, select {
        font-size: 0.9em;
    }

    #calculateButton {
        font-size: 1em;
        padding: 12px;
    }

    .electrode-table th, .electrode-table td {
        font-size: 0.9em;
    }

    #howToUse h2 {
        font-size: 1.2em;
    }

    #howToUse p, #howToUse ol {
        font-size: 0.9em;
    }
}
