/* Основни стилове */
body {
    background-image: url('../../images/backgrownd.jpg'); /* Път към изображението за фона */
    background-size: cover; /* Покрива цялата страница */
    background-position: center; /* Центрира изображението */
    background-attachment: fixed; /* Фонът остава фиксиран */
    margin: 0; /* Премахва отстъпите на страницата */
    padding: 0; /* Премахва вътрешните отстъпи */
    font-family: 'PT Serif', serif; /* Опционален шрифт за текста */
    color: #333;
}




/* Стил за целия popup */
#privacy-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 248, 240, 0.9);
    border: 2px solid #5c3a1e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    font-family: 'PT Serif', serif;
    z-index: 1000;
    display: none; /* По подразбиране е скрит */
}


#privacy-popup.show {
    display: block;
}

#privacy-popup h2 {
    font-size: 1.8em;
    color: #5c3a1e;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #5c3a1e;
    padding-bottom: 5px;
}

#privacy-popup p {
    color: #2b2b2b;
    font-size: 1em;
    line-height: 1.6;
    text-align: center;
}

#privacy-popup a {
    color: #5c3a1e;
    text-decoration: underline;
    font-weight: bold;
}

.popup-actions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.popup-actions button {
    background: #5c3a1e;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-actions button:hover {
    background: #402b1a;
    transform: scale(1.05);
}
/***********************login button and popup menu style*******************************/
/* buttons */
#login-icon i {
    font-size: 1.5em;
    color: #5c3a1e;
    cursor: pointer;
}

#login-icon i:hover {
    color: #3f2914;
}

/* login */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #fdf6e3;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 20px;
    font-family: 'PT Serif', serif;
}

.popup-content label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-size: 1em;
}

.popup-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-btn {
    background: #5c3a1e;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.popup-btn:hover {
    background: #3f2914;
}

.popup-footer p {
    font-size: 0.9em;
}

.popup-footer a {
    color: #5c3a1e;
    text-decoration: underline;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}
/*popup error*/
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}

input.error {
    border: 1px solid red;
}

/***********************letters style*******************************/
h1, h2 {
    font-family: 'PT Serif', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

h1::before, h1::after, h2::before, h2::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #8B4513;
    top: 50%;
    transform: translateY(-50%);
}

h1::before, h2::before {
    left: -60px;
}

h1::after, h2::after {
    right: -60px;
}
/******************************************************/

header {
    background-color: rgba(255, 255, 255, 0.5); /* Полупрозрачен фон */
    backdrop-filter: blur(10px); /* Замъгляване */
    color: #fff;
    text-align: center;
    padding: 20px;
    position: fixed; /* Фиксиране на хедера */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out; /* Гладък ефект при скриване */
}


header.hidden {
    transform: translateY(-100%); /* Премества хедера извън видимостта */
}

header h1 {
    margin: 0;
    font-size: 2em;
}

/* Стилове за бутоните за смяна на езика */
button {
    background: none; /* Премахва стандартния стил на бутоните */
    border: none; /* Премахва рамката */
    font-family: 'Monsieur La Doulaise', cursive; /* Декоративен шрифт */
    font-size: 1.5em; /* Увеличава размера за по-ефектен вид */
    color: #5c3a1e; /* Цветът на текста в ретро стил */
    cursor: pointer; /* Добавя курсор при посочване */
    text-decoration: none; /* Премахва подчертаването */
    padding: 0; /* Премахва вътрешните отстояния */
    margin: 0 5px; /* Разстояние между бутоните */
    transition: color 0.3s ease; /* Гладък преход при посочване */
}

button:hover {
    color: #b8860b; /* Златисто за ефект на посочване */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Леко сияние за елегантност */
}

button:focus {
    outline: none; /* Премахва стандартната рамка при фокус */
}

/* За контейнера на бутоните */
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none; /* Премахва булетите */
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 10px; /* Разстояние между елементите */
}

/* Допълнителен стил за цялостния вид на навигацията */
nav {
    font-family: 'PT Serif', serif; /* Хармония със стила на текста */
    background-color: transparent; /* Прозрачност за ретро стил */
    padding: 10px 0;
    text-align: center;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.cta-button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #555;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    background: #5c3a1e;
}

section {
    padding: 10px;
    margin: 10px;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(10px); /* Замъгляване на фона */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 5px;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

#hero {
    position: relative;
    text-align: center;
    color: white;
}

#hero img {
    width: 100%;
    height: auto;
    filter: brightness(0.5);
}

#typing-list li {
    display: block;
    white-space: nowrap;
    overflow: hidden; /* Скрива излишния текст */
    border-right: 2px solid #5c3a1e; /* Ефект на курсор */
    opacity: 0; /* Скрива текста, докато не започне изписването */
    animation: blink-cursor 0.8s steps(2, start) infinite; /* Мигащ курсор */
}

@keyframes blink-cursor {
    50% {
        border-color: transparent;
    }
}

