@charset "utf-8";
/* ---------- reset & general setting ---------- */
html, body, div, header, nav, aside, article, section, footer, figure, figcaption, img, p, canvas, span, blockquote, ol, ul, li, a, h2, h3, h4, table, tr, td, form, fieldset { margin: 0; 	padding: 0; border: 0; vertical-align: baseline; }
* { box-sizing: border-box; transition: all 500ms ease; }
html { font-size: 16px; }
body { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; background: #eef; }
a { text-decoration: none; color: blue; }

/* ---------- cac nhom chinh ----------  */
.vgb { position: relative; width: 100%; }
header { position: relative; width: 100%; height: 72px; background-image: url(db_4.png); display: flex; justify-content: center; align-items: center; }
.r-menu-button { position: absolute; top: 20px; left: 20px; width: 32px; height: 32px; }

/* ---------- dac tinh block ----------  */
.dsp0 { display: none; }
.fb { display: flex; width: 100%; }
.mb0 { margin-bottom: 0; }
.of-au { overflow: auto; }
.b-cen { margin-left: auto; margin-right: auto; }

/*  ---------- kich thuoc ---------- */
.w15 { width: 15%; }
.w20 { width: 20%; }
.w30 { width: 30%; }
.w40 { width: 40%; }
.w60 { width: 60%; }
.w72 { width: 72%; }
.w6r { width: 6rem; }
.w8r { width: 8rem; }
.w16r { width: 16rem; }
.w20r { width: 20rem; }
.mb12 { margin-bottom: 1.2rem; }
/*  ---------- vi tri ---------- */
.cen-txt { text-align: center; }
.fl-phai { float: right; }
.fl-trai { float: left; }
.va-mi { vertical-align: middle; }

/* ---------- nav - nv ---------- */
.menu-main { position: relative; }
.menu-sub { display: none; position: absolute; background: #fdf; list-style: none; }

/* ---------- man hinh nho ---------- */
nav { display: none; width: 100%; background: rgba(0,0,100,0.5); }
.menu-main >li { display: block; margin-left: -1rem; padding: .5rem; border-bottom: 1px solid white; font-size: 1.2em; color: #ddd; }
.menu-main >li:hover { background: blue; color: #ff0; }
.menu-sub { margin-top: .5rem; margin-left: -1rem; }
.menu-sub li { padding: .5rem 2rem .5rem 1.4rem; }
.menu-main >li: hover .menu-sub { display: block; }
.menu-sub li:hover { background: #ccc; }

@media screen and (min-width: 800px) {
	header svg { display: none; }
	.bar-nv { width: 100%; height: 3rem; background: #006; }
	nav { display: block; }
	.menu-main >li { display: inline-block; border: none; padding: .9rem 1rem .7rem 1rem; color: #ddd; }
	.menu-main >li:hover { background: blue; color: #fcf; }
	.menu-sub { z-index: 5; top: 2.65rem; margin-left: -1rem; }
	.menu-sub li { padding: .5rem 3rem .4rem 1rem; }
	.menu-main li:hover .menu-sub { display: block; }
	.menu-sub li:hover { background: #ccc; }
}

/*  ---------- noi dung - ndg  ----------  */
.ndg { width: 96%; margin-left: auto; margin-right: auto; }
.breadcrumb { display: flex; width: 100%; flex-wrap: wrap; margin: .5rem auto .5rem 0; background: #e9e9e9; font-size: 1rem; }
.breadcrumb span { margin-left: .8rem; padding-top: .5rem; padding-bottom: .5rem; }

/*  ---------- dung cho an hien  ---------- */
.acc { cursor: pointer; }
.acc:after { content: '\02b9f'; font-size: 1.2rem; color: red; float: right; margin-top: -.3em; padding-right: .7rem; }
.acc.active:after {	content: "\2b9d"; color: green; }
div.ndah, ul.ndah { max-height: 0; overflow: hidden; transition: .7s ease 200ms; opacity: 0; }
div.ndah.show, ul.ndah.show { opacity: 1; max-height: 700em; }

/*  ---------- tieu de  ---------- */
h1 { display: flex; padding-top: 1rem; padding-bottom: 1rem; justify-content: space-between; align-items: center; font-size: 1.4rem; font-weight: 600; color: #c00; }
h2, h3, h4 { margin-bottom: 0.5em; padding-top: 0.2em; padding-bottom: 0.2em; padding-left: 0.5em; border: 1px solid black; border-radius: 5px; 
color: #c00; box-shadow: 3px 3px 3px #999; font-size: 1.1rem; }
h2 { background: #dfc; }
h3 { width: 60%; background: #def; }
h4 { width: 40%; background: #fdf; }

/* ---------- p & block & span ---------- */
p { font-size: 1.1rem; line-height: 1.5rem; margin-bottom: 0.6rem; text-align: justify; }
.f1 { font-size: 1rem; }
.pkrg { margin-bottom: 1.2rem; }
.pkhep { margin-bottom: 0; }
.dg-th { line-height: 0.1rem; }
pre, .pcode { overflow-x: auto; margin-bottom: .5rem; border-radius: 2px; border: 1px solid #ccc; padding: 1rem auto 1rem 1em; background:#330; line-height:1.8em; color:#ff6; font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", monospace; font-size: 1.1rem; }
code { padding-left: .5em; padding-right: .5em; border-radius: 2px; border:1px solid #ccc; background: #330; color: #ff6; }
blockquote { margin:0.8rem 2rem 0.8rem 2rem; text-align:justify; font-style: italic; font-size: 1.1rem; }
.dodam { color: #c00; font-weight: 600; }
.xanhdam { color: blue; font-weight: 600; }
.trang { color: #fff; }

/* ---------- p & block & span FLEX ---------- */
.pf { display: flex; flex-wrap: wrap; }
.sppf { flex: 0 0 auto; align-self: center; }
.if-wrap { display: inline-flex; flex-wrap: wrap; justify-content: center; }

/*  ---------- danh sach  ---------- */
ul, ol { margin-bottom: .6rem; margin-left: 1.5rem; font-size: 1.1rem; line-height: 1.5rem; text-align: justify; }

/*  ---------- bang  ---------- */
table { width: 100%; margin-bottom: 1rem; margin-left: auto; margin-right: auto; line-height: 1.4em; text-align: center; }
table caption { margin-bottom: .3rem; text-align: left; font-size: 1.1rem; }
th { border-top: 2px solid black; border-bottom: 2px solid black; color: #c00; }
td { border-bottom: 1px dotted black; }
tr:nth-of-type(even) { background-color: #dff; }
.dgcuoibg { border-bottom: 2px solid black; }
.notopline { border-top: none; }
.nobotline { border-bottom: none; }
.topline { border-top: 2px solid black; }
tr:hover { background-color: #ffd; color: red; }
.coltrai { text-align: left; }
.coltraiS { text-align: left; padding-left: 10px; }

/* ----------  cong thuc  ---------- */
.ct-bg { margin-bottom: .5em; width: 100%; font-size: 1.1rem; }
.ct-bg td { border: none; }
.ct-so { text-align: right; vertical-align: middle; }
.ct-txt { text-align: left; vertical-align: middle; }

/* ----------  nav cac chuyen de  ---------- */
.nv-chde { background: #efe; margin-top: .5rem; }
.cde { width: 96%; padding: 1rem 0 .5rem 0.5rem; }
.tde-cde { margin-left: -1rem; padding-top: .2rem; text-align: center; font-size: 1.3rem; font-weight: 600; color: red; }
.cde section p { margin:-.5rem auto -.5rem .5rem; padding-top: .5rem; padding-bottom: .5rem; }
.cde p:hover { background: #fdf; color: #c00; }
.cde section ul { padding-top: .5rem; }
.cde section li { list-style: none; }
.cde li:hover { background: #ccc; }
.cde li { font-size: 1.1rem; line-height: 1.5; text-align: left;  }
.cde li:last-child { padding-bottom: 0.5rem; }
#nv-chuong { margin-left: .5rem; }
#nv-chuong li { list-style: none; line-height: 1.8; }
.ch-hh { color: #666; }
.sd-site { text-align: center; font-weight: 600; }
.hrx { margin-left: 2%; margin-right: 2%; }

/* svg */
.sv-b { background: #ddd; text-align: center; margin-bottom: .5rem; }

/* Cau hoi & Bai tap & Ket qua */
input[type="text"] {
	height: 32px;
	border: 2px solid black;
	vertical-align: middle;
	padding-left: 10px;
	width: 8em;
}
label { font-size: 1.1rem;  line-height: 1.8em; }
.ketqua { margin-bottom: 0.6em; }
.kq-flex { display: flex; flex-wrap: wrap; margin-bottom: .6rem; }
.ketqua label, .ketqua img, .kq-flex img {
	display: inline-block;
	padding-left: 10px;
	padding-right: 10px;
	vertical-align: middle;
}
.ketqua button, .ketqua input, .kq-flex button, .kq-flex input { border-radius: 5px; font-size: 1.1em; font-weight: bold; }
.ketqua button, .kq-flex button {
	height:2em;
	border:2px solid blue ;
	background-color:#fd7;
	padding-left:5px;
	padding-right:5px;
}
.kq-f1 { flex: 0 0 auto; margin-bottom: .8rem; margin-top: .2rem; }
.kq-case { float: left; padding-top: .4rem; }

/*Thong bao*/
#khthbao {
	display: none;
	width: 320px;
	position: fixed;
	top: 30vh;
	border: 3px solid #999;
	border-radius: 9px;
	background: linear-gradient(to bottom right, #ffe, #ff9);
	z-index: 10;
}
#ndgthbao { font-size: 1,2em; text-align: center; color: #00C; font-weight: bold; }
#thbaook { text-align: center; margin-top: -1rem; margin-bottom: 1.2rem;}

/* ---------- phan chan ---------- */
.nv-nd-foot { position: relative; bottom: 0; }
.cpnh { width: 100%; height: 4rem; display: flex; justify-content: center; align-items: center; background: #e9e9e9; }
footer { width: 100%; height: 4rem; display: flex; justify-content: center; align-items: center; background: #006; color: white; }
.logo-f { display: none; }

@media screen and (min-width: 960px) {
	.vgb {
		display: grid;
		grid-template-columns: 240px auto;
		grid-template-rows: 72px 3rem auto 4rem 72px;
		width: 100%; height: min-height: 100vh;
	}
	header { grid-column: 1 / 3; grid-row: 1; }
	.bar-nv { grid-column: 1 / 3; grid-row: 2; }
	.nv-chde { grid-column: 1; grid-row: 3; }
	.ndg { grid-column: 2; grid-row: 3; }
	.cpnh { grid-column: 2; grid-row: 4; }
	footer { grid-column: 1 / 3; grid-row: 5; }
	footer { display: flex; }
	.logo-f {display: block; flex: 0 0 240px; display: flex; justify-content: center; align-items: center;}
	.cpr { flex-grow: 1; display: flex; justify-content: center; align-items: center; }
}

@media screen and (min-width: 1260px) {
	.vgb {
		display: grid;
		grid-template-columns: 1fr 300px 960px 1fr;
		grid-template-rows: 72px 3rem auto 4rem 72px;
		width: 100%; height: min-height: 100vh;
	}
	header { grid-column: 1 / 5; grid-row: 1; }
	.bar-nv { grid-column: 1 / 5; grid-row: 2; }
	.nv-chde { grid-column: 2; grid-row: 3; }
	.ndg { grid-column: 3; grid-row: 3; }
	.cpnh { grid-column: 3; grid-row: 4; }
	footer { grid-column: 1 / 5; grid-row: 5; }
	nav { display: block; height: 100%; width: 1260px; margin-left: auto; margin-right: auto; }
	footer { display: flex; justify-content: center; }
	.logo-f {display: block; flex: 0 0 240px; display: flex; justify-content: center; align-items: center;}
	.cpr { display: block; flex: 0 01020px; display: flex; justify-content: center; align-items: center; }
}
