/* Layout - Elementy wspólne dla wszystkich podstron i rozdzielczości ekranu */
/* Podstawowe style */

/* Domyślnie – małe ekrany */
body {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 10px;
    font-weight: normal;
    text-decoration: none;
    background-color: #fefefe;
    margin: 1px;
    width: 100%;
}

.banner {
    width: 100%;
    min-width: 400px;
    height: 120px;
    background-image: url("../images/head/header.jpg");
    background-size: 150% 100%;         /* szerokość 100%, wysokość proporcjonalna */
    background-position: center;        /* wyśrodkowanie */
    background-repeat: no-repeat;       /* bez powtarzania */
}

.wraper {
    width: 100%;
    min-width: 400px;
    margin: 2px auto 0;
    padding: 0;
    background: url("../images/tree/tree.gif") repeat;
}

.logowanie {
    width: 180px;
    height: 110px;
	font-size: 11px;
	text-align: center;
	justify-content: center; 
    flex-wrap: wrap;  	
    border-radius: 10px;
    padding: 1px;
	margin-right: 10px; 
	margin-left: auto; 
	box-shadow: 0px 0px 5px 1px rgba(49,168,59,0.3);
	background-color: rgba(200, 200, 200, 0.7)
}


input[type=text],
input[type=password]
{
	background-color: #F0FDC2;
	font-size: 14px;
	color: #151;
	border: 1px solid;
	border-radius: 5px;
	outline: none;
	box-sizing: border-box;

}

input[type=text]:focus,
input[type=password]:focus
{
box-shadow: 0px 0px 5px 1px rgba(49,168,59,0.3);
border: 2px solid #7b7;
background-color: #DFFFBA;
}

input[type=submit]
{
	background-color: #FCD05B;
	font-size: 14px;
	color: #114411;
	border: 1px solid;
	border-radius: 5px;
	cursor: pointer;
	letter-spacing: 1px;
	outline: none;
}
input[type=submit]:hover
{
	background-color: #fe7;	
}	
input[type=submit]:focus
{
	background-color: #fe7;	
}

.logowanie input[type=text],
.logowanie input[type=password]{
	width: 100%;
	margin-top: 2px;
}

.logowanie input[type=submit]{
	width: 100%;
	margin-top: 2px;
}
.pseudo-button{
	display: block;
 	background-color: #F0FDC2;
	font-size: 14px;
	color: #114411;
	width: 100%;
	margin: 5px 0;
	border-radius: 5px;
	cursor: pointer;
	letter-spacing: 1px;
	outline: none;
}
/* style paska wyszukiwanie */


.navibar {
    width: 100%;
    padding: 0;
    background-color: #e3b836;
}

.mainblock {
    width: 100%;

	padding: 5px 0;/* top,bottom 5px */
    background-image: url("../images/tree/tree.gif");
}

	/* --- Alternatywa dla .mainblock 3 bloki  (des)*/
.blocks {
	display: block;
	gap: 0px; /* odstęp między lewym i prawym blokiem */
	margin-top: 5px;	
	width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background-image: url("../images/tree/tree.gif");
    border: 1px solid orange;
    border-radius: 3px;
    margin-top: 10px;
}

.leftblock {
	width: 100%;
	margin: 5px 0;/* top,bottom 5px */
	font-family: 'Atma', sans-serif;
	border-right: 2px dotted orange;
}
.centerblock {
	width: 100%;
	padding: 5px;
	margin: 5px 0;/* top,bottom 5px */
	font-family: 'Atma', sans-serif;
}  

/* --- Menu antenatów w leftblock (asc,des) --- */
.leftblock ul {
  list-style-type: none;
  padding: 10px;
  padding-right: 15px;
}

.leftblock li {
    margin: 0 0 2px 0;
}
.leftblock a {
    display: block;
    padding: 6px 12px;
    background: #fefaf9;
    color: #575757;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
    font-weight: normal;
}
.leftblock a:hover {
    background: #f7f9e5;
    color: #575757;
    font-weight: normal;
}

/* Kontener na podstronę */
.kora {
  width: 100%;
  padding-top: 2px;
  padding-bottom: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Ukrycie paska przewijania w WebKit (Chrome, Safari) */
.kora::-webkit-scrollbar {
  display: none;
}
 

/* Stopka */
.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 10px;
  font-size: 14px;
}

.footer a {
  color: #aaa;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #bbb;
}



