/*
Theme Name: Miles to Km Converter
Theme URI: https://miles-to-km.com
*/

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4ff, #e6f0ff); 
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

h1, h2 ,h3 {
    color: #222;
}

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

input[type="number"] {
    padding: 10px;
    width: 120px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #005f8d;
}

#result {
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.card {
    flex: 1 1 120px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    background-color: #f0f4ff; 
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.card p {
    margin: 0;
    font-size: 16px;
    color: #555;
}
@media (max-width: 600px) {
    .cards {
        flex-direction: column;
        gap: 10px;
    }
    input[type="number"] {
        width: 100%;
        margin-bottom: 10px;
    }
    button {
        width: 100%;
        margin-left: 0;
    }
}

.site-header {
    background: none;
    padding: 0;        
    margin: 0;        
    text-align: left;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    max-height: 160px;   
    width: auto;
    max-width: 100%;
    display: block;
}

.container {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 1200px) {
    .logo img {
        max-height: 120px;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 80px;
    }
}
