/* style.css */

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

body {
    font-family: 'Arial', sans-serif;
    background: url('images/background.jpg') no-repeat center center/cover;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 0 15px; /* Adds space on smaller screens */
}

.icon {
    width: 60px; /* Reduced size for smaller screens */
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

h1 {
    color: #2193b0;
    margin-bottom: 15px;
    font-size: 1.6em; /* Slightly reduced for better fit */
    font-weight: bold;
}

.converter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    color: #555;
}

input[type="number"],
select {
    border: 2px solid #6dd5ed;
    border-radius: 5px;
    padding: 10px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

input[type="number"]:focus,
select:focus {
    border-color: #2193b0;
}

button {
    background-color: #2193b0;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: bold;
}

button:hover {
    background-color: #176282;
    transform: translateY(-2px);
}

h2 {
    margin-top: 15px;
    font-size: 1.4em; /* Slightly smaller for smaller screens */
    color: #555;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 20px; /* Adjust padding for smaller screens */
    }
    
    h1 {
        font-size: 1.4em; /* Smaller font size on tablets */
    }

    button {
        padding: 10px 15px; /* Adjust button padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .icon {
        width: 50px; /* Smaller icon for very small screens */
    }
    
    h1 {
        font-size: 1.2em; /* Even smaller font size for mobile */
    }

    h2 {
        font-size: 1.2em;
    }

    button {
        padding: 8px 12px; /* Reduce button size further for mobile */
    }
}
