@font-face {
  font-family: 'Agency FB';
  src: url('/fonts/AGENCYR.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Agency FB';
  src: url('/fonts/AGENCYB.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
}
/* Общие стили фона в стиле 2000-х */
body {
    background-image: url('../img/bgfl.jpg');
    margin: 0;
    padding: 20px;
}

/* Центральный контейнер */
.main-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    background-color: #050505;
    border: 1px solid #444;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Шапка */
header {
	background-image: url('../img/header.jpg');
	background-size: 100% 100%;
    padding: 55px 20px;
    text-align: center;
    border-bottom: 1px solid #222;
}

header h1 {
	font-family: Agency FB;
    font-size: 90px;
    color: #87C3E0;
    margin: 0;
    text-transform: lowercase;
    letter-spacing: 5px;
}

/* Сетка контента */
.content-container {
    display: flex;
    padding: 20px;
    gap: 30px;
}

/* Посты */
.posts {
    flex: 3;
}

.date-header {
	font-family: Agency FB;
    background-color: #1a1a1a;
    padding: 5px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #87C3E0;
    text-align: center;
    margin: 20px 0 10px 0;
	letter-spacing: 1px;
}

.post h2 {
	font-family: Agency FB;
    color: #87C3E0;
    font-size: 30px;
    margin-bottom: 10px;
	letter-spacing: 1px;
}

.post p {
	font-family: Agency FB;
    color: #87C3E0;
    font-size: 20px;
    line-height: 1.5;
	letter-spacing: 1px;
}

.post-footer {
    text-align: right;
    font-size: 0.8rem;
    color: #63b3ed;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

/* Сайдбар */
.sidebar {
    flex: 1;
    font-size: 0.85rem;
}

.widget {
    margin-bottom: 25px;
}

.widget h3 {
	font-family: Agency FB;
    color: #87C3E0;
    font-size: 22px;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    padding-bottom: 5px;
	letter-spacing: 2px;
}

.widget ul {
	text-align: center;
    list-style: none;
    padding: 0;
}

.widget a {
	font-family: Agency FB;
	font-weight: bolder;
    color: #87C3E0;
	letter-spacing: 5px;
    text-decoration: none;
}

.widget a:hover {
    text-decoration: underline;
}

.fl-btn {
    background: linear-gradient(to bottom, #feb47b, #ff7e5f);
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.button-link-open,
.button-link {
  display: inline-block;
  padding: 22px 50px; /* Уменьшил горизонтальный padding и сделал его более гибким */
  min-width: 120px; /* Минимальная ширина, чтобы короткие тексты не были слишком узкими */
  background-image: url('../img/h.png');
  background-size: cover;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  text-align: center;
  border-radius: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap; /* Запрещает перенос текста, сохраняя компактность */
}

.button-link:hover,
.button-link-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.button-link:active,
.button-link-open:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Код */
code {
	font-family: Agency FB, webdings;
    color: #87C3E0;
    display: block;
    background: #111;
    padding: 10px;
    font-size: 1.2rem;
    margin: 10px 0;
	letter-spacing: 1px;
}

/* Футер */
.site-footer {
	max-width: 1024px;
	margin: 0 auto;
  background-color: #050505;
  border-radius: 0px 0px 15px 15px;
  border: 1px solid #444;
  color: #87C3E0;
  font-family: Agency FB;
  margin-top: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  font-size: 20px;
  letter-spacing: 1px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  padding: 30px 20px;
  gap: 30px;
  max-width: 1024px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  font-size: 30px;
  margin-bottom: 15px;
  letter-spacing: 2px;
  border-bottom: 1px solid #222;
  padding-bottom: 5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #87C3E0;
  text-decoration: none;
  letter-spacing: 1px;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: #63b3ed;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 16px;
  letter-spacing: 1px;
}