* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
    font-family: Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-weight: 800;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.distance-input-group,
.time-input-group {
    display: flex;
    gap: 1rem;
}

.distance-input-group input,
.time-input-group input {
    flex: 2;
}

.distance-input-group select,
.time-input-group select {
    flex: 1;
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

button {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2980b9;
}

.hidden {
    display: none;
}

#results {
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
}

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

.pace-table th,
.pace-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pace-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.pace-table tr:hover {
    background-color: #f8f9fa;
}

.pace-table tr.target-pace {
    background-color: #e3f2fd;
    font-weight: 600;
}

.pace-table tr.target-pace td {
    color: #1976d2;
}

.pace-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pace-group {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.pace-group h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pace-group p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3498db;
}

@media (max-width: 768px) {
    .form-section {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 2rem;
    }

    .results-section {
        padding-left: 0;
    }
}