@font-face {
    font-family: 'BebasNeue';
    src: url('../fonts/BebasNeue.otf');
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Regular.ttf');
}

body, html {
    width: 100%;
    height: 100%;
}

.deletecat {
	cursor: pointer;
}

h1, h2, h3:not(.game-question), h4, h5, h6 {
	font-family: 'BebasNeue';
}

body {
    margin: 0;
    display: table;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

header, div.center, footer {
    background: rgba(255, 255, 255, .7);
}

header {
    display: table-header-group;
    padding: 10px 0;
    font-family: 'BebasNeue';
    font-size: 20px;
}

header > * {
    display: inline-block;
    vertical-align: middle;
    width: 33%;
}

header img {
    height: 70px;
    padding: 5px;
}

header nav {
    display: inline-block;
}

header > *:last-child {
    text-align: right;
}

header > *:last-child img {
    height: 40px;
    width: 40px;
    padding: 0;
    cursor: pointer;
}

header #report {
    display: inline-block;
    margin-left: 10px;
}

header #points-text {
    display: inline-block;
    float: right;
    padding-top: 10px;
    margin-left: 8px;
}

nav a {
    color: black;
    text-decoration: none;
    padding-right: 10px;
}

.center {
    display: table-cell;
    padding-bottom: 76px;
}

.center:not(.profile-center) {
    vertical-align: middle;
}

#uploading {
	display: none;
}

main {
    margin: 0 auto;
    width: 80%;
}

main.main-answers {
    width: 100%;
}

footer {
    display: table-footer-group;
    font-size: 14px;
    text-align: center;
}

#profile header {
    box-shadow: 2px 1px 4px #A9A9A9;
    margin-bottom: 10px;
}

#profile div.center.profile-center {
    padding-top: 15px;
}

#profile div.center.profile-center * {
    font-family: Arial !important;
}

#book, #help, #facebook-icon, #discussion {
    position: fixed;
    bottom: 15px;
    width: 76px;
    height: 76px;
}

#book img, #help img, #facebook-icon img, #discussion img {
    width: 76px;
    height: 76px;
    cursor: pointer;
}

#book {
    left: 15px;
    height: 100px;
    transition: left 300ms;
}

#book img {
    height: 100px;
}

#help {
    right: 15px;
    height: auto;
    width: auto;
    transition: right 300ms;
}

#help img {
    float: right;
}

#facebook-icon {
    left: 15px;
}

#facebook-icon a {
    margin: 0;
}

#discussion {
    left: calc(50% - 38px);
}

.notice {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #fa3e3e;
    color: #f5f5f5;
    padding: 3px 4px;
    border-radius: 2px;
    text-align: center;
    font-size: 14px;
    font-family: BebasNeue;
    cursor: pointer;
}

.notice.notice-unread {
    background-color: #888;
}

#report #report-form {
    display: none;
    position: absolute;
    padding: 15px;
    right: 10px;
    width: 370px;
    height: 275px;
    border-radius: 5px;
    background: #e7e7e7;
    font-family: BebasNeue;
    font-weight: normal;
    text-align: left;
    z-index: 2;
}

#report #report-form h3 {
    margin-bottom: 0;
}

.questioneditiframe {
	display: block;
    width: 100%;
    border: 1px solid;
    height: 500px;
    margin-bottom: 30px;
}

.custom-form input[type=text], .custom-form input[type=email] {
    width: 212px;
    box-sizing: border-box;
    padding: 3px 5px;
}

.custom-form input[type=email] {
    width: 100%;
}

.custom-form textarea {
    width: 100%;
    height: 100px;
    padding: 3px 5px;
    margin: 8px 0;
    box-sizing: border-box;
    resize: none;
    font-family: Arial;
}

.custom-form textarea:placeholder-shown, .custom-form input:placeholder-shown {
    font-family: Arial;
}

.button {
	margin: 10px;
	border: none;
	padding: 10px;
	color: black;
	background-color: #76C350;
	border-radius: 5px;
	text-decoration: none;
	display: inline-block;
}

.button-larger {
    margin: 18px 0;
    min-width: 100px;
}

.button-larger:focus {
    outline: 0;
}

.button-hover {
    transition: .12s opacity;
}

.button-hover:hover, .button-active {
    cursor: pointer;
    opacity: .85;
}

.custom-form button {
    border: 2px solid green;
    padding: 3px 6px;
    text-align: center;
    vertical-align: baseline;
    border-radius: 3px;
    transition: 250ms ease-in-out;
    background-color: green;
    color: #FFFFFF;
    cursor: pointer;
}

