/* Professional Temperature Converter Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    background: transparent;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 80%;
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(255, 253, 253, 0.726);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ddd;
    font-size: 1.1em;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#tempLabel {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ddd;
    min-height: 1.5em;
    display: block;
}

/* Responsive design */
@media (max-width: 600px) {
    .content {
        padding: 30px 20px;
        margin: 20px;
    }

    h1 {
        font-size: 2em;
    }

    input, select, button {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

