/* Copyright (c) 2011-2024 zadaniacke.pl */

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
         url('../fonts/OpenSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'),
         url('../fonts/OpenSans-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
	font-size: 18px;
	line-height: 1.6em;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
	color: #444;
	height: 100%;
}
body {
	height: 100%;
	margin: 0;
	text-align: center;
	display: flex;
  	flex-direction: column;
}
div#page-container {
	flex: 1 0 auto;
	position: relative;
}
div.curtain {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #fff;
}
header {
	box-sizing: border-box;
	border-bottom: 1px solid #ddd;
	position: sticky;
  	top: 0;
	width: 100%;
	background-color: #f6f6f6;
	z-index: 1;
	text-align: center;
}
strong {
	font-weight: 600;
}
span.nowrap {
	white-space:nowrap;
}
div.logo-welcome {
	padding-top: 30px;
	margin-bottom: 60px;
}
div.logo-welcome img {
	width: 80%;
	height: auto;
	max-width: 390px;
}
nav {
	display: flex;
  	flex-flow: row wrap;
	max-width: 1170px;
	margin: 0 auto;
	padding: 6px 0;
	align-items: center;
}
nav .menu-item {
	display: block;
	text-align: center;
	padding-top: 5px;
	font-size: 0.8rem;
  	flex: 0 1 20%;
}
nav div.menu-item {
	padding-top: 4px;
}
nav .menu-item.theory-search {
	  flex: 0 1 60%;
	  padding-top: 2px;
}
span.prep {
	font-size: 1.4rem;
}
span.prep_small {
	font-size: 0.9rem;
}
h1 {
	font-size: 1rem;
	line-height: 1.6em;
    font-weight: 400;
    margin: 0;
}
footer h1 {
    font-size: 0.7rem;
	line-height: 1.2em;
    padding-top: 10px;
}
h2 {
	padding: 10px 0;
	margin: 10px 0;
	font-size: 1.25rem;
	line-height: 1.4em;
	text-transform: uppercase;
}
.autocomplete {
	position: relative;
	display: inline-block;
	width: 100%;
}
.autocomplete-items {
	position: absolute;
	border: 1px solid #ddd;
	z-index: 99;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 357px;
	overflow-y: auto;
}
.autocomplete-items div {
	padding: 5px 10px;
	cursor: pointer;
	background-color: #fff;
	text-transform: none;
	text-align: left;
	font-weight: 400;
}
.autocomplete-items div:not(:last-child) {
	border-bottom: 1px solid #ddd;
}
.autocomplete-items div:hover {
	background-color: #f4f4f4;
}
.autocomplete-items strong {
	color: #006699;
}
.autocomplete-active {
	background-color: #e2e2e2 !important;
}
div.info_page {
	text-align: center;
	margin: 100px 15px 0 15px;
}
div#wrapper, div#welcome-wrapper {
	max-width: 1100px;
	margin: 25px auto;
	text-align: left;
}
div#wrapper.with-footer-navigation {
	padding-bottom: 80px;
}
@supports (-moz-appearance:none) {
	div#wrapper {
		margin-bottom: 105px;
	}
}
footer {
	box-sizing: border-box;
	flex-shrink: 0;
	border-top: 1px solid #ddd;
}
footer.default {
	padding-top: 10px;
	color: #555;
	font-size: 1rem;
	height: 85px;
}
footer.navigation {
	position: fixed;
	bottom: 0;
	width: 100%;
	text-align: center;
	z-index: 1;
	height: 80px;
	background-color: #f6f6f6;
}
.highlighted {
	color: #006699 !important;
}
div.welcome-page {
	text-align: center;
	margin: 80px auto 20px;
	max-width: 1000px;
}
div.welcome-page p {
	margin: 10px 0;
}
div.welcome-page-button {
	margin-top: 50px;
}
div.about-us {
	text-align: right;
	margin-top: 60px;
	font-size: 0.8rem;
}
p {
	text-indent: 0px;
}
a:link, a:hover, a:visited, a:active {
	color: #006699;
	text-decoration: none;
	outline: 0;
}
button {
	display: inline;
	background-color: #006699;
	border-radius: 4px;
	padding: 12px 14px;
	outline: none;
	color: white;
	border: none;
	cursor: pointer;
	font-size: inherit;
	font-family: inherit;
	user-select: none;
}
button.grey-button {
	background-color: #555;
}
button:hover {
	background: linear-gradient(to top, #006699, #008FD6);
}
button.grey-button:hover {
	background: linear-gradient(to top, #555, #848484);
}
button.big {
	border-radius: 8px;
	padding: 18px 20px;
}
.menu-item {
	color: #555;
	border-bottom: none;
	text-transform: uppercase;
	font-weight: 600;
}
a.menu-item {
	color: #555;
	transition: color 0.5s ease;
}
a.menu-item:hover, a.menu-item.active {
	color: #006699;
}
img {
	border: none;
}
.closed_task_answer {
	margin-top: 10px;
}
div.answer_part {
	margin-top: 30px;
}
.form_error {
	color: #CC0000;
	margin-bottom: 15px;
}
.form_error a {
	color: #CC0000; 
}
form#log-in, form#password-recovery, form#change-password, form#create-account {
	max-width: 600px;
}
input[type=text], input[type=email], input[type=password], textarea, select {
	font-size: 1rem;
	width: 100%;
	box-sizing : border-box;
	margin: 3px 0;
}
input, textarea, select {
	color: #555;
	padding: 15px;
	border: 1px solid #999;
	border-radius: 5px;
	font-family: inherit;
}
input.theory-search-input {
	font-size: 0.8rem;
	margin: 0;
}
textarea {
	resize: none;
	line-height: inherit;
}
#good-answer-sign, #wrong-answer-sign {
	margin-left: 15px;
}
#good-answer, #good-answer-sign {
	color: #006699;
}
#wrong-answer, #wrong-answer-sign {
	color: #CC0000;
}
.good-answer {
	background-color: #006699 !important;
}
.wrong-answer {
	background-color: #CC0000 !important;
}
#good-answer, #good-answer-sign, #wrong-answer, #wrong-answer-sign, a#practice, a#learning, a#solution {
	display: none;
}
table {
	border-collapse: collapse
}
div.overflow-content {
	overflow-x: auto;
	overflow-y: hidden;
}
div[id^="placeholder"] {
	margin: 20px 0;
	line-height: 1em;
}
div[id^="placeholder_cur"] {
	padding: 10px 20px;
}
div[id^="placeholder_theory"] {
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}
div.progress-border {
	background-color: #ddd;
	border: none;
	margin-bottom: 3px;
}
div#main-progress-bar {
	margin-top: 5px;
}
div.progress-value {
	background-color: #006699;
	height:5px;
}
div.theory p, div.theory ul, div.theory div.theory_important, div.curiosity p, div.curiosity ul, div.solution p, div.solution ul, div.tos p:not(.tos-point), div.tos ul {
	text-align: justify;
	hyphens: auto;
}
div.theory_important {
	margin-top: 1px;
	margin-bottom: 1px;
	padding: 5px 10px;
	border-style: solid none;
	background-color: #FFFAD6;
	border-color: #EDE4A1;
	border-width: 2px;
	display: inline-block;
}
div.theory > :last-child {
	margin-bottom: 0;
}
div.theory_caption {
	text-align: center;
	font-size: 0.8em;
	line-height: 1.7em;
	margin: 10px auto 40px;
	max-width: 50%;
}
table.theory_table, table.theory_real_table {
	white-space: nowrap;
}
table.task_table {
	margin-top: 10px;
	margin-bottom: 10px;
}
table.theory_table td, table.solution_table td {
	padding-left: 5px;
	padding-right: 5px;
}
table.theory_table tr td:first-child, table.solution_table tr td:first-child {
	padding-left: 0;
}
table.theory_real_table td, table.theory_real_table th, table.task_table td, table.task_table th, table.sol_table td, table.sol_table th {
	padding-top: 3px;
	padding-bottom: 3px;
	padding-left: 7px;
	padding-right: 7px;
	border: 1px solid #D0D0D0;
	text-align: center;
}
table.theory_real_table th {
	font-weight: 400;
	background-color: #f6f6f6;
}
div.task_theory table.theory_real_table th {
	background-color: #ececec;
}
table.task_table th {
	font-weight: 400;
}
table.sol_table th {
	font-weight: 400;
	background-color: #dcdcdc;
}
div.curiosity p:first-child, h2+p {
	margin-top: 0px;
}
div.solution, div.task_theory {
	padding: 20px;
	margin-top: 30px;
	border-style: solid none;
	border-width: 1px;
	border-color: #D0D0D0;
}
div.task_theory {
	background-color: #f6f6f6;
}
div.solution {
	background-color: #ecf6f6;
	position: relative;
}
div.task-tab-header {
	display: flex;
}
div.task-tab-header div:first-child {
	flex: 100%;
}
div.task-tab-header div.close {
	flex: 30px;
	text-align: right;
	font-size: 1.2rem;
	line-height: 1.2rem;
}
i.close-tab, i#close-cookie-info {
	cursor: pointer;
}
div.bug_suggestion {
	display: none;
	margin: 20px 0 30px;
}
div.task_content_list {
	padding-top: 5px;
}
div#theory_container {
	margin: 30px 0 20px;
	display: none;
}
div.table_spacing {
	display: inline-block;
	width: 12px;
}
div.info_elem {
	display: none;
}
div.modal {
	position: fixed;
	z-index: 1;
	padding-top: 20vh;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: none;
}
.modal-box {
	padding: 30px;
	background-color: #fff;
	margin: auto;
	border: 1px solid #999;
	width: 400px;
	min-height: 80px;
}
.modal-box a:link, .modal-box a:hover, .modal-box a:visited, .modal-box a:active {
	color: #4A4A4A;
	text-decoration: none;
	outline: 0;
}
.modal-box a:link, .modal-box a:visited, .modal-box a:active {
	border-bottom: dotted 1px;
}
.modal-box a:hover {
	border-bottom: solid 1px;
}
div.cookie_info {
	padding: 10px 30px;
	border-bottom: 1px solid #ddd;
	background-color: #fff;
}
div.theory_example {
	border: 2px dashed #006699;
	margin: 15px 0px;
	padding: 0px 20px;
}
.small-text {
	font-size: 0.8rem;
	line-height: 1.6em;
}
div.theory .small-text {
	color: #888;
}
form#task-selection div.small-text {
	margin-bottom: 25px;
}
section.about-us li {
	margin-bottom: 2rem;
}
div.buy-section {
	text-align: center;
	margin: 20px 0 0;
	padding: 20px 20px 10px;
}
div.buy-section-text {
	margin-bottom: 20px;
}
div.buy-section img#tpay-logo {
	max-width: 90px;
	margin-top: 40px;
}
span.math .katex-display > .katex {
	display: inline-block;
	white-space: nowrap;
	max-width: 100%;
	overflow-x: scroll;
	text-align: initial;
}
span.math .katex {
	font: normal 1.1em KaTeX_Main, Times New Roman, serif;
	white-space: normal;
	text-indent: 0;
}
div.overflow-content span.math .katex {
	white-space: nowrap;
}
p span.math .katex {
	line-height: 1.4em;
}
label {
	cursor: pointer;
	user-select: none;
}
.checkbox-container {
	line-height: 25px;
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 10px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.checkbox-container.disabled {
	cursor: default;
}
.checkbox-container.task-ranges {
	margin-bottom: 5px;
}
.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	border-radius: 4px;
	background-color: #ddd;
}
.checkbox-container:hover input ~ .checkmark {
	background-color: #bbb;
}
.checkbox-container.disabled:hover input ~ .checkmark {
	background-color: #ddd;
}
.checkbox-container input:checked ~ .checkmark {
	background-color: #006699;
}
.checkbox-container.disabled:hover input:checked ~ .checkmark {
	background-color: #006699;
}
form.closed_task_answer .checkbox-container input:checked ~ .checkmark {
	background-color: #555;
}
form.closed_task_answer .checkbox-container.disabled:hover input:checked ~ .checkmark {
	background-color: #555;
}
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}
.checkbox-container .checkmark:after {
	left: 9px;
	top: 5px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
h3 {
	font-size: 1.0rem;
	font-weight: 400;
}
div.theory_list h3 {
	cursor: pointer;
}
div.theory_list div.theory_range {
	display: none;

}
div.logo-line {
    text-align: right;
    margin-bottom: 15px;
}
div.logo-line img {
    width: 161px;
	height: auto;
}
p.learning-step {
	margin-top: 30px;
}
div.task-info {
	margin-top: 35px;
}
div.no_page {
    text-align: center;
	font-family: 'Open Sans', sans-serif;
	font-size: 24px;
	font-weight: 400;
	margin: 80px 15px 0 15px;
}
i#refresh-captcha {
	font-size: 30px;
	cursor: pointer;
}
p.tos-point {
	font-weight: bold;
	margin-top: 50px;
}

