body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.banner {
    position: relative;
    height: 40vh;
    overflow: hidden;
}

.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    height: 40%;
    width: 40%;
    font-size: 140%;
    
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px auto;
    max-width: 1100px;
    flex: 1;
}

.apartment {
    background-color: white;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex: 1 1 300px;
    max-width: 45%;
}

.photo-container {
    position: relative;
}

.zdjecie {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.2s;
}

.zdjecie:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.details-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.details-button:hover {
    background-color: #1D1D1D;
}


.price{
    font-size: 150%;
    text-transform: uppercase;
    
}
.napisy{
    text-align:center;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: static;
    width: 100%;
    bottom: 0;
    flex-shrink: 0;
}

.videobaner{
    height: 100%;
    width: 100%;
    object-fit: cover;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/*Telefony*/

    .container {
        flex-direction: column;
        align-items: center;
    }

    .apartment {
        max-width: 90%;
        margin: 10px 0;
    }

    .banner-text {
        width: 80%;
        padding: 10px;
    }

    .details-button {
        font-size: 14px;
        padding: 8px;
    }

@media (max-width: 480px) {
    .banner {
        height: 30vh;
    }

    .banner-text {
        width: 90%;
        padding: 5px;
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    .apartment {
        max-width: 100%;
        margin: 5px 0;
        padding: 15px;
    }

    .details-button {
        font-size: 12px;
        padding: 6px;
    }

    .modal-content {
        width: 90%;
    }
}.cena {
}
.price {
}
.napisy {
}
.napis {
}
.logo{
width: 30%;
height: 100%;
}
@media only screen and (max-width: 700px) {    
.logo{
width: 70%;
height: 100%;
    }
#miejsca
    {
        color: #FF6742;!important
    }
    
    #przyciskmiejsc
    {
    background-color: #FF6742; 
    }
    
    #przyciskmiejsc:hover
    {
    background-color: #FF7F60; 
    }
    
    
    .reklamazdj
    {
        width: 50%;
        height: 50%;
    }
    
    .ad-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            max-width: 500px;
            background-color: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            padding: 20px;
            text-align: center;
            border-radius: 10px;
        }
        .ad-modal .close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .ad-modal .close:hover,
        .ad-modal .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
    
    footer
    {
        margin-left: -10px;
    }