body {
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    /* Website background: https://www.freepik.com/free-vector/hand-drawn-doodle-background_35392761.htm */
    background-image: url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 40px;
    background-color: #bae1ff;
    /* Jasnoniebieskie tło */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    position: relative;
    min-height: 80px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

.block-link-header,
.block-link-button,
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background-color: white;
    padding: 8px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.block-link-header {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.block-link-button {
    display: flex;
    margin: 15px auto 0;
    width: max-content;
}

.block-link-header:hover {
    background-color: #f0f8ff;
    transform: translateY(-50%) scale(1.05);
}

.block-link-button:hover,
.nav-link:hover {
    background-color: #f0f8ff;
    transform: scale(1.05);
}

.block-link-header-right {
    left: auto;
    right: 20px;
}

.block-link-header .link-icon,
.nav-link .link-icon {
    width: 20px;
    height: 20px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px auto;
    max-width: 800px;
    padding: 20px 40px;
    background-color: #bae1ff;
    /* Jasnoniebieskie tło */
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.about-us,
.service-section {
    background-color: #bae1ff;
    /* Jasnoniebieskie tło */
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: justify;
}

.about-us h2,
.service-section h2 {
    margin-top: 0;
}

/* Style dla sekcji z formularzem i opisem */
.description,
.form {
    background-color: #bae1ff;
    /* Jasnoniebieskie tło */
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* Wyśrodkowanie zawartości */
}

.form form {
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
}

.form label {
    display: inline-block;
    width: 180px;
    text-align: right;
    margin-right: 15px;
    font-weight: bold;
    vertical-align: middle;
}

.form input[type="text"],
.form input[type="password"],
.form input[type="tel"],
.form input[type="date"],
.form select,
.form textarea {
    width: calc(100% - 200px);
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 15px;
    font-family: inherit;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form input[type="text"]:hover,
.form input[type="text"]:focus,
.form input[type="password"]:hover,
.form input[type="password"]:focus,
.form input[type="tel"]:hover,
.form input[type="tel"]:focus,
.form input[type="date"]:hover,
.form input[type="date"]:focus,
.form select:hover,
.form select:focus,
.form textarea:hover,
.form textarea:focus {
    box-shadow: 0 0 8px rgba(0, 0, 139, 0.4);
    border-color: #00008b;
    outline: none;
}

.form textarea {
    vertical-align: top;
    min-height: 100px;
    resize: vertical;
}

.form input[type="submit"] {
    display: block;
    margin: 20px auto 0;
    padding: 10px 30px;
    background-color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background-color 0.2s;
    font-size: 1.1rem;
}

.form input[type="submit"]:hover {
    background-color: #f0f8ff;
    transform: scale(1.05);
}

.form br {
    /* Tagi br odpowiadają teraz za łamanie wiersza między polami */
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 40px 20px;
    justify-content: center;
}

.block-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 150px;
    height: 150px;
    background-color: #bae1ff;
    /* Jasnoniebieskie tło */
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-icon {
    width: 50px;
    height: 50px;
    opacity: 0.8;
}



.block-link:hover {
    transform: translateY(-5px) scale(1.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.social-links {
    padding: 20px 0;
    gap: 30px;
}

.social-link {
    width: 120px;
    height: 120px;
    font-size: 1.1rem;
}

.icon-opaque {
    opacity: 1;
    border-radius: 10px;
}

.facebook-link {
    background-color: #1877F2; /* Facebook Blue */
    color: white; /* Ustawienie widocznego na niebieskim tle tekstu */
}

.olx-link {
    background-color: #23e5db; /* OLX turkus / jasny niebieski zbliżony do brandu */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    background-color: #bae1ff;
    /* Jasnoniebieskie tło */
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 300px;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}



/* Responsywność dla urządzeń mobilnych */
@media screen and (max-width: 768px) {
    body {
        font-size: 1.2rem;
    }

    .links {
        padding: 40px 20px;
        gap: 20px;
    }

    .block-link {
        width: 130px;
        height: 130px;
        font-size: 1rem;
    }

    header {
        margin: 10px auto;
        padding: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .gallery {
        padding: 20px 10px;
        gap: 15px;
    }

    .gallery-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form label {
        display: block;
        text-align: left;
        width: 100%;
        margin-bottom: 5px;
    }

    .form input[type="text"],
    .form input[type="password"],
    .form input[type="tel"],
    .form input[type="date"],
    .form select,
    .form textarea {
        width: 100%;
        max-width: 100%;
    }
}