.custom-form button:focus {
    outline: 0;
}

.custom-form .submit {
    display: block;
    margin: 18px auto 0;
    padding: 6px 12px;
}

#report #report-form #report-form-close {
    float: right;
    cursor: pointer;
    font-size: 30px;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
}

button.sort-check {
    color: #fff;
    background: rgb(59,89,152);
    border: 0;
    margin-top: 30px;
    cursor: pointer;
    transition: background 250ms ease;
    border-radius: 3px;
}

button.sort-check:hover {
    background: rgba(59,89,152,.7);
}

button.sort-check:focus {
    outline: 0;
}

.game-question, .answer, .game-question + .readability-text {
    font-family: Arial!important;
}

.game-question *, .answer *, .game-question + .readability-text * {
    font-family: Arial!important;
}

.sort {
    display: table;
    margin: auto;
    width: fit-content;
    list-style-type: none;
    padding-left: 0;
}

.sort .answer {
    display: list-item;
    margin-top: 15px;
    float: none;
    cursor: move;
}

.sort .answer, button.sort-check {
    padding: 8px 20px;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
}

.answer, button#understand {
    display: inline;
    float: left;
    padding: 3px 8px;
    border: 3px solid green;
    text-align: center;
    vertical-align: top;
    border-radius: 3px;
    transition: all 250ms ease-in-out, visibility 1ms, top 1ms, left 1ms;
    background-color: green;
    color: #FFFFFF;
}

button#understand {
    display: block;
    float: none;
    margin: auto;
    cursor: pointer;
}

.answer:focus {
    outline: 0;
}

div.chose .answer.random {
    cursor: move;
}

.answer.random {
    position: absolute;
    left: 0;
}

.answer.right {
    background-color: #FFFB32;
    color: #000;
    border: 3px solid #FFFB32;
}

.answer.wrong {
    background-color: #B20000;
    border: 3px solid #B20000;
}

.chose-buttons button.answer {
    padding: 6px 12px;
    margin: 5px 10px;
    cursor: pointer;
    float: none;
    min-height: 35px;
}

.chose-buttons button.answer:hover {
    filter: brightness(80%);
}

.area, .chose {
    width: 80%;
    margin: auto;
    height: 300px;
    border: 1px solid black;
    position: relative;
}

.chose {
    width: 80%;
    box-sizing: border-box;
    float: left;
}

.homes {
    width: 20%;
    float: left;
    height: 300px;
}

.homes .home {
    box-sizing: border-box;
    border: 3px dashed #999;
    background: #eee;
    display: table;
    width: 100%;
    transition: 250ms ease-in-out;
}

.homes .home.right {
    background-color: #FFFB32;
    border: 3px dashed #E5E12D;
}

.homes .home.wrong {
    background-color: #B20000;
    border: 3px dashed #7C0000;
}

.homes .home p {
    margin: 0;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
    word-break: break-all;
}

.person {
    display: inline-block;
    position: absolute;
    height: 50px;
}

.person img {
    height: 50px;
    cursor: move;
}

