/* Basic Reset and Font */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures body takes full viewport height */

    /* --- Background Image Properties --- */
    background-image: url('time.webp'); /* Replace 'background.jpg' with your image path or URL */
    background-size: cover; /* Stretches to cover the entire container */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Makes the background fixed while scrolling (if content overflows) */
    
    background-color: #f0f2f5; /* Fallback color if image doesn't load */
    color: #333; /* Text color for contrast */
}


/* Main Container */
#clock-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

h1 {
    font-weight: 500;
    margin-bottom: 25px;
    color: #1a1a1a;
}

h2 {
    font-weight: 400;
    font-size: 1rem;
    color: #666;
    margin-bottom: 5px;
}

p {
    font-size: 2.5rem;
    font-weight: 300;
    color: #007bff;
    min-height: 50px; /* Prevents layout shift */
}

/* Sections */
.time-display, .converter, .result-display {
    margin-bottom: 25px;
}
.result-display {
    margin-bottom: 0;
}


/* Input and Button */
.converter {
    display: flex;
    gap: 10px;
}

#city-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

#city-input:focus {
    outline: none;
    border-color: #007bff;
}

#convert-btn {
    padding: 12px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

#convert-btn:hover {
    background-color: #0056b3;
}