body {
    font-family: 'Roboto', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.title {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

canvas {
    border: none;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin: 20px;
    border-radius: 10px;
    max-width: 95vw;
}

.controls {
    margin: 20px;
    padding: 25px 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    color: #2c3e50;
    font-size: 0.9em;
    font-weight: 500;
}

input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    width: 100px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

button {
    padding: 10px 25px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.info-panel p {
    margin: 8px 0;
    font-family: 'Roboto Mono', monospace;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.info-panel span {
    color: #3498db;
    font-weight: 500;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group {
        width: 100%;
    }
    
    button {
        width: 100%;
        margin-left: 0;
    }
    
    .info-panel {
        position: static;
        margin: 20px;
        width: auto;
    }
}
