header {
    background-color: rgb(0, 0, 0);
    box-shadow: 0px 1px 2px white;
    transition: box-shadow 0.15s ease;

}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.logo {
    max-height: 70px;
    width: auto;
    position: relative;
    bottom: 15px;
    z-index: 2;
    transition: filter 0.3s ease;
}

.fixed-top {
    height: 80px;
    z-index: 1030;
    width: 100%;
}

#burger-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1040;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}

#burger-btn .navbar-toggler-icon {
    display: block;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 3px;
}

.nav-list {
    display: none;
    position: absolute;
    top: 70px;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.95);
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px solid white;
}

.nav-list li {
    padding: 15px;
    list-style: none;
    white-space: nowrap;
    display: inline-block;
}

.nav-list a:hover {
    text-shadow: 0px 0px 1px rgb(255, 255, 255);
    scale: 1.02;
    transition: ease 0.12s;
    color: rgb(255, 255, 255);
}

.nav-list a {
    color: white;
    text-decoration: none;
    display: block;
    font-size: 20px;
    white-space: nowrap;
    /* Prevent text from breaking into multiple lines */
}

@media (min-width:768px) {
    #burger-btn {
        display: block;
    }

    .nav-list.active+#burger-btn {
        display: block;
    }

    .nav-list {
        display: flex;
        position: static;
        width: auto;
        background: none;
    }

    .nav-list li {
        padding: 0 15px;

    }

    #artAll article {
        width: 70vw;
        margin: auto;
        margin-bottom: 10px;
    }

    article {
        margin: 15px 0 !important;
    }

}

@media(max-width:900px) {
    .nav-list li:nth-child(1) {
        margin-top: 20px;
    }

    .nav-list li {
        border-bottom: 1px solid white;
        width: 80%;
        margin: auto;
        margin-bottom: 10px;
        margin-top: 10px;
        padding: 10px;
        padding-bottom: 15px;
        ;
        /* Zmiana z '10px 0' na '10px' aby padding był z każdej strony */
    }

    .nav-list li a {
        font-size: 22px;
        margin-top: -15px;
    }

    .nav-list li:hover {
        border-bottom: red 2px solid;
    }

    .nav-list {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media(max-width:767px) {

    #art1,
    #art2,
    #art3,
    #art4 {
        margin: 3%;

    }
}

@media (min-width:900px) {
    #burger-btn {
        display: none !important;
    }

    .nav-list {
        display: flex !important;
        position: static !important;
        width: auto !important;
        background: none !important;
        margin-top: -5px !important;
        /* Adjusted from 70px to 65px to move it 5px higher */
    }
}

@media (max-width:900px) {
    #burger-btn {
        display: block !important;
        position: absolute !important;
        right: 15px !important;
        top: 15px !important;
        z-index: 1040 !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
    }

    .nav-list {
        display: none !important;
        position: absolute !important;
        top: 70px !important;
        width: 100% !important;
        background-color: rgba(33, 37, 41, 0.95) !important;
        text-align: center !important;
        padding: 10px 0 !important;
        border-bottom: 2px solid white !important;
    }

    .nav-list.active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0px !important;
        background-color: #000 !important;
        height: 200% !important;
        width: 340px !important;
        padding-top: 110px !important;
        color: white !important;
        margin: 0 !important;
        opacity: 83.5% !important;
        z-index: 1 !important;
    }

    .logo {
        top: -9px !important
    }
}

@media (min-width:1399px) {
    h2 {
        scale: 0.9;
    }

    p {
        font-size: 18px;
    }
}

@media (max-width:1398px) and (min-width:900px) {
    h2 {
        scale: 0.9;
    }


}

@media (max-width:899px) and (min-width:768px) {
    h2 {
        scale: 0.9;
    }
}

@media(max-width:767px) {
    h2 {
        scale: 0.9;
        /* Corrected from 0 to 1 to ensure visibility */
    }
}