@media only screen and (max-width: 1200px) {
	div#wrapper {
		margin: 25px 50px;
	}
	@supports (-moz-appearance:none) {
		div#wrapper {
			margin-bottom: 105px;
		}
	}
}

@media only screen and (max-width: 850px) {
    nav .menu-item span.menu-item-text {
        font-size: 0.7rem;
	}
	div.welcome-page {
		margin: 40px auto 20px;
	}
	div#wrapper {
		margin: 20px 50px;
	}
	@supports (-moz-appearance:none) {
		div#wrapper {
			margin-bottom: 71px;
		}
	}
	.autocomplete {
		width: 95%;
	}
	input.theory-search-input {
		padding: 10px 15px;
	}
	div.theory_caption {
		max-width: 60%;
	}
}

@media only screen and (max-width: 600px) {
	html {
		font-size: 16px;
	}
    nav .menu-item span.menu-item-text {
        font-size: 0.65rem;
	}
	div#wrapper {
		margin: 20px 15px;
	}
	div#welcome-wrapper {
		margin: 20px auto;
		padding: 0 20px;
	}
	@supports (-moz-appearance:none) {
		div#wrapper {
			margin-bottom: 67px;
		}
	}
	.autocomplete {
		width: 90%;
	}
	div#wrapper.with-footer-navigation {
		padding-bottom: 74px;
	}
	footer.navigation {
		height: 74px;
	}
	div.welcome-page {
		margin: 20px auto;
	}
	div.solution, div.task_theory {
		padding: 10px;
	}
	.modal-box {
		width: 250px;
	}
	.autocomplete-items {
		max-height: 250px;
	}
	div.theory_caption {
		max-width: 70%;
	}
	p.learning-step {
		margin-top: 25px;
	}
	div#preparation span.menu-item-text {
		display: none;
	}
	span.prep {
		font-size: 1.7rem;
	}
	span.prep_small {
		font-size: 1.1rem;
	}
}