@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;
}

:root {
  --tile-scale: 1;
}

.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;
}

/* HELP PAGE */

.help-page {
	max-width: 880px;
	margin: 0 auto;
	padding: 30px 20px 80px;
	color: #333;
}

.help-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.help-header h1 {
	margin: 0;
	font-size: 1.8rem;
}

.help-section {
	background: #fff;
	border-radius: 10px;
	padding: 22px 26px;
	margin-bottom: 18px;
	box-shadow: 0 2px 8px rgba(107, 102, 140, .12);
}

.help-section h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: #222;
}

.help-section h2 .num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #0d6efd;
	color: #fff;
	border-radius: 50%;
	font-size: .95rem;
	flex-shrink: 0;
}

.help-section p {
	margin-bottom: 10px;
	line-height: 1.5;
}

.help-section ul {
	margin: 0;
	padding-left: 22px;
	line-height: 1.6;
}

.help-section code {
	background: #f4f4f4;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
	color: #c7254e;
}

.help-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin-top: 14px;
	border-radius: 8px;
	border: 1px solid #e3e3e3;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.help-section .dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
	border: 1px solid #999;
}

.help-section .dot.blue { background: #fff; border: 4px solid #5683da; }
.help-section .dot.orange { background: #fff; border: 4px solid #ff8964; }
.help-section .dot.gray { background: #c1c1c1; }
.help-section .dot.pink { background: #ffc0cb; }
.help-section .dot.white { background: #fff; }

.help-footer {
	margin-top: 30px;
	text-align: center;
}

@media (max-width: 600px) {
	.help-page {
		padding: 18px 12px 60px;
	}

	.help-header h1 {
		font-size: 1.4rem;
	}

	.help-section {
		padding: 16px 18px;
	}

	.help-section h2 {
		font-size: 1.05rem;
	}
}

/* HELP PAGE */



/* FOLDER NAVIGATION */

.birthday-alert {
	max-width: 1200px;
	margin: 30px auto 0;
	position: relative;
	z-index: 1;
}

.folder-view {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 80px;
	position: relative;
	z-index: 1;
}

.birthday-alert + .folder-view {
	padding-top: 18px;
}

.folder-breadcrumbs {
	background: #fff;
	padding: 12px 18px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(107, 102, 140, .15);
	margin-bottom: 30px;
	font-size: 1rem;
	line-height: 1.6;
}

.folder-breadcrumbs a {
	color: #0d6efd;
	text-decoration: none;
}

.folder-breadcrumbs a:hover {
	text-decoration: underline;
}

.folder-breadcrumbs .sep {
	color: #999;
	margin: 0 4px;
}

.folder-breadcrumbs .current {
	font-weight: bold;
	color: #333;
}

.folder-section {
	margin-bottom: 30px;
}

.folder-section h5 {
	margin-bottom: 15px;
	color: #555;
	font-weight: 600;
	border-bottom: 1px solid #ddd;
	padding-bottom: 6px;
}

.folder-list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.folder-list-scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	align-items: flex-start;
	padding-bottom: 14px;
	scrollbar-width: thin;
}

.folder-list-scroll .folder-tile {
	flex-shrink: 0;
}

.folder-current-row-inner {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.folder-current-row-inner .folder-tile.current {
	flex-shrink: 0;
}

.folder-siblings-pane {
	flex: 1 1 auto;
	min-width: 0;
	border-left: 2px solid #ccc;
	padding-left: 24px;
}

.folder-siblings-pane h5,
.folder-current-pane h5 {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 12px;
}

.folder-current-pane {
	flex-shrink: 0;
}

.folder-tile {
	position: static !important;
	width: calc(160px * var(--tile-scale)) !important;
	max-width: none !important;
	height: auto !important;
	max-height: none !important;
	text-align: center;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
	border-radius: 12px;
}

.folder-tile.dim {
	opacity: .2;
}

.folder-tile.active span {
	background: #c3d7ff;
	box-shadow: 0 2px 12px rgba(13, 110, 253, .4);
}

.folder-tile-add {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(168px * var(--tile-scale));
	border: 2px dashed #b0b0b0;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	color: #888;
	box-sizing: border-box;
	transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}

.folder-tile-add:hover {
	border-color: #0d6efd;
	color: #0d6efd;
	background: #f0f6ff;
}

.folder-tile-add .plus {
	font-size: calc(3rem * var(--tile-scale));
	font-weight: 300;
	line-height: 1;
}

.folder-tile-add .add-label {
	font-size: .85rem;
	margin-top: 8px;
	padding: 0 8px;
	text-align: center;
	color: inherit;
}

.folder-tile img {
	width: calc(100px * var(--tile-scale)) !important;
	height: calc(100px * var(--tile-scale)) !important;
}

.folder-tile span {
	min-height: 0;
	padding: 22px 8px 8px;
	font-size: .9rem;
}

@media (max-width: 600px) {
	.controll-buttons {
		right: 10px;
		bottom: 10px;
		gap: 0;
		max-width: calc(100vw - 20px);
	}

	.controll-buttons .btn,
	.controll-buttons button {
		padding: 8px 12px;
		font-size: .85rem;
	}

	.search-box.open .search-input {
		width: calc(100vw - 170px);
		min-width: 100px;
		max-width: 260px;
		font-size: 13px;
		padding: 6px 10px;
	}

	.search-dropdown {
		max-height: 50vh;
	}

	.search-dropdown .item {
		padding: 6px 10px;
	}

	.search-dropdown .item img {
		width: 30px;
		height: 30px;
	}

	.search-dropdown .item .name {
		font-size: 13px;
	}

	.folder-view {
		padding: 20px 10px 60px;
	}

	.folder-breadcrumbs {
		font-size: .9rem;
		padding: 10px 12px;
		margin-bottom: 20px;
	}

	.folder-section {
		margin-bottom: 22px;
	}

	.folder-section h5 {
		font-size: 1rem;
		margin-bottom: 10px;
	}

	.folder-list {
		gap: 10px;
	}

	.folder-list-scroll {
		padding-bottom: 10px;
	}

	.folder-current-row-inner {
		gap: 12px;
	}

	.folder-siblings-pane {
		padding-left: 12px;
	}

	.folder-tile {
		width: calc(110px * var(--tile-scale)) !important;
		border-radius: 10px;
	}

	.folder-tile img {
		width: calc(70px * var(--tile-scale)) !important;
		height: calc(70px * var(--tile-scale)) !important;
		border-width: 3px !important;
	}

	.folder-tile span {
		min-height: 0;
		padding: 16px 6px 6px;
		font-size: .75rem;
		border-radius: 18px;
		margin-top: -14px;
	}

	.folder-tile-add {
		min-height: calc(116px * var(--tile-scale));
	}

	.folder-tile-add .plus {
		font-size: calc(2rem * var(--tile-scale));
	}

	.folder-tile-add .add-label {
		font-size: .7rem;
		margin-top: 4px;
	}
}

/* FOLDER NAVIGATION */

.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;
	display: flex;
	align-items: stretch;
	gap: 0;
}

.controll-buttons button {
	padding: 10px 30px;
}

.controll-buttons .btn,
.controll-buttons button {
	position: relative;
}

.controll-buttons .btn:hover,
.controll-buttons .btn:focus,
.controll-buttons button:hover,
.controll-buttons button:focus {
	z-index: 1;
}

.controll-buttons > .settings-box .settings-toggle,
.controll-buttons > a.btn:last-child {
	margin-left: -1px;
}

.controll-buttons > a.btn:last-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.search-box {
	position: relative;
	display: flex;
	align-items: stretch;
}

.search-input {
	width: 0;
	padding: 0;
	border: 1px solid #0d6efd;
	border-right: none;
	border-radius: 4px 0 0 4px;
	transition: width .25s ease, padding .25s ease;
	outline: none;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.search-box.open .search-input {
	width: 300px;
	padding: 8px 12px;
}

.search-toggle {
	border-radius: 4px 0 0 4px;
	padding: 10px 16px;
}

.search-box.open .search-toggle {
	border-radius: 0;
}

.search-dropdown {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 360px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
	display: none;
}

.search-dropdown.visible {
	display: block;
}

.search-dropdown .item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
}

.search-dropdown .item:last-child {
	border-bottom: none;
}

.search-dropdown .item:hover,
.search-dropdown .item.active {
	background: #f0f6ff;
}

.search-dropdown .item img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.search-dropdown .item .name {
	font-size: 14px;
	line-height: 1.2;
	color: #333;
}

.search-dropdown .item .meta {
	font-size: 12px;
	color: #888;
}

.search-dropdown .empty {
	padding: 14px;
	color: #888;
	text-align: center;
	font-size: 14px;
}

.settings-box {
	position: relative;
	display: flex;
	align-items: stretch;
}

.settings-toggle,
.help-toggle {
	padding: 10px 14px;
	font-size: 18px;
	line-height: 1;
	border-radius: 0;
}

.controll-buttons > .help-toggle {
	margin-left: -1px;
}

.settings-panel {
	position: absolute;
	bottom: calc(100% + 6px);
	right: 0;
	min-width: 280px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
	padding: 14px 16px 12px;
	display: none;
}

.settings-box.open .settings-panel {
	display: block;
}

.settings-title {
	font-size: 13px;
	color: #555;
	margin-bottom: 10px;
	font-weight: 600;
}

.settings-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.settings-row .btn {
	padding: 4px 12px;
	font-size: 18px;
	line-height: 1;
	min-width: 36px;
}

.settings-row .settings-zoom {
	flex: 1;
	margin: 0;
	cursor: pointer;
}

.settings-ticks {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
	padding: 0 46px;
	font-size: 11px;
	color: #888;
}

.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;
}