.mirror {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.insert {
    font-size: 19px;
}

.insert input {
    padding: 5px;
}

input.right {
    border: 2px solid #006600;
    background-color: #FFFDC1;
    background-image: url('../img/checkmark.png');
    background-repeat: no-repeat;
    background-position: right;
}

input.wrong, textarea.wrong {
    border: 2px solid #B20000;
}

.fblogin {
	display: inline-block;
	padding: 10px;
	border-radius: 0.2em;
	text-decoration: none;
}

.profile {
    min-height: 350px;
    box-shadow: 0px 4px 4px #EFEFEF;
}

.profile-panel {
    margin: 0 30px;
    float: left;
    text-align: center;
}

.profile-img {
    height: 200px;
}

.profile-rank.profile-rank-disabled {
    opacity: 0.62;
    background-color: transparent;
}

.profile-rank {
    display: block;
    text-align: center;
    margin: 3px 0;
}

.profile-rank:last-of-type {
    margin-bottom: 12px;
}

.profile-name {
	display: block;
	font-size: 20px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.profile-text {
    font-weight: bold;
}

.top-players {
    float: right;
    width: 330px;
    font-weight: bold;
}

.top-players ol {
    margin: 0;
    margin-top: 10px;
}

.top-players ol:nth-child(2) {
    margin-top: 0;
}

.table {
	width: 100%;
}

.table.answers {
    margin-top: 10px;
    border-spacing: 0;
    border: 3px solid #000;
    border-radius: 20px 20px 5px 5px;
}

.table.answers th:nth-child(1) {
    width: 27%;
    border-radius: 15px 0 0;
}

.table.answers th:nth-child(2n) {
    width: 38%;
}

.table.answers th:nth-child(3n) {
    width: 35%;
    border-radius: 0 15px 0 0;
}

.table.answers th {
    background-color: #1aa3ff;
    text-transform: uppercase;
}

.table.answers td, .table.answers th {
    border: 1px solid #000;
    margin: 0;
    color: #000 !important;
}

.table.answers img {
    max-width: 100%;
    height: auto !important;
}
 
.table th {
  color:#D5DDE5;;
  background:#1b1e24;
  font-size:20px;
  font-weight: normal;
  padding:24px;
}

.table th:first-child {
  border-top-left-radius:3px;
}
 
.table th:last-child {
  border-top-right-radius:3px;
}
  
.table tr {
  color:#666B85;
  font-size:16px;
  font-weight:normal;
}
 
.table tr:nth-child(odd) td {
  background:#EBEBEB;
}

.table tr:last-child td:first-child {
  border-bottom-left-radius:3px;
}
 
.table tr:last-child td:last-child {
  border-bottom-right-radius:3px;
}
 
.table td {
  background:#FFFFFF;
  padding:20px;
}

.searching {
    clear: both;
    margin-bottom: 5px;
    padding-top: 20px;
    font-size: 16px;
}

.searching .input-searching {
    padding: 3px 5px;
    margin: 0 15px;
    width: 220px;
}

.searching button {
    font-size: 15px;
    padding: 5px 8px;
    margin-right: 15px;
    margin-top: 5px;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
}

.searching button:focus, .searching select:focus {
    outline: 0;
}

.searching select {
    padding: 2px 3px;
}

.filter-right-answers, .table td.right_answer {
    background-color: #37bc5c !important;
}

.filter-bad-answers, .table td.bad_answer {
    background-color: #d71f39 !important;
}

.maincards {
    padding: 0;
    list-style: none;
}

li.maincard {
    display: block;
    width: 50%;
    margin-bottom: 32px;
}

.maincard {
	display: inline-block;
	margin: 10px;
	overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: 100ms;
}

.maincard[deactive] {
	opacity: 0.7;
}

.maincard img {
	display: block;
	width: 300px;
	height: 200px;
	object-fit: cover;
}

.maincard span {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #1aa3ff;
    font-family: 'BebasNeue';
    font-size: 34px;
}

li.maincard span {
	display: inline-block;
	width: calc(100% - 100px);
}

li.maincard {
	background-color: white;
}

li span.progress {
	display: inline-block;
	width: 60px;
	background: transparent;
}

.win {
	background-color: #4b830d!important;
}

.progress.win {
	background-color: #7cb342!important;
}

.maincard:hover {
	opacity: 0.7;
}

li.maincard + .maincard-taskcount {
    display: none;
    padding: 7px 14px;
    border-radius: 4px;
    color: #FFF;
    background-color: #000;
    position: absolute;
    font-size: 17px;
}

li.maincard + .maincard-taskcount:before {
    border: 10px solid transparent;
    border-right: 10px solid #000;
    position: absolute;
    left: -20px;
    top: 5px;
    display: inline-block;
    width: 0;
    height: 0;
    content: "";
}

.popup-background, .popup {
    opacity: 0;
    display: none;
}

.popup-background {
    background: rgba(0, 0, 0, .6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup {
    background-color: #fff;
    padding: 50px;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    z-index: 10001;
}

.popup-close {
    position: absolute;
    right: 5px;
    top: 0;
}

.popup-close-link {
    color: #000;
    font-size: 40px;
    text-transform: lowercase;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.popup-big {
    max-width: 90%;
    height: 80%;
    text-align: center;
}

.popup-big img {
    max-height: 80%;
    margin: 10px 20px;
}

.readability-text {
    background: rgba(255, 255, 255, .5);
    padding: 10px 20px;
    border-radius: 15px;
    margin-bottom: 8px;
}

.better-background {
    background: rgba(128, 128, 128, .23);
    padding: 10px 20px;
    border-radius: 15px;
    margin: 15px 5px 5px;
}

.profiles img {
	object-fit: cover;
	width: 100px;
	height: 100px;
	display: inline-block;
}

.profiles a {
	display: inline-block!important;
}

div.home-text {
    font-size: 32px;
    line-height: 35px;
}

div.home-text:not(:first-child) {
    margin-top: 60px;
}

.home-text, .home-text h1, .home-text h2 {
    font-family: 'BebasNeue';
    font-size: 42px;
    line-height: 45px;
    margin: 0;
    margin-bottom: 5px;
    font-weight: normal;
}

.home-text p {
    margin: 20px 0;
    font-size: 26px;
}

.home-text p:last-child {
    margin-bottom: 23px;
}

.end {
	font-family: 'BebasNeue';
    font-size: 24px;
}

.end .button, header .button {
    padding: 5px 15px;
    background-color: #4ab728;
    border-radius: 5px;
    font-size: 24px;
    margin-top: 10px;
}

.end p {
	font-size: 28px;
	margin: 10px 0;
}

.end a {
	display: table;
	text-decoration: none;
    font-size: 14px;
    color: black;
    margin-bottom: 10px;
}

.end #points {
    margin-top: 0;
}

header .button {
    text-decoration: none;
    display: inline-block;
    color: black;
    margin: 0 15px 5px 0;
}

header progress {
    width: 80%;
    min-width: 120px;
}

progress[value]::-webkit-progress-bar, progress[value] {
  overflow: hidden;
  border-radius: 20px;
  background-color: #eee;
}

progress[value]::-webkit-progress-value, progress[value]::-moz-progress-bar {
  border-radius: 20px;
  background-color: green;
}

div.game-progress {
    font-size: 19px;
    clear: both;
}

div.game-progress div.game-progress-text {
    line-height: 19px;
}

.over {
    border: 3px dashed #999 !important;
    background: #eee !important;
    color: #eee !important; /*Hide text*/
}

.img-task {
    max-width: 95%;
    max-height: 300px;
}

.text-center {
    text-align: center;
}

.fbicon {
	display: table;
	margin: 10px auto;
}

.fbblue {
	background-color: #4C69BA!important;
	color: #FFF!important;
}

#book-text, #help-text {
    position: fixed;
    bottom: 0;
    /*word-break: break-all; Párkát se stalo že řesšení bylo jedno dlouhé slovo bez mezer toto je oprava */
    background: #f5f5f5;
    overflow-y: auto;
    transition: 300ms;
    padding: 2%;
    box-sizing: border-box;
    box-shadow: 2px 2px 5px 1px grey;
}

#book-text {
    width: 23%;
    height: 80%;
    left: -24%;
}

#help-text {
    width: 238px;
    height: 240px;
    right: -240px;
}

.best-players {
    max-height: 175px;
    overflow: auto;
}

.about-text, .about-text * {
    font-family: 'OpenSans';
}

.sort-check-arrow {
    color: #000;
    font-weight: bold;
    font-size: 120%;
}

.loginbox {
	width: 300px;
	background-color: white;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	margin: auto;
}

.addq button, .addq .button {
	margin: 10px;
	border: none;
	padding: 10px;
	color: white;
	background-color: #76C350;
	border-radius: 5px;
	text-decoration: none;
	display: inline-block;
}

.flex-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 5px;
}

