body {
  margin: 0;
  padding: 0;
}

header {
  background-color: navy;
  color: white;
  /* display: flex; */
  display: grid;
  grid-template-rows: 3rem;
  grid-template-columns: 300px 1fr 300px;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100vw;
  font-size: 1.2rem;
  z-index: 9;
}

main {
  display: flex;
  justify-content: center;
  height: calc(100vh - 3rem);
  top: 3rem;
}

button {
  border-radius: 5px;
  margin: auto 0;
  text-align: center;
  vertical-align: middle;
  font-size: 1.3rem;
}

.header-left {
  padding: 0 1rem;
  text-align: left;
}

.header-center {
  text-align: center;
}

.header-right {
  padding: 0 1rem;
  text-align: right;
  font-size: 1rem
}

.main-form {
  display: flex;
  flex-flow: column;
  width: 95%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid navy;
}

.form-column {
  display: grid;
  width: 100%;
  grid-template-rows: 2rem;
  grid-template-columns: 160px 1fr 200px;
  align-items: center;
  padding: 0;
  outline: 1px solid navy;
}

.form-column .selected-point-label {
  background-color: blue;
  color: white;
  text-align: center;
  height: 100%;
  font-size: 1.2rem;
}

.form-column .selected-point {
  padding: 0;
  margin: 0;
  display: none;
}

.form-column input[type="radio"]:not(:checked)~.selected-point-label{
  background-color: midnightblue !important;
}
.form-column .point-sel {
  background-color: lightcyan !important;
}
.form-column input[type="radio"]:not(:checked)~.point-sel{
  background-color: white !important;
}
.form-column select {
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
}
.form-column .latlng {
  display: grid;
  grid-template-columns: 45px 1fr;
  grid-template-rows: repeat(2,1rem);
  align-items: center;
  font-size: 0.8rem;  
}

.form-column .latlng .lat-title,
.form-column .latlng .lng-title {  
  justify-self: end !important;
}
.form-column .latlng .lat,
.form-column .latlng .lng {
  padding-left: 4px;
  justify-self: start;
}

#shorten {
  width: 100%;
  height: 2.4rem;
  font-size: 1.6rem;
  background: linear-gradient(to right, darkcyan, mediumseagreen,mediumseagreen, darkcyan) !important;
  color: white;
  margin: 5px 0;
}
#search {
  width: 100%;
  height: 2.4rem;
  font-size: 1.6rem;
  background: linear-gradient(to right, blue, blueviolet,blueviolet, blue) !important;
  color: white;
  margin-top: 5px;
}
#routemap {
  width: 100%;
  flex-grow: 1;
  background-color: lightgray;
  outline: 1px solid blue;
}
@media (max-width: 800px) {
  header {
    grid-template-rows: 2rem;
    grid-template-columns: 150px 1fr 150px;
  }
  main {    
    height: calc(100vh - 2rem);
    top: 2rem;
  }
  .form-column {
    grid-template-rows: 1.7rem;
    grid-template-columns: 110px 1fr 150px;
  }
  .main-form {
    width: 95%;
  }
  .form-column label {
    font-size: 1rem;
  }
  .form-column select {
    font-size: 1rem;
  }
  #test {
    font-size: 1rem;
    height: 1.7rem;
  }
  .form-column .latlng {
    grid-template-columns: 40px 1fr;
    grid-template-rows: repeat(2,0.85rem);
    font-size: 0.6rem;  
  }
}