/* Services                       Секция с услуги **********************************************/
#services {
    display: flex; /* Активиране на Flexbox */
    justify-content: space-between; /* Равномерно разстояние между елементите */
    align-items: stretch; /* Подравняване по вертикала */
    flex-wrap: wrap; /* Позволява пренареждане при по-малки екрани */
    gap: 20px; /* Разстояние между елементите */
    padding: 20px;
    background: transparent;
    border: 3px solid #5c3a1e;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    transform: translateY(30px);
    transition: all 2s cubic-bezier(0.25, 1, 0.5, 1); /* Персонализирана анимационна крива */
}

/* Елементи на услугите */
.service-item {
    background: url('../../images/old_paper_texture.jpg') no-repeat center center;
    border: 2px solid #5c3a1e; /* Златни акценти */
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* За да подредите вътрешните елементи вертикално */
    justify-content: space-between; /* Равномерно разпределение на съдържанието */
    align-items: center; /* Центриране на вътрешните елементи */
    flex: 1; /* Гарантира, че всички елементи ще имат еднаква ширина и височина */
    max-width: 300px; /* Ограничение за ширината */
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Активиране на анимацията */
.service-item.show {
    opacity: 1;
    transform: scale(1) rotateX(0deg) translateY(0);
    filter: brightness(100%);
}

/* Заглавия */
.service-item h3 {
    position: relative;
    margin: 20px 0;
    font-size: 1.5em;
    text-align: center;
    color: #2b2b2b;
    font-family: 'Cormorant Garamond', serif; /* Винтидж шрифт */
    letter-spacing: 1px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8); /* Лек фонов цвят за контраст */
    border: 2px solid #5c3a1e; /* Тъмно кафява рамка */
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.3);
}


.service-item h3::before {
    left: -70px;
}

.service-item h3::after {
    right: -70px;
}

/* Допълнителна декорация под заглавието */
.service-item h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;

}

/* Параграфи */
.service-item p {
    color: #555;
    font-size: 1em;
    margin-bottom: 15px;
}

/* Линкове */
.service-item a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: #333;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-item a:hover {
    transform: scale(1.1);
    background-color: #555;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.8);
    background: #5c3a1e;
}

/* Анимация на изображения */
.service-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.service-item img:hover {
    transform: scale(1.05);
}
/*************************************/


#contact-info {
    text-align: center;
	position: relative;
    color: white;
}
#contact-info a {
    font-family: 'Monsieur La Doulaise', cursive;
    font-size: 1.5rem; /* Регулирайте размера */
    color: #003366; /* Цвят на текста */
    text-decoration: none; /* Премахва подчертаването */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Добавя лека сянка */
}

/* Основен стил за секцията */
#faq {
    position: relative; /* За позициониране на псевдоелементите */
    padding: 40px;
    background: 
        linear-gradient(to bottom, rgba(103, 65, 4, 0.9), rgba(197, 125, 9, 0.9)), /* Градиент, наподобяващ хартия */
        url('../../images/old_paper_texture.jpg') no-repeat center center; /* Текстура */
    border: 2px solid #5c3a1e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-family: 'PT Serif', serif;
    z-index: 1; /* Над текстурата */
    overflow: hidden; /* Скрива излизащите части на псевдоелемента */
}

#faq::before {
    content: ''; /* Генерира псевдоелемент */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../images/vintage-stains.png') no-repeat center center; /* Текстура на стар лист */
    background-size: cover;
    z-index: -1; /* Под основното съдържание */
    filter: sepia(0.6) contrast(1.2) brightness(0.9); /* Приложен филтър за старинен вид */
    opacity: 0.8; /* Полупрозрачност за интегриране с останалите слоеве */
    pointer-events: none; /* Изключва взаимодействието с текстурата */
}

#faq h2 {
    font-size: 2.5em;
    text-align: center;
    color: #5c3a1e;
    border-bottom: 3px solid #5c3a1e;
    margin-bottom: 20px;
}

.faq-category h3 {
    font-size: 1.8em;
    margin: 20px 0;
    color: #402b1a;
    border-bottom: 2px solid #402b1a;
    padding-bottom: 5px;
}

/* Въпроси */
.faq-question {
    display: block;
    width: 100%;
    background: #5c3a1e;
    font-family: 'PT Serif', serif; /* Класически шрифт */
    color: #fff;
    text-align: left;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.faq-item.open .faq-question {
    background-color: #402b1a; /* Подчертава активния въпрос */
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-question:hover {
    background-color: #402b1a;
    transform: scale(1.02); /* Леко увеличение при посочване */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    font-family: 'Courier New', monospace; /* Шрифт, наподобяващ печатна машина */
    color: #4c3a2f;
    line-height: 1.6;
    text-indent: 20px;
    margin-top: 5px;
    transition: all 0.5s ease-in-out; /*max-height 1s cubic-bezier(0.25, 1, 0.5, 1); */
    border-left: 5px solid #5c3a1e; /* Линия, която подсилва визуално отговора */
    border-radius: 0 5px 5px 5px;
    background: rgba(255, 255, 240, 0.9); /* Лек винтидж фон */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    transform: scale(0.9);
}

.faq-item.open .faq-answer {
    /* Регулирайте спрямо дължината на текста */
    padding: 10px;
    max-height: 500px; /* С достатъчно място за отговорите */
    opacity: 1;
    transform: scale(1);
}

.faq-question::before {
    content: '\2795'; /* Юникод за "+" */
    font-size: 0.5em;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #fff;
}

.faq-item.open .faq-question::before {
    content: '\2796'; /* Юникод за "-" */
}

/* Табове */
#faq-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    margin: 0 5px;
    background: #5c3a1e;
    font-family: 'PT Serif', serif; /* Класически шрифт */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tab:hover, .tab.active {
    background: #402b1a;
    transform: scale(1.05);
}

/* Скрити категории */
.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

/*******************************************************************/

#clocks {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #333;
    color: #fff;
}

#clocks .time {
    font-size: 1.5em;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: #fff;
}

