/*
common
 */
 @media screen and (min-width: 768px) {
	.wy-nav-content {
		max-width: 80%;
		padding: 2.6em 8em 1.618em 3.4em;
	}

	h1 {
		font-size: 42px;
		font-family: 'Roboto Condensed', sans-serif;
	}

	h2 {
		font-size: 32px;
		font-family: 'Roboto Condensed', sans-serif;
		margin-block-end: 0px;
		margin-top: 18px;
		margin-bottom: 4px;
	}

	h3 {
		font-size: 26px;
		font-family: 'Roboto Condensed', sans-serif;
		margin-block-end: 0px;
		margin-top: 12px;
		margin-bottom: 4px;
	}

	h4 {
		font-size: 22px;
		font-family: 'Roboto Condensed', sans-serif;
		margin-top: 10px;
		margin-bottom: 4px;
	}

	h5 {
		font-size: 20px;
		font-family: 'Roboto Condensed', sans-serif;
	}

	h6 {
		font-size: 18px;
		font-family: 'Roboto Condensed', sans-serif;
	}


	.wy-menu-vertical p.caption {
		color: #fff;
		height: 24px;
		line-height: 28px;
		padding: 0 1.618em;
		margin-top: 10px;
		display: block;
		font-weight: 700;
		font-size: 85%;
		white-space: nowrap;
	}

	.wy-menu-vertical a {
		line-height: 16px;
	}

	.wy-menu-vertical li button.toctree-expand {
		color: #7d7a7a;
	}

	.wy-menu-vertical li.toctree-l2.current>a {
		margin-top: 0;
		margin-bottom: -4px;
	}

	/*

	.wy-menu-vertical li.current>a {
		color: #d9d9d9;
		background: #3D3B3B;
	}

	.wy-menu-vertical li.on a {
		color: #d9d9d9;
		background: #3D3B3B;
	}

	.wy-menu-vertical li.current {
		color: #d9d9d9 !important;
		background: #484444;
	}

	*/

	/* 3 next: wide of nav panel */
	.wy-nav-side,
	.wy-nav-shift {
		width: 360px;
	}

	.wy-side-nav-search {
		width: 340px;
	}

	.wy-side-nav-search>a {
		margin-bottom: 0;
	}

	.wy-menu.wy-menu-vertical {
		width: 340px;
	}

	.wy-side-scroll {
		width: 380px !important;
	}


	/*
    logo
     */
	.wy-side-nav-search .wy-dropdown > a img.logo,
	.wy-side-nav-search > a img.logo {
		width: 240px;
		padding: 20px 0 24px 0;
	}

	.wy-side-nav-search>div.version {
		margin-top: 2px;
		font-size: 14px;
	}

	/*
    toctree
     */
	.wy-menu-vertical li.toctree-l3,
	.wy-menu-vertical li.toctree-l4 {
		font-size: 1em;
	}

	.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
	.wy-menu-vertical li.toctree-l3.current > a {
		padding: .4045em 2.663em .4045em 4.045em;
	}

	.wy-menu-vertical li.toctree-l3.current li.toctree-l4 > a,
	.wy-menu-vertical li.toctree-l4.current > a {
		padding: .4045em 2.663em .4045em 5.663em;
	}

	.wy-nav-shift,
	.wy-nav-side {
		width: 360px;
		background-color: #1f233a;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23512a39' points='800 100 0 200 0 800 1600 800 1600 200'/%3E%3Cpolygon fill='%236e2340' points='800 200 0 400 0 800 1600 800 1600 400'/%3E%3Cpolygon fill='%238b1c48' points='800 300 0 600 0 800 1600 800 1600 600'/%3E%3Cpolygon fill='%23a8154f' points='1600 800 800 400 0 800'/%3E%3Cpolygon fill='%23c50e57' points='1280 800 800 500 320 800'/%3E%3Cpolygon fill='%23e2075e' points='533.3 800 1066.7 800 800 600'/%3E%3Cpolygon fill='%23FF0066' points='684.1 800 914.3 800 800 700'/%3E%3C/g%3E%3C/svg%3E");
		background-position: left;
		background-size: cover;
	}

	.wy-nav-content-wrap {
		margin-left: 360px;
	}

	div.versjon-old-warning-container {
        padding: 10px 232px 0 360px;
        background: #edf0f2;
    }



}

