html {
    font-size: 16px;
}

@media (min-width: 768px) {
    html {
        font-size: 20px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-size: cover;
    background-image: url('../Images/legacy-background.jpg');
}
a {
    text-decoration: none;
}

#Nhead {
    width: 98%;
    height: 60px;
    background-color: #4a4a4a;
    opacity:0.7;
    margin-left: 1%;
    margin-top: 1%;
    position: relative;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    border-bottom: solid;
    border-color: #666669;
    z-index:2;
}

.menuItem {
    position: absolute;
    height: 44px;
    margin-top: 8px;
    background-color: #666464;
    text-align: center;
    border: 3px solid;
    border-color: gray ;
    border-radius: 10px;
    line-height: 38px;
    color: white;
}
    .menuItem:hover {
        color: white;
        background-color: #636480;
        cursor: pointer;
        text-decoration: none;
    }

#i1 {
    width: 23%;
    left: 1%;
}

#i2 {
    width: 23%;
    left: 25%;
}

#i3 {
    width: 23%;
    right: 25%;
}

#i4 {
    width: 23%;
    right: 1%;
}

.menuInfo {
    width: 98%;
    margin-left: 1%;
    text-align: center;
    background-color: #363535;
    opacity:0.8;
    color: white;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-bottom:50px;
}


/*������� ��������*/

.textCenter {
    position: absolute;
    top :120px;
    text-align: center;
    color: black;
    left: 10%;
    padding: 10px;
    width: 80%;
    height: auto;
    background-color: #ffff;
    border-radius: 15px;
    border: solid;
    border-color: #c9c9c9;
    z-index: 2;
}

.taskScroll {
    max-height: 63%;
    overflow-y: scroll;
    width: 90%;
    left: 5%;
}

#GeoMap {
    position: absolute;
    top: 115px;
    bottom:6%;
    left: 5%;
    margin: 0;
    padding: 0;
    width: 90%;
    height: auto;
    z-index: 0;
    border: solid;
    border-color: #666669;
}

.mapButton {
    position: absolute;
    text-align: center;
    height: 5%;
    min-height: 50px;
    z-index: 1;
}

.sendButton {   
    width: 26%;
    left: 37%;   
    bottom: 8%;    
}

.taskButton {   
    width: 20%;
    left: 40%;  
    top: 130px;   
}

.OK_button{
    padding:10px;
}

.FText {
    text-align: left;
    text-indent: 20px;
    margin: 0;
}

.InputLabel{
    margin-top:15px;
}

.RButton{
    margin-top:10px;
}

#vl {
    width: 30%;
    left: 35%;
    position: absolute;
    height: 44px;
    bottom: 12px;
    background-color: #666464;
    text-align: center;
    border: 3px solid;
    border-color: gray;
    border-radius: 10px;
    line-height: 38px;
    color: white;
    opacity: 0.9;
}

#vl:hover {
    color: white;
    background-color: #636480;
    cursor: pointer;
    text-decoration: none;
}
/* Keep the original visual identity while allowing longer forms and mobile navigation. */
:root { color-scheme: light; }
body { color: #212529; background-color: #e9e9e9; min-height: 100vh; margin: 0; padding-bottom: 1rem; }
#Nhead { display: flex; flex-wrap: wrap; gap: .4rem; height: auto; min-height: 60px; padding: .4rem; opacity: .95; }
#Nhead .menuItem { position: static; flex: 1 1 120px; width: auto; margin: 0; height: auto; min-height: 44px; padding: 0 .5rem; }
#Nhead form { display: flex; flex: 1 1 120px; margin: 0; }
#Nhead form button { width: 100%; font: inherit; }
.menuInfo { margin-bottom: 1rem; opacity: .95; }
.legacy-main { min-height: 65vh; }
.textCenter { position: relative; top: auto; left: auto; width: 100%; margin: 0 auto 1rem; padding: 1rem; background: white; color: #212529; }
.taskScroll { max-height: none; overflow: visible; }
.FText { margin-bottom: .75rem; }
#vl { position: static; display: block; margin: 1.5rem auto .5rem; min-width: 140px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #155c97; outline-offset: 3px; }
.legacy-main input:not([type=checkbox]):not([type=hidden]), .legacy-main select, .legacy-main textarea { max-width: 100%; }
.legacy-main h1 { font-size: 1.6rem; letter-spacing: normal; }
.legacy-main h2 { font-size: 1.3rem; letter-spacing: normal; }
.legacy-main h3 { font-size: 1.15rem; }
.legacy-extended { --bg: #fff; --surface: #fff; --text: #212529; --muted: #53575c; --border: #c9c9c9; --accent: #4a4a4a; }
.legacy-extended .legacy-main { background: #fffffff5; border: 2px solid #c9c9c9; border-radius: 15px; padding: 1rem; }
.legacy-extended .panel, .legacy-extended .quest-card { background: #fff; color: #212529; border: 1px solid #c9c9c9; box-shadow: none; }
.legacy-extended .button { border-radius: 8px; padding: .5rem .8rem; min-height: 44px; font-size: .9rem; }
.legacy-extended .button-primary { background: #4a4a4a; color: white; }
.legacy-extended .page-header { margin-bottom: 1rem; }
.legacy-extended .auth-layout { min-height: auto; padding: 0; }
.legacy-extended .auth-intro { display: none; }
.legacy-extended .auth-card { width: min(100%, 540px); margin: auto; }
@media(max-width:600px) {
 html { font-size: 16px; }
 #Nhead .menuItem, #Nhead form { flex-basis: 40%; }
 .container { padding-inline: .5rem; }
 .legacy-main input[type=text], .legacy-main input[type=password] { width: 100%; }
}

#Nhead [aria-current=page] { background: #52546c; border-color: #ddd; }
.legacy-original #GeoMap { position: relative; top: auto; bottom: auto; left: auto; width: 100%; height: 45vh; min-height: 220px; background: white; padding: .5rem; }
.legacy-original .mapButton { position: static; width: auto; min-height: 44px; padding: .3rem 1rem; }
.legacy-original #PointTask { max-height: 55vh; overflow-y: auto; }

.legacy-extended { --ink: #212529; --ink-secondary: #53575c; --ink-tertiary: #62666a; --surface-solid: #fff; --surface-muted: #f0f1f3; --line: #c9c9c9; --line-strong: #888; }
.legacy-extended .auth-context { display: none; }
.legacy-extended .auth-layout { display: block; }
.legacy-extended .auth-panel { max-width: 540px; margin: auto; }
#Nhead [aria-current=page] { text-decoration: underline; text-underline-offset: 4px; }
