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

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-color: #000;
    overflow-x: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.main-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 380px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.search-box {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
    color: white;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.weather-main {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.temperature {
    font-size: 80px;
    font-weight: bold;
    color: white;
    margin: 10px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
}

#map {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.history {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.history-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    color: white;
    transition: 0.3s;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .main-container {
        width: 92%;
        padding: 20px 15px;
    }

    .weather-main {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .temperature {
        font-size: 70px;
    }

    .details {
        font-size: 12px;
    }
}