* { box-sizing: border-box;}

body{overflow-x: hidden; 

     background-color: #FAFAFA; 
     height: 100%;}
     
html {  font-family: "Lucida Sans", sans-serif; }

.errorpage {
  text-align: center;

}

.errorpage img{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
  height: 300px;
}

.errorpage a{
  position: relative;
  height: 30px;
  border:none;
  background-color: slateblue;
  font-size: 30px;
  border-radius: 0.3em;
  color:white;
  text-decoration: none;

}


/*++++++++++++++++++++++desktop+++++++++++++++++++++++++++++++++*/

/*@media only screen and (min-width: 813px) {*/



  .maps { 
    position: absolute;
    top:0px;
    left:0px;
    width: 99vw; 
    height: 99vh;
    z-index: 1;


  }

  .location_coordinates {
    position: absolute;
    z-index: 2;
    width: 60%;
    left: 20%;
    top: 5px;
    
  }
  .location_coordinates input, button, select {
    width: 150px;
    height: 40px;
    opacity: 0.95;
    border-radius: 5px;
    background-color: #212121;
    color: white;
    font-weight: bold;
     letter-spacing: 0.1em;
     border: none;
}

  .drawingtools {
    position: absolute;
    z-index: 2;
    width: 110px;
    left: 10px;
    top: 150px;
    
  }
  .drawingtools button {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(118, 152, 222, 0.25);
    margin: 5px;

  }

    .drawingtools img {
    width: 30px;
    height: 30px;
      }
  .gpslocation {
    position: absolute;
    z-index: 2;
    width: 110px;
    left: 50px;
    /*top: 10px;*/
    background-color: lightskyblue;
    border-radius: 4px;
    display: none;
  }

.drawingtools button.active {
    background-color: #4CAF50 !important;
    border-color: #2E7D32 !important;
}
/*-------------import-export------------------------------------*/
/*--------------------------------------------------------------*/

.sidemenu{
  position: absolute;
  top:200px;
  right: 10px;
  width: 50px;
  z-index: 3;
}
.sidemenu button{
  margin-bottom: 5px;
  width: 50px;
  height: 50px;
  overflow-wrap: break-word;
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(118, 152, 222, 0.25);
  color: black;
}



.dataex, .dataim{
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 500px;
  height: 300px;
  font-size: 14px;
}

.typeco, .projco {
  
  width: 500px;
  background-color: white;
  padding: 10px;
  border-radius: 4px;
}

.typeco button, .projco button{
  border-radius: 4px;
  background-color: #f4511e;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  margin: 5px;
}

.typeco a, .projco label{
  border-radius: 4px;
  background-color: #04AA6D;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  width: 150px;
  height: 40px;
  cursor: pointer;
  margin: 5px;
  text-decoration: none;
  float: right;
}

input[type="file"] {
    display: none;
}

/*--------------------------------------------------------------*/
/*.................converter...............................*/
/*--------------------------------------------------------------*/
.convert, .gotogps {
  display: none;
  position: absolute;
  /*
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  */
  bottom: 10px;
  right: 60px;
  z-index: 2;
  width: 400px;
  background-color: whitesmoke;
  padding: 10px;
  border-radius: 10px;
  opacity: 0.9;
}
.convert button {
width: 98%;
height: 34px;
font-size: 20px;
text-align: center;
cursor: pointer;
outline: none;
color: #fff;
background-color: #04AA6D;
border: none;
border-radius: 15px;
box-shadow: 0 9px #999;
margin-bottom: 10px;
}

.convert img, .gotogps img{
position: relative;
width: 20px;
height: 20px;
float: right;

}

.startgo{
  border-radius: 4px;
  background-color: #04AA6D;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  width: 48%;
  height: 45px;
  cursor: pointer;
  margin-top: 10 px;
  margin-bottom: 10 px;
  text-decoration: none;
}

.stopgo {

  border-radius: 4px;
  background-color: #f4511e;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 14px;
  padding: 10px;
  width: 48%;
  height: 45px;
  cursor: pointer;
  margin-top: 10 px;
  margin-bottom: 10 px;
  
}



.convert button:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.convert p{margin-bottom: 0px;}
.convert input, .gotogps input{
width: 98%;
height: 30px;
border-radius: 0.8em;
}
.convert input[type="radio"]{
width: 10px;
}
.convert label{
  width: 40px;
font-size: 12px;
}

#xin, #yin, #xout, #yout{
width: 98%;
height: 30px;
}


