/* Genmapper CSS */
/**** Basic elements ****/
body{
  font: 15px sans-serif;
  margin: 0px;
}

button {
    background-color: steelblue;
    border: none;
    color: white;
    padding: 10px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

button img {
  width: 32px;
  height: 32px;
}

rect{
  fill:white;
}

svg{
  background: whitesmoke;
}

h2{
  font-size:18px;
}

h2:hover{
  color:#aaa;
}

h3{
  font-size:16px;
  margin:0;
  padding:0;
  border: 0;
}

p {
  margin-top:0.3eM;
}

/**** Left menu ****/
aside{
  width:60px;
  float:left;
  margin: 5px;
}

aside button{
  width:60px;
  border-top: 3px solid #ddd;
  border-left: 3px solid #ddd;
  border-bottom: 3px solid #bbb;
  border-right: 3px solid #bbb;
  padding: 10px 10px;
}

aside button:hover{
  background-color: lightskyblue;
}

aside p{
  width:60px;
  color: steelblue;
  margin: 5px;
  margin-top: 15px;
  border: 0px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 60px;
    top: 0px;
    background-color: #f9f9f9;
    min-width: 100px;
    z-index: 1;
    padding: 0;
    border: 0;
    margin: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#lang-selector ul li{
  display: block;
}

#lang-selector ul li button {
  min-width: 100px;
  padding: 10px 10px 10px 10px;
}

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

/**** Modal windows ****/
#intro, #edit-group, #alert-message {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.7);
}

#intro {
  display: none;
}

#edit-group {
  display: none;
}

#alert-message {
  display: none;
  z-index: 2;
}

#intro-content, #edit-group-content, #alert-message-content {
  border: double black 5px;
  padding: 25px;
  background: whitesmoke;
  position: relative;
  background-color: #fefefe;
  margin: 30px auto;
}

#intro-content {
  width: 80%;
  max-width: 800px;
}

#alert-message-content {
  max-width: 400px;
}

#edit-buttons {
  height: 60px;
  padding-top: 10px;
}

#edit-group-content {
  max-width: 400px;
}

#edit-group-content table {
  width: 100%;
  padding: 0px;
  border-collapse: collapse;
}

#edit-group-content td{
}

#edit-group-content td.left-field {
  vertical-align: top;
  width: 60%;
  padding-left: 20px;
  text-indent: -20px;
}

#edit-group-content td.right-field {
  vertical-align: top;
  padding-left: 5px;
  padding-bottom: 2px;
}

#edit-group-content h1{
  margin: 0 0 7px 0;
}

#edit-group-content button{
  width: 25%;
  height: 50px;
  border: 3px solid #ddd;
  padding: 5px 5px;
  float: left;
}

#edit-group-content input[type=text] {
  font-family: sans-serif;
  font-size: 14px;
  padding: 0px 2px;
  border-width: 2px;
  width: calc(100% - 8px);
}

#edit-group-content input[type=checkbox],
#edit-group-content input[type=radio] {
  margin: 0 .5em 0 0;
}

#edit-group-content #edit-parent {
  font-size: 14px;
  padding: 0px 0px 0px 4px;
  margin: 0;
  color: #888;
}

#edit-submit{
  background-color: steelblue;
}

#edit-cancel{
  background-color: #aaa;
}

#edit-delete{
  background-color: red;
}

#intro-content button{
  background-color: #4CAF50; /* Green */
  border: none;
  color: white;
  padding: 15px 32px;
  font-size: 16px;
}

/**** SVG ****/
#main {
  float: right;
  width: calc(100% - 71px);
  height: 100%;
}

.addNode rect{
  fill: #b3ffb3;
}

.addNode {
  display: none;
}

.addNode:hover rect {
  fill:lime;
}

.removeNode rect{
  fill: lightsalmon;
}

.removeNode {
  display: none;
}

.removeNode:hover rect {
  fill:red;
}

.node text {
  font: 15px sans-serif;
  text-anchor: middle;
}

.node:hover > rect, .node:hover > line {
  fill: lightskyblue;
}

.node:hover g.addNode, .node:hover g.removeNode {
  display: block;
}

/* #customtft */
.node--dummyroot text, .node--dummyroot .node-big-rect, .node--dummyroot .node-attenders-image, .node--dummyroot .node-believers-image, .node--dummyroot .node-baptized-image, .node--dummyroot .node-church-box {
  display:none;
}

.node--dummyroot:hover g.removeNode {
  display:none;
}

.node--dummyroot g.addNode {
  display:block;
}

.node--active text, .link-text--active {
  stroke: black;
  fill: black;
}

.node--inactive text, .link-text--inactive {
  stroke: #000;
  fill: #000;
  opacity: 0.4;
}

.node--inactive image {
  opacity: 0.4;
}

.node--inactive > rect, .node--inactive > line {
  stroke: #ddd;
}

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 2px;
}

/* #customtft */
.link-dummy {
  display:none;
}

.link-text {
  text-anchor: middle;
}

.invisible-rect {
  fill-opacity:0;
  stroke-opacity:0;
}
