/* Custom css, v 1.0, January 2022 */
/* Annibale Cois (acois@sun.ac.za)*/ 

/* General formatting */ 

#intro {
  background-image: url("../img/pop.png");
  height: 100vh;
}

#info {
  height: 100vh;
}

/* Height for devices larger than 576px */
@media (min-width: 992px) {
  #intro {
    margin-top: -58.59px;
  }
}
.navbar .nav-link {
  color: #fff !important;
}

.container {
  /* Used to position the watermark */
  position: relative;
}

.container__wrapper {
  /* Center the content */
  align-items: center;
  display: flex;
  justify-content: center;

  /* Absolute position */
  left: 0px;
  position: absolute;
  top: 0px;

  /* Take full size */
  height: 100%;
  width: 100%;

}

.container__watermark {
  /* Text color */
  color: rgba(0, 0, 0, 0.2);

  /* Text styles */
  font-size: 6rem;
  font-weight: bold;
  text-transform: uppercase;

  /* Rotate the text */
  transform: rotate(-45deg);

  /* Disable the selection */
  user-select: none;
}

.bottombar {
  background-color: rgba(0, 0, 0, 0.2);
}

.logo {
  color: rgb(240,82,34); 
  font-style: italic;
}

.defcol {
  color: rgb(240,82,34); 
}

img.center {
  display: block;
  margin: 0 auto;
}

.isDisabled {
  color: dimgray;
  cursor: not-allowed;
  text-decoration: none;
}

.indent {
  position:relative;
  left: 30px;
}

.buttonlist {
  margin-bottom: 10px;
  background-color:rgb(70,110,171);
}

.buttonlist:hover {
  color:#000;
  background-color:rgb(240,82,34);
  border-color:rgb(240,82,34);
}

.buttonzoom {
  margin-bottom: 10px;
  background-color:rgb(70,110,171);
  background:none;
}

.buttonzoom:hover {
  color:#000;
  background-color:rgb(240,82,34);
  border-color:rgb(240,82,34);
}

.map-control-zoomin {
  /* background: url(../img/zoom-in.svg) center no-repeat; */
  background-color:rgb(70,110,171);
  display: block;
  left: 0px;
 }
 
 .map-control-zoomout {
  /* background: url(../img/zoom-out.svg) center no-repeat; */
  background-color:rgb(70,110,171);
  display: block;
  left: 0px;
 }
 
 /* Drag & drop */

.connected, .sortable, .exclude, .handles {
      margin: auto;
      padding: 0;
      width: 310px;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
  }
  .sortable.grid {
      overflow: hidden;
  }
  .connected li, .sortable li, .exclude li, .handles li {
      list-style: none;
      border: 1px solid #CCC;
      background: #F6F6F6;
      font-family: "Tahoma";
      color: #1C94C4;
      margin: 5px;
      padding: 5px;
      height: 34px;
  }
  .handles span {
      cursor: move;
  }
  li.disabled {
      opacity: 0.5;
  }
  .sortable.grid li {
      line-height: 80px;
      float: left;
      width: 80px;
      height: 80px;
      text-align: center;
  }
  li.highlight {
      background: #FEE25F;
  }
  #connected {
      width: 440px;
      overflow: hidden;
      margin: auto;
  }
  .connected {
      float: left;
      width: 200px;
  }
  .connected.no2 {
      float: left;
      width: 500px;
  }
  li.sortable-placeholder {
      border: 1px dashed #CCC;
      background: none;
  }

/* Design page */

li.qi {
  background: darkorange; 
  border-radius: 10px;
  height: auto;
}

li.mi {
  background: darkseagreen; 
  border-radius: 10px;
  height: auto;
}

.quest {
   display:none;
}
.quest:first-child {
  display: block;
 }

.unsaved {
  text-decoration: underline dotted;
  color: rgb(0.5,0.5,0.5)!important;
}


/* Scrollbars */

.scrollbar,
.scrollbar .up,
.scrollbar .down,
.scrollbar .left,
.scrollbar .right,
.vertical-scrollbar .track .horizontal-scrollbar .track,
.scrollbar .track .dragBar {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 0;
  outline: none;
}

