html, body {
	height: 100%;
}

#q-body, #options_area {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#card {
	padding: 20px;
	margin: 20px auto;
}

#y-label {
	padding-left: 15px;
	vertical-align: middle;
}

#countdown, #q-countdown {
	font-family: sans-serif;
	color: #fff;
	display: inline-block;
	text-align: center;
	margin: auto;
}

#q-countdown {
	margin-left: 5px;
	font-size: 15px;
}

#countdown {
	font-size: 25px;
}

#countdown > h6 {
	font-weight: bold;
	color: black;
}

#time > div, #q-time > div {
	padding: 3px;
	border-radius: 2px;
	background: #00BF96;
	display: inline-block;
}

#time div > span, #q-time div > span {
	padding: 5px;
	border-radius: 2px;
	background: #00816A;
	display: inline-block;
	font-weight: bold;
}

.container {
	padding: 16px;
}

#qbody {
	height: 150px;
}

.main-card {
	padding: 15px;
	margin: 10px auto;
}

.ql-container {
	font-size: 20px;
}

.ql-editing {
	left: 0 !important;
	top: 0 !important;
}

.ql-snow .ql-tooltip[data-mode="formula"]::before {
	content: "Formül Girin" !important;
}

.background {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(0, 0, 0, .5);
	z-index: 1000;
	padding: 20%;
}

.click-img {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 10000;
	background: rgba(255, 255, 255, .7);
	overflow-y: scroll;
}

.img-big {
	display: block;
	margin: auto;
	width: 100%;
	height: auto;
}

.img {
	display: block;
	margin: auto;
	max-width: 400px;
	height: auto;
}

.option-img {
	display: inline;
	margin: auto;
	max-width: 200px;
}

.check-qst, .drag-qst {
	line-height: 2em;
	padding-left: 10px;
	border: 1px solid gray;
	border-radius: 5px;
	margin: 1px 0;
}

.check-qst > a, .drag-qst > a {
	box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.75);
}

.drag-qst:hover {
	cursor: all-scroll;
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}

.check-qst:nth-child(odd), .drag-qst:nth-child(odd) {
	border: 1px solid gray;
	background: rgba(211, 211, 211, .5);
}

.check-in-range, .drag-in-range {
	background: lightgreen !important;
}

.drag-in-range::before {
	content: attr(data-number);
}

#reset-card {
	padding: 60px 60px; 
}

.student-answer {
	background: lightblue;
}

.correct-answer {
	background: yellowgreen;
}

.wrong-answer {
	background: red;
}

.m-script {
	font-size: 75%;
	position: relative;
	line-height: 0;
	vertical-align: baseline;
}

.m-pre {
	color: #f8f8f2;
	white-space: pre-wrap;
	background-color: #23241f;
	overflow: visible;
	margin-top: 5px;
	border-radius: 3px;
	padding: 5px 10px;
}

.m-blockquote {
	border-left: 4px solid #ccc;
	margin-bottom: 5px;
	margin-top: 5px;
}

.modal {
	height: 100%;
	overflow: scroll;
}

@media (max-width: 422px) {
	#reset-card {
		padding: 24px 24px; 
	} 
}

@media only screen and (max-width: 500px) {
	.ql-container, #y-label, button {
		font-size: 0.9em !important;
	}

	.card {
		width: 95% !important;
	}

	#countdown {
		font-size: 1.1em !important;
	}

	h1 {
		font-size: 1.4em !important;
	}
}

@media (max-width: 767px) {
	.background {
		padding: 2%;
	}

	.img {
		max-width: 100%;
		max-height: auto;
	}

  .header {
    position: relative;
		width: 100%;
	}
	
  .header .top-navbar {
    padding-right: 15px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-align-items: center;
  }
  .header .top-navbar .navbar-collapse {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
  }
  .header .top-navbar .navbar-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .header .top-navbar .navbar-nav > .nav-item.show {
    position: static;
  }
  .header .top-navbar .navbar-nav > .nav-item.show .dropdown-menu {
    width: 100%;
    margin-top: 0;
  }
  .header .top-navbar .navbar-nav > .nav-item > .nav-link {
    padding-left: 0.50rem;
    padding-right: 0.50rem;
  }
  .header .top-navbar .navbar-nav .dropdown-menu {
    position: absolute;
  }
}