* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

.capacitor-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.capacitor {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.plate {
    width: 120px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dielectric {
    width: 100px;
    height: 60px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    background-color: transparent;
    position: relative;
}

.dielectric::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ffffff;
    opacity: 0.5;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #333333;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.value-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    min-width: 60px;
    display: inline-block;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.result-item {
    background-color: #111111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results {
        grid-template-columns: 1fr;
    }
}