@media (max-width:1400px) {
    p {
        font-size: 16px;
    }

    h2 {
        margin-top: 10px !important;
    }

    #art4 h2 {
        margin-top: -5px !important;

        margin-bottom: 15px !important;

    }

    #art2 h2 {
        margin-top: 10px !important;
        /* Adjust as needed for equal spacing */
        margin-bottom: 10px !important;
    }

    #art1 h2 {
        margin-top: 10px !important;
        /* Adjust as needed for equal spacing */
        margin-bottom: 10px !important;
    }

    #art3 h2 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
}

@media(max-width: 999px) and (min-width:767px) {
    .logo {
        left: -25px;
        top: -15px
    }

    .nav-list {
        margin-top: -3px;
    }
}



@media(min-width:1000px) {
    .nav-list {
        margin-top: -3px;
    }
}

@media (max-width:1000px) and (min-width:992px) {
    .logo {
        left: 0px !important;
    }
}

@media (max-width:992px) and (min-width:767px) {
    .logo {
        margin-left: -30px !important;
    }
}

article {
    max-width: 300px;

    /* Ensure consistent vertical spacing between articles */
}

main {
    background: rgb(16, 16, 16);
    /* Smooth gradient from header */
    margin-top: 70px;
    flex-grow: 1;
    transition: filter 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

#art1 {
    margin-top: -10px;

}

.nav-list.active {
    display: block;
    position: fixed;
    top: 0;
    right: 0px;
    background-color: #000;
    height: 200%;
    width: 340px;
    padding-top: 60px;
    color: white;
    margin: 0;
    /* box-shadow: 0px 0px 2px white; */
    opacity: 83.5%;
    z-index: 1;
    padding-top: 110px;
}

.navbar-toggler {
    background-color: transparent;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

@media(min-width: 1600px) {

    .fixed-top {
        height: 80px;
    }

    .logo {
        max-height: 70px;
        position: relative;
        right: 7vw;
        bottom: 15px;
    }

    .menuMobilne {
        position: relative;
        left: 5vw;
        bottom: 0px;
    }



    .nav-list a {

        font-size: 20px;
    }


}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.664);
    text-align: center;
    margin-left: 0;
    margin-bottom: 1px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider img.active {
    opacity: 1;
}

.ikonaMenu,
.ikona2Menu {
    position: fixed;
    top: 5px;
    right: 10px;
    height: 70px;
    width: 60px;
    color: white;
    z-index: 4;
    /* Zablokowanie interakcji z ukrytą ikoną */
    transition: opacity 0.5s ease-in-out;
}

.ikona2Menu {
    visibility: hidden;
}

.ikonaMenu {
    visibility: visible;
}

p {
    text-align: justify;
}

#map {
    width: 100%;
    height: 300px;
    /* Adjusted height to fit better */
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.664);
    text-shadow: none;
    margin-bottom: 1px;
}

@media (min-width: 1400px) {

    .slider-container,
    #map {
        height: 100%;
        /* Ensure the container takes full height */
    }

    h2 {
        margin-bottom: 15px !important;
    }

}

@media (max-width: 1399px) {

    .slider-container,
    #map {
        height: 250px;
        /* Adjust height for smaller screens */
    }
}

@media (max-width: 767px) {

    .slider-container,
    #map {
        height: 250px;
        order: -1;
        /* Move map and slider above text on smaller screens */
    }
}

@media (max-width: 575px) {

    .slider-container,
    #map {
        height: 180px !important;
        /* Adjust height for smallest screens */
    }
}

footer {
    width: 100%;
    height: 80px;
    color: rgb(176, 176, 176);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    text-align: right;
    text-shadow: 1px 1px 2px black;
    padding-top: 50px;
    padding-right: 10px;
}

