html,body{
    height:100%;
    margin:0;
    font-family:Inter,system-ui,Segoe UI,Roboto,"Helvetica Neue",Arial;
    background:linear-gradient(180deg,#fff,#fff);
    color:#e6eef6;
    transition: 0.1s;
    touch-action: pan-y;
}

main-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000dd;
    z-index: 99999;
    transition: 0.5s;
}

main-loader svg{
    position: fixed;
    top: calc(50vh - 1.25rem);
    left: calc(50vw - 1.25rem);
    width: 2.5rem;
    height: 2.5rem;
    fill: #06b6d4;
    animation: loader-spin 1s linear infinite;
}
    
main{
    display: block;
    width:100%;
    max-width:1100px;
    margin:auto;
}

app{
    display: block;
    padding: 20px;
}

footer{
    position: fixed;
    bottom: 20px;
}

footer button{
    width: calc(100vw - 40px) !important;
    font-family: inherit !important;
}

footer button.accent{
    background: #193163 !important;
}

#welcome{
    padding: 0 20px;
}

div.h1{
    font-size: 2.25rem;
    font-weight: bold;
    color: #000;
    font-family: "Special Gothic Expanded One";
}

div.h1 span{
    background-image: linear-gradient(to left, violet, #be77f2, #36a8f5);
    color: transparent;
    -webkit-background-clip: text;
}

button{
    background:rgba(255,255,255,0.04);
    border:2px solid rgba(255,255,255,0.06);
    padding:10px 14px;
    border-radius:8px;
    color:inherit;
    cursor:pointer;
    font-size:15px;
}

button.primary{
    background:linear-gradient(90deg,#06b6d4,#3b82f6);
    color:#022;
    font-weight:600;
}

button.big{
    width: 100%;
    border-radius: 16px;
    padding: 15px 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-family: "Quantico";
}

button.small{
    width: fit-content;
    border-radius: 16px;
    padding: 14px 35px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    font-family: "Quantico";
}

button.black{
    border: 2px solid #000;
    background: #000;
    color: #fff;
}

button.white{
    border: 2px solid #333;
    color: #333;
    background: #00000005;
}

.or{
    height: 15px;
    border-bottom: 2px solid #aaa;
    margin: auto;
    margin-bottom: 20px;
    width: calc(100% - 10px);
}

.or p{
    font-family: "Quantico";
    color: #aaa;
    width: fit-content;
    margin: auto;
    transform: translateY(3px);
    background: #fff;
    padding: 0 6px;
    font-weight: bold;
}

div.welcome_form {
    position: fixed;
    bottom: -100vh;
    left: unset;
    height: calc(100% - 9rem);
    width: calc(100% - 40px);
    max-width: 1100px;
    padding: 30px 20px 0 20px;
    background: #fff;
    border-radius: 30px 30px 0 0;
    transition: 0.3s;
}

#welcome_blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #00000050;
    backdrop-filter: blur(19px);
    transition: 0.3s;
    display: none;
    opacity: 0;
}

.welcome_form label{
    color: #000;
    display: block;
    margin-bottom: 10px;
}

.welcome_form input{
    padding: 15px 20px;
    width: calc(100% - 44px);
    border: 2px solid #555;
    border-radius: 20px;
    margin-bottom: 15px;
    outline: none;
    font-size: 16px;
}

.icon {
    width: 20px;
    height: 20px;
}

.google{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

div.lobby_section_label {
    font-size: 18px;
    color: #000;
    margin-bottom: 10px;
    margin-top: 20px;
}

div.lobby_label {
    font-size: 16px;
    color: #919191;
    margin-bottom: 10px;
    margin-top: 20px;
}

div.lobby_input_disabled {
    padding: 10px 12px;
    background: #00000030;
    border: 2px solid #00000060;
    border-radius: 6px;
    color: #27272790;
}

div#maps {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 0.8rem;
}

div.lobby_map{
    width: 30%;
    text-align: center;
    padding-bottom: 5px;
    border-radius: 10px;
    border: 4px solid transparent;
}

img.lobby_img_checkbox {
    border-radius: 8px;
    width: 100%;
}

div.lobby_img_checkbox_label{
    font-size: 0.5rem;
    color: #1c1c1c;
}

div#limits {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 5px;
}

div.lobby_limit{
    width: 23%;
    text-align: center;
    padding: 7px 0;
    border-radius: 6px;
    border: 2px solid transparent;
    background: #00000060;
    font-size: 14px;
    color: #d9d9d9;
}

div.lobby_limit_selected{
    width: 23%;
    text-align: center;
    padding: 7px 0;
    border-radius: 6px;
    font-size: 14px;
    border: 2px solid #343434;
    background: rgb(0 0 0 / 60%);
    color: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#lobby_code_box{
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin-top: 5px;
}

