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

/* Layout Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #333333;
    color: #ffffff;
    overflow: hidden;
}

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#ui button {
    background-color: #666666;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

#ui button:hover {
    background-color: #999999;
    transform: translateY(-2px);
}

#ui button:active {
    background-color: #444444;
    transform: translateY(1px);
}

#ui input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background: #444444;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

#ui input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #999999;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

#ui input[type="range"]:hover::-webkit-slider-thumb {
    background: #ffffff;
}

#canvas-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #444444, #333333);
}

/* Pause Overlay */
#pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    z-index: 20;
}

.hidden {
    display: none;
}

/* Canvas Styling */
canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Info Panel Styles */
#info-panel {
    margin-top: 20px;
    padding: 10px;
    background-color: #444444;
    border-radius: 5px;
}

#info-panel h2 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #ffffff;
}

#info-panel p {
    margin: 5px 0;
    font-size: 14px;
    color: #cccccc;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #cccccc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #666666;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #999999;
}

::-webkit-scrollbar-track {
    background-color: #444444;
}