body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

form {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

input[type="text"], input[type="range"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

button, input[type="reset"] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #2980b9;
    color: #fff;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s;
}

button:hover, input[type="reset"]:hover {
    background-color: #3498db;
}

.result-block {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 4px;
    margin-top: 8px;
    min-height: 20px;
    font-style: italic;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #ccc;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #2980b9;
    border-radius: 50%;
    cursor: pointer;
}

#Tabel1 {
    border-collapse: collapse;
    border: 1px solid black;
}

#Tabel1 td, #Tabel1 th {
    border: 1px solid black;
    padding: 5px;
}

#Tabel1 td:hover, #Tabel1 th:hover {
    color: red;
    background-color: inherit;
    cursor: pointer;
}

.error {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}
