
* {
	margin: 0;
	padding: 0;
}

body {
	background: #0b3c53;
	font-family: Arial, Helvetica, sans-serif;
	ffont-size: 13px;
	color: #333333;
}

form {
}

input, textarea {
	padding: 2px 5px;
	font: normal 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
	color: #333333;
}

h1, h2, h3 {
	margin-top: 1.5em;
	font-weight: normal;
}

h1 {
	font-size: 2em;
}

h2 {
	font-size: 1.4em;
}

h3 {
	font-size: 1em;
}

p, ul, ol {
	margin-top: 1.5em;
	line-height: 160%;
}

ul, ol {
	margin-left: 3em;
}

blockquote {
	margin-left: 3em;
	margin-right: 3em;
}

a {
	color: #CC6B47;
	text-decoration: none;
}

a:hover {
	text-decoration: none;
	color: #3760BF;
}


a img {
	border: none;
}

img.left {
	float: left;
	margin: 0 20px 0 0;
}

img.right {
	float: right;
	margin: 0 0 0 20px;
}

hr {
	display: none;
}

.tab {

    padding-left: 2%;
}

/* GRID */

.container-grid {
	margin: 0 auto;
	display: grid;
  grid-template-columns: 300px 300px ;
  grid-template-rows: 250px;
  grid-template-areas: ". .";
	width: 600px;
}


#header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #0b3c53;
    padding: 20px 0 !important;
    box-sizing: border-box;
}

#logo {
    flex-grow: 0 !important;
    flex-shrink: 0;
    width: auto !important;
    text-align: right;
    margin-right: 25px;
}

#logo h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 3.5em !important;
    line-height: 1.3 !important;
    font-weight: normal;
    color: #ffffff;
    font-family: "Josefin Sans";
}

#logo a {
    text-decoration: none;
    color: inherit;
}

#header img {
    width: 180px !important;
    height: auto;
    flex-shrink: 0;
    display: block;
}



/* Menu - NOWA STRUKTURA FLEXBOX */

#menu-wrap {
	display: flex; /* NOWE: Używamy Flexbox do centrowania */
	justify-content: center; /* Centruje menu na środku */
	max-width: 1200px;
	width: 100%;
	background-color: #0b3c53;
	margin: 0 auto;
	padding: 10px 0; /* Dodatkowy padding dla lepszego wyglądu */
	box-sizing: border-box;
}

#menu {
	/* Usunięte sztywne marginesy i paddingi psujące układ */
	max-width: 1400px;
	width: auto; /* Nie zajmuj całej szerokości, tylko tyle ile potrzebujesz */
	margin: 0;
	padding: 0;
	position: static;
}

#menu ul {
	list-style: none;
	line-height: normal;
	padding: 0;
	margin: 0;
	display: flex; /* NOWE: Używamy Flexboxa do ułożenia elementów */
	flex-wrap: wrap; /* Zezwalamy na łamanie linii (ważne dla mobile) */
	justify-content: center; /* Centrujemy listę linków */
	width: auto;
}

#menu li {
	display: block;
	float: none;
	flex-shrink: 0; /* NOWE: Ważne - nie pozwalamy na ściskanie/rozciąganie */
}

#menu a {
	float: none;
	display: block;
	margin: 2px; /* NOWE: Użyj po prostu 2px dookoła (usuwa 4px z boku) */
	padding: 3px 8px;
	bbackground: #4C4D51;
	bborder: 1px #575C5F solid;
	text-decoration: none;
	text-transform: uppercase;
	font-style: arial;
	font-size: 16px;
	color: #FFFFFF;
	line-height: 1.2;
	height: auto;
    white-space: nowrap; /* NOWE: Zapobiega łamaniu się tekstu w kafelku */
}

#menu a:hover {
	text-decoration: none;
	background: #3A7591;
}

#menu .first a {
	background: #983D3A;
	border: 1px #D45951 solid;
}




/* Page */

#page {
	max-width: 778px; width: 100%;
	margin: 0 auto;
}

#content {
	background: #d1d1d1;
	border-bottom: 4px #BBB082 solid;
}

.bord {
	border-bottom: 2px dotted grey;
}

.gal {
	margin: 35px 0;
	background: #eee;
	width: 140px;
	height: 40px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	font-size: 1.5em;
	font-style:verdana;
}

/* Post */


.post {
}

.post .title {
	margin: 0;
}

.post .title a {
	text-decoration: none;
}

.post .byline {
	margin: 0 0 30px 0;
	line-height: normal;
}

.post .entry {
}

.post .meta {
	clear: both;
}

.post .meta a {
	text-decoration: none;
	font-weight: bold;
}

.post .meta a:hover {
	text-decoration: underline;
}

.post .meta .comments {
	padding-left: 20px;
	background: url(images/img07.gif) no-repeat left center;
}

.post .meta .permalink {
	padding-left: 20px;
	background: url(images/img08.gif) no-repeat left center;
}

/* Latest Post */


#latest-post-wrap {
	background: #d1d1d1;
	border-bottom: 4px #BBB082 solid;
}

#latest-post {
	max-width: 778px; width: 100%;
	margin: 0 auto;
	padding: 0 0 20px 0;
}

#latest-post h1 {
	margin: 10px 0;
	padding: 0;
}

#latest-post p {
	margin: 0;
	font-family: verdana;
	font-size: 1.3em;
}

#latest-post .meta {
	padding: 10px 0 0 0;
}

#latest-post .byline {
	max-width: 778px; width: 100%;
	margin: 0 0 10px 0;
	padding: 10px 0;
	background: #eaeaea;
	bbackground: #BBB082;
	font-size: .9em;
	font-weight: bold;
	color: #FFFFFF;
}

