/* --- General Body Styling --- */
body 
{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* --- Main Weather Container --- */
.weather_container 
{
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #22313f; /* Corrected border syntax */
}

/* --- Heading Styling --- */
h3 
{
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e3a56;
    font-size: 1.75rem;
    font-weight: 600;
}

/* --- Input Field Styling --- */
input
{
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid #d1d9e6;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

input:focus 
{
    outline: none;
    border-color: #d1d9e6;
}

input:focus::placeholder
{
    color: transparent; /* Changed to transparent for better UX */
}

input::-webkit-inner-spin-button, input::-webkit-outer-spin-button
{
    -webkit-appearance: none;
}

/* --- Button Container --- */
.temprature_buttons 
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* --- General Button Styling --- */
button 
{
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
        
button:active 
{
    transform: scale(0.97);
}

/* --- Specific Button Colors --- */
.fahrenheit, .celsius 
{
    background-color: #152642;
    color: white;
}
.fahrenheit:hover, .celsius:hover  
{
    background-color: #0A1A2F;
}

/* --- Result Display Area --- */
#temprature_result 
{
     margin-top: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e3a56; 
}

/* --- Error Message Styling --- */
#temprature_result p 
{
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
    color: #ef4444;
}