/**
 * @author developer@hastaport.com
 * @since 03 Kas 2016 16:04
 * @copyright  Copyright (C) 2016 hastaport.com

    The Css code in this page is free software: you can
    redistribute it and/or modify it under the terms of the GNU
    General Public License (GNU GPL) as published by the Free Software
    Foundation, either version 3 of the License, or (at your option)
    any later version.  The code is distributed WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.

    As additional permission under GNU GPL version 3 section 7, you
    may distribute non-source (e.g., minimized or compacted) forms of
    that code without the copy of the GNU GPL normally required by
    section 4, provided you include this license notice and a URL
    through which recipients can access the Corresponding Source.
    (http://www.gnu.org/philosophy/javascript-trap.html)
 */
#header-container {
	color: #436978;
	display: flex;
	flex-direction: column;
	width: -webkit-fill-available
}

#header-container>div {
	margin: 0px;
	padding-right: 20px;
	font-size: 23px;
	font-weight: 500;
	display: flex;
	justify-content: flex-end;
	text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.38);
}

#header-container>div:first-child {
	border-bottom: 2px solid #d6a38d;
	letter-spacing: 1px;
	font-size: 31px;
}

#header-container>div:last-child {
	font-size: 17px;
	color: hsla(197, 28%, 37%, 0.85);
}

@media only screen and (max-width: 400) {
	#header-container>div:first-child {
		font-size: 21px;
	}
	#header-container>div:last-child {
		font-size: 13px;
	}
}/**
 * The Css code in this page is free software: you can
 *     redistribute it and/or modify it under the terms of the GNU
 *     General Public License (GNU GPL) as published by the Free Software
 *     Foundation, either version 3 of the License, or (at your option)
 *     any later version.  The code is distributed WITHOUT ANY WARRANTY;
 *     without even the implied warranty of MERCHANTABILITY or FITNESS
 *     FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
 * 
 *     As additional permission under GNU GPL version 3 section 7, you
 *     may distribute non-source (e.g., minimized or compacted) forms of
 *     that code without the copy of the GNU GPL normally required by
 *     section 4, provided you include this license notice and a URL
 *     through which recipients can access the Corresponding Source.
 *     (http://www.gnu.org/philosophy/javascript-trap.html)
 *
 * @format
 * @author developer@cuneytayanoglu.com 26 Kasım 2023
 * @copyright Copyright (C) 26 Kasım 2023 cuneytayanoglu.com
 */

nav:is(.child-pages, .sections) {
	--link-color: hsl(210deg 60% 44%);
	--link-font-size: 0.95rem;
}

div#fixed {
	display: flex;
	flex-direction: column;
	position: sticky;
	bottom: 0px;
	right: 0px;
	left: 0px;
	overflow-y: auto;
	top: calc(var(--header-height) + 8px);
}

nav.child-pages {
	margin-top: 8px;
	padding-top: 8px;
	border-bottom: 1px solid var(--border-color-darker);
}

nav.child-pages > h2 {
	margin: 32px 0px 8px 4px !important;
	color: var(--link-color);
}

nav.child-pages > a {
}

nav.child-pages > a > div {
	/* font-size: var(--link-font-size) !important; */
	color: var(--link-color);
	margin-left: 4px;
}

nav.menu-articles {
	max-width: 230px;
}

nav.sections {
	margin-top: 8px;
	padding-top: 8px;
	border-bottom: 1px solid var(--border-color-darker);
}

nav.sections article {
	margin: 0px;
	border-width: 0px;
	min-height: unset;
}

nav.sections * > :not(h3, h3 span) {
	display: none;
}

nav.sections * > h3 {
	margin: 2px 0px 4px 0px !important;
	width: 220px;
	max-width: 220px;
	justify-content: flex-start;
	align-items: flex-start;
}

nav.sections * > h3:not([id]) {
	display: none;
}

nav.sections * > h3,
nav.sections * > h3 * {
	font-size: 0.99rem !important;
	font-weight: 400;
	cursor: pointer;
	letter-spacing: normal;
	line-height: 1.4rem;
	color: var(--link-color);
}