h1, .asc-title, .leftblock h2, .leftblock .menu-title {
    font-family: Tahoma, Verdana, sans-serif;
    font-size: 18px;
    color: #0074ba;
    font-weight: normal;
    text-align: center;
    background: none;
    letter-spacing: 0;
    padding: 0;
}
.leftmenu h2, .leftblock .menu-title {
    font-size: 18px;
    color: #322;
    font-weight: normal;
    margin: 10px 0 10px 0;
    text-align: left;
    background: none;
    padding: 0;
}
/* Style dla układu nagłówka strony */
.header-left {
    margin-top: 13px;
}

.wyszukiwanie-pasek {
  display: flex;
  flex-wrap: wrap;        /* zawijanie do nowej linii */
  gap: 10px;              /* odstęp między elementami */
  max-width: 100%;        /* zabezpieczenie przed rozciąganiem */
  box-sizing: border-box;

    justify-content: space-between;
    align-items: center;
}

.wyszukiwanie-pasek > div { /* Wspólne style dla wszystkich wyszukiwań */
  flex: 1 1 auto;         /* pozwala rosnąć i się zmniejszać */
  min-width: 75px;       /* minimalna szerokość, potem się łamie */
  max-width: 278px;
  padding: 0px;
  box-sizing: border-box;
}

.wyszukiwanie-drzew {
width:320px;
    margin-right: 10px;
	padding: 0;
}

.wyszukiwanie-tytul{
	width:90;
	text-align: center;
    justify-content: center;
    align-items: center;
	font: 20px Tahoma, Verdana, sans-serif;
	color: #090; /* zielony */
	font-weight: bold;
	}

.wyszukiwanie-osob {
  width: 280px;
  display: none;
	padding-top: 15px;
}
.wyszukiwanie-osob input[type="text"] {
  width: 215px;
color: #333;             /* kolor tekstu */
background-color: #eee;  /* tło */
border: 1px solid #333;  /* obramowanie */
border-radius: 3px;      /* zaokrąglenie rogów */
outline-color: 333;
padding: 2px;
}
.wyszukiwanie-osob input[type="text"]:focus {
  outline: 1px solid #0f7;
}

form {
  overflow: hidden; /* albo overflow: auto; */
}
.wyszukiwarka {
  position: relative;
}
      .szukaj{

align-items: center;  
		position: relative;
		z-index: 10;
		font-family: 'Atma', sans-serif;
		color:#B08529;
        height:2em;
		margin:10px;
		padding-left: 5px;
        line-height: 1.5em;
        text-align:left;
		cursor: pointer;
		}
  
      .ListaOsob {
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		min-width: 220px;
		max-width: 350px;
		width: auto;
		margin-top: 2px;
		z-index: 1000 !important;
		background: rgba(238,238,238,0.9);
		border: 1px solid #ccc;
		border-radius: 6px;
		box-shadow: 0 4px 16px rgba(0,0,0,0.10);
		font-family: 'Atma', sans-serif;
		font-size: 12px;
		color: darkgreen;
		display: block;
		padding: 4px 0;
	} 
      .ListaOsob > ul > li {
		list-style-type: none;		
		}

      .ListaOsob > ul > li:hover {
        color:#231;
        background-color:#DDD; 
		}


/* Style dla przycisku PDF */
.wyszukiwanie-pdf {
display:flex;
    align-items: center;
    justify-content: center;
}

.btn-pdf {
    display: inline-flex;       /* lub flex */
    justify-content: center; 
	background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-width: 70px;
    white-space: nowrap;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.btn-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-pdf:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
} 

/* ##### do weryfikacji ##### */

/* Style dla przycisku PDF - responsive small */
.btn-pdf {
    padding: 4px 6px;
    min-width: 50px;
    height: 26px;
    margin: 0 2px;
}

.wyszukiwanie-pdf {
    margin: 0 3px;
}

.naglowek {
    float: right;
}
/* ##### do weryfikacji ##### */



/* ##### RESPONSYWNOŚĆ ##### */