/* custom content settings */

.rst-content .hlist {
	width: 80%;
}

.rst-content h1 {
	margin-bottom: 34px;
}

.rst-content .code-block-caption {
	padding: 0;
	text-align: left;
}

/* main text margins */

p {
	margin-top: 8px;
	margin-bottom: 0px !important;
	font-size: 17px;
}

html {
	font-size: 17px;
}

p.caption {
	font-family: 'Roboto Condensed', sans-serif;
}


.section ul {
	margin-bottom: 8px !important;
}

ul {
	margin-top: 4px;
}

.rst-content .section>img {
	margin-top: 18px;
	margin-bottom: 0px;
}

.rst-content .section ol, .rst-content ol.arabic, .wy-plain-list-decimal, article ol {
	margin-bottom: 16px;
}

html.writer-html5 .rst-content dl.footnote>dt {
    line-height: 2.4rem;
}


/* for main page */

/* это рамка для баннера, в нее можно помещать контент */

/*.banner {
    font-family: 'Roboto',Arial,sans-serif;
	padding-top: 28px;
	padding-bottom: 28px;
	height: 100%;
	border: 2px solid #C1C1C1;
    	margin-top: 20px;
    	margin-bottom: 50px;
    	box-shadow: 18px 18px 0px 0px #C1C1C1;
} */

.custom-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	margin-top: -24px;
}

.custom-container .h1title {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 600;
	font-size: 32px;
	color: #464646;
	padding-bottom: 6px;
}

.custom-container .h2title {
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 600;
	font-size: 26px;
	color: #464646;
	padding-bottom: 6px;
}

/* columns on start page */

.columns-container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 64px;
    max-width: 100%;
}

.columns-container .column .caption {
    white-space: nowrap;
}



@media screen and (min-width: 768px) and (max-width: 1200px) {
	.banner .title-container {
		height: auto;
	}
}

/* текст внутри баннера */

.banner .title {
	color: #B20B0B;
	font-weight: 600;
	font-size: 24px;
	padding-bottom: 6px;
}

.banner .sub-title {
	font-size: 20px;
}

.buttons-container {
	display: flex;
	padding-top: 40px;
	padding-right: 28px;
	justify-content: flex-end;
}



.buttons-container a {
	margin-right: 20px;
}

.buttons-container button {
	background-color: #404040;
    border: none;
    color: white;
    font-family: 'Roboto Condensed',ff-tisa-web-pro,Georgia,Arial,sans-serif;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
	.buttons-container {
		padding-top: 20px;
		height: auto;
		display: block;
	}
	.buttons-container button {
		margin: 10px;
	}

    div.versjon-old-warning-container {
        padding: 10px 310px 0 360px;
        background: #edf0f2;
    }

}

@media screen and (max-width: 768px) {
	.buttons-container {
		padding-top: 20px;
		height: auto;
		display: block;
	}
	.buttons-container button {
		margin: 10px;
	}
	.banner .title-container {
		display: block; 
	}
}

.buttons-container button.red {
	background-color: #B20B0B;
}

.buttons-container button.red:hover {
	background-color: #d34c4c;
 }

 .buttons-container button:hover {
	background-color: #525252;
 }

/* wiki page */

.centered-text {
    margin-left: auto;
    margin-right: auto;
    font-family: 'Roboto',Arial,sans-serif;
	padding: 20px 0;
}

.centered-text .title-container {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 56px;
}

.centered-text .title {
    margin-left: auto;
    margin-right: auto;
	font-weight: 600;
	font-size: 24px;
	padding-bottom: 6px;
}

