/* MAIN SECTIONS */
body {
    font-family: 'Quicksand';
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
	font-size: 20px;
}

h1 {
    font-size: 40px;
	font-family: 'Pacifico';
    margin: 0;
	text-align: center;
	color: #0884c4;
}

h2 {
	text-align: center;
}

a {
    color: #0884c4;
    text-decoration: none;
    transition: color 0.3s;
}
 
a:hover {
    color: black;
}

/* NAV SECTIONS */
.navbar {
	font-family: 'Pacifico';
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0884c4;
    padding: 15px 30px;
}
      
.navbar .logo {
    color: white;
    font-size: 25px;
    font-weight: bold;
    text-decoration: none;
}

.navbar .logo img {
    width: 90px;
    height: 90px;
}
 
.navbar .nav-links {
    list-style: none;
    display: flex;
}
      
.navbar .nav-links li {
    margin-left: 30px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 25px;
    transition: color 0.3s;
}
 
.navbar .nav-links a:hover {
    color: black;
}

/* NEWS SECTIONS */
.news-section {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	padding: 20px;
}
       
.news-item {
    position: relative;
    width: 250px;
    height: 250px;
    overflow: hidden;
}
   
.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
    
.news-item:hover img {
    transform: scale(1.1);
}
 
.news-item .news-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 20px;
    text-align: center;
}
  
.news-item:hover .news-text {
    opacity: 1;
}

/* TEXT SECTIONS */
.text-section {
    margin: 8%;
    text-align: justify;
}

.text-section p {
	font-size: 20px;
	color: black;
}

/* MAP SECTIONS */
#map {
    height: 600px; 
    width: 80%;  
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(47, 184, 255, 0.7);
}


.custom-icon {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #0884c4;
    background-color: #fff;
    border: 2px solid #0884c4;
}

/* FOOTER SECTIONS */
footer {
    background-color: #0884c4;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
}

/* POPUP-MAPS */

#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    max-width: 80%;
    display: flex;
    align-items: center;
    border: 3px solid blue;
    border-radius: 10px;
    position: relative;
}

.modal-content img {
    width: 40%;
    height: 20%;
    object-fit: cover;
    margin-right: 20px;
}

.modal-info {
    border-left: 2px solid #0884c4;
    padding-left: 20px;
}

.modal-text {
	font-family: 'Pacifico';
}

#modal-name {
	font-family: 'Pacifico';
	color: #0884c4;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

#map {
    position: relative;
    z-index: 1;
}

/* TEAM */

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px;
    width: 60%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(47, 184, 255, 0.7);
}

.member img {
    width: 100px;
    height: 100px;
    margin-left: 20px;
	margin-right: 30px;
}

.member h2 {
	text-align: left;
	color: #0884c4;
}

.text {
    text-align: left;
    flex: 1;
}

/* MEDIA QUERIES DLA URZĄDZEŃ MOBILNYCH */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 30px;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .navbar .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .navbar .nav-links li {
        margin: 10px 0;
    }

    .news-section {
        flex-direction: column;
        align-items: center;
    }

    .news-item {
        width: 90%;
        height: auto;
    }

    .text-section {
        margin: 5%;
    }

    #map {
        width: 95%;
        height: 400px;
    }

    .team {
        width: 90%;
    }

    .member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 90%;
    }

    .member img {
        margin: 10px 0;
    }
}