body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #dcefff;
  color: #333;
}

/* NAVIGATION */
nav {
  background: #1a5fd0;
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background 0.2s;
}
nav a:hover { background: rgba(255,255,255,0.2); }

/* MARQUEE */
.marquee-container {
  background: #e2e2e2;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #ccc;
}
.marquee {
  display: inline-block;
  padding-right: 100%;
  animation: marquee 60s linear infinite;
  font-size: 14px;
  padding: 5px 0;
}
.marquee a {
  margin-right: 50px;
  text-decoration: none;
  color: #1a5fd0;
  font-weight: bold;
}
.marquee a:hover { text-decoration: underline; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); } /* отляво надясно */
}

/* HEADER */
header {
  background: #1a5fd0;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 20px 0;
  padding: 0 10px;
}
.tags a {
  display: inline-block;
  padding: 5px 8px;
  background: white;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  color: #1a5fd0;
  border: 1px solid #ddd;
  white-space: nowrap;
}
.tags a:hover { background: #1a5fd0; color: white; }

/* POSTS CONTAINER */
.container {
  max-width: 960px;
  margin: auto;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}
.post {
  background: white;
  width: calc((100% - 30px)/3); /* 3 статии една до друга */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 15px;
}
.post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}
.post a {
  display: block;
  font-weight: bold;
  color: #1a5fd0;
  text-decoration: none;
  margin: 10px 0;
}
.post p {
  color: #444;
  font-size: 14px;
}

/* RESPONSIVE */
@media(max-width:980px){
  .post { width: calc((100% - 15px)/2); } /* 2 статии една до друга */
}
@media(max-width:600px){
  nav { gap: 40px; }
  nav a { font-size: 12px; padding: 4px 8px; }
  .marquee { font-size: 12px; }
  .post { width: 100%; }
  .post p { font-size: 13px; }
  .tags a { font-size: 11px; padding: 4px 6px; }
  .post img { height: auto; }
}


/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dcefff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

#preloader img {
  width: 80px; /* Размер на GIF файла */
  height: 80px;
  margin-bottom: 15px;
}

#preloader span {
  font-size: 16px;
  color: #1a5fd0;
  font-weight: bold;
}