@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body {
	display: block;
	justify-content: center;
	align-items: center;
	height: 100%;
	background-color: #000;
}

* {
	box-sizing: border-box;
}

.test-heading {

	font-size:50px;
	margin-top:40px;
	text-align:center;
	font-weight: 900 ;

}
.test-description {
	text-align:center;
	font-size:15px;

	padding:10px;


}
@media (max-width: 786px) {
  div[style*="margin-left:430px"] {
    /* Resetting margins to center the box with a small gap on sides */
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    
    /* Ensuring the box takes up appropriate width */
    width: auto !important;
    padding: 20px !important;
  }

  .test-description {
    /* Adjusting font size for smaller screens */
    font-size: 1.1rem !important;
    line-height: 1.6;
    text-align: center;
  }
}

.jsq-container {
	border-radius: 5px;
	padding: 0 10px;
	color: #000;
	background-color: #F8F9FF;

	align-content:center;
	font-family: 'Open Sans', sans-serif;
	width: 1000px;

	margin-left:450px;
	margin-top:40px;
	margin-bottom:100px;
	background-color: #f8fafc; 
  background-image: 
    radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsla(24, 100%, 95%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(210, 100%, 93%, 1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(24, 100%, 95%, 1) 0px, transparent 50%);
  background-attachment: fixed;
}

.jsq_header {
	display: block;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border-bottom: solid 1px #c5c5c5;
}

.jsq_footer {
	border-top: 1px solid #9b9b9b;
	padding: 10px 0;
	display: block;
	justify-content: space-between;
	align-items: center;
}

/* info box */
.jsq_info_head {
	padding: 10px 5px;
	font-size: 20px;
	font-weight: bold;
	border-bottom: solid 1px #aaaa;
}

.jsq_info_list {
	padding: 20px;
}

.jsq_info_list > div {
	font-size: 15px;
	margin: 15px 0;
	margin-top: 0;
}

.jsq_info_footer {
	border-top: solid 1px #919191;
	padding: 10px 10px;
	text-align: right;
}

/* timer */
.jsq_time_left {
	display: flex;
	align-items: center;
}

div#jsq_timer {
	border-radius: 50%;
	font-size: 13px;
	width: 28px;
	min-width: 28px;
	color: #fff;
	height: 28px;
	display: flex;
	background-color: #0064ff;
	justify-content: center;
	align-items: center;
	margin-left: 10px;
}

/* show all answers list completed quiz*/
div#jsq_all_answers {
	margin: 30px 0;
	text-align: left;
}

.jsq_fnsh_question {
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 16px;
}

.jsq_finish {
	font-size: 20px;
	font-weight: 500;
}

.jsq_finish_box {
	padding: 20px;
	text-align: center;
}

.jsq_answer_block {
	padding: 10px 10px;
	background-color: #ffffff66;
	border-radius: 5px;
	margin: 5px 0;
}

.jsq_fnsh_options {
	margin: 10px 0;
	margin-left: 20px;
}

.jsq_answer_block span {
	font-size: 13px;
	margin: 7px 0;
	display: block;
	color: #5b5b5b;
}

.jsq_fnsh_score {
	font-size: 13px;
	font-weight: bold;
	color: #0064ff;
}

.jsq_q_status {
	font-size: 13px;
	color: #9a009d;
	font-weight: bold;
	display: inline-block;
}

/* options */
div#jsq_options {
	margin: 15px;
	text-align: center;
	perspective: 500px;
}

div#jsq_options label {
	margin: 20px 0;
	display: block;
	border-radius: 5px;
	font-size: 15px;
	background-color: #e1ebff;
	color: #000000;
	cursor: pointer;
	text-align: left;
	display: flex;
}

div#jsq_options input[type=radio] {
	display: none;
}

div#jsq_options label:not(.disabled):hover {
	background-color: #cdddff;
}

div#jsq_options label.disabled {
	pointer-events: none;
}

