.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.converter-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    color: #666;
    font-size: 0.9rem;
}

input {
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #007bff;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.result-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

#result {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

.reference {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.reference h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.rule-item span {
    font-family: monospace;
    font-size: 1.1rem;
}

.rules p {
    margin: 15px 0 10px 0;
    color: #666;
}

.rules ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .converter-container {
        padding: 15px;
    }
    
    .rule-item {
        justify-content: center;
    }
    
    #result {
        font-size: 1.5rem;
    }
} 