.scrollbar {
  position: absolute;
  background: #fff;
  visibility: hidden;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -moz-opacity: 0.50;
  -khtml-opacity: 0.50;
  opacity: 0.50;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
  filter: alpha(opacity=50);
}

.scrollbar:hover {
  -moz-opacity: 1;
  -khtml-opacity: 1;
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
  filter: alpha(opacity=100);
}

.vertical-scrollbar {
  right: 0;
  top: 0;
  bottom: 0;
  width: 15px;
  height: auto;
}

.vertical-scrollbar:hover {
  width: 20px;
}

.vertical-scrollbar.visible {
  visibility: visible;
}

.horizontal-scrollbar {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 15px;
}

.horizontal-scrollbar:hover {
  height: 20px;
}

.horizontal-scrollbar.visible {
  visibility: visible;
}

.scrollbar .up,
.scrollbar .down,
.scrollbar .left,
.scrollbar .right {
  width: 20px;
  height: 20px;
  position: absolute;
  background: #e6e6e6;
  cursor: pointer;
  background-repeat: no-repeat;
  background-size: 70%;
}

.scrollbar .up:hover,
.scrollbar .down:hover,
.scrollbar .left:hover,
.scrollbar .right:hover,
.scrollbar .track .dragBar:hover {
  background-color: #3a9d82;
}

.scrollbar .up {
  left: 0;
  top: 0;
  background-image: url("../images/icons/scrollbar-arrow-up.svg");
  background-position: center center;
  width: 100%;
}

.scrollbar .down {
  left: 0;
  bottom: 20px;
  background-image: url("../images/icons/scrollbar-arrow-down.svg");
  background-position: center center;
  width: 100%;
}

.scrollbar .left {
  left: 0;
  bottom: 0;
  background-image: url("../images/icons/scrollbar-arrow-left.svg");
  background-position: center center;
  height: 100%;
}

.scrollbar .right {
  right: 20px;
  bottom: 0;
  background-image: url("../images/icons/scrollbar-arrow-right.svg");
  background-position: center center;
  height: 100%;
}

.vertical-scrollbar .track {
  position: absolute;
  width: 100%;
  height: auto;
  left: 0;
  top: 20px;
  bottom: 40px;
  background: #f1f1f1;
  overflow: hidden;
}

.horizontal-scrollbar .track {
  position: absolute;
  width: auto;
  height: 100%;
  left: 20px;
  right: 40px;
  bottom: 0px;
  background: #f8f8f8;
  overflow: hidden;
}

.scrollbar .track .dragBar {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #3a9d82;
  cursor: pointer;
  z-index: 10;
}

.vertical-scrollbar .track .dragBar {
  height: 33%;
  top: 33%;
  width: 100%;
}

.horizontal-scrollbar .track .dragBar {
  width: 33%;
  left: 33%;
  height: 100%;
}

/* Responsive States */

@media screen and (max-width: 1300px) {
  .maps-container {
    height: 500px;
    padding-bottom: 0;
  }

  .maps-container-inner {
    height: 0;
    padding-bottom: 32.5%;
  }
}

@media screen and (max-width: 1024px) {

  .maps-container {
    width: 100%;
    height: 484px;
    padding-bottom: 0;
    margin-top: 54px;
  }

  .map {
    margin-top: 0;
  }
}

@media screen and (max-width: 480px) {
  .maps-container {
    height: 300px;
  }
}

/* Maps */

