﻿body {
    font-family: 'Abel' sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap:20px;
}


.main-content {
    flex: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 110px;
    max-width: 1000px;
    display:flex;
    
}

.image:has(.left-image)::after {
    content: '';
    position: absolute;
    right: -40px;
    height: 100%;
    width: 2px;
    background-color: #760e26;
}

.image:has(.right-image)::after {
    content: '';
    position: absolute;
    top: -25%;
    right: -40px;
    height: 150%;
    width: 2px;
    background-color: #760e26;
}

.image:has(.right-image)::before {
    content: '';
    position: absolute;
    left: -40px;
    height: 100%;
    width: 2px;
    background-color: #760e26;
}

.section.reverse {
    flex-direction: row-reverse;
}

.image {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

    .image img {
        width: 450px;
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
    }

.left-image {
    align-self: flex-start;
/*    transform: rotate(-4deg);*/
    background: white;
    padding: 6px;
    box-shadow: 0 0 14px rgba(255,255,255,0.9);
    filter: brightness(1.05);
}

    .left-image:hover {
        transform: rotate(-2deg) scale(1.05);
    }

.right-image {
/*    transform: perspective(800px) rotateY(-12deg);*/
    box-shadow: 5px 5px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    position: relative;
}

    .right-image:hover {
        transform: perspective(800px) rotateY(-6deg) scale(1.03);
    }

.text {
    max-width: 400px;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    color: #760e26;
}

    .text h3 {
        margin-top: 0;
        color: #760e26;
        font-weight: bold;
        font-size: 32px;
    }

.horizontal-divider {
    border: none;
    height: 2px !important;
    background-color: #760e26;
    width: 100%;
    opacity: unset;
    max-width: 1100px;
    margin: 40px 0;
    margin-left: 40px;
}

.text p, li {
    color: #760e26;
    font-size: 16px;
    text-align: left;
}

.title {
    color: #760e26;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 70px;
}


.edit-create-btn {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 100px;
}

.btn-primary {
    background-color: #760e26;
    color: white;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
}

    .btn-primary:hover {
        background-color: white;
        color: #760e26;
        border: 2px solid #760e26;
        box-shadow: 0 0 10px #760e26;
        transform: scale(1.05);
    }

    .btn-primary:focus, btn-primary:active {
        outline: none;
        box-shadow: none;
        border: 2px solid #760e26;
        background-color: white;
        color: #760e26;
    }

#bank-section {
    margin-top: 100px;
    background-color: #fff;
    padding: 15px;
    border: 2px solid #760e26;
    border-radius: 16px;
    max-width: 400px;
    margin-bottom: -40px;
}

    #bank-section label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        text-align: center;
        color: #760e26;
    }

#bank-account {
    width: 280px;
    padding: 8px;
    font-size: 16px;
    background-color: #eee;
    border: none;
    border-radius: 4px;
    color: #760e26;
    text-align: center;
}

#copy-button {
    padding: 8px 10px;
    background-color: #760e26;
    color: white;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 6px;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

    #copy-button:hover {
        background-color: #fff;
        color: #760e26;
        border-color: #760e26;
    }

#copy-message {
    color: #760e26;
    font-size: 18px;
    display: none;
}

/* 📱 Responsive стилове */
@media (max-width: 1024px) {
    .section {
        gap: 40px;
    }

    .image img {
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    .text {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .section {
        flex-direction: column; 
        gap: 30px;
        text-align: center;
    }

    .image img {
        width: 100%; 
        max-width: 100%;
        height: auto;
    }

    .text {
        max-width: 100%;
        text-align: center;
    }

        .text h3 {
            font-size: 24px;
        }

        .text p,
        .text li {
            font-size: 14px;
            line-height: 1.5;
        }

    .horizontal-divider {
        margin: 30px auto;
        max-width: 90%;
    }

    #bank-section {
        max-width: 100%;
        margin: 40px auto;
    }

    #bank-account {
        font-size: 14px;
    }

    #copy-button {
        font-size: 16px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .text h3 {
        font-size: 20px;
    }

    .text p,
    .text li {
        font-size: 13px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.btn-danger {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 10px;
    margin-top: 110px;
    border: 2px solid transparent;
}

    .btn-danger:hover {
        background-color: white;
        color: #760e26;
        border: 2px solid #760e26;
        box-shadow: 0 0 10px #760e26;
        transform: scale(1.05);
    }

.edit-delete-btn {
    display: flex;
    gap: 10px;
    align-items: center;
}

footer {
    margin-top: auto;
    position: relative;
    bottom: 0;
    width: 100%;
}