html,body{
    margin:0;
    padding:0;
    backdrop-filter: blur(100px);
    height:100%;
    overflow: hidden;
}

#map{
    height: 100%;
    transition: filter 0.3s;
}

body[theme="dark"] #map{
    filter: brightness(0.7) invert(1) contrast(3) saturate(0.7) hue-rotate(170deg);
    transition: filter 0.3s;
}

body[theme="dark"] path.leaflet-interactive[stroke="white"]{
    filter: invert(1);
}

.btmframe{
    position: absolute;
    border-radius: 8px;
    bottom:15px;
    left:5px;
    color:white;
    font-family: 'League Spartan';
    padding:1rem;
    width:265px;
    z-index:999;
}

.topframe{
    position:absolute;
    border-radius: 8px;
    top:15px;
    left:50%;
    transform: translateX(-50%);
    color:white;
    font-family: 'League Spartan';
    padding: 1rem;
    width:256px;
    z-index:999;
}

#user{
    background: linear-gradient(180deg, #23049D 50%, #AA2EE6 100%);
}

#other{
    background: linear-gradient(180deg, #7C20CD 0%, #AA2EE6 100%);
    left:-100%;
}

#settings{
    background: linear-gradient(96deg, #AA2EE6 0%, #FF79CD 100%);
    left:-100%;
}

#meetframe{
    background: linear-gradient(96deg, #AA2EE6 0%, #FF79CD 100%);
}

.btmframe h2, .topframe h2{
    text-align: center;
    font-size: 1.7rem;
    margin:0;
    cursor:default;
}

.btmframe p, .topframe p{
    font-size: 1.2rem;
    margin:1rem 0;
    cursor: default;
}

.topframe p{
    text-align: center;
}

.btmframe button, #user span.none, #status button, 
#status input, .topframe button{
    font-family: 'League Spartan';
    font-weight: bold;
    font-size: 1rem;
    background-color: rgb(150,150,150);
    border:none;
    border-radius: 100vw;
    padding:0.1rem 1rem;
    cursor: pointer;
    margin-left:50%;
    white-space: nowrap;
    transform: translateX(-50%);
    color: black;
}

.btmframe select{
    border:none;
    outline:none;
    background-color:rgb(150,150,150);
    padding:0.5rem;
    font-size:1rem;
    font-family: 'League Spartan';
    border-radius:8px;
    position: relative;
    transition: background-color 0.3s;
}

#status input{
    padding:0.5rem 1rem;
    margin-bottom: 1rem;
    cursor: auto;
}

#user button#updatestatus, #other button#meet{
    margin-bottom: 1rem;
}

.btmframe span:not(.none), #status span, .topframe span{
    font-size: 1.5rem;
    vertical-align: -25%;
}

#userbackbtn{
    position: absolute;
    border-radius: 100%;
    transition: background-color 0.3s;
}

#userbackbtn:hover{
    background-color:rgb(150,150,150);
    cursor: pointer;
}


.btmframe[data-open="true"]{
    animation-name: btmframeopen;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
}

.btmframe[data-open="false"]{
    animation-name: btmframeclose;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
}

.topframe[data-open="true"]{
    animation-name: topframeopen;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
}

.topframe[data-open="false"]{
    animation-name: topframeclose;
    animation-duration: 600ms;
    animation-fill-mode: forwards;
}

#meetframe{
    top:-100%;
}

#status{
    position: fixed;
    left:50%;
    top:50%;
    background-color: rgb(255,255,255);
    transform: translateX(-50%) translateY(-50%) scale(0);
    box-shadow: 0 5px 5px black;
    border-radius: 8px;
    padding: 0.5rem;
    z-index: 1020;
    max-width:350px;
}

body[theme="dark"] #status{
    background-color: rgb(33, 35, 36);
    color:rgb(232, 230, 227);
}

#status h2{
    font-family: 'League Spartan';
    margin:0;
    margin-top:0.3rem;
    text-align: center;
    cursor: default;
    white-space: nowrap;
}

#status p{
    font-size:1.2rem;
    margin:0;
    font-family: 'League Spartan';
}

body[theme="dark"] #status button, 
body[theme="dark"] #status input{
    color:rgb(232, 230, 227);
}

#status #staterrormsg{
    color:red;
    text-align: center;
}

.menu{
    position:fixed;
    left:5px;
    bottom:220px;
    z-index:1002;
    display: flex;
    gap:0.2rem;
}

.menu button{
    color:white;
    border:none;
    background:none;
    cursor:pointer;
    border-radius: 100%;
    aspect-ratio: 1/1;
    background-color: rgb(150,150,150);
    transition: background-color 0.3s;
}

.menu button:hover{
    background-color: rgb(100,100,100);
}


@keyframes openpopup {
    0%{
        transform: translateX(-50%) translateY(-50%) scale(0);
    }
    100%{
        transform: translateX(-50%) translateY(-50%) scale(1);
    }
}

@keyframes closepopup {
    0%{
        transform: translateX(-50%) translateY(-50%) scale(1); 
    }
    100%{
        transform: translateX(-50%) translateY(-50%) scale(0); 
    }
}

@keyframes btmframeopen{
    0%{
        left:-100%;
    }
    100%{
        left:5px;
    }
}

@keyframes btmframeclose{
    0%{
        left:5px;
    }
    100%{
        left:-100%;
    }
}

@keyframes topframeopen{
    0%{
        top:-100%;
    }
    100%{
        top:15px;
    }
}

@keyframes topframeclose{
    0%{
        top:15px;
    }
    100%{
        top:-100%;
    }
}