#xin, #yin{
  background-color: skyblue;
  width: 47%;
  height: 40px;
  margin-bottom: 5px;
}
#xout, #yout{
  background-color: rgba(250, 60, 50, 0.5);
  width: 47%;
height: 40px;
}
.convert select, .gotogps select{
width: 47%;
height: 30px;
border-radius: 0.8em;
}

#xd, #xm, #xs, #yd, #ym, #ys{
  display: none;
  width: 31%;
  height: 30px;
  border-radius: 0.5em;
}

/*-------------------------------------------------------------------------------*/
/*++++++++++++++++++++++++++ login syetem ++++++++++++++++++++++++++++++++++++++*/
/*-------------------------------------------------------------------------------*/

/* Form spacing without <br> tags */
.form-field {
    position: relative;
    left: 25%;
    width: 50%;
    margin-bottom: 15px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-separator {
    margin: 20px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.clickable {
    cursor: pointer;
    text-decoration: underline;
}

/* Input styles */
.logsys input[type=text], .logsys input[type=password], .logsys input[type=email] {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  height: 35px;
  border-radius: .4em;
  box-sizing: border-box;
}

.logsys input[type=text]:focus, .logsys input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

/* Button styles */
.logsys .btn {
  width: 100%;
  background-color: #004883;
  color: white;
  padding: 5px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  opacity: 0.7;
  height: 40px;
  border-radius: 3em;
  box-sizing: border-box;
}

.logsys .btn:hover {
  opacity: 1;
}

/* Label styles */
.logsys label {
  display: block;
  margin-bottom: 5px;
}

/* Checkbox styles */
.password-checkbox {
    margin: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Close button styles */
.btnhide, .btnclosechart, .btnhidechart{
  float: right;
  display: inline-block;
  background-color: RGB(146, 168, 209);
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 30px;
  height: 30px;
}

.btnhide img, .btnclosechart img{
  width: 20px;
  height: 20px;
}

/* Text styles */
.logsys p, .logsys h3 {
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 15px;
}

/* Modal container */
.log_div {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: rgba(146, 168, 209, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 90%;
  height: auto;
  max-height: 85vh;
  border-radius: 1em;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Specific heights for different forms */
#logiform {
  min-height: 400px;
}

#regiForm {
  min-height: 500px;
}

#logoutdiv {
  min-height: 450px;
}

#changePasswordForm {
  min-height: 400px;
}

/* Account options */
.log_div .btnout{
  position: relative;
  left: 35%;
  height: 25px;
  width: 25px;
  background-color: RGB(146, 168, 209);
  border: none;
  cursor: pointer;
  border-radius: 3em;
}

.log_div select{
  height: 30px;
  width: 100px;
  border-radius: 1em;
}

.labelout img{
  height: 15px;
  width: 15px; 
  vertical-align: middle;
  margin-right: 8px;
}

.labelout {
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  padding: 5px 0;
}

/* Login/Logout buttons */
.login_btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  background-color: lightgray;
  border: 1px solid blue;
  border-radius: 25px;
  opacity: 0.8;
  margin: 3px;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.login_btn img{
  width: 25px;
  height: 25px;
}

.logout_btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px;
  background-color: rgb(147,112,219,0.5);
  border: 2px solid red;
  border-radius: 25px;
  margin: 3px;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.logout_btn img{
  width: 25px;
  height: 25px;
}


/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
.cf-turnstile {
    margin: 15px 0;
    position: relative;
   left: 25%;

}

/*--------------------------------------------------------------------------*/
.profil {
    position: fixed; /* Change from absolute to fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    background-color: white;
    z-index: 1000;
    display: none;
    padding: 20px;
}
.chartcanva {
    max-height: 300px;
    width: 100% !important; /* Ensure chart takes full width */
    height: 300px !important; /* Fixed height for consistency */
}
 .btnhide, .btnclosechart, .btnhidechart{
  float:right;
  display:inline-block;
  background-color: RGB(146, 168, 209);
  border: none;
  cursor: pointer;
  padding: 5px;
}
.btnhide img,.btnclosechart img{
width: 20px;
height: 20px;

}
/*--------------------------------------------------------------------------*/
/* Modern Layer Switcher - Bottom Left */
.layer-switcher {
    position: absolute;
    bottom: 15px;
    left: 35px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 4px;
}

.layer-btn {
    padding: 8px 12px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.layer-btn:hover {
    background: rgba(248, 248, 248, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.layer-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}









