body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Changed from hidden to auto */
    background-color: #111; /* Dark background for contrast */
    display: flex; /* Added for centering */
    justify-content: center; /* Added for centering */
    align-items: center; /* Added for centering */
}

#wavy-svg-container {
    /* position: absolute; Remove absolute positioning */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; Remove full width */
    /* height: 100%; Remove full height */
    max-width: 800px; /* Added fixed max-width */
    max-height: 600px; /* Added fixed max-height */
    width: 90vw; /* Responsive width with a max */
    height: 80vh; /* Responsive height with a max */
    border: 1px solid #333; /* Optional: to see the boundary */
}

.box {
    width: 100px;
    height: 100px;
    background-color: dodgerblue;
}

#nav-container {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 100;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: rgba(30, 30, 30, 0.8);
    color: white;
    padding: 10px 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-btn:hover {
    background-color: rgba(50, 50, 50, 0.9);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: rgba(20, 20, 20, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    border-radius: 5px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(60, 60, 60, 0.8);
}

.dropdown-content a.active {
    background-color: rgba(0, 120, 215, 0.7);
}

.dropdown:hover .dropdown-content {
    display: block;
}

#control-panel {
    position: fixed; /* Changed from absolute to fixed */
    bottom: 10px;    /* Position at the bottom */
    right: 10px;     /* Position at the right */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: sans-serif;
    z-index: 1001; /* Ensure it's above the SVG */
    max-width: 300px; /* Optional: constrain width */
}

#control-panel label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
}

#control-panel input[type="range"] {
    width: 150px;
    margin-left: 5px;
    vertical-align: middle;
}

#control-panel span {
    display: inline-block;
    width: 30px;
    text-align: right;
    margin-left: 5px;
    font-weight: bold;
}

#toggle-panel-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    display: block; /* Make button take full width of panel */
    width: 100%;
}

#toggle-panel-btn:hover {
    background-color: #0056b3;
}

#panel-content.collapsed {
    display: none;
} 