* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    min-height: 84vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather_container {
    color: #212121;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.temperature {
    font-size: 4rem;
    margin-bottom: 5px;
    width: 100%;
}

.time_location {
    font-size: 1.5rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    margin-top: -10PX;
}

.time_location p {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.time_location span {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
    word-spacing: 2px;
}

.condition {
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather_icon {
    width: 80px;
    height: 80px;
}

nav {
    height: 90px;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    margin: 0;
    display: flex;
    align-items: center;
}

.search_area {
    padding: 1rem;
    outline: none;
    border: none;
    color: #546E7A;
    background-color: transparent;
    font-size: 1.2rem;
    border-bottom: 2px solid #FFB74D;
}

nav form button {
    background-color: #0288D1;
    color: #B0BEC5;
    font-size: 1.2rem;
    padding: 1rem;
    margin-left: 15px;
    outline: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 200ms ease-in-out;
}

nav form button:hover {
    opacity: 0.8;
}

.extra_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease;
}

.main_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 400px;
}

.extra_details:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.detail_item {
    text-align: center;
}

.detail_item p {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.detail_item span {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.detail_item i {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #0288D1;
    display: block;
}

.search_container {
    position: relative;
    width: 100%;
}

.suggestions_box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

.weather_icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0px 8px 12px rgba(0, 0, 0, 0.2));
    animation: float 4s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.weather_icon:hover {
    filter: drop-shadow(0px 12px 15px rgba(255, 255, 255, 0.4)) brightness(1.1);
}

.day-mode {
    background-color: #B3E5FC;
    transition: background-color 0.8s ease;
}

.night-mode {
    background-color: #263238;
    color: white !important;
    transition: background-color 0.8s ease;
}

.night-mode .detail_item i {
    color: #4FC3F7;
}

@media (max-width: 768px) {
    form {
        flex-direction: column;
        gap: 10px;
        width: 90%;
        margin-top: 10px;
    }

    nav form button {
        margin-left: 0;
        width: 100%;
    }

    .temperature {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        height: auto;
        padding: 20px 0;
    }

    .temperature {
        font-size: 3.5rem;
    }

    .time_location {
        font-size: 1.2rem;
    }

    .extra_details {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .forecast_container {
        flex-direction: column;
        align-items: center;
    }

    .forecast_card {
        width: 80%;
    }
}