footer p {
    margin: 0;
	font-family: 'Monsieur La Doulaise', cursive;
}


/* Стилове за аналоговите часовници */
/* Основен стил за контейнера на часовниците */

.clock-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.clock {
    width: 250px;
    height: 250px;
    position: relative;
    text-align: center;
}

.clock-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.clock-face {
    fill: url(#patina-gradient); /* Добавете градиент за патина */
    stroke: #5c3a1e;
    stroke-width: 3;
}

.hour-hand,
.minute-hand,
.second-hand {
    stroke-linecap: round;
    transform-origin: 100px 100px;
}

.hour-hand {
    stroke: #333;
    stroke-width: 4;
}

.minute-hand {
    stroke: #555;
    stroke-width: 3;
}

.second-hand {
    stroke: red;
    stroke-width: 2;
}

.clock-center {
    fill: #5c3a1e;
    stroke: #fff;
    stroke-width: 1;
}

.label {
    margin-top: 10px;
    font-family: 'PT Serif', serif;
    font-size: 16px;
    color: #333;
}


/* 3D ефект при посочване с мишката */
.clock-container .clock:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Map container styling */
#map {
    width: 80% !important; /* Променена широчина */
    height: 400px !important; /* Променена височина */
    margin: 20px auto;
    border: 10px solid transparent;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), /* Тъмна сянка */
                inset 0 0 15px rgba(0, 0, 0, 0.2); /* Вътрешна сянка */
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.8),
        rgba(210, 180, 140, 0.6)
    ); /* Създава патиниран вид */
    overflow: hidden;
    border: 20px solid #5c3a1e; /* Рамка */
}

/* Frame styling */
.map-frame {
    padding: 10px;
    background-color: transparent !important; /* Прави фона прозрачен */
    border: none; /* Премахва тъмнокафявата рамка */
    box-shadow: none; /* Премахва сенките, ако има такива */
    border-radius: 20px; /* Запазва заоблянето, ако е необходимо */
}

/*********************************************************************************/
.decorative-border {
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(139, 69, 19, 0.3));
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

/************************** icons ***********************************************/
.icon-header {
    font-family: 'PT Serif', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5C3A1E;
}

.icon-header i {
    margin: 0 10px;
    font-size: 1.5em;
    color: #8B4513;
}

/**************************wellcome screen************************************************/
/* Центриране на съдържанието */
/* Основен стил за intro секцията */
#intro {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;

  position: relative;
  top: 0;
  left: 0;
  z-index: 9999;
  overflow: visible !important; /* Скрива съдържанието извън рамките */
}

#welcome-image {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  background-size: cover !important;
  background-position: center !important;
  z-index: 0 !important; /* Зад всички други елементи */
}






/* Анимация за отваряне */
#welcome-image.opening {
  transform: scale(0.9) translateX(-50%);
  opacity: 0;
}

/* Анимация за стрелките */
.arrow {
  position: absolute;
  bottom: 20px;
  width: 30px;
  height: 30px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(135deg) !important;
  animation: arrow-bounce 1.5s infinite;
  z-index: 10 !important; /* Увери се, че е над други елементи */
  visibility: visible !important;
  display: block !important;
}

/* Позициониране на стрелките */
.arrow:nth-child(1) {
  left: 50%;
  margin-left: -15px;
  z-index: 10 !important; /* Увери се, че е над други елементи */
}

.arrow:nth-child(2) {
  left: 50%;
  margin-left: -15px;
  animation-delay: 0.3s;
}

.arrow:nth-child(3) {
  left: 50%;
  margin-left: -15px;
  animation-delay: 0.6s;
}

@keyframes dustMotion {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* Анимация на стрелките */
@keyframes arrow-bounce {
  0% {
    transform: translateY(0) rotate(-45deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) rotate(-45deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0) rotate(-45deg);
    opacity: 1;
  }
}

/* Стил за бутона Enter */
#enter-button {
  position: fixed;
  display: block !important;
  visibility: visible !important;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  z-index: 10 !important; /* Увери се, че е над други елементи */
}

#enter-button:hover {
  background-color: #f0f0f0;
}
#enter-button, .arrow {
    display: block !important;
    visibility: visible !important;
}
