/* Root */
:root {
    --main-color-1: #344352;
    --main-color-2: #666;
    --main-color-3: #999;
    --main-white-color: #fbffff;
    --main-grey-color-1: #f5f5f5;
    --main-grey-color-2: #e9e9e9;
    --main-red-color: #ed1c24;
    --main-yellow-color: #f9b63c;
    --main-green-color: #56b707;
    --main-border-color: #e0e0e0;
}

/* Custom CSS */
/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    padding-top: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: #333; /* Màu nền sidebar */
    color: #fff; /* Màu chữ */
}

.sidebar .nav-item {
    font-size: 16px;
}

.sidebar a.nav-link {
    color: #fff; /* Màu chữ các liên kết */
    
}

.sidebar a.nav-link:hover {
 	background-color:#0069d9;
 	border-color:#0062cc;
}

.sidebar a.nav-link.active {
 	background-color:#0069d9;
 	border-color:#0062cc;
}

/* Content Styling */
.content {
    margin-left: 240px; /* Độ rộng của sidebar */
    padding: 15px;
}

/* Logout Button Styling */
.logout-btn {
	position: absolute;
    right: 20px;
}

/* Logout Button Styling */
.logout-btn-admin {
    margin: 10px 0 0 10px;
}

.has-error {
    border-color: #a94442;
    background-color: #f2dede;
    color:  #a94442;;
}

.txt-has-error {
    color:  red;
}

.carousel-control-prev-icon { 
    background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23009be1' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); 
    width: 30px;
    height: 48px;
}
.carousel-control-next-icon { 
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23009be1' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
    width: 30px;
    height: 48px;
}

.back-link {
    margin-top: 10px;
}

.back-link img {
    width: 25px; /* Giảm kích thước của hình ảnh */
    height: 25px; /* Giảm kích thước của hình ảnh */
    margin-right: 5px;
}


/* radiobutton-custom*/