nav.sections * > h3 {
	font-size: var(--link-font-size) !important;
	color: var(--link-color);
}

nav.sections * > h3:before {
	font-family: "FontAwesome Solid";
	content: "\f111";
	font-size: 7px;
	line-height: unset;
	color: hsl(210deg 60% 26%);
	font-style: normal;
	margin-right: 4px;
}

nav.sections > h2 {
	margin: 4px 0px !important;
	color: hsl(210deg 49.14% 29.38%);
}

section#setup-module {
	display: none;
}

@media (max-width: 640px) {
	div:has(nav.sections) {
		position: static;
	}

	nav.sections * > h3 {
		font-size: var(--link-font-size) !important;
		overflow-x: clip;
		white-space: nowrap;
		flex-wrap: nowrap !important;
		width: 100% !important;
		max-width: unset !important;
	}

	nav.child-pages > a > div {
		line-height: 3rem;
	}

	nav.menu-articles {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	nav.sections * > h3 {
		font-size: 1.3rem !important;
		width: 100% !important;
		max-width: unset !important;
	}

	nav.sections * > h3:before {
		font-size: 12px !important;
		display: inline-block;
	}
}

section#editor-commands {
	margin-top: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-color-darker);
	min-height: 36px;
	box-sizing: border-box;
}
section#editor-commands:empty {
	display: none;
}
section#editor-commands > div {
	display: flex;
	font-size: 0.91rem;
	margin-left: 8px;
	padding-right: 24px;
	width: -webkit-fill-available;
}

/*#region skin-1 */

body.skin-1 dialog.control {
}

/*#endregion skin-1 */

body.poster-skin section#setup-module {
	display: block;
}
/**
 * The Css code in this page is free software: you can
 *     redistribute it and/or modify it under the terms of the GNU
 *     General Public License (GNU GPL) as published by the Free Software
 *     Foundation, either version 3 of the License, or (at your option)
 *     any later version.  The code is distributed WITHOUT ANY WARRANTY;
 *     without even the implied warranty of MERCHANTABILITY or FITNESS
 *     FOR A PARTICULAR PURPOSE.  See the GNU GPL for more details.
 * 
 *     As additional permission under GNU GPL version 3 section 7, you
 *     may distribute non-source (e.g., minimized or compacted) forms of
 *     that code without the copy of the GNU GPL normally required by
 *     section 4, provided you include this license notice and a URL
 *     through which recipients can access the Corresponding Source.
 *     (http://www.gnu.org/philosophy/javascript-trap.html)
 *
 * @format
 * @author developer@hastaport.com
 * @since 03 Kas 2016 16:04
 * @copyright Copyright (C) 2016 hastaport.com
 */

#top-button {
	z-index: 1000;
	position: fixed;
	bottom: 8px;
	right: 8px;
	background-color: hsl(0deg 0% 0% / 8%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50% 50%;
	cursor: pointer;
}

div#top-button:active {
	background-color: hsl(0deg 0% 0% / 16%);
}

#admin-tool-box-container {
	display: none !important;
}

