@font-face {
    font-family:'Breeserif';
    src: url(BreeSerif-Regular.ttf);
}
@font-face {
    font-family:'DisplaySC' ;
    src: url(PlayfairDisplaySC-Regular.ttf);
}
*{
    margin: 0;
    padding: 0;
box-sizing: border-box;
}
#wrapper{
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.979);
}
body{
    background-image: url(tlomuzyczne.jpg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Breeserif;
}
header img{
    width: 100%;
    display: block;
}
nav{
    background-color: rgb(0, 16, 247);
    font-family: DisplaySC;
}
nav a{
    display: block;
    width: 25%;
    float: left;
    color: white;
    text-align: center;
    text-decoration: none;
    background-color: rgb(0, 16, 247);
    padding: 15px 30px;
    font-size: 20px;
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
}
nav a:hover{
    background-color: rgb(34, 146, 238);
    cursor: pointer;
    font-size: 24px;
}
a.menu{
    display: inline-block;
    width: 25%;
    padding: 15px 30px 15px 30px;
    color: white;
    text-decoration: none;
    text-align: center;
}
a.menu:hover{
    background-color:  rgb(34, 146, 238);
}
h2{
    font-size: 30px;
    text-align: center;
    margin: 0 10% 20px 10%;
    padding-bottom: 15px;
    border-bottom: 2px solid rgb(34, 146, 238);
}
img.left{
    float: left;
    padding: 10px;
    width: 25%;
    border-radius: 50%;
}

footer{
    height: 40px;
 background-color: rgb(0, 16, 247);   
 color: white;
 line-height: 40px;
 text-align: center;
 margin-top: 1px;
 padding-bottom: 50px;
 font-size: 30px;
}
article{
	background-color:#71b7c9;
	margin:3em 0;
	padding:20px;
    padding-bottom: 285px;
    border-radius: 10%;
}
#k1{
    max-width: 350px;
    max-height: 100%;
    float: right;
    border: 3px solid white;
    border-radius: 10px;
    margin-left: 15px;
    transition-duration: 1s;
}
#k1:hover{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    z-index: 0;
}
#k2{
    max-width: 350px;
    max-height: 100%;
    float: right;
    border: 3px solid white;
    border-radius: 10px;
    margin-left: 15px;
    transition-duration: 1s;
}
#k2:hover{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    z-index: 0;
}
#k3{
    max-width: 350px;
    max-height: 100%;
    float: right;
    border: 3px solid white;
    border-radius: 10px;
    margin-left: 15px;
    transition-duration: 1s;
}
#k3:hover{
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    z-index: 0;
}
.wrapper1{
    margin: 100px auto;
    width: 100%;
}
.text-box h2{
    color: black;
    font-size: 42px;
}
.text-box p{
    font-size: 30px;
    justify-content: center;
    text-align: center;

}
#b img{
        max-width: 100%;
        height: auto;
        width: 50%; 
        margin-bottom: 20px;
        margin-left: 25%; 
}
.maingaleria {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
    justify-content: center; 
}

.image {
    position: relative;
    overflow: hidden;
    width: 100%; 
}

.image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image:hover img {
    transform: scale(1.1);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 146, 238, 0.904);
    color: #ffffff;
    padding: 10px;
    text-align: center;
}
#a p{
    font-size: 30px;
}
footer .media a {
    margin-right: 10px; 
    color: #ffffff; 
    text-decoration: none; 
    float: right;
    text-align: center;
}

footer .media a:hover {
    opacity: 0.7; 
}