.buttons-container-centered {
	display: flex;
	margin-top: 30px;
	justify-content: flex-end;
}

.buttons-container-centered a {
    margin-left: auto;
    margin-right: auto;
}



.buttons-container-centered button {
	background-color: #B20B0B;
    border: none;
    color: white;
    font-family: 'Roboto Condensed',ff-tisa-web-pro,Georgia,Arial,sans-serif;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    width: 100%;
}

.buttons-container-centered button:hover {
	background-color: #d34c4c;
 }

/* side nav */


.wy-side-nav-search {
	background-color: #1f233a;
}

.wy-side-nav-search input[type=text] {
	border-color: #343131;
	border-radius: 6px;
}

.wy-nav-top {
	background-color: #343131;
}

@media screen and (max-width: 768px) {
	.wy-nav-content-wrap .wy-nav-content {
		padding: 0.8em;
	}

    .banner {
		margin-right: 0;
	}
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    .banner .title-container {
		margin-top: 0;
	}
	
	.buttons-container button {
		padding: 4px 12px;
		font-size: 13px;
	}

    div.versjon-old-warning-container {
        padding: 10px 310px 0 360px;
        background: #edf0f2;
    }


}

/* tables */

.wy-table-responsive {
	overflow: hidden;
}

.wy-table-responsive table td {
	white-space: pre-wrap; 
}

/* labels */

.ud-red-button {
    background: #bf4342;
    color: #fff;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: default;
	margin-bottom: 16px;
	border: none;
	font-family: 'Roboto Condensed',sans-serif;
	font-weight: bold;
}

.ud-violet-button {
	width: 80%;
    height: 56px;
	background-color: #4158D0;
	background-image: linear-gradient(225deg, #4158D0 0%, #C850C0 74%, #ff9442 100%);
    color: #fff;
    border-radius: 6px;
    cursor: default;
    margin: 24px 0px 38px 0px;
	border: none;
	font-family: 'Roboto Condensed',sans-serif;
	box-shadow: 6px 0 0 0 #ee7f6a inset;
	animation-delay: 3s;
    animation: shake 2s forwards; 
}

/* Ключевые кадры анимации */
@keyframes shake {
    0%, 20%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-1deg); /* Наклон влево */
    }
    30% {
        transform: rotate(1deg); /* Наклон вправо */
    }
}


.ud-blue-button {
    background: #468faf;
    color: #fff;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: default;
    text-transform: none;
	margin-bottom: 16px;
	border: none;
	font-family: 'Roboto Condensed',sans-serif;
	font-weight: bold;
}

.ud-second-button {
    background: #468faf;
    color: #fff;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: default;
    text-transform: none;
	margin-bottom: 16px;
	border: none;
	font-family: 'Roboto Condensed',sans-serif;
	font-weight: bold;
}

.ud-green-button {
    background: #709775;
    color: #fff;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: default;
    text-transform: none;
	margin-bottom: 16px;
	border: none;
	font-family: 'Roboto Condensed',sans-serif;
	font-weight: bold;
}

/* notes customisation */

.admonition.important {
	background: #FCFCFC !important;
	border: 2px solid #cfcfcf !important;
	margin-top: 10px;
}

.admonition.important .admonition-title {
	display: none !important;
}


.admonition.tip {
	background: #e3e7e5 !important;
	margin-top: 10px;
}

.admonition.tip .admonition-title {
	background: #97bc98 !important;
}

.admonition.note {
	background: #e7edf6 !important;
	margin-top: 10px;
}

.admonition.note .admonition-title {
	background: #97aacc !important;
}

.admonition.attention {
	background: #ffe0dd !important;
	margin-top: 10px;
}

.admonition.attention .admonition-title {
	background: #f07e7e !important;
}

.admonition.seealso {
	background: #e6dbe9 !important;
	margin-top: 10px;
}

.admonition.seealso .admonition-title {
	background: #b285c0 !important;
}


/* footer */

.rst-footer-buttons {
	margin-top: 36px;
    border-top: 1px solid #e1e4e5;
    padding-top: 24px;
}

