@import url('https://fonts.googleapis.com/css?family=Spectral:700|JetBrains%20Mono:400');
*{
--text: #392614;
--background: #f8f1e1;
--shadow: #64340552;
--zolty: #efa410;
--drugi-background: #ffe9cc;
--accent: #944f08;
--backgroundAktualnosci2: #ffe2bc;
--backgroundAktualnosci: #ffc77b;

text-wrap: wrap;
text-wrap-style: auto;
text-wrap-mode: wrap;
word-wrap: break-word;

color: var(--text);
}

body {
  font-family: 'JetBrains Mono';
  font-weight: 400; 
  background-image: url(Background.png);
  background-size: 25%;
}

h1, h2, h3, h4, h5 {
  font-family: 'Spectral';
  font-weight: 700;
}

html {font-size: 100%;} /* 16px */

h1 {font-size: 3.053rem; /* 48.8px */}

h2 {font-size: 2.442rem; /* 39.04px */}

h3 {font-size: 1.954rem; /* 31.2px */}

h4 {font-size: 1.563rem; /* 24.96px */}

h5 {font-size: 1.250rem; /* 20px */}

small {font-size: 0.800rem; /* 12.8px */}


.link {
    color: var(--accent);
    text-decoration: none;
}
.link:hover {
    color: var(--zolty);
}
.link:visited {
    color: var(--shadow);
}

main {
    margin-right: 15%;
    margin-left: 15%;
    width: calc(100% - 30% - 15px);
    background-color: var(--drugi-background);
    padding-bottom: 150px;
    border: 7px solid #944f08;
    padding-left: 10px;
    padding-right: 10px;
} 

header {
    margin-right: 15%;
    margin-left: 15%;
    width: calc(100% - 30% + 15px);
    background-color: var(--background);
}

.BZP-Baner {
    width: 100%;
    border-top: 5px solid var(--background);
    border-bottom: 0 solid var(--background);
    border-left: none;
    border-right: none;
}

.menuBackground {
background-color: var(--background);
margin: 0;
height: 15px;
width: calc(70% + 10.5px);
margin-left: auto;
margin-right: auto;
}
.menu {
    background-color: var(--background);
    width: calc(70% + 10.5px);
    background-color: var(--background);
    position: sticky;
    top: 0;
    left: calc(15% + 13px - 7.5px);
    margin-top: 0;
    display: flex;
    /* justify-content: space-evenly; */
    border-right: var(--accent) 2px solid;
    border-left: var(--accent) 2px solid;
    border-bottom: var(--accent) 2px solid;
    align-items: center;
    height: fit-content;
    z-index: 3;
}
.menu a {
    text-decoration: none;
    padding: 1rem 1rem;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    margin: 0;
    /* width: calc(100%/6); */
    flex: 1;
    text-align: center;
    border-top: var(--accent) 4px solid;
    border-bottom: var(--accent) 2px solid;
    border-right: var(--accent) 2px solid;
    border-left: var(--accent) 2px solid;
}
.menu a:hover {
    background-color: var(--zolty);
    padding: 1rem 1rem;
    box-sizing: border-box;
    margin: 0;
    /* width: calc(100%/6); */
    flex: 1;
}

.tytulGlowny {
text-align: center;
}

.Dropdown {
    position: relative;
    z-index: 3;
}

.Dropdown ul {
    z-index: 3;
    right: 0;
    width: 215px;
    text-align: center;
    position: absolute;
    background-color: var(--background);
    padding: 0;
    list-style-type: none;
    margin-top: 25px;
    border-top: var(--accent) 2px solid;
    border-bottom: var(--accent) 4px solid;
    border-right: var(--accent) 2px solid;
    border-left: var(--accent) 2px solid;
    box-shadow: 0 13px 23px 0 var(--shadow);
    height: fit-content;
    
    justify-content: space-around;
    flex-direction: column;
    display: none;
}
.LinkAktualnosci:focus + .Dropdown ul, .LinkAktualnosci:hover +  .Dropdown ul, .Dropdown ul:hover{
    display: flex;
}
.Dropdown ul li a {
    display: block;
    width: 100%;
    padding: 1rem 1rem;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

 .active {
    background-color: var(--zolty);
} 


.Dropdown ul li a.active {
    font-weight: bold;
}

.Dropdown ul li a:hover, .Dropdown ul li a.active {
    background-color: var(--zolty);
    display: block;
    width: 100%;
    padding: 1rem 1rem;
    box-sizing: border-box;
}
hr {
    border: var(--accent) 1.5px solid;
    width: 100%;
    margin: 10px 0;
}





 footer {
    clear: both;
    margin-right: 15%;
    margin-left: 15%;
    position:sticky;
    left: 0;
    bottom: 0;
    width: calc(100% - 30% + 4px);
    overflow: hidden;
    margin-bottom: 0;
    height: fit-content;
    background-color: var(--zolty);
    border: 7px solid var(--accent);
    border-bottom: 0;
}
#logo-media {
    
float: left;
width: 15%;
overflow: visible;
height: 120px;
padding-top: 36px;
background-color: var(--zolty);
}

#logo-media div {
    display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: flex-start;
align-content: center;

}
#logo {
    margin-bottom: -100px;
    margin-left: calc(15% + 38px);
    width: 130px;
    z-index: 2;
    position:sticky;
    bottom: 100px;
    left: 0;
}

#logo-media div a img {
    width: 30px;
    height: 130px;

}
#facebook {
    width: 45px;

}
#footer-main {
    width: 85%;
    float: left;
height: 130px;
background-color: var(--zolty);

}
#nazwa {
    clear: both;
    width: 100%;
    float: none;
    padding: 5px 0;
    font-weight: bold;
}
#footer-kontakt {
float: left;
width: 45%;
height: 115px;
}

#footer-kontakt .kontakt {
margin: 0 17px;
text-decoration: none;
}
#footer-kontakt img {
    width: 20px;
    margin-top: 5px;
}
#wazne-linki{
    height: 115px;
float: right;
width: 55%;
}
#prawa {
    padding: 5px 0;
    text-align: center;
    clear: both;
width: 100%;
background-color: var(--accent);
color: var(--zolty);
}


