/* todo casti */

#head .category-menu.menu-btn { display: none; }

@media (max-width: 1020px) {
	* { box-sizing: border-box; }
	
	body { background-size: 5px auto; }
	
	#main { width: 100%; }

	/* hlavička */
	#head { height: 55px; }
	#head .logo { height: 55px; width: 156px; }
	#head .logo strong, #head .logo img { width: auto; height: auto; max-width: 100%; height: 55px; }
	
	/* content */
	/* části hlavní stránky */
	#content .content { height: auto; background: none; padding-bottom: 20px; }
	#content .content h2.start-test { position: static; top: auto; left: auto; display: block; margin: 20px auto; text-indent: 0; background-position: 50% 50%; }
	#content .content h2.start-test a { margin: 0 auto; }
	#content .content .next_tests_list h3 a { display: inline-block; }
	#content .content .next_tests_arrow { position: static; top: auto; left: auto; display: inline-block; width: 30%; margin: 0; text-align: right; padding-right: 35px; background-position: 100% 50%; box-sizing: border-box; vertical-align: top; }
	#content .content .next_tests_list { position: static; top: auto; left: auto; display: inline-block; width: 69%; max-width: 600px; text-align: left; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
	#content .content .next_tests_list #nexttest4descr.hidden, #content .content .next_tests_list #nexttest6descr.hidden { display: block; }
	
	#content .content .bt-wrapper { display: none !important; }
	
	#content .content .cite { margin: 25px auto; left: auto; top: auto; }
	
	#content .content .next_text { position: static; top: auto; left: auto; margin: 20px auto; }
	
	#content .stats { background: none; height: auto; display: table-cell }
	#content .stats .statsepf, #content .stats .statsep { display: none; }
	
	#content .stats .statitem { width: 32%; height: auto; margin: 0 0.5%; padding: 0; display: inline-block; text-align: center; box-sizing: border-box; }
	#content .stats .statitem #graph_bestiqtoday { margin: 10px auto; width: auto; max-width: 200px; background-size: 100% auto; box-sizing: border-box; }
	#content .stats .statitem #graph_bestiqstatestoday img, #content .stats .statitem #graph_iqgt120 img { margin: 0 auto; display: inline-block; max-width: 100%; width: auto; height: auto; box-sizing: border-box; }
	
	/* podstránka před přechodem do testu */
	#content .content-result .left-column { width: 100%; float: none; display: block; margin: 0; padding: 10px; box-sizing: border-box; }
	
	#content .content-result .left-column .halfcol { width: 100%; float: none; }
	
	#content .content-result .left-column .halfcol #start-test-form .submitBig { margin: 0 auto; }
	
	#content .content-result .right-column { width: 100%; float: none; display: block; margin: 0; padding: 15px; box-sizing: border-box; background: none; }
	#content .content-result .right-column .inner, #content .content-result .right-column .inner .next-tests { margin: 0; min-height: inherit; }
	
	/* samotnej test */
	/* TODO zazdít menu */
	#head .logo h1 { display: none; }
	#head .endTest { top: 5px; left: auto; right: 5px; position: absolute; }
	/* progress bar */
	#head .progress { width: 100%; float: left; }
	#head .progress .progressbar { max-width: 498px; width: 100%; margin: 20px auto; float: none; }
	#head .progress .progressbar .progressbar-label { max-width: 498px; width: 100%; }
	
	#content .content-question .left-column { width: 100%; margin: 0; padding: 15px; height: auto; background: none; }
	#content .content-question .left-column h1 { width: 100%; text-align: center; padding: 0; margin: 0; }
	#content .content-question .left-column .questionBoxTask { margin: 10px auto; float: none; max-width: 400px; width: 100%; }
	#content .content-question .left-column .questionBoxTask img { max-width: 100%; width: auto; height: auto; }
	
	#content .content-question .right-column { width: 100%; margin: 0; padding: 15px; height: auto; background: none; }
	.questionList { margin: 0 auto; width: auto; }
	.questionList form { display: inline-block; width: 47%; margin: 0 1%; max-width: 140px; }
	.questionList form .answer { width: 100%; }
	.questionList form .answer input[type="image"] { max-width: 100%; width: auto; height: auto; display: inline-block; margin: 0 auto; }
	.questionList.box4 { margin: 0 auto; }
	
	/* hotovy test - vyber veku */
	#content .content-testy #additionInfo fieldset { width: 100%; margin: 0; text-align: center; }
	#content .content-testy { padding: 5px; }
	#main .content-testy h1 { text-align: center; }
	#additionInfo label, #additionInfo .helptxt { width: 100%; margin: 10px 0; }
	#additionInfo input.input, #additionInfo select.input { float: none; }
	#main form input.submit { margin: 0 auto; }
	
	.einstein-fleft { width: 100%; }
	
	/* konec testu s tím návodem na SMS */
	#content .content-result .MainHeadline { text-align: center; }
	#content .content-result .einstein-fleft { text-align: center; }
	#content .content-result .left-column p.countdown_claim { float: none; }
	
	#countdown_dashboard { float: none; display: inline-block; text-align: center; margin: 15px auto; }
	
	/* Prehled testu */
	#content .content-testy .test { width: 100%; }
	
	/* Nacteni vysledku testu */
	#loading fieldset { width: 100%; }
	
	/* standadně je menu schované */
	#head .nav { display: none; }
	
	/* tlačítko menu */
	#head .category-menu.menu-btn { display: inline-block; float: right; margin: 12px; text-decoration: none; background: #50bfe1 url(../images/menu-ico.png) no-repeat 50% 50%; background-size: 18px 20px; color: #ffffff; padding: 5px; width: 28px; height: 30px; border-radius: 5px; font-weight: bold; text-transform: uppercase; text-indent: -999px; overflow: hidden; font-size: 0; }
	
	/* aby bylo menu funkční */
	.menuOpened #head { position: relative; }
	.menuOpened #head .nav .nav-left, .menuOpened #head .nav .nav-right { display: none; }
	
	/* samotné menu */
	.menuOpened #head .nav { display: block; position: absolute; top: 55px; bottom: auto; left: 0; right: 0; z-index: 3; height: auto; width: auto; background: #d5d5d5; box-shadow: 0 3px 3px 0 rgba(0,0,0,0.5); }
	.menuOpened #head .nav .nav-middle { width: 100%; height: auto; }
	.menuOpened #head .nav .nav-middle ul { float: none; }
	.menuOpened #head .nav .nav-middle ul li a { width: 100%; padding: 0; text-align: center; font-size: 14px; line-height: 52px; height: 52px; }
	
	/* schování menu při testu */
	#head .endTest+.category-menu { display: none; }
	
	#langmenu { position: static; }
	#langmenu .menu-first { font-size: 0; text-indent: -9999px; height: 50px; overflow: hidden; position: absolute; width: auto; right: 55px; top: 6px; padding: 15px 30px; }
	#langmenu .menu-first img { display: block; }
	
	#langmenu .down-list { width: 100% !important; position: absolute; top: 43px; left: 0; right: 0; padding: 20px 0; }
	#langmenu .down-list li { width: 180px; margin: 0 auto; padding: 8px; }
	#langmenu .down-list a { font-size: 14px; }
	
	#langmenu .down-list:hover { display: block !important; }
}