.map,
.map * {
  box-sizing: border-box;
  -ms-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

.map {
  clear: both;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.maps-container {
  width: 150%;
  height: 800px;
  left:-250px;
  padding-bottom: 40%;
  position: relative;
  overflow: hidden !important;
  background-color: rgb(70,110,171);
  z-index: 3;
  margin-top: 30px;
}

.maps-container-inner {
  position: absolute;
  width: 100%;
  z-index: 3;
  height: 0;
  padding-bottom: 43.5%;
}

.map-control {
  width: 30px;
  height: 30px;
  cursor: grabbing;
  position: absolute;
  right: 20px;
  z-index: 15;
  background-size: 15px 15px;
}

.map-control:hover {
  background-size: 20px;
}

.map-image {
  position: absolute;
  left: 0;
  top: 200px;
  right: 0;
  bottom: 200px;
  background-color: rgba(0,0,0,0);
}

.map-image svg,
.map-image img {
  display: block;
  width: 80%;
  height: 100%;
  max-width: 100%;
}

.maps-zoomed-container {
  position: absolute;
  width: 1000%;
  height: 1000%;
  transform: scale(0.1);
  transform-origin: 0 0;
  left: 0;
  top: 0;
}

/** for copyleft symbol **/

.copy-left {
    display: inline-block;
    text-align: right;
    margin: 0;
    font-size: 1.25em;
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: FlipH;
}

a {
  display: inline-block;
}
a:hover {
  transform: translate(0, 0);
}


/** Towns **/

.hhnumber {
  fill:yellow;   
  font-weight:800; 
  font-size:large;
}

sub {
  vertical-align:sub;
  font-size:medium;
}

#sub1 {
  fill:coral;
}

#sub2 {
  fill:green;
}

/** Popups **/

.list1 {
  background-color: rgba(255,0,0,0.5);
  padding-top: 10px;
  padding-bottom: 10px;
}

.list2 {
  background-color: rgba(0,0,255,0.5);
  padding-top: 10px;
  padding-bottom: 10px;
}

.list3 {
  background-color: rgba(255,255,255,1);
  padding-top: 10px;
  padding-bottom: 10px;
}



.list4 {
  background-color: rgba(128,128,128,0.5);
  padding-top: 10px;
  padding-bottom: 10px;
}

th {
  text-align: left;
  padding: 8px;
  font-weight: normal;
}

td {
  text-align: right;
  padding: 8px;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #D6EEEE;
}
tr:nth-child(odd) {
  background-color: #00FFFF;
}

.stat {
  color: #000;
  font-weight: bold;
}

/** Sampling page **/

.f1 {
  width: 160px; 
  float: left;
  padding-bottom: 15px;
}
.f2 {
  width: 50px; 
  height: 50px;
  margin-right: 10px;
  float: left;
  background-image: url(/img/mapicon.png );
}

.f2a {
  width: 50px; 
  height: 50px;
  margin-right: 10px;
  float: left;
  background-image: url(/img/mapicon.png );
}


.f3 {
  width: 100px; 
  float: left; 
  text-align: left;
} 

.f4 {
  clear:both;
  color: rgb(240,82,34);
}

.f5 {
  margin-top: 6px;
  color: rgb(240,82,34);
}

.f5a {
  font-weight: bold;
  color: rgb(240,82,34);
  
}

.f5b {
  margin-top: 6px;
  color: rgb(240,82,34);
  margin-left:-20px;
}


/** Househodl members table **/

#sample {
  width: 100%;
}

#sample tr:nth-child(odd) {background-color: #cccccc;}
#sample tr:nth-child(even) {background-color: #eeeeee;}


/** Authentication form **/

    #loginpopup input[type=text], input[type=password] {
      width: 100%;
      padding: 16px 8px;
      margin: 8px 0;
      display: inline-block;
      border: 1px solid #ccc;
      box-sizing: border-box;
      }
    #loginpopup  button {
      background-color: rgb(240,82,34);
      color: white;
      padding: 14px 0;
      margin: 10px 0;
      border: none;
      width: 100%;
      font-size: 150%;
      }
    #loginpopup h1 {
      text-align:center;
      font-size:18;
      }
    #loginpopup  button:hover {
      opacity: 0.8;
      }
    #loginpopup  .formcontainer {
      text-align: left;
      margin: 24px 50px 12px;
      }
    #loginpopup  .container {
      padding: 16px 0;
      text-align:left;
      }
    #loginpopup  span.psw {
      float: right;
      padding-top: 0;
      padding-right: 15px;
      }
      
      /* Change styles for span on extra small screens */
      @media screen and (max-width: 300px) {
      span.psw {
      display: block;
      float: none;
      }
