* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #d89921 #1a1a1a;
}

body {
	font-family: 'Courier New', monospace;
	font-weight: normal;
	font-size: 19px;
	/*background: #000000;*/
	min-height: 100vh;
	padding: 40px 20px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	background-image: url('/templates/smgl/img/bg.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.main-colimn .content ul, ol, li {
	list-style-position: inside;
	padding-left: 0px;
}

.main-column {
	width: 100%;
	color: #f0f0f0;
	max-width: 900px;
	background-color: #1a1a1a;
	/*border-radius: 8px;*/
	padding: 40px;
}

.main-column a {
	margin-right: 15px;
	text-decoration: none;
}

/* Стили для основного контента */
.main-column .content {
	padding: 10px 0;
	margin-top: 20px;
	margin-bottom: 20px;
}

.content p, h4 {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.content hr {
    display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

/* Стили для подвала из includes/footer.txt */
.main-column footer {
	margin-top: 40px;
	padding-top: 20px;
	font-size: 0.9em;
	text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
	body {
		padding: 20px 10px;
	}
	.main-column {
		padding: 25px;
	}
}

/* Ссылки в блоке content */
.content a {
	color: #39F348;
}

.content a:hover {
  color: #5AFF67;
  text-decoration: underline;
}

.content a:active {
  color: #FF5733;
  text-decoration: underline;
}

/* Кнопки в меню навигации */
.menu {
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 5px;
	padding-right: 5px;
	border: 0px solid white;
}

.menu a {
	font-weight: bold;
	color: #458586;
	background-color: transparent;
	text-decoration: none;
	padding: 0px 15px;
	transition: all 0.3s ease;
}

.menu .l_selected {
	background-color: #d89921;
	color: #000000;
}

.menu a:hover {
	color: #000000;
	background-color: #8ec07a;
}

/* Анимки */
@keyframes anim-rotate {
	0%,
	100% {
		transform: rotate(-1deg);
		animation-timing-function: ease-in;
	}
	25% {
		transform: rotate(0deg);
		animation-timing-function: ease-out;
	}
	50% {
		transform: rotate(1deg);
		animation-timing-function: ease-in;
	}
	75% {
		transform: rotate(0deg);
		animation-timing-function: ease-out;
	}
}

@keyframes pulse {
	0% { opacity: 1; }
	50% { opacity: 0.7; }
	100% { opacity: 1; }
}

/* Стили для интерактивных элементов */
input[type="submit"] {
	border-style: none solid none solid !important;
	border-color: #E3F339 !important;
	color: #39F348 !important;
	background-color: #1a1a1a !important
}
input[type="submit"]:hover {
	border-color: #E3F339 !important;
	color: #202022 !important;
	background-color: #39F348 !important
}
input[type="text"], input[type="url"] {
	background-color: #1a1a1a !important;
	color: #FFFFFF !important;
	border-style: none none solid none !important;
	border-color: #FFFFFF !important;
}
textarea, input[type="submit"], input[type="text"], input[type="url"] {
	font-family: 'Courier New', monospace ;
	font-size: 16px;
}

/* Шильдик ALPHA */
.status-badge {
	display: inline-block;
	font-size: 0.5em;
	font-weight: bold;
	padding: 3px 10px;
	border-radius: 12px;
	margin-left: 15px;
	vertical-align: middle;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.status-alpha {
	background-color: #ff7b00;
	color: #000;
	animation: pulse 2s infinite;
}

/* Блог */
.post {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.post p { margin-bottom: 1.2rem; }

.post blockquote {
  border-left: 4px solid #458586;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.post pre {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post ul, .post ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post .tags {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #478583;
}

.post .tag {
  display: inline-block;
  background: #478583;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 1px;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.log-window {
  background: #1a1a1a;
  padding: 15px;
  max-width: 800px;
  margin: 20px auto 0px auto;
}

.log-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #000000;
  border: 1px solid #458586;
}

/* Кастомный скроллбар */
.log-content::-webkit-scrollbar {
  width: 10px;
}

.log-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.log-content::-webkit-scrollbar-thumb {
  background: #39F348;
  border-radius: 5px;
}

.log-entry {
  padding: 8px 12px;
  margin: 5px 0;
  background: rgba(57, 243, 72, 0.05);
  border-left: 3px solid #39F348;
  color: #f0f0f0;
  font-size: 14px;
}

.log-entry:hover {
  background: rgba(57, 243, 72, 0.1);
}