/* Ekrany ≥ 400px */
@media (min-width: 400px) {
    body {
        font-size: 11px;
    }

.wyszukiwanie-osob {
    display: block;
}
	/* Navibar 400*/
	.mobile-navi {
		width: 100%;
		background-color: #e3b836;
		padding: 0;
		margin: 0;
		box-sizing: border-box;
		overflow: hidden;
	}

	.navi-flex-container {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.mobile-btn {
		flex: 0 0 calc(50% - 2px); /* Domyślnie 2 w rzędzie */
		width: calc(50% - 2px);
		max-width: calc(50% - 2px);
		min-width: 0;

		padding: 8px 2px;
		background-color: #e3b836;
		color: #322;
		font-family: Tahoma, Verdana, sans-serif;
		font-size: 12px;
		font-weight: bold;
		text-align: center;		
		text-transform: uppercase;
		text-decoration: none;
		text-overflow: ellipsis;
		border: 1px solid #d4a429;
		box-sizing: border-box;
		margin: 1px;
		display: block;
		white-space: nowrap;
		overflow: hidden;

		min-height: 32px;
		line-height: 1.2;
	}
	.mobile-btn:hover {
		background-color: #d4a429;
		color: #000;
	}

	.mobile-btn.active {
		background-color: #007cba;
		color: #fff;
	}
}

/* Ekrany ≥ 768px */
@media (min-width: 768px) {
    body {
        font-size: 12px;
    }
	
	.banner {
    background-size: 100% 100%;         /* szerokość 100%, wysokość proporcjonalna */
	}

/* Navibar 768*/
	.mobile-btn {
		flex: 0 0 calc(33.333% - 2px); /* 3 przyciski w rzędzie */
		width: calc(33.333% - 2px);
		max-width: calc(33.333% - 2px);
		padding: 16px 4px;
	}

	.footer-content {
		flex-direction: row;
		justify-content: space-between;
		max-width: 1000px;
		margin: 0 auto;
	  
	}
}
/* Ekrany ≥ 1000px */
@media (min-width: 1000px) {
    body {
        font-size: 14px;
        width: 1000px;
    }

/* Kontener na podstronę skracamy aby zmieścić leftblock */
 
	.blocks {
		display: flex;/* leftblock i centerblock wyświetlają sie obok siebie */
	}
	.centerblock {
	width: calc(100% - 240px);
	}
	.leftblock
	{
	width: 224px;
	}

	.centerblock {
		width: calc(100% - 228px); /* Szerokość pomniejszona o leftblock*/
	}

/* Menu nawigacyjne */
.navi {
	margin: 1px auto 0;
	position: relative;
	width: 950px;
	height: auto;
	border-radius: 8px;
	font-size: 0;
}

	/* Desktop Navigation */
	a.navi {
		line-height: 33px;
		font-size: 15px;
		display: inline-block;
		position: relative;
		z-index: 1;
		text-decoration: none;
		text-transform: uppercase;
		text-align: center;
		color: white;
		cursor: pointer;
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.animation {
		position: absolute;
		top: 0;
		z-index: 0;
		transition: all .5s ease 0s;
		border-radius: 8px;
		height: 33px;
	}

	a.navi:nth-child(1) {
		width: 98px;
		border: 1px solid #1abc9c;
	}
	a.navi:nth-child(2) {
		width: 148px;
		border: 1px solid #e74c3c;
	}
	a.navi:nth-child(3) {
		width: 148px;
		border: 1px solid #3498db;
	}
	a.navi:nth-child(4) {
		width: 138px;
		border: 1px solid #9b59b6;
	}
	a.navi:nth-child(5) {
		width: 138px;
		border: 1px solid #22cc44;
	}
	a.navi:nth-child(6) {
		width: 138px;
		border: 1px solid #dddd11;
	}

	a.navi:nth-child(1):hover~.animation {
		width: 98px;
		left: 0;
		background-color: #1abc9c;
	}
	a.navi:nth-child(2):hover~.animation {
		width: 148px;
		left: 98px;
		background-color: #e74c3c;
	}
	a.navi:nth-child(3):hover~.animation {
		width: 148px;
		left: 246px;
		background-color: #3498db;
	}
	a.navi:nth-child(4):hover~.animation {
		width: 138px;
		left: 394px;
		background-color: #9b59b6;
	}
	a.navi:nth-child(5):hover~.animation {
		width: 138px;
		left: 532px;
		background-color: #22cc44;
	}
	a.navi:nth-child(6):hover~.animation {
		width: 138px;
		left: 670px;
		background-color: #dddd11;
	}



	 .start-start, a.navi:nth-child(1):hover~.animation {
		width: 98px;
		left: 0;
		background-color: #1abc9c;
	}
	.start-potomkowie, a.navi:nth-child(2):hover~.animation {
		width: 148px;
		left: 98px;
		background-color: #e74c3c;
	}
	.start-przodkowie, a.navi:nth-child(3):hover~.animation {
		width: 148px;
		left: 246px;
		background-color: #3498db;
	}
	.start-rodzina, a.navi:nth-child(4):hover~.animation {
		width: 138px;
		left: 394px;
		background-color: #9b59b6;
	}
	.start-drzewo, a.navi:nth-child(5):hover~.animation {
		width: 138px;
		left: 532px;
		background-color: #22cc44;
	}
	.start-statystyki, a.navi:nth-child(6):hover~.animation {
		width: 138px;
		left: 670px;
		background-color: #dddd11;
	}
}