/* Stylizacja ogólna */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Styl dla formularza rejestracji */
.registration-form {
    margin-top: 20px;
}

.registration-form .form-title {
    font-size: 1.5rem;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
}

.registration-form .form-group {
    margin-bottom: 15px;
}

.registration-form .form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.registration-form .form-group input[type="text"],
.registration-form .form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.registration-form .checkbox-group {
    margin-top: 10px;
}

.registration-form .checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

.registration-form .submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.registration-form .submit-button:hover {
    background-color: #0056b3;
}

/* Styl dla wpisów (lista wszystkich wpisów) */
.post {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    gap: 20px;
    align-items: flex-start;
}

.post-image {
    flex: 0 0 400px;
    max-width: 400px;
    max-height: 600px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.post-image2 {
    width: 100%; /* Obraz zajmuje całą szerokość */
    height: 100%; /* Obraz zajmuje całą wysokość */
    overflow: hidden; /* Ukrywa nadmiar obrazu, jeśli jest większy */
    border-radius: 5px; /* Zaokrąglenie narożników */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Dodanie delikatnego cienia */
    background-color: #fafafa; /* Kolor tła dla ładowania */
    display: flex;
    align-items: center; /* Wyrównanie w pionie */
    justify-content: center; /* Wyrównanie w poziomie */
}

.post-image2 img {
    width: 100%; /* Dopasowanie do szerokości kontenera */
    height: auto; /* Zachowanie proporcji */
    object-fit: cover; /* Skalowanie obrazu, aby wypełnić kontener */
    display: block; /* Wyeliminowanie marginesów obrazu */
}


.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.post-content h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #444;
    text-align: left;
}

.post-content h2 a {
    text-decoration: none;
    color: #007BFF;
    transition: color 0.3s ease;
}

.post-content h2 a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.post-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: #666;
    font-size: 1rem;
}

.messages {
    margin: 20px 0;
}
.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
}
.message.success {
    background-color: #4CAF50;
    color: #fff;
}
.message.error {
    background-color: #f44336;
    color: #fff;
}



/* Stylizacja linków */
a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Dodatkowy styl dla przestrzeni */
.margin-bottom {
    margin-bottom: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
    .post, .post-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-image, .post-details .post-image {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content p {
        font-size: 1rem;
    }

    .registration-form .form-title {
        font-size: 1.3rem;
    }

    .registration-form .submit-button {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .post-content h2 {
        font-size: 1.3rem;
    }

    .post-content p {
        font-size: 0.9rem;
    }

    .post-details {
        gap: 10px;
    }

    .registration-form .submit-button {
        font-size: 0.8rem;
    }
}