#latest-post .byline span {
	max-width: 778px; width: 100%;
	padding: 0 0 0 15px;
	letter-spacing: 3px;
	font-size: 1.3em;
	color: black;
}

#latest-post .byline a {
	padding: 0 30px 0 0;
	background: url(images/img05.gif) no-repeat right top;
	text-decoration: none;
}

#latest-post .byline a:hover {
	text-decoration: underline;
}

/* Recent Posts */

#recent-posts {
	max-width: 778px; width: 100%;
	margin: 0 auto;
}

#recent-posts h2 {
	margin: 0;
	padding: 10px 0 10px 15px;
	background: #BBB082;
	letter-spacing: .5em;
	text-transform: uppercase;
	text-align: center;
	font-size: .9em;
	font-weight: bold;
	color: #FFFFFF;
}

#recent-posts h3 {
	margin: 20px 0 0 0;
	padding: 0;
	font-size: 1.4em;
}

#recent-posts h3 a {
	text-decoration: none;
}

#recent-posts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#recent-posts li {
	float: left;
	width: 240px;
	padding-left: 29px;
}

#recent-posts li.first {
	padding: 0;
}

#recent-posts .byline {
	margin: 0 0 10px 0;
	padding: 0;
	border-bottom: 1px #DDD7C0 solid;
	text-align: left;
	font-size: 10px;
	font-weight: bold;
}

#recent-posts .byline span {

}

#recent-posts .byline a {
	padding: 0 30px 0 0;
	background: url(images/img05.gif) no-repeat right top;
	text-decoration: none;
}

#recent-posts .byline a:hover {
	text-decoration: underline;
}

#recent-posts p {
	padding: 0;
	margin: 0;
}


/* Sidebar */

#sidebar {
	max-width: 778px; width: 100%;
	margin: 0 auto;
}

#sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#sidebar li {
	float: left;
	width: 259px;
}

#sidebar li ul {
	padding-left: 20px;
}

#sidebar li li {
	float: none;
	width: auto;
	padding: 3px 0;
	background: none;
}

#sidebar h2 {
	margin: 0 0 20px 0;
	padding: 10px 0 10px 16px;
	background: #BBB082;
	text-transform: uppercase;
	letter-spacing: .5em;
	font-size: .9em;
	font-weight: bold;
	color: #FFFFFF;
}

/* Search */

#search {
}

#search #s {
	width: 80%;
	margin-bottom: 10px;
}

/* Calendar */

#calendar {
}

#calendar table, #calendar caption {
	width: 100%;
	text-align: center;
}

#calendar caption {
	font-weight: bold;
}

#calendar a {
	font-weight: bold;
}

/* Footer */

#footer {
	clear: both;
	margin: 0 auto;
	padding: 20px 0;
	background: url(images/img11.gif) repeat-x;
	text-align: center;
}

#footer p {
	margin: 0;
	font-size: 1em;
	color: #666666;
}


/*  przycski na podstronę Zlot */

.button-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px; /* Maksymalna szerokość kontenera */
    margin: 0 auto; /* Wycentrowanie kontenera */
}

.button {
    display: block;
    width: 100%;
    padding: 20px;
    margin-bottom: 10px;
    background-color: #3498db; /* Kolor tła przycisku */
    color: white; /* Kolor tekstu */
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
	font-family: tahoma;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2980b9; /* Kolor tła przycisku po najechaniu myszką */
	color: white;
}


.button:nth-child(1) { background-color: #5c8587; }
.button:nth-child(2) { background-color: #5c6d87; }
.button:nth-child(3) { background-color: #877f5c; }
.button:nth-child(4) { background-color: #64875c; }

/* Kolory po najechaniu myszką - nieco jaśniejsze */
.button:nth-child(1):hover { background-color: #585858; }
.button:nth-child(2):hover { background-color: #585858; }
.button:nth-child(3):hover { background-color: #585858; }
.button:nth-child(4):hover { background-color: #585858; }



@media (max-width: 900px) {

    #page, #content, #latest-post, #recent-posts, #sidebar, .container-grid {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    #header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 2px !important;
        height: auto !important;
    }

    #logo {
        flex: 1 !important;
        text-align: center;
        /*margin-right: 8px !important;*/
		margin: 0 auto;
        width: auto !important;
        min-width: 0 !important;
    }

    #logo h1 {
        font-size: 5.5vw !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        display: block;
        white-space: normal !important;
    }

    #header img {
        width: 28vw !important;
        max-width: 100px !important;
        min-width: 60px !important;
        height: auto !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    #menu, #menu ul {
        height: auto !important;
        text-align: center;
        width: 100% !important;
    }

    #menu li {
        display: inline-block !important;
        width: auto !important;
        margin: 2px !important;
        padding: 0 !important;
        flex: none !important;
    }

    #menu a {
        float: none !important;
        display: inline-block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 5px 8px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        height: auto !important;
        white-space: nowrap !important;
    }
}


/* ============================================== */
/* POPRAWKA DLA ZDJĘĆ W TREŚCI (ZABEZPIECZENIE) */
/* ============================================== */

/* Ta reguła sprawia, że ŻADNE zdjęcie w treści nie będzie szersze niż ekran */
#content img, .post img, .entry img, #latest-post img, #page img {
    max-width: 100% !important; /* Maksymalna szerokość to 100% dostępnego miejsca */
    height: auto !important;    /* Wysokość dopasuje się automatycznie (proporcjonalnie) */
    box-sizing: border-box;     /* Ramki i marginesy wliczane do szerokości */
}