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

body {
    font-family: 'Martian Mono', monospace;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 100vh;
    color:#fafafa;
    background-color: #767d7d;
    overflow: hidden;
    transition: .4s;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    -ms-transition: .4s;
    -o-transition: .4s;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
input,
button {
    font-family: 'Martian Mono', monospace;
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
}

::-webkit-scrollbar {
    width: 6px;
    /* background-color: #5c6665; */
}

::-webkit-scrollbar-thumb {
    background-color: #829f9a;
}

/* layout */
.container {
    display: flex;
    height: 100%;
}

.left-side {
    width: 60%;
    display: flex;
    align-items: end;
    padding: 0 0 120px 0;

}

.right-side {
    width: 40%;
    /* backdrop-filter: blur(12px); */
    background-color: #5c666525;
    height: 100%;
    padding-inline: 40px;
}

/* left side */
.left-side__content {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    width: 100%;
    padding-left: 40px;
    gap: 16px;
    /* backdrop-filter: blur(6px); */
    background-color: #5c666525;
    padding-block: 16px;

}

.left-side__temp {
    pointer-events: none;
}

.left-side__temp p {
    font-size: 1rem;
}

#temp {
    font-size: 7rem;
}

.left-side__city {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: bold;
}

.left-side__city p {
    font-size: 1rem;
    font-weight: normal;
}

.left-side__weather {
    margin-bottom: 25px;
    text-align: center;
}

.left-side__weather svg {
    opacity: .5;
    margin-bottom: 3px;
    font-size: 3rem;
}

/* right side */
.search {
    height: 50%;
    border-bottom: 1px solid #5c6665;
    /* padding-top: 30px; */
}

.search .input {
    margin-right: -40px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

#inputField {
    width: 65%;
    margin-top: 90px;
    border: none;
    background-color: transparent;
    border-bottom: 1px solid #5c6665;
    color: #fff;
    font-size: 1.4rem;
    padding-bottom: 7px;
}

#inputField::placeholder {
    color: #767d7d;
}

#inputField:focus {
    outline: none;
}

#searchBtn {
    width: 30%;
    cursor: pointer;
    font-size: 3rem;
    border: none;
    background-color: #829f9a;
}

.search-list {
    height: calc(100% - 160px);
    overflow: auto;
}

.search-list li {
    margin-bottom: 12px;
    cursor: pointer;
    width: fit-content;
    transition: .3s;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -ms-transition: .3s;
    -o-transition: .3s;
}

.search-list li:hover {
    scale: 1.1;
    padding-inline-start: 30px;
}

.more-details {
    height: calc(50% - 25px);
    border-bottom: 1px solid #5c6665;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-block: 30px;
}

.details-list li {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
}

.details-list li span:last-child {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* responsive */

@media screen and (max-width: 700px) {
    .container {
        display: block;
        overflow: auto;
    }

    .left-side {
        width: 100%;
        display: block;
        padding: 40px 0 40px 0;
    }

    .right-side {
        width: 100%;
        padding-inline: 40px;
    }

    .left-side__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 15px;
}
#inputField {
    font-size: 1.1rem;
}
.left-side__city {
    font-size: 2rem;
    margin-bottom: 15px;

}
.more-details {
    height: calc(50% - 60px);
    padding-block: 10px;
}
}

/* loader */

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
    display: inline-block;
    -webkit-animation: rotate 1s linear infinite;
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0)
    }
}

/*  */
.loader-temp {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 32px 0 #fff, -32px 0 #fff;
    position: relative;
    display: block;
    margin: 0 auto 30px;
    animation: flash 0.5s ease-out infinite alternate;
}

@keyframes flash {
    0% {
        background-color: #FFF2;
        box-shadow: 32px 0 #FFF2, -32px 0 #FFF;
    }

    50% {
        background-color: #FFF;
        box-shadow: 32px 0 #FFF2, -32px 0 #FFF2;
    }

    100% {
        background-color: #FFF2;
        box-shadow: 32px 0 #FFF, -32px 0 #FFF2;
    }
}