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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
}

button {
    width: 100%;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:active {
    transform: translateY(1px);
}

.result-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.result-item h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.result-item p {
    font-size: 18px;
    color: #2c3e50;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
    font-size: 20px;
}

.combined-result {
    text-align: center;
    padding: 25px;
    background-color: #e8f4f8;
    border-radius: 8px;
    border: 2px solid #3498db;
}

.combined-result h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.combined-result p {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
}