
body {
    background-image: url('/images/Porsche.jpg');
    font-family: 'Jura', serif;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

body > main {
    margin-top: 6rem;
}

.footer-badge {
    backdrop-filter: blur(10px); /* Замъгляване */
    color: darkgray;
}

.contacts-panel{
    padding: 0!important;
}
.bg-blur {
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-weight: bold;
    border: 3px solid #f1f1f1;
    z-index: 2;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.navbar .nav-link:hover,
.text-yellow{
    color: #F2CD13!important;
}

.table td, .table th {
    padding: 0.15rem;
}
.nav-link .button-text {
    display: none; /* По подразбиране текстът е скрит */
}
.nav-link:hover .button-text {
    display: inline-block; /* Показва текстът при ховър */
    font-size: 15px;
}
.navbar-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
}
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 2px; /* Височина на подчертаването */
    background-color: #F2CD13; /* Цвят на подчертаването */
    transition: width 0.3s ease;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::before {
    width: calc(100%); /* Ширина на подчертаването */
}
.navbar {
    backdrop-filter: blur(10px); /* Замъгляване */
}
.row.d-flex {
    display: flex;
}

.bg-dark {
    height: 100%; /* Ensure the background section takes up full height */
}
.card {
    background-color: #343a40; /* За да е в синхрон с текстовете в картите */
    flex: 1;
}
.flag-container {
    width: 25px;
    height: 25px; /* Make the container a perfect square */
    overflow: hidden;
    border-radius: 20%; /* Make the corners perfectly rounded */
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-toggler {
    transition: background-color 0.3s; /* Плавен преход за ховър ефектите */
}
.rounded-flag {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
}
.table thead th {
    position: sticky;
    top: -2px;
    z-index: 10;
    background: #343a40; /* Ensure the background color matches your table header */
}
body > main > div > p:nth-child(5) > a {
    text-decoration-color: #F2CD13;
}
.text-white {
    text-decoration-color: white;
}
.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.mb-4 {
    margin-bottom: 0!important;
}
.gallery-container {
    position: relative;
    width: 100%;
    height: 300px; /* Задаваме фиксирана височина за всички контейнери */

}

.gallery-img {
    width: 100%;
    height: 100%;  /* Изображението ще запълни контейнера изцяло */
    object-fit: cover;  /* Изображението ще покрие целия контейнер, без да се изкривява */
    max-width: 100%;
    max-height: 100%;
}
.text-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачен черен фон за по-добра четимост */
    padding: 5px 10px;
    border-radius: 5px;
}
.button-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}
#gallery .col-12, #gallery .col-sm-6, #gallery .col-md-4, #gallery .col-lg-3 {
    padding-left: 0;
    padding-right: 0;
}
/* Стил за header-image и текст */
.header-image {
    background: url('/images/lamborghini_mansory.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh; /* Използваме 100% височина на екрана */
    position: relative;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 80%; /* Ограничаваме ширината на текста */
}

/* Стилове за заглавието */
.header-text h1 {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.2; /* Добавяме малко разстояние между редовете */
}

/* Стилове за подзаглавието */
.header-text p {
    font-size: 1.5rem;
}

/* Медийна заявка за екрани под 800px */
@media (max-width: 800px) {
    .header-image {
        height: 300px; /* Намаляваме височината на изображението */
    }

    .header-text h1 {
        font-size: 2rem; /* Намаляваме размера на заглавието */
        white-space: normal; /* Позволяваме на заглавието да се пренася на нов ред */
        word-wrap: break-word; /* Принуждаваме думите да се пренасят */
    }

    .header-text p {
        font-size: 1rem; /* Намаляваме размера на подзаглавието */
    }
}

.about {
    padding-right: 0;
    padding-left: 0;
}
.form-buttons {
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 576px) {
    .footer-badge {
        font-size: 12px;  /* Още по-малък шрифт на мобилни устройства */
    }
}
@font-face {
           font-family: "Jura", sans-serif;
           src: url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap') format('truetype');
           font-weight: 500;
           font-style: normal;
}
.navbar.fixed-top + main {
    margin-top: 70px !important; /* Настрой според височината на navbar */
}
.modal-content {
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачен черен фон */
    color: white;
}

.modal-dialog {
    display: flex;
    justify-content: center;  /* Центрира модала хоризонтално */
    align-items: center;      /* Центрира модала вертикално */
    max-width: 80vh;  /* Може да промените на нужното за вас */
    max-height: 80vh; /* Ограничаване на височината */
    margin: 150px auto;  /* Центрира модала, когато е по-малък от екран */
}

/* За правилното позициониране на изображението в модала */
.modal-body {
    display: flex;
    justify-content: center;  /* Центрира изображението хоризонтално */
    align-items: center;      /* Центрира изображението вертикално */
}

.modal-body img {
    max-width: 100%;   /* Ограничаване на ширината на изображението */
    max-height: 80vh;  /* Ограничаване на височината на изображението */
    object-fit: contain;  /* Запазване на пропорциите на изображението */
}
@media (max-width: 1050px) {
    .navbar-expand-lg .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9); /* Тъмен фон за по-добра видимост */
        max-height: 80vh; /* Ограничава височината */
        overflow-y: auto; /* Позволява скролване */
        visibility: hidden;
        opacity: 0;
        height: 0;
        transition: opacity 0.3s ease, height 0.3s ease;
        z-index: 1000;
    }
    .navbar-expand-lg .navbar-toggler {
        display: block !important;
        margin-left: auto;
    }
    .navbar-expand-lg .navbar-collapse.show {
        visibility: visible;
        opacity: 1;
        height: auto;
    }
}