/* incorrect option*/
div#jsq_options label.jsq-incorrect {
	color: #ffffff;
	background-color: #e94f4f;
}

/* correct option */
div#jsq_options label.jsq-correct {
	color: #ffffff;
	background-color: #42b55e;
}

/* options ID ABCD */
div#jsq_options label span:first-child {
	border-right: solid 1px #ffffff70;
	padding: 10px 10px;
	display: flex;
	align-items: center;
	border-radius: 4px 0 0 4px;
	font-weight: bold;
}

/* options text */
div#jsq_options label span:last-child {
	display: inline-block;
	padding: 10px 10px;
}

/* question */
h1#jsq_question {
	font-size: 20px;
	margin: 35px 5px;
	line-height: 1.5;
	text-align: center;
	font-weight: 400;
}

/* code box  */
div#jsq_code_box{
	display: none;
	margin: 15px;
}
div#jsq_code_box pre {
	margin: 0;
	padding: 0;
	background: inherit;
}

div#jsq_code_box code {
	line-height: 1.6em;
	overflow: auto;
	font-size: 14px;
	-moz-tab-size: 4;
	display: block;
	tab-size: 4;
	background-color: #2d2d2d;
	padding: 10px;
	border-radius: 5px;
	color: #fff;
	font-family: monospace;
	max-height: 400px;
}

button#next_question, button#prev_question {
	visibility: hidden;

}

button.jsq_btn {
	color: #fff;
	border-radius: 5px;
	background: #007bff;
	border: solid 1px #007bff;
	font-size: 13px;
	padding: 5px 15px;
	cursor: pointer;
	display:inline;
}

button.jsq_btn:hover {
	background: #005abd;
	border: solid 1px #005abd;
}

.jsq_score {
	font-size: 25px;
	font-weight: 500;
	color: #102bdc;
	margin-bottom: 40px;
}

.jsq_score b {
	display: block;
	margin: 8px;
	color: #bf28b0;
}

div#jsq_total {
	font-size: 13px;
}

/* animation incorrect option (shaking) */
.jsq_shake {
	animation-name: jsq_shake;
	animation-duration: .8s;
	animation-fill-mode: both;
}

@keyframes jsq_shake {
	0%, 100% {
		transform: translateX(0);
	}

	10%, 30%, 50%, 70%, 90% {
		transform: translateX(-5px);
	}

	20%, 40%, 60%, 80% {
		transform: translateX(5px);
	}

}

/* options animation */
@keyframes jsq_option_anm {
	0% {
		opacity: 0;
		transform-origin: 0 100%;
		transform: rotateX(-180deg);
	}

	100% {
		opacity: 1;
		transform-origin: 0 100%;
		transform: rotateX(0deg);
	}

}

.jsq_anm {
	animation-duration: .5s;
	animation-fill-mode: both;
	animation-name: jsq_option_anm;
	animation-delay: calc(0.1s * var(--jsq_at));
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* For Tablets and smaller (768px and below) */
@media screen and (max-width: 768px) {
    .test-heading {
        font-size: 32px; /* Smaller heading for smaller screens */
        margin-left: 0;   /* Remove that 450px gap */
        text-align: center;
        padding: 0 20px;
    }

    .test-description {
        margin-left: 20px;
        margin-right: 20px;
        text-align: center;
    }

    .jsq-container {
        width: 95%;      /* Use almost full width of the screen */
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        padding: 10px;
    }
}

/* For Phones (480px and below) */
@media screen and (max-width: 480px) {
    .test-heading {
        font-size: 24px;
        margin-top: 20px;
    }

    h1#jsq_question {
        font-size: 18px; /* Make the question text fit better */
    }

    .jsq_info_list > div {
        font-size: 13px; /* Slightly smaller rules text */
    }

    /* Stack buttons on top of each other if they don't fit */
    .jsq_footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Make math formulas scrollable so they don't break the layout */
    .MathJax {
        font-size: 14px !important;
        overflow-x: auto;
    }
}