/* Global CSS Reset */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    background-image: url('https://img.freepik.com/free-photo/autumn-leaf-falling-revealing-intricate-leaf-vein-generated-by-ai_188544-9869.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Ensure the body takes up at least the full viewport height */
}

/* Card Styles */
.Card {
    width: 90%;
    max-width: 470px;
    background: linear-gradient(135deg, #204c41, #4b466e);
    color: #fff;
    margin: 100px auto 0;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    position: relative;
}

/* Search Bar Styles */
.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: #ebfffc;
    color: #555;
    padding: 10px 25px;
    height: 60px;
    border-radius: 30px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
}

.search button {
    border: 0;
    outline: 0;
    background: #ebfffc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.search button img {
    width: 26px;
}

/* Weather Display Styles */
.Weather-icon {
    width: 170px;
    margin: 30px;
}

.weather h1 {
    font-size: 80px;
    font-weight: 500;
}

.weather h2 {
    font-size: 45px;
    font-weight: 400;
    margin-top: -10px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
}

.col img {
    width: 40px;
    margin-right: 10px;
}

.humidity,
.wind {
    font-size: 28px;
    margin-top: -6px;
}

.weather {
    display: none;
}

/* Error Message Styles */
.error {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffcccc;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    z-index: 1000;
}

/* DateTime Styles */
.datetime {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

/* Styles for datetime content */
#datetime {
    font-size: 18px;
    font-weight: normal;
}

/* Styles for footer and history link */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

footer p {
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    margin-top: 10px;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #909090;
}

/* Styles for the parent container */
.container {
    display: flex;
    justify-content: center;
    /* Center the child horizontally */
}

/* Styles for the past data */
.past_data {
    margin-top: 40px;
    /* Add margin-top to create space from the top */
    margin-bottom: 40px;
    /* Add margin-bottom to create space from the bottom */
    font-size: 10px;
    width: 600px;
    /* Adjust width as needed */
    display: flex;
    justify-content: center;
    /* Center the child horizontally */
    gap: 20px;
    flex-wrap: wrap;
    margin: 40px auto;
    /* Center horizontally and add margin from top and bottom */
}

.past_data>div {
    color: white;
    width: 150px;
    height: 200px;
    background: #304a60;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the items horizontally */
    justify-content: center;
    /* Center the items vertically */
    border: none;
}