@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, 
body {
  height: 100%;
}

body {
  background: #eee;
  transform-origin: top left;
  font-family: 'PT Serif', serif;
}

.fperson {
	list-style: none;
}

.fperson li {
	cursor: pointer;
}

.fperson li img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 50%;
	border: 5px solid transparent;
}

.fperson li span {
	margin-left: 10px;
}

.noselect {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.generation {
  position: absolute;
  height: 300px;
  left: 0;
  right: 0;
  z-index: 0;
    font-size: xxx-large;
    padding: 90px;
}

.controll-buttons {
	position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 9999;
}

.controll-buttons button {
	padding: 10px 30px;
}

.person {
  cursor: pointer;
  text-align: center;
  position: absolute;
  width: 170px;
  max-width: 170px;
  height: 200px;
  max-height: 200px;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.person span {	
	display: block;
	background-color: #fff;
    line-height: 1em;
    border-radius: 25px;
    padding-top: 25px;
    padding-bottom: 5px;
    margin-top: -20px;
    box-shadow: 0 2px 8px rgb(107 102 140 / .3);
    min-height: 115px;
}

.person.parent span {
	background-color: #c3d7ff;
}

.person.bro span {
	background-color: #c3ffd7;
}

.person.unverified span {
	background-color: #ffc0cb;
}

.person.deceased span {
	background-color: #c1c1c1 !important;
}

.person img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 5px solid transparent;
}

.person.female img {
	border-color: #ff8964;
}

.person.male img {
	border-color: #5683da;
}

svg.connector-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.typed-text::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
}

.typing {
  width: 22ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid;
  animation: typing 3s steps(22), 
			 blink 0.7s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 22ch }
}

@keyframes blink {
  50% { border-color: transparent }
}

.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* LOGIN */

.login-container {
    position: relative;
    width: 300px;
    margin: 80px auto;
    padding: 20px 40px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
}

.login-container::before,
.login-container::after {
    content: "";
    position: absolute;
    width: 100%;height: 100%;
    top: 3.5px;left: 0;
    background: #fff;
    z-index: -1;
    -webkit-transform: rotateZ(4deg);
    -moz-transform: rotateZ(4deg);
    -ms-transform: rotateZ(4deg);
    border: 1px solid #ccc;
}

.login-container::after {
    top: 5px;
    z-index: -2;
    -webkit-transform: rotateZ(-2deg);
     -moz-transform: rotateZ(-2deg);
      -ms-transform: rotateZ(-2deg);
}

.logo {
    width: 100px;
	height: 100px;
    margin: 10px auto 30px;
    border-radius: 100%;
    border: 2px solid #aaa;
    background-size: cover;
}

.form-box input {
    width: 100%;
    padding: 10px;
    text-align: center;
    height:40px;
    border: 1px solid #ccc;
    background: #fafafa;
}

.form-box input:focus {
    outline: 0;
    background: #fff;
}

.form-box input[type="text"] {
    border-radius: 5px 5px 0 0;
}

.form-box input[type="password"] {
    border-radius: 0 0 5px 5px;
    border-top: 0;
}

.form-box button.login {
    margin-top:15px;
    padding: 10px 20px;
}

.form-box button.login span {
	display: none;
}

.form-box button.login:disabled span {
	display: inline-block;
}

/* LOGIN */



/* MODAL */

.modal img {
	max-width: 200px;
}

/* MODAL */






.content {
  width: 100%;
  //overflow: hidden;
}

.world {
  
}

.human {
  opacity: .8;
  margin-bottom: 10px;
  box-shadow: 0 10px 5px -6px rgba(0, 0, 0, .75);
  -webkit-box-shadow: 0 10px 5px -6px rgba(0, 0, 0, .75);
  -moz-box-shadow: 0 10px 5px -6px rgba(0, 0, 0, .75);
}

.human:hover {
  opacity: 1;
}

.bar {
  padding: 5px;
  cursor: pointer;	
  border-radius: 4px;
  border: 1px solid #a00;
}

.bar img {
  width: 40px;
  height: 40px;  
  margin-right: 5px;
  border-radius: 100%;
}

.bar span {
  color: white;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}


.generation {
  display: flex;
}

/*.person {
  text-align: center;
  background: white;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 190px;	
  min-height: 240px;	
}*/

.couple {
  display: flex;
      align-items: center;
}

.generation img {
  width: 120px;
  height: 120px;  
  object-fit: cover;
  margin-right: 5px;
  border-radius: 50%;
  border: 4px solid #3498db;
}

.generation span {
  //display: block;
}

.h-line {
  height: 2px;
  background: #2c3e50;
  width: 50px;
  margin: 0 10px;
  z-index: 0;
}