#lobby_code_box_label{
    color: #999;
    font-family: "Quantico";
}

#lobby_code_box_value{
    color: #000;
    font-size: 48px;
    font-weight: bold;
    font-family: "Quantico";
}

.lobby_player {
    padding: 10px 12px;
    color: #333;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 6px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lobby_player_svg_host{
    height: 18px;
    width: 18px;
    fill: gold;
    transform: translateY(3px);
}

.lobby_player_svg{
    height: 18px;
    width: 18px;
    fill: rgb(150, 150, 150);
    transform: translateY(3px);
    margin-left: 5px;
}

#lobby_controlls{
    margin-top: 30px;
}

button.lobby_start{
    width: 100%;
    padding: 20px 0;
    background: #000;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    border-radius: 40px;
}

button.lobby_red{
    background: #ff4d4d;
    color: #fff;
    font-weight: bold;
}

#lobby_status{
    position: fixed;
    bottom: 20px;
    padding: 20px;
    background: #000;
    color: #fff;
    font-size: 16px;
    text-align: center;
    border-radius: 8px;
    width: calc(100% - 80px);
}

#lobby_notifications{
    position: fixed;
    top: 8px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 99;
}

.lobby_notification{
    background: #00000099;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(10px);
    padding: 10px 12px;
    width: fit-content;
    margin: auto;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;

}

#hello{
    color: #ababab;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: "Quantico";
}

#dashboard_username {
    color: #000000;
    font-size: 3rem;
    font-weight: bold;
    font-family: "Special Gothic Expanded One";
    word-break: break-all;
    width: 100%;
    margin-top: 10px;
}

#logoutBtn{
    position: fixed;
    top: 16px;
    right: 20px;
    padding: 10px;
    background: #e6e6e6;
    border-radius: 16px;
    width: 20px;
    height: 20px;
    fill: #000;
}

div#section_label {
    font-size: 20px;
    color: #333;
    font-family: "Quantico";
    margin-top: 20px;
    margin-bottom: 5px;
}

.dashboard_room {
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    margin-top: 5px;
    color: #444;
    font-size: 48px;
    font-weight: bold;
    font-family: "Quantico";
}

.hidden{
    display: none !important;
}

.app_fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app_fullscreen_1 {
    color: #000;
    font-size: 40px;
    font-weight: bold;
}

.app_fullscreen_2 {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    margin-top: 15px;
}

.trans{
    transition: 0.95s;
}

.opacity_zero{
    opacity: 0;
}

button#geoBtn {
    margin-top: 15px;
}

.app_info{
    background: #d1d6de;
    color: #303030;
    border: 2px solid #afb4bd;
    padding: 10px 16px;
    border-radius: 6px;
}

.app_info svg{
    height: 16px;
    transform: translateY(2px);
    margin-right: 8px;
}

div#timer_driver {
    background: #000;
    color: #fff;
    padding: 10px;
    font-size: 60px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 20px;
    font-family: 'Quantico';
    display: none;
}

div#timer_guesser {
    background: #000;
    color: #fff;
    padding: 10px;
    font-size: 60px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 20px;
    font-family: 'Quantico';
    display: none;
}





.top{
    display:flex;
    gap:12px;
    align-items:center;
}
    
.controls{
    margin-left:auto;
    display:flex;
    gap:10px;
}
    
#map1,#map2,#map3{
    height:420px;
    border-radius:8px;
    margin-top:8px;
}
 
p{
    margin:8px 0 6px;
}
    
header{
    padding: 20px;
    border-radius: 0 0 10px 10px;
    background:#0b1220;
    box-shadow:0 8px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    margin-left: -16px;
    margin-right: -16px;
}

header img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

header b{
    font-size: 24px;
    margin-left: 14px;
}

#logoutBtn{
    margin-left: auto;
}

#joinGroupBtn{
    position: fixed;
    bottom: 20px;
    width: calc(100% - 32px);
    max-width: 600px;
    padding: 16px 0;
    border-radius: 30px;
    background: #fff;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    margin: auto;
}

#map3{
    margin-bottom: 10px;
}

#my_rooms{
    max-height: calc(100vh - 300px);
    overflow: hidden;
    overflow-y: scroll;
    margin-left: -20px;
    margin-right: -20px;
    padding: 5px 20px 200px 20px;
}

@media(max-width:700px){
    #map1,#map2,#map3{
        height:340px;
    }
    .top{
        flex-direction:column;
        align-items:flex-start;
    }
    .controls{
        margin-left:0;
    }
    button{
        font-size:14px;
    }
    div#login_form{
        left: 0;
    }
}

@keyframes loader-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}