@font-face {
            font-family: 'Product Sans';
            src: url(assets/ProductSansRegular.otf);
        }

        ::-webkit-scrollbar {
            width: 0.2em;
        }

        ::-webkit-scrollbar-thumb {
            background: #7ddeec;
            border-radius: 1em;
        }

        @media only screen and (max-width:360px) {
            #condition{
                left: 1em;
            }
        }
        @media only screen and (max-width:570px) {
            .content{
                overflow: auto;
            }
        }
        @media only screen and (max-width:700px) {
            #weather-popup {
                width: 90% !important;
                max-width: none !important;
                right: 0;
            }
            #infoContainer {
                width: 90%;
            }
            #info{
                top: 4em !important;
            }
            .search {
                width: 90% !important;
            }

            #searchContainer {
                transform: translateX(45%);
            }

            #temperature {
                font-size: 4em !important;
                width: max-content;
            }
            .feels{
                width: max-content;
                min-width: 128px;
            }
            #currentIcon {
                margin-top: 0 !important;
            }
        }

        body,
        html {
            -webkit-tap-highlight-color: transparent;
            margin: 0;
            padding: 0;
            height: 100%;
            font-family: 'Product Sans';
        }

        .bodyLight {
            background: #d5e8eb;
            color: #262626;
        }

        .bodyDark {
            background: #262626;
            color: #d5e8eb;
        }

        #map {
            height: 100%;
            background: inherit;
        }

        .leaflet-control-attribution {
            display: none;
        }

        /* leaflet-control-layers leaflet-control leaflet-control-layers-expanded */
        .leaflet-popup-content {
            width: 20em;
        }

        .leaflet-popup-content-wrapper {
            background-color: #d5e8eb;
            width: max-content !important;
            text-align: center;
            color: #262626;
            border-radius: 8px;
            font-family: Arial;
            transition: 0.3s;
        }

        .leaflet-popup-tip {
            background-color: #d5e8eb;
            transition: 0.3s;
        }

        .leaflet-control {
            border-radius: 2px;
            background: #d5e8eb;
            color: #262626;
            border-radius: 0.5em !important;
            transition: 0.3s;
            -webkit-tap-highlight-color: transparent;
        }

        .dark-mode .leaflet-control {
            background: #262626 !important;
            color: #d5e8eb;
        }

        .leaflet-control-layers-toggle {
            background-image: none !important;
            border-radius: 1em;
            -webkit-tap-highlight-color: transparent;
        }

        .leaflet-control:not(:hover) {
            opacity: 0.5;
        }

        .leaflet-control-layers-toggle::before {
            all: unset;
            background: url(https://unpkg.com/leaflet@1.9.4/dist/images/layers.png);
            content: '\00a0\00a0\00a0\00a0\00a0\00a0';
            background-size: contain;
            font-size: 2em;
            margin: 0;
            background-repeat: no-repeat;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-45%, -50%);
        }


        .dark-mode .leaflet-popup-content-wrapper,
        .dark-mode .leaflet-popup-tip {
            background-color: #262626;
            color: #d5e8eb;
        }

        .leaflet-bar a {
            background-color: #d5e8eb;
            color: #262626;
            -webkit-tap-highlight-color: transparent;
        }

        .dark-mode .leaflet-bar a {
            background-color: #262626;
            color: #d5e8eb;
        }

        .dark-mode .leaflet-bar a:hover {
            background-color: #4b4b4b;
            color: #fff;
        }

        /* .leaflet-popup-content-wrapper{
        background-color: black;
    } */
        #weather-popup {
            position: fixed;
            top: 4em;
            width: 50%;
            max-width: 40em;
            padding: 1em;
            background: #d5e8ebbe;
            box-shadow: 0.5em 0 10px rgba(0, 0, 0, 0.3);
            border-radius: 0.5em;
            z-index: 1000;
            transition: 0.3s ease-out;
        }

        #weather-popup h2 {
            text-align: center;
        }

        #weather-popup h3 {
            margin: 0 !important;
        }

        .content {
            display: flex;
            flex-wrap: wrap;
            column-gap: 1em;
            justify-content: center;
            align-items: center;
        }

        .bodyDark #weather-popup {
            background: #262626b9;
            box-shadow: 0.5em 0 10px rgba(255, 255, 255, 0.3);
        }

        #close {
            all: unset;
            position: absolute;
            top: 0.2em;
            border: none;
            left: 0.2em;
            cursor: pointer;
            border-radius: 50%;
            transition: 0.3s;
            z-index: 200;
            height: 30px;
            width: 30px;
        }

        #close:hover {
            background:#ff000045;
        }

        #open {
            all: unset;
            position: absolute;
            top: 0em;
            border: none;
            left: -3.5em;
            cursor: pointer;
            transition: 0.3s;
            background-image: url(https://www.svgrepo.com/show/375932/weather.svg);
            background-size: contain;
            background-repeat: no-repeat;
            width: 3em;
            height: 3em;
            display: none;
        }

        #open:not(:hover),
        #locate:not(:hover),
        #info:not(:hover) {
            opacity: 0.5;
        }

        #loading {
            position: fixed;
            z-index: 2000;
            top: 50%;
            text-align: center;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(1em);
            color: white;
            padding: 50% 0;
            user-select: none;
            transition: 0.3s;
            display: flex;
            align-items: flex-end;
            justify-content: center;
        }

        #loading div {
            position: absolute;
            width: 100%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        #bar {
            width: 100%;
            border: 0;
            transition: 0.3s;
            overflow: hidden;
        }

        #bar::-webkit-progress-bar {
            background-color: rgba(0, 0, 0, 0.7);
        }

        #bar::-webkit-progress-value {
            background-color: #7ddeec;
            border-radius: 0 0.5em 0.5em 0;
        }

        #bar::-moz-progress-bar {
            background-color: #7ddeec;
            border-radius: 0 0.5em 0.5em 0;
        }

        #city {
            font-size: 1.5em;
        }

        #temperature {
            font-size: 5em;
            margin: 0;
        }

        .temperature {
            position: relative;
            display: flex;
            gap: 1em;
            align-items: center;
        }

        .temperature h3 {
            position: absolute;
            top: 0.5em;
            left: 8em;
        }

        #condition {
            position: absolute;
            min-width: 128px;
            width: max-content;
            bottom: -1em;
        }

        button {
            all: unset;
            border: 0.1em solid;
            padding: 0.5em;
            border-radius: 0.5em;
            transition: 0.3s;
            cursor: pointer;
            margin: 0.1em;
        }

        button:hover {
            background-color: #00000017;
        }

        .bodyDark button:hover {
            background-color: #ffffff17;
        }

        #locate {
            position: fixed;
            z-index: 1000;
            bottom: 1em;
            right: 3em;
            display: flex;
            justify-content: center;
        }

        #currentIcon {
            margin-bottom: 1em;
            margin-top: -1em;
            width: 128px;
            height: 128px;
        }

        #icon {
            width: 2em;
            height: 2em;
            vertical-align: middle;
        }

        #version {
            position: absolute;
            top: 2.9em;
        }

        #attr {
            position: absolute;
            top: -0.5em;
            margin-left: 3.8em;
        }

        .login {
            position: absolute;
            width: 100%;
            height: 100%;
            backdrop-filter: blur(2em);
            top: 50%;
            transform: translate(-50%, -50%);
            left: 50%;
            z-index: 1;
            text-align: center;
        }

        .login img {
            margin: 1em 0 0 0 !important;
            width: 5em !important;
            height: 5em !important;
        }

        .search {
            position: fixed;
            top: 0.5em;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1111;
            width: 50%;
            transition: 0.3s;
        }

        #search {
            all: unset;
            position: fixed;
            top: 0.5em;
            left: 50%;
            transform: translateX(-50%);
            border: 0.1em solid;
            padding: 0.5em;
            text-indent: 2em;
            width: 100%;
            border-radius: 0.5em;
            background: #d5e8ebbe;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        #search:not(:focus)~#result {
            display: none;
        }

        #search-icon {
            all: unset;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            width: 0.8em;
            height: 1em;
            background-size: contain;
            font-size: 2em;
            margin: 0;
            background-repeat: no-repeat;
            z-index: 1;
            position: absolute;
            top: 0.4em;
            cursor: pointer;
            pointer-events: all !important;
        }

        .bodyDark #search-icon {
            all: unset;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.7955 15.8111L21 21M18 10.5C18 14.6421 14.6421 18 10.5 18C6.35786 18 3 14.6421 3 10.5C3 6.35786 6.35786 3 10.5 3C14.6421 3 18 6.35786 18 10.5Z' stroke='%23257eca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            width: 0.8em;
            height: 1em;
            background-size: contain;
            font-size: 2em;
            margin: 0;
            background-repeat: no-repeat;
            z-index: 1;
            position: absolute;
            top: 0.4em;
            cursor: pointer;
        }

        #search::placeholder {
            color: inherit;
        }

        .bodyDark #search {
            background: #262626b9;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        #result {
            position: absolute;
            top: 3em;
            background: #d5e8ebde;
            width: 100%;
            border-radius: 0.5em;
            transition: 0.3s;
            overflow-x: hidden;
            height: auto;
            max-height: 90vh;
        }

        #result:hover {
            display: block !important;
        }

        .bodyDark #result {
            background: #262626b9;
        }

        .results {
            padding: 0.5em;
            user-select: none;
            cursor: pointer;
        }

        .results:hover {
            background-color: #6eecffc2;
        }

        .bodyDark .results:hover {
            background-color: #35717ac2;
        }

        .results h4,
        .results p {
            margin: 0;
        }

        #info {
            position: fixed;
            top: 0;
            z-index: 999;
        }

        svg {
            vertical-align: middle;
        }
        hr{
            width: 40%;
            border: 0.1em solid;
        }
        .search {
            opacity: 0.5;
        }
        .search:hover, .search:focus-within {
            opacity: 1;
        }
        .info{
            position: absolute;
            top: -448px;
            left: 50%;
            transform: translate(-50%,-50%);
            border-radius: 0.5em;
            background: #d5e8ebbe;
            z-index: 2009;
            padding: 1em;
            text-align: center;
            transition: 0.3s;
        }
        
        .bodyDark .info{
            background: #262626b9;
        }
        .logo{
            display: inline;
            width: auto;
            height: 1em;
            height: 1.5em;
            vertical-align: middle;
        }
        .links{
            color: #1a0dab;
            text-decoration: none;
        }
        .links:hover{
            text-decoration: underline;
        }
        .bodyDark .links {
        color: #8ab4f8;
        }