.flex-container input[type='text'], .flex-container input[type='number'], .flex-container input[type='password'], .flex-container .cke_textarea_inline, .flex-container select {
	flex-grow: 10;
}

.flex-container span {
	padding-right: 10px;
}

.flex-container input[type='number'], .flex-container select, .flex-container input[type='text'], .flex-container input[type='password'] {
	border: 1px solid rgb(169, 169, 169);
	background-color: transparent;
	padding: 2px;
}

.checkboxcontainer {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkboxcontainer a {
	text-decoration: none;
    padding-top: 4px;
    display: block;
}

.checkboxcontainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border: 2px solid black;
}

.checkboxcontainer .checkmark:hover {
    filter: brightness(85%);
}

.checkboxcontainer input:checked ~ .checkmark {
    background-color: #76C350!important;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkboxcontainer input:checked ~ .checkmark:after {
    display: block;
}

.checkboxcontainer .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);
}

#searching {
    border-radius: 20px;
    padding: 10px;
    border: none;
    background-color: rgba(116, 136, 150, 0.35);
}

#search-category, #search-player:not(.input-searching) {
    margin: auto;
    width: 100%;
    max-width: 370px;
    display: block;
    border-radius: 20px;
    padding: 10px;
    border: none;
    background-color: rgba(116, 136, 150, 0.35);
    margin-bottom: 30px;
}