/* code sample element */

.rst-content code, .rst-content tt, code {
	font-size: 85%;
	color: #404040;
}

.rst-content code.literal, .rst-content tt.literal {
	color: #404040 !important;
	background-color: #dcdcdc;
	padding: 1px 10px;
	border-radius: 5px;
	line-height: 25px;
	text-wrap: balance;
	word-wrap: break-word;
}


/* highlight code */

.highlight {
	background: #e7f7f5;
}

/* accordion */

details.sd-sphinx-override.sd-dropdown.sd-card.sd-mb-3 {
	margin-top: 20px;
	margin-bottom: 20px;
	border-top: 1px solid var(--sd-color-card-border);
	border-bottom: 1px solid var(--sd-color-card-border);
	background-color: var(--sd-color-card-background);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
	color: var(--sd-color-card-text);
	word-wrap: break-word;
	/* border-color: rgba(0, 0, 0, 0.125); */
	/* background-color: #f9f9f9; */
}

summary.sd-summary-title.sd-card-header {
	padding-top: 14px;
	padding-bottom: 14px;
	padding-left: 12px;
	font-size: 18px;
}

.sd-card-body {
	margin: 16px;
}


details.sd-dropdown .sd-summary-down {
	display: none;
	/* pointer-events: none;
    position: absolute;
    right: 1em;
    top: 1em; */
}

details.sd-dropdown .sd-summary-up {
	display: none;
	/* pointer-events: none;
    position: absolute;
    right: 1em;
    top: 1em; */
}

details.sd-dropdown .sd-summary-title {
    font-weight: 700;
}

:root {
    --sd-color-primary: #007bff;
    --sd-color-secondary: #6c757d;
    --sd-color-success: #28a745;
    --sd-color-info: #17a2b8;
    --sd-color-warning: #f0b37e;
    --sd-color-danger: #dc3545;
    --sd-color-light: #f8f9fa;
    --sd-color-muted: #6c757d;
    --sd-color-dark: #212529;
    --sd-color-primary-highlight: #0069d9;
    --sd-color-secondary-highlight: #5c636a;
    --sd-color-success-highlight: #228e3b;
    --sd-color-info-highlight: #148a9c;
    --sd-color-warning-highlight: #cc986b;
    --sd-color-danger-highlight: #bb2d3b;
    --sd-color-light-highlight: #d3d4d5;
    --sd-color-muted-highlight: #5c636a;
    --sd-color-dark-highlight: #1c1f23;
    --sd-color-primary-text: #fff;
    --sd-color-secondary-text: #fff;
    --sd-color-success-text: #fff;
    --sd-color-info-text: #fff;
    --sd-color-warning-text: #212529;
    --sd-color-danger-text: #fff;
    --sd-color-light-text: #212529;
    --sd-color-muted-text: #fff;
    --sd-color-dark-text: #fff;
    --sd-color-shadow: rgba(0, 0, 0, 0.15);
    --sd-color-card-border: rgba(0, 0, 0, 0.125);
    --sd-color-card-border-hover: hsla(231, 99%, 66%, 1);
    --sd-color-card-background: #f7f7f7;
    --sd-color-card-text: inherit;
    --sd-color-card-header: transparent;
    --sd-color-card-footer: transparent;
    --sd-color-tabs-label-active: hsla(231, 99%, 66%, 1);
    --sd-color-tabs-label-hover: hsla(231, 99%, 66%, 1);
    --sd-color-tabs-label-inactive: hsl(0, 0%, 66%);
    --sd-color-tabs-underline-active: hsla(231, 99%, 66%, 1);
    --sd-color-tabs-underline-hover: rgba(178, 206, 245, 0.62);
    --sd-color-tabs-underline-inactive: transparent;
    --sd-color-tabs-overline: rgb(222, 222, 222);
    --sd-color-tabs-underline: rgb(222, 222, 222);
    --sd-fontsize-tabs-label: 1rem;
}