@media (max-width:520px) {
	#head .progress .progressbar { background: none; }
	#head .progress .progressbar .progressbar-start, #head .progress .progressbar .progressbar-end { display: none; }
}

@media (max-width:470px) {
	/* content */
	/* části hlavní stránky */
	#content .content .next_tests_arrow { background: none; position: relative; padding-bottom: 130px; padding-right: 0; text-align: center; width: 100%; height: 200px; text-indent: 0; font-size: 20px; }
	#content .content .next_tests_arrow:after { background: url(../images/next-tests.png) no-repeat 50% 50%; position: absolute; content: ' '; display: block; width: 115px; height: 80px; transform: rotate(90deg); bottom: 30px; left: 50%; margin-left: -57px; }
	
	#content .content .next_tests_list { width: 100%; box-sizing: border-box; padding: 15px; }
	#content .content .next_tests_list * { margin-bottom: 11px; }
	#content .content .next_tests_list h3 { margin-top: 25px; }
	#content .content .next_tests_list h3:first-of-type { margin-top: 0; }
	
	#content .content .cite, #content .content .cite * { box-sizing: border-box; }
	#content .content .cite { width: 100%; height: auto; font-size: 26px; padding: 20px; }
	
	#content .content .cite img.tr { left: auto; right: 15px; }
	#content .content .cite img.bl { top: auto; bottom: 0; left: 15px; }
	#content .content .cite p { padding-top: 30px; }

	#content .content .next_text { width: 100%; box-sizing: border-box; padding: 15px; }
	
	#content .stats .statitem { width: 100%; height: auto; margin: 0; padding: 15px; display: block; text-align: center; }
	
	.ml10 { margin: 0; }
}

@media (min-width: 720px) AND (max-width: 1019px) {
	#content .stats { display: block; height: 230px; }
}