@media (max-width: 520px) {
    footer {
        font-size: 13px;
        /* Smaller font size for smaller screens */
        padding-top: 50px;
        /* Keep padding for alignment */
        padding-right: 10px;
        /* Keep right padding for alignment */
        margin-bottom: 0px !important;
    }


    #art4 {
        margin-bottom: -39px !important;
    }
    .ikona2Menu, .ikonaMenu{
        height:60px;
        width: 50px;
        top:5px !important;
        right:10px;
    }
    .logo {
        height: 40px !important;
        margin-top: 15px !important;
    }


}

p {
    color: rgb(238, 238, 238);
    text-shadow: 0px 0px 2px black;
}

#art1,
#art2,
#art3,
#art4 {
    color: rgb(246, 66, 57);
    text-shadow: 2px 2px 1px black;

}

#art4 {
    margin-bottom: -0px;
    /* Reduce spacing between #art4 and footer */
}

.custom-shadow {
    box-shadow: 0px 0px 2px rgb(153, 153, 153);


}

@media(max-width:1399px) {
    .slider-container {
        height: 250px;

    }

    #art1 h2 {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    #art2 h2 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }

}

.text-center {
    text-align: center;
}

#art3 h2 {
    text-align: center;
    /* Adjust as needed */
}



.styled-link {
    color: #4682b4;
    /* DodgerBlue for unvisited links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.styled-link:hover {
    color: rgba(40, 250, 250, 0.815) !important;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.styled-link:visited {
    color: #4682b4;
    /* SteelBlue for visited links */
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    padding: 12px 24px;
    /* Slightly larger padding */
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-link:hover {
    transform: scale(1.05);
}

.contact-link.facebook {
    background-color: #3b5998;
}

.contact-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.contact-link.gmail {
    background-color: #D44638;
    background-image: linear-gradient(45deg, #D44638, #FF6F61);
}

.contact-link ion-icon {
    margin-right: 8px;
    vertical-align: middle;
    /* Ensure the icon is vertically centered */
}

@media (max-width: 767px) {
    .contact-link {
        display: flex;
        width: 80%;
        margin: 10px auto;
        text-align: center;
    }

    .contact-link ion-icon {
        margin-right: 8px;
        vertical-align: middle;
        /* Ensure the icon is vertically centered */
    }

    p {
        font-size: 15px;
    }
    header{
        height:70px !important;
    }
    .logo{
        top: -15px !important;;
    }
    .ikonaMenu, .ikona2Menu{
        top:10px;
    }
}

@media (min-width: 768px) {
    .contact-link {
        display: inline-block;
        width: auto;
        margin: 10px;
        /* Default margin */
    }

    .contact-link.facebook {
        margin-left: 20px;
        /* Margin from the left edge */
    }

    .contact-link.gmail {
        margin-right: 20px;
        /* Margin from the right edge */
    }

    .contact-link.instagram {
        margin: 0 auto;
        /* Center align */
        display: block;
    }

    .contact-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1600px) {
    .contact-link.facebook {
        margin-left: 60px;
        /* Increased margin from the left edge */
    }

    .contact-link.gmail {
        margin-right: 60px;
        /* Increased margin from the right edge */
    }
}

@media (max-width: 767px) {
    p {
        text-align: left;
        /* Change text alignment to left */
        line-height: 1.6;
        /* Adjust line height for better readability */
        margin-bottom: 1em;
        /* Add some space below paragraphs */
    }
}

@media (min-width: 768px) {
    #art4 p {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (min-width: 1600px) {
    #art4 p {
        margin-left: 60px;
        margin-right: 60px;
    }
}

@media(max-width:767px) {
    .logo {
        margin-top: 12px;
        left: -15px;
        height: 50px;
    }
    .ikona2Menu, .ikonaMenu{
        top:0px;
    }

}

@media(max-width:768px) and (min-width:767px) {

    #art1,
    #art2,
    #art3,
    #art4 {
        margin-bottom: 30px !important;
    }
}

@media (min-width:945px) {
    #art4 p {
        text-align: center !important;
    }

    .contact-container {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        /* Add spacing between links */
    }

    .contact-link {
        margin: 0 !important;
        /* Remove individual margins */
    }
}