/* The radio-custom */
.radio-custom {
  display: block;
  position: relative;;
  cursor: pointer;
  font-size: 20px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.radio-custom input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: -10px;
  left: -15px;
  height: 30px;
  width: 30px;
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio-custom:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.radio-custom input:checked ~ .checkmark {
  background-color: #32cd32;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-custom input:checked ~ .checkmark:after {
  display: block;
}

.title-lbl-question {
	font-size: 20px;
	font-weight: bold;
}

/* Style the indicator (dot/circle) */
.radio-custom .checkmark:after {
 	top: 10px;
	left: 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: white;
	border: 1px solid #62666e;
}

.area-question {
	display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.choose-question {
    width: 100px;
    height: 50px;
    display: flex;
    background: #00549aa1;
    align-items: center;
    border: 2px solid #c0c0c0;
    border-radius: 10px;
    justify-content: center;
    box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.choose-question-correct {
    width: 100px;
    height: 50px;
    display: flex;
    background: #d8bfd8;
    align-items: center;
    border: 2px solid #32cd32;
    border-radius: 10px;
    justify-content: center;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.choose-question-wrong {
    width: 100px;
    height: 50px;
    display: flex;
    background: #d8bfd8;
    align-items: center;
    border: 2px solid red;
    border-radius: 10px;
    justify-content: center;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.sub-choose-question {
	margin-right: 20px;
	margin-left: -15px;
	font-size: 20px;
	font-weight: bold;
}

.content-question {
    width: 100%;
    height: auto;
    min-height: 60px;
    margin-left: -40px;
    padding: 20px 20px 20px 60px;
    border: 2px solid #c0c0c0;
    border-radius: 10px;
    background: #d0e0e3;
    box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-question-correct {
	width: 100%;
    height: auto;
    min-height: 80px;
    margin-left: -40px;
    padding: 20px 20px 20px 60px;
    border: 2px solid  #32cd32;
    border-radius: 10px;
    background: #d8bfd8;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.content-question-wrong {
	width: 100%;
    height: auto;
    min-height: 80px;
    margin-left: -40px;
    padding: 20px 20px 20px 60px;
    border: 2px solid red;
    border-radius: 10px;
    background: #d8bfd8;
    box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.area-btn-next {
	margin-top: 30px;
	float: right;
}

.area-lst-question {
	margin: 60px 0 0 20px;
}
.area-txt-predict {
	margin: 20px 0 0 20px;
}

.lbl-under-text {
	color: darkred;
    text-decoration: underline; /* Áp dụng gạch chân dưới cho văn bản */
}

.area-lst-question button {
	width: 50px;
	margin: 10px 0 10px 0;
}

.area-lst-question button.selected {
	background-color: skyblue !important;
	border: none;
}

.area-lst-question span.lbl-answer {
	margin-right: 20px;
	color:  #32cd32;
	font-size: 20px;
	font-weight: bold;
}

.area-lst-question span.lbl-answer-wrong {
	margin-right: 20px;
	color:  red;
	font-size: 20px;
	font-weight: bold;
}

.area-lst-question div.area-answer {
	display: flex;
    flex-wrap: wrap;
}

.area-lst-question div.area-btn-answer {
	width: 90px;
}

.area-info-question {
	margin-top: 100px;
}

.lbl-answer-correct {
	color:  #32cd32;
}

.lbl-answer-wrong {
	color:  red;
}

.area-info-question .answer-correct {
	color:  #32cd32;
}

.icon-shut-down {
	width: 20px;
	height: 20px;
}

.icon-user {
	width: 30px;
	height: 25px;
	padding-right: 5px;
}


/* CSS định dạng menu */
.navbar {
	font-family: 'Roboto', sans-serif;
    font-size: 18px;
    background-color: #00549A; /* Màu nền của menu */
    border: 1px solid #00549A; /* Định dạng viền cho menu */
    justify-content:left;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin: 0 10px;
    border-bottom: 3px solid transparent; /* Màu viền đáy của mỗi mục menu */
    transition: border-bottom 0.3s; /* Hiệu ứng chuyển đổi màu viền */
}

.navbar li a {
    text-decoration: none;
    color: #333; /* Màu chữ cho mục menu */
}

.navbar li a:hover {
    color: #007bff; /* Màu chữ khi hover vào mục menu */
}

.navbar li a.active {
    font-weight: bold; /* Hiển thị mục menu hiện tại */
    color: #B22222 !important;
}

.navbar li a.active,
.navbar li a:hover {
    border-bottom: 3px solid #007bff; /* Màu viền đáy khi hover hoặc mục menu hiện tại */
}

/* CSS cho Footer */
footer {
    background-color: #00549A; /* Màu nền của Footer */
    color: #fff; /* Màu chữ trong Footer */
    padding: 10px 20px; /* Khoảng cách giữa nội dung và viền của Footer */
    width: 100%; /* Chiều rộng 100% */
    left: 0;
    bottom: 0; /* Footer ở dưới cùng của trang */
    text-align: center;
    position: absolute;
    font-family: 'Inter-Bold', sans-serif;
    
    background-image: url('/background/footer.png');
    background-size: cover; /* Để hình ảnh phủ kín toàn bộ nền */
    background-repeat: no-repeat; /* Không lặp lại hình ảnh */
    background-position: center; /* Canh giữa hình ảnh */
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 16px;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
	
	.header {
	    width: 100%;
	}
	
	.header-image {
		width: 100%; /* 100% chiều rộng của phần tử cha (div.header) */
	    object-fit: fill; /* Thay đổi tỷ lệ của ảnh sao cho phù hợp với kích thước của div */
	}
	
	.container-fluid, .container-bottom {
		position: relative;
	    padding-bottom: 260px;
	    min-height: 100vh;
	}
}

@media (max-width: 768px) {
    .header {
	    width: 100%;
	    height:60px;
	}
	
	.header-image {
		width: 100%; /* 100% chiều rộng của phần tử cha (div.header) */
	    height: 100%; /* 100% chiều cao của phần tử cha (div.header) */
	    object-fit: fill; /* Thay đổi tỷ lệ của ảnh sao cho phù hợp với kích thước của div */
	}
	
	.container-fluid, .container-bottom {
		position: relative;
	    padding-bottom: 320px;
	    min-height: 100vh;
	}
	
	.updateUserInfo tr td.email {
	  	word-break: break-all;
	}
}

.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    background: none;
}

.dropdown-toggle {
    background: none;
    border: none;
}

.dropdown {
	position: absolute;
	right: 20px;
}

.dropdown-menu {
	background-color: #CE7A58;
	border-radius: 1px solid;
}

.icon-home {
	width: 25px;
	height: 25px;
}

.icon-infomation {
	width: 25px;
	height: 25px;
}

.dropdown-menu .dropdown-item:hover {
    background-color: skyblue; /* Đổi màu nền khi hover */
    color: white; /* Thay đổi màu chữ khi hover */
}

.result-detail {
	margin: 30px 15% 30px 15%;
	padding: 20px;
	font-size: 20px;
	font-weight: bold;
	background-color: skyblue;
	border: 2px solid skyblue;
	border-radius: 2px;
	font-family: monospace;
	box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.3);
}
/* trong file doExam */
.result-detail a {
	text-decoration: underline;
	font-size: 18px;
	cursor: pointer;
}

.updateQuestion th, .updateQuestion td {
	max-height: 3em;
	overflow: hidden;
	text-overflow: ellipsis;
}

.examTitle{
	font-size: inherit;
	font-family: 'Inter-Bold', sans-serif;
	margin-top: 2%;
	font-weight: bold;
	font-size: 20px;
	color: #344352;
}

div.ck-editor__editable {
	min-height: 500px;
}

.kkv-countdown-top, .kkv-countdown-bottom {
    width: 60px;
}

.kkv-countdown-top {
    font-size: 1.375rem;
    padding-top: 8px;
}

.kkv-countdown-top {
    background-color: var(--main-yellow-color);
    color: var(--main-white-color);
    font-family: 'Inter-Bold', sans-serif;
    font-size: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 48px;
}

.kkv-countdown-top:before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    right: 50%;
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23fff' viewBox='0 0 16 16' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Crect width='16' height='16' id='icon-bound' fill='none' /%3E%3Cpolygon points='8,11 3,6 13,6' /%3E%3C/svg%3E");
}

.uk-countdown-number {
    font-variant-numeric: tabular-nums;
    font-size: 2rem;
    line-height: .8
}

.kkv-countdown-bottom {
    background-color: var(--main-color-1);
    color: var(--main-white-color);
    font-family: 'Inter-Light', sans-serif;
    font-size: 0.875rem;
    text-transform: capitalize;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 32px;
}

.kkv-countdown-bottom:before {
    content: "";
    position: absolute;
    top: -6px;
    left: 8px;
    width: 3px;
    height: 14px;
    border-radius: 12px;
    background-color: var(--main-white-color);
}

.kkv-countdown-bottom:after {
    content: "";
    position: absolute;
    top: -6px;
    right: 8px;
    width: 3px;
    height: 14px;
    border-radius: 12px;
    background-color: var(--main-white-color);
}

*+.uk-grid-margin,.uk-grid+.uk-grid,.uk-grid>.uk-grid-margin {
    margin-top: 30px
}

.uk-grid-column-small,.uk-grid-small {
    margin-left: -15px
}

.uk-grid-column-small>*,.uk-grid-small>* {
    padding-left: 15px
}

*+.uk-grid-margin-small,.uk-grid+.uk-grid-row-small,.uk-grid+.uk-grid-small,.uk-grid-row-small>.uk-grid-margin,.uk-grid-small>.uk-grid-margin {
    margin-top: 15px
}

.uk-grid-column-medium,.uk-grid-medium {
    margin-left: -30px
}

.uk-grid-column-medium>*,.uk-grid-medium>* {
    padding-left: 30px
}

*+.uk-grid-margin-medium,.uk-grid+.uk-grid-medium,.uk-grid+.uk-grid-row-medium,.uk-grid-medium>.uk-grid-margin,.uk-grid-row-medium>.uk-grid-margin {
    margin-top: 30px
}

.uk-grid-column-large,.uk-grid-large {
    margin-left: -40px
}

.uk-grid-column-large>*,.uk-grid-large>* {
    padding-left: 40px
}

*+.uk-grid-margin-large,.uk-grid+.uk-grid-large,.uk-grid+.uk-grid-row-large,.uk-grid-large>.uk-grid-margin,.uk-grid-row-large>.uk-grid-margin {
    margin-top: 40px
}

@media (min-width: 1200px) {
    .uk-grid-column-large,.uk-grid-large {
        margin-left:-70px
    }

    .uk-grid-column-large>*,.uk-grid-large>* {
        padding-left: 70px
    }

    *+.uk-grid-margin-large,.uk-grid+.uk-grid-large,.uk-grid+.uk-grid-row-large,.uk-grid-large>.uk-grid-margin,.uk-grid-row-large>.uk-grid-margin {
        margin-top: 70px
    }
}

.uk-grid {
    margin-left: -30px
}

.kkv-countdown ul {
    display: inline-flex;
}

.uk-grid {
    margin: 0;
    padding: 0;
    list-style: none
}

.uk-child-width-auto>* {
    width: auto
}

[class*=uk-child-width]>* {
    box-sizing: border-box;
    width: 100%
}

.uk-grid>* {
    padding-left: 30px
}

.uk-grid>* {
    margin: 0
}

.uk-text-center {
    text-align: center!important
}

.uk-grid>*>:last-child {
    margin-bottom: 0
}

*+.uk-grid-margin,.uk-grid+.uk-grid,.uk-grid>.uk-grid-margin {
    margin-top: 30px;
}
/* menu  */
.desktop-only {
    display: none;
}

.mobile-only {
    display: none;
}

@media (min-width: 769px) {
	/* trong file exam */
	.exam{
		padding-left: 15%;
		padding-right: 15%;
	}

    .desktop-only {
        display: flex;
    }
    
    .uk-grid-stack {
		margin-left: -60px;
	}

    .uk-grid>* {
        padding-left: 40px
    }

    *+.uk-grid-margin,.uk-grid+.uk-grid,.uk-grid>.uk-grid-margin {
        margin-top: 40px
    }
    
    .navbar a.nodisp{
	    display: none;
	}
}

@media (max-width: 768px) {
	.exam{
		padding-left: 5%;
		padding-right: 5%;
	}

    .mobile-only {
        display: flex;
    	align-items: center;
   		width: 100%;
    }
    
    .uk-grid-stack {
		margin-left: -10px;
	}

    .uk-grid>* {
        padding-left: 5px
    }

    *+.uk-grid-margin,.uk-grid+.uk-grid,.uk-grid>.uk-grid-margin {
        margin-top: 40px
    }

    
    .mobile-navbar {
	    background-color: #00549A;
	    margin-left: auto;
	}
	
	.hamburger {
	    font-size: 30px;
	    color: white;
	    cursor: pointer;
	    text-align: right;
	}
	
	.mobile-menu {
		display: none;
	    background-color: #00549A;
	    position: absolute;
	    right: 10px;
	    top: 40px;
	    width: 200px;
	    border: 2px solid lightblue;
   		border-radius: 5px;
   		z-index: 9999;
	}
	
	.mobile-menu ul {
	    list-style-type: none;
	    margin: 0;
	    padding: 0;
	    display: block !important;
	    text-decoration: none;
	}
	
	.mobile-menu ul li {
	    margin: 10px 0;
	    text-decoration: none;
	}
	
    .mobile-menu li a:hover {
        border-bottom: none;
    }
    
    #sidebar {
	    padding: 0.1rem 1rem !important;
	}
}
	
