/* Global Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
}

/* Header Styles */

header {
    background-color: #0099ff;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Main Content Styles */

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    padding: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    justify-content: space-between;
    height: 300px;
}

label {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

input[type=text] {
    font-size: 1.5rem;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

button {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    background-color: #0099ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

#errorContainer {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Weather Container Styles */

#weatherContainer {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

#weatherContainer img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.weather-type {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    text-transform: capitalize;
    font-weight: 500;
    color: #0099ff;
}

.temperature {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.additional-details {
    font-size: 1.2rem;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.additional-details p {
    margin: 0;
}

.additional-details i {
    margin-right: 0;
}
    
.weather-type {
    font-size: 1.5rem;
}

.temperature {
    font-size: 2.5rem;
}

.additional-details {
    font-size: 1rem;
}

/* Footer Styles */

footer {
    background-color: #0099ff;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px -1px 3px rgba(0, 0, 0, 0.2);
}
  
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.footer-container p {
    font-size: 1.2rem;
    margin: 0;
}