* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.graphs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.graph-wrapper {
    position: relative;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.graph-wrapper h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

canvas {
    display: block;
    margin: 0 auto;
    background-color: white;
    border: 1px solid #ddd;
}

.axis-label {
    position: absolute;
    font-weight: bold;
    color: #555;
}

.x-label {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.y-label {
    top: 50%;
    left: 10px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.controls-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-weight: bold;
    color: #2c3e50;
    cursor: help;
}

input[type="range"] {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #b8daff;
}

.wave-speed {
    font-size: 18px;
    color: #2c3e50;
}

/* Added buttons container for better layout */
.buttons-container {
    display: flex;
    gap: 10px;
}

/* Styling for the Start/Pause button */
.control-button {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #27ae60;
}

.control-button.paused {
    background-color: #3498db;
}

.control-button.paused:hover {
    background-color: #2980b9;
}

.reset-button {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.reset-button:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {
    .controls-container {
        grid-template-columns: 1fr;
    }
    
    .info-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .buttons-container {
        width: 100%;
        justify-content: center;
    }
}