@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    color: white;
    font-weight: 600;
}

body {
    background: url(background.jpg);
    width: 100%;
    height: 100dvh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;/*vertical*/ justify-content: center;/*horizontal*/
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100dvh;
    background: rgb(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

/* Main container */
.main-container {
    width: 300px;
    height: 496px;
    background: linear-gradient(to top, rgb(0, 0, 0, 0.15), rgb(255, 255, 255, 0.15));
    border-radius: 12px;
    backdrop-filter: blur(25px);
    padding: 20px;
    position: relative;
}

/* Input container */
.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.city-input {
    width: 100%;
    padding: 10px 16px 10px 16px;
    /* Space for the button */
    border-radius: 99px;
    border: 3px solid transparent;
    background: rgb(0, 0, 0, 0.15);
    outline: none;
    font-weight: 500;
    transition: 0.25s border;
    padding-right: 40px;
    /* Space for the button */
}

.search-btn {
    position: absolute;
    right: 77px;
    /* Adjust this for the button position */
    top: 55%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.search-btn .material-symbols-outlined {
    font-size: 24px;
    color: white;
}

.city-input:focus {
    border: 3px solid rgb(0, 0, 0, 0.15);
}

.current-location-btn {
    background: none;
    display: flex;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    padding: 8px 16px;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.2);
}

.current-location-btn:active {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Section weather info */
.weather-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-data-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-summary-img {
    width: 120px;
    height: 120px;
}

.weather-summary-info {
    text-align: end;
}

.weather-conditions-container {
    display: flex;
    justify-content: space-between;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.condition-item span {
    font-size: 30px;
}

/* Forecast items container */
.forecast-items-container {
    display: flex;
    gap: 15px;
    overflow: scroll;
    padding-bottom: 12px;
}

.forecast-items-container::-webkit-scrollbar {
    height: 8px;
}

.forecast-items-container::-webkit-scrollbar-track {
    background: rgb(0, 0, 0, 0.1);
    border-radius: 99px;
}

.forecast-items-container::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 0, 0.15);
    border-radius: 99px;
}

.forecast-item {
    min-width: 70px;
    background: rgb(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    transition: 0.3s background;
}

.forecast-item:hover {
    background: rgb(255, 255, 255, 0.15);
}

.forecast-item-img {
    width: 35px;
    height: 35px;
}
.alerts-section {
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px solid red;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

.alert {
    background-color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}
.section-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-top: 25%;
}

.section-message img {
    height: 100px;
    width: fit-content;
}

@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    .city-input {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .search-btn,
    .current-location-btn {
        font-size: 14px;
    }
}