#search-category:focus, #search-player:not(.input-searching):focus, #searching:focus {
    outline: 0;
}

form input#search-player:not(.input-searching) {
    margin: 15px 0 0;
}

#search-player:not(.input-searching).input-search-icon {
    background-image: url('../img/search.png');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 8px);
    background-position-y: center;
    max-width: 350px;
    padding-right: 28px;
}

.search-profile {
    display: inline-block;
    text-align: left;
    width: 350px;
    font-size: 17px;
    line-height: 19px;
    margin: 8px;
}

.search-profile .profile-img {
    height: 150px;
    width: 150px;
}

.comments {
    padding-top: 40px;
}

.comments .comment {
    width: 100%;
    clear: both;
}

.comments .comment + .comment {
    padding-top: 15px;
}

.comments .comment img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    float: left;
}

.comments .comment .comment-content {
    padding: 8px 10px;
    border-radius: 20px;
    background: rgba(116, 136, 150, 0.18);
    margin-bottom: 3px;
    margin-left: 90px;
    box-shadow: 2px 2px 15px #888;
}

.comments .comment .comment-author {
    margin-right: 8px;
}

.comments .comment .comment-info {
    font-size: 12px;
    margin-left: 99px;
}

.comments-form {
    clear: both;
    padding-top: 15px;
}

.comments-form textarea {
    width: 75%;
    min-width: 275px;
    min-height: 100px;
    margin: 8px auto;
    resize: vertical;
    display: block;
}

.comments-form .button {
    margin: auto;
    cursor: pointer;
}

.comments-form .button:focus, .comments-form textarea {
    outline: 0;
}

#popup-discussion {
    max-height: 90%;
    min-width: 70%;
    box-sizing: border-box;
    padding: 25px 50px;
    overflow: auto;
}

#popup-discussion h2 {
    margin: 0;
    padding: 0;
}

.iframe {
    padding-top: 65px;
}

.iframe iframe {
    max-width: 100%;
    border: 1px solid #CDCDCD;
}

a.login-button {
    background-color: #1aa3ff;
    margin: 0;
}

#filters {
    padding: 10px 0;
}

#filters h2 {
    margin: 3px 0;
}

#filters div {
    display: inline-block;
    margin: 0 10px;
    float: none;
    padding: 6px 13px;
    font-size: 18px;
    text-transform: uppercase;
}

.ladders {
    display: inline-block;
    margin-left: 20px;
    margin-top: 40px;
}

.ladders .top-players {
    float: none;
    text-align: left;
    font-size: 18px;
    width: 300px !important;
    display: inline-block;
    margin: 20px;
}

@media screen and (max-width: 1470px) {
    .top-players {
        margin: 20px 0;
        width: calc(100% - 7px);
        box-sizing: border-box;
    }
}

@media screen and (max-width: 1366px) {
    main {
        width: 80%;
    }
    
    li.maincard {
        width: 65%;
    }
    
    #popup-discussion {
        min-width: 85%;
    }
}

@media screen and (max-width: 1100px) {
    .profile-panel {
        margin: 0 7px;
    }
}

/* Mobil */
@media screen and (max-width: 800px) {
    header img {
        height: 40px;
    }
    
    .center {
        padding-bottom: 50px;
    }
    
    .table th {
        padding: 24px 4px;
    }
    
    .table td {
        padding: 20px 4px;
    }
    
    .table input {
        width: 90px;
    }
    
    li.maincard {
        width: 100%;
    }
    
    .popup {
        box-sizing: border-box;
        padding: 25px;
        max-width: 90%;
        max-height: 90%;
        overflow: auto;
    }
    
    #book, #facebook-icon, #book img, #help img, #facebook-icon img, #discussion, #discussion img {
        width: 50px;
        height: 50px;
    }
    
    #book, #book img {
        height: 60px;
    }
    
    #book-text {
        width: 66%;
        left: -67%;
        height: 100%;
    }
    
    #help-text {
        height: 80%;
    }
    
    #discussion {
        left: calc(50% - 25px);
    }
    
    #popup-discussion {
        padding: 25px 4px;
    }
    
    a.login-button {
        padding: 5px 10px;
        font-size: 20px;
    }
}

@media screen and (max-width: 400px) {
    main {
        width: 90%;
    }
}

/* Skrytí progress baru pro Firefox, protože se přes JavaScript vytvoří vlastní */
@-moz-document url-prefix() {
    header progress {
        visibility: hidden;
    }
}
