@font-face {
    font-family: "samarkan";
    src: url("./SAMAN___.ttf");
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/montserrat/v18/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    color: white;
    background: url("images/bg/sunny.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
}
/* General */

.max-width {
    max-width: 1500px;
    padding: 0 40px;
    margin: auto;
}

section {
    padding: 50px 0;
}

div {
    display: block;
}

/* Preloader */

.precontainer {
    background: #efefef;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 999;

}

.preloader {
    position: absolute;
    margin-left: -55px;
    margin-top: -100px;
    height: 110px;
    width: 110px;
    left: 50%;
    top: 50%;
    
}

.preloader svg {
    width: 110px;
    height: 110px;
}

.preloader path {
    stroke: #9ea1a4;
    stroke-width: 0.25;
    fill: #241e20;
}

.preloader #cloud {
    position: relative;
    /* z-index: 2; */
}

.preloader #cloud path {
    fill: #efefef;
}

.preloader #sun {
    margin-left: -10px;
    margin-top: 6px;
    opacity: 0;
    width: 60px;
    height: 60px;
    position: absolute;
    left: 45px;
    top: 15px;
    /* z-index: 1; */

    animation-name: rotate;
    animation-duration: 16000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.preloader #sun path {
    stroke-width: 0.18;
    fill: #9ea1a4;
}

@keyframes rotate {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg);
    }
}

/* Rain */
.preloader .rain {
    position: absolute;
    width: 70px;
    height: 70px;
    margin-top: -32px;
    margin-left: 19px;
}

.preloader .drop {
    opacity: 1;
    background: #9ea1a4;
    display: block;
    float: left;
    width: 3px;
    height: 10px;
    margin-left: 4px;
    border-radius: 0px 0px 6px 6px;

    animation-name: drop;
    animation-duration: 350ms;
    animation-iteration-count: infinite;
}

.drop:nth-child(1) {
    animation-delay: -130ms;
}

.drop:nth-child(2) {
    animation-delay: -240ms;
}

.drop:nth-child(3) {
    animation-delay: -390ms;
}

.drop:nth-child(4) {
    animation-delay: -525ms;
}

.drop:nth-child(5) {
    animation-delay: -640ms;
}

.drop:nth-child(6) {
    animation-delay: -790ms;
}

.drop:nth-child(7) {
    animation-delay: -900ms;
}

.drop:nth-child(8) {
    animation-delay: -1050ms;
}

.drop:nth-child(9) {
    animation-delay: -1130ms;
}

.drop:nth-child(10) {
    animation-delay: -1300ms;
}

@keyframes drop {
    50% {
        height: 45px;
        opacity: 0;
    }

    51% {
        opacity: 0;
    }

    100% {
        height: 1px;
        opacity: 0;
    }
}

.preloadertext {
    font-family: Helvetica, "Helvetica Neue", sans-serif;
    letter-spacing: 1px;
    text-align: center;
    margin-left: -43px;
    font-weight: bold;
    margin-top: 20px;
    font-size: 11px;
    color: #a0a0a0;
    width: 200px;
}

/* Navbar */
hr {
    border: 2px solid white;
    width: 100%;
}

.navbar {
    font-family: "Ubuntu", sans-serif;
    /* position: fixed; */
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    z-index: 500;
    transition: all 0.3s ease;
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.navbar .logo p {
    font-family: "samarkan";
    font-size: 50px;
    font-weight: 600;
    color: white;
}

.navbar .max-width svg {
    margin-right: 10px;
}

/* .navbar .max-width .location, .navbar .max-width .search{
    align-self: flex-end;
} */

.navbar .max-width .location a,
.navbar .max-width .location svg,
.navbar .max-width .search a,
.navbar .max-width .search svg {
    font-size: 20px;
    color: white;
}

#currentlocationicon{
    padding: 6px;
    font-size: 28px;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(10px);
    background-color: white;
    color: rgba(0, 0, 0, 0.7);
    border: none;
    cursor: pointer;
    
}
#currentlocationicon:hover{
    padding: 10px;
    font-size: 20px;

}

/* .navbar .currentlocation{
    padding: 8px;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(10px);
    background-color: white;
    color: rgba(0, 0, 0, 0.7);
} */


/* Search Bar */

.autocomplete {
    position: relative;
    display: inline-block;
}

input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

input[type="text"] {
    background-color: #f1f1f1;
    width: 100%;
    background-color: white;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;

}
input[type="submit"]:hover {
    filter: brightness(0.9);

}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    color: black;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Current */

.current {
    color: white;
}

.current .max-width .current-content {
    display: flex;
    /* align-items: center; */
    justify-content: space-around;
    flex-direction: column;
    gap: 10px;
}

.current .max-width .current-content .currenttemp {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 80px;
    text-decoration: bold;
    letter-spacing: 3px;
}

#degree {
    font-size: 50px;
}

.current .max-width .current-content .mainhead {
    font-family: "Roboto", sans-serif;
    text-decoration: none;
    font-weight: 100;
    font-size: 45px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.current .max-width .current-content .otherinfo {
    color: white;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: right;
    font-size: 25px;
}

.current .max-width .current-content .otherinfo div {
    margin: 0 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    backdrop-filter: blur(5px);
}

/* Forecast */

.forecast .max-width .forecast-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 10px;
    /* width: 1200px; */
    margin: auto;
    backdrop-filter: blur(5px);
}

.forecast .max-width .forecast-content .fivedays {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 30px;
    font-family: "Futura", "Trebuchet MS", Arial, sans-serif;
    font-size: 30px;
    padding: 10px 20px;
}

.forecast .max-width .forecast-content .fivedays img {
    width: 100px;
    height: 100px;
}

.forecast .max-width .forecast-content .fivedays .high-low {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.forecast .max-width .forecast-content .fivedays .high-low p {
    margin: 0 10px;
    font-size: 20px;
}

@media (max-width: 650px) {
    section {
        padding: 25px 0;
    }

    .navbar .max-width {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .current .max-width .current-content {
        flex-direction: column;
    }

    .current .max-width .current-content .currenttemp {
        align-self: center;
    }

    .current .max-width .current-content .mainhead {
        align-self: center;
        margin-bottom: 10px;
    }
    .current .max-width .current-content .otherinfo {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        font-size: 20px;
    }
    .current .max-width .current-content .otherinfo div{
        backdrop-filter: blur(8px);

    }

    #formloc{
        text-align: center;
    }

}
