/* General Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: #333;
    color: white;
    padding: 10px; /* Reduced padding */
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

header img {
    margin-right: 5px; /* Reduced margin for logo */
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px; /* Reduced margin for navbar items */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px; /* Reduced font size */
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Weather and About Container Styling */
.weather-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 70%; /* Updated to 70% */
    max-width: 1000px; /* Optional: Max width for large screens */
    margin: 100px auto 60px; /* Added 100px top margin for space below the fixed header */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .weather-container {
        width: 90%; /* Adjust width for smaller screens */
    }
}


.about-container {
    background-color: #ffffff;
    text-align: center;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    margin: 100px auto 60px; /* Added 100px top margin for space below the fixed header */
}

@media screen and (max-width: 768px) {
    .about-container {
        width: 90%; /* Adjust width for smaller screens */
    }
    
}

.weather-container h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.weather-container input {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.weather-container button {
    padding: 12px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.weather-container button:hover {
    background-color: #45a049;
}

#weather-info p {
    font-size: 18px;
    color: #555;
    margin: 10px 0;
}

.about-container h1 {
    text-align: center;
    color: #333;
}

.features, .contact {
    margin-top: 30px;
}

.features ul {
    list-style-type: none;
    padding: 0;
}

.features ul li {
    margin: 10px 0;
    font-size: 16px;
}

.features ul li svg {
    margin-right: 10px;
}

h2 {
    color: #4CAF50;
    font-size: 24px;
}

.contact a {
    color: #4CAF50;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
}

footer p:first-of-type {
    font-size: 16px;
}

footer p:last-of-type {
    font-size: 14px;
    color: #ddd;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 20px; /* Reduced font size */
    }

    nav ul li {
        display: block;
        margin: 5px 0; /* Reduced margin */
    }

    .about-container, .weather-container {
        width: 90%; /* Adjust width for smaller screens */
    }
}


/* Contact Section Styling */
/* Weather and About Container Styling */
.contact {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    max-width: 400px;
    margin: 100px auto 60px; /* Added 100px top margin for space below the fixed header */
}

.contact {
    margin-top: 30px;
}

.contact h2 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.contact a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

.contact p a {
    color: #4CAF50;
    font-weight: bold;
}

.contact p a:hover {
    text-decoration: underline;
}

.contact p i {
    margin-right: 10px; /* Add some space for emojis */
}

/* Responsive Design for Contact Section */
@media screen and (max-width: 768px) {
    .contact p {
        font-size: 16px;
    }

    .contact h2 {
        font-size: 20px;
    }
}


/* Current Time and Date Styling */
#current-time {
    font-size: 24px;
    color: #333;
    margin-top: 30px;
    font-weight: bold;
    text-align: center;
}

#date-time {
    font-size: 20px;
    color: #4CAF50;  /* Green color for time/date */
    font-family: 'Arial', sans-serif;
    margin-top: 10px;
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* Responsive Design for Time and Date */
@media screen and (max-width: 768px) {
    #date-time {
        font-size: 18px;
    }
}

/* Weather Information Section Styling */
#weather-info {
    text-align: center; /* Centering the weather information */
    margin-top: 20px;
}

#weather-info p {
    font-size: 18px;
    color: #555;
    margin: 10px 0;
    font-weight: bold;
}

#city-name {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

#temperature {
    font-size: 26px;
    color: #FF9800; /* Warm color for temperature */
}

#weather-condition {
    font-size: 22px;
    color: #4CAF50; /* Green color for weather condition */
}

#humidity {
    font-size: 20px;
    color: #2196F3; /* Blue color for humidity */
}

#weather-icon {
    width: 80px;
    height: 80px;
    margin-top: 15px;
}

/* 5-Day Forecast Section Styling */
#forecast {
    margin-top: 40px;
    text-align: center;
}

#forecast h2 {
    color: #4CAF50;
    font-size: 28px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

#forecast-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.forecast-day {
    background-color: #4CAF50;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 160px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.forecast-day:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.forecast-day img {
    width: 50px;
    height: 50px;
}

.forecast-day p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.forecast-day .date {
    font-size: 14px;
    color: #888;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #weather-info p {
        font-size: 16px; /* Adjust font size for smaller screens */
    }

    #forecast-details {
        flex-direction: column;
        align-items: center;
    }

    .forecast-day {
        width: 80%; /* Adjust width for smaller screens */
        margin-bottom: 20px;
    }
}