body > footer {
	> section {
		/* display: flex; */
		/* flex-direction: row; */
		/* height: -webkit-fill-available; */
		/* background-color: inherit; */
		/* width: -webkit-fill-available; */

		& #mobile-footer-content {
			display: flex;
			flex-direction: column;
			justify-content: space-around;
			align-items: center;
			position: fixed;
			top: calc(var(--header-height) + 16px);
			right: 16px;

			& div.high-light[class*="fa-"]:before {
				color: red !important;
			}

			& a {
				color: slateblue;
				> div {
					display: flex;
					align-items: center;
					justify-content: center;
					font-size: inherit;
					margin-bottom: 12px;
					min-width: 24px;
					min-height: 24px;
					background-size: contain;
				}
			}
		}
		& #print-footer {
			display: none;
		}
		& #footer-container {
			padding: 0px;
			color: hsla(120, 27%, 100%, 1);

			display: flex;
			flex-direction: row;
			height: -webkit-fill-available;
			background-color: inherit;
			width: -webkit-fill-available;
		}

		& #footer-menu {
			padding: 0px;
			color: #e0ede0;
			color: hsla(120, 27%, 100%, 1);
			display: flex;
			flex-direction: row;
			height: -webkit-fill-available;
			width: -webkit-fill-available;
			background-color: inherit;

			> div {
				flex-grow: 1;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 1rem;
				/* font-weight: 200; */
				letter-spacing: 2px;
				padding: 0px 8px;
				cursor: pointer;
				border: 0px !important;
				/* text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.81); */

				&.active {
					background-color: hsla(0, 0%, 0%, 0.1);
				}
				+ div {
					border-left: 1px solid hsl(196, 28%, 60%) !important;
				}
				&:hover {
					background-color: hsla(0, 0%, 0%, 0.1);
				}
				> i.invisible {
					visibility: hidden;
				}
				> a {
					color: unset;
				}
			}
		}
	}
}

/* body > footer  */

/* #footer-menu  */

/* #footer-menu > div  */

/* #footer-menu > div  */

/* #footer-menu > div */

#footer-menu > div + div {
	border-left: 1px solid hsl(196, 28%, 60%) !important;
}

/* #mobile-footer-content */

/* #mobile-footer-content a  */

#mobile-footer-content div[class*="fab-"]:before,
#mobile-footer-content div[class*="fa-"]:before {
	font-size: 20px;
	color: hsla(196, 32%, 48%, 1) !important;
	margin: 0px;
	margin-left: auto;
}

@media (min-width: 640px) {
	body > footer {
		> section {
			& #mobile-footer-content {
				overflow-y: auto;
				bottom: 40px;
			}

			& #mobile-footer-content::-webkit-scrollbar {
				width: 0px !important;
				height: 0px !important;
			}
		}
	}
}

@media (max-width: 640px) {
	body > footer {
		> section {
			& #mobile-footer-content {
				position: fixed;
				width: auto;
				background-color: hsla(124, 32%, 97%, 1);
				flex-direction: row !important;
				bottom: 0px;
				top: auto;
				right: 0px;
				left: 0px;
				overflow-x: auto;
				justify-content: flex-start;
				> section {
					display: flex;
					> * > div {
						margin: 12px 8px !important;
						&:before {
							justify-content: center;
							display: flex;
							align-items: center;
						}
					}
				}

				& a#cache-button-ref > div > div {
					display: none;
				}
			}
		}
	}
	#top-button {
		bottom: 75px;
		right: 2px;
	}

	#mobile-footer-content div[class*="fab-"]:before,
	#mobile-footer-content div[class*="fa-"]:before {
		font-size: 32px !important;
	}

	/* #mobile-footer-content > section */

	/* #mobile-footer-content > section > * > div */

	/* #mobile-footer-content  */
}

@media only screen and (max-width: 840px) {
	body > .corner-menu-button {
		left: 1px;
		top: 1px;
	}

	#header-container > div {
		padding-top: 2px !important;
		padding-bottom: 2px !important;
	}

	#header-container * {
		font-size: 1.1rem !important;
	}

	[data-template-section="footer"] {
		height: fit-content !important;
	}

	#footer-container {
		height: fit-content !important;
	}

	#footer-menu {
		flex-direction: column;
		height: fit-content;
		width: fit-content;
		position: fixed;
		top: 35px;
		left: 0px;
		bottom: auto;
		right: auto;
		height: auto;
		transform-origin: 0px 0px;
		transform: scale(1, 0);
		transition: transform 0.5s ease-out, opacity 0.3s ease-out;
		opacity: 0;
	}

	div.template-canvas[class~="pop"] #footer-menu {
		transform: scale(1, 1);
		opacity: 1;
	}

	#footer-menu > div {
		padding: 12px;
		justify-content: left;
	}
}
