body{
	background-color: #fdffdc;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

#createEx .col-form-label {
	font-size: 15px;
}
.toggle-label {
	position: relative;
	display: block;
	width: 130px;
	height: 35px;
	/* margin-top: 8px; */
	border: 1px solid #808080;
	/* margin: 200px auto; */
}
.toggle-label input[type="checkbox"] {
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
}
.toggle-label input[type="checkbox"] + .back {
	position: absolute;
	width: 100%;
	height: 100%;
	background: #ed1c24;
	transition: background 150ms linear;
}
.toggle-label input[type="checkbox"]:checked + .back {
	background: #00a651; /*green*/
}

.toggle-label input[type="checkbox"] + .back .toggle {
	display: block;
	position: absolute;
	content: " ";
	background: #fff;
	width: 50%;
	height: 100%;
	transition: margin 150ms linear;
	border: 1px solid #808080;
	border-radius: 0;
}
.toggle-label input[type="checkbox"]:checked + .back .toggle {
	margin-left: 64px;
}
.toggle-label .label {
	display: block;
	position: absolute;
	width: 50%;
	color: #ddd;
	line-height: 30px;
	text-align: center;
	font-size: 16px;
}
.toggle-label .label.on {
	left: 0px;
}
.toggle-label .label.off {
	right: 0px;
}

.toggle-label input[type="checkbox"]:checked + .back .label.on {
	color: #fff;
}
.toggle-label input[type="checkbox"] + .back .label.off {
	color: #fff;
}
.toggle-label input[type="checkbox"]:checked + .back .label.off {
	color: #ddd;
}
.questions_block .custom-control {
    margin-bottom: 4px;
}
.form-inline .inp_time, .inp_time{
	width: 80px;
}
.timer {
    font-size: 28px;
}
.resultData {
	color: #FFF;
	text-align: center;
}
.resultData h3 {
	padding: 10px;
}
.resultData p{
	background: rgba(0,0,0,.1);
	margin: 0;
    padding: 3px 10px;
}
.loginRegLinks{
	min-height: 50px;
}
.instructionBlock{
	margin-bottom: 40px;
}
.instructionBlock ul {
	margin-top: 20px;
	padding: 0;
    list-style-type: none;
}
.instructionBlock ul li {
	line-height: 40px;
	position: relative;
	padding: 0 0 0 34px;
}
.instructionBlock ul li:before{
	content: '';
	background: url(../images/check_icon.png) no-repeat;
	height: 16px;
	width: 26px;
	position: absolute;
	left: 0;
	top: 14px;
}
.showPass {
	position: absolute;
    bottom: 1px;
    right: 17px;
    background: #FFF;
    line-height: 36px;
    padding: 0 9px;
}

/* =========================================================
   CERTIFICATE LAYOUT - STANDARD SIZE
   Design canvas: 1100 x 770 px (landscape, ratio 110:77)
   Positions are percentages from the TOP-LEFT of the canvas.
   Font sizes use cqw, relative to the certificate canvas width.
   ========================================================= */

/* Legacy certificate backgrounds */
.certificate_bg_6 {
    background-image: url('../images/certificate/Open Online Abacus Competition 2022.jpeg');
    background-repeat: no-repeat;
}
.certificate_bg_8 {
    background-image: url('../images/certificate/Ashwamedha CUP State Level Abacus Competition2023 Certificate.jpeg?v=1');
    background-repeat: no-repeat;
}

/* One fixed-ratio responsive canvas for all certificate types */
.certificate_bg {
    position: relative;
    display: block;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 1100 / 770;
    height: auto;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    font-weight: 600;
    container-type: inline-size;
}

/* Shared fallback layout - Participation / other legacy certificates */
.certificate_bg .std_name {
    position: absolute;
    left: 50%;
    top: 37.14%;
    width: 90%;
    height: 7%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-size: clamp(18px, 2.8cqw, 31px);
}
.certificate_bg .std_std_ALC {
    position: absolute;
    left: 50%;
    top: 44.29%;
    width: 90%;
    height: 6%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    font-size: clamp(15px, 1.8cqw, 20px);
}
.certificate_bg .std_correctAns {
    position: absolute;
    left: 66.5%;
    top: 57.14%;
    width: 8%;
    height: 5%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(14px, 1.5cqw, 17px);
}
.certificate_bg .std_attendans {
    position: absolute;
    left: 72%;
    top: 57.14%;
    width: 8%;
    height: 5%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(14px, 1.5cqw, 17px);
}
.certificate_bg .std_category {
    position: absolute;
    left: 50%;
    top: 64%;
    width: 25%;
    height: 6%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(14px, 1.6cqw, 18px);
}
.certificate_bg .std_win_place {
    position: absolute;
    left: 50%;
    top: 70.43%;
    width: 30%;
    height: 6%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(15px, 1.8cqw, 20px);
}
.certificate_bg .std_examDate {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 35%;
    height: 5%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(13px, 1.5cqw, 17px);
    font-weight: 600;
}
.certificate_bg .std_certificateNo {
    position: absolute;
    left: 50%;
    top: 92%;
    width: 40%;
    height: 4%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(11px, 1.1cqw, 13px);
    font-weight: 600;
}

/* =========================================================
   MERIT WITH SCORE
   Adjust each --field-x and --field-y independently.
   X/Y are the CENTRE of the text field, in % of canvas.
   Font sizes are in cqw; at 1100px, 1cqw = 11px.
   ========================================================= */
.certificate_bg.merit-score-certificate {
    --name-x: 50%;
    --name-y: 45%;
    --name-w: 82%;
    --name-h: 8%;
    --name-size: 3.2cqw;

    --academy-x: 50%;
    --academy-y: 52%;
    --academy-w: 82%;
    --academy-h: 6%;
    --academy-size: 2.0cqw;

    --score-x: 25%;
    --score-y: 65%;
    --score-w: 40%;
    --score-h: 12%;
    --score-size: 8.5cqw;

    --category-x: 49.8%;
    --category-y: 66.8%;
    --category-w: 20%;
    --category-h: 7%;
    --category-size: 1.9cqw;

    --position-x: 77.0%;
    --position-y: 68.0%;
    --position-w: 20%;
    --position-h: 7%;
    --position-size: 2.0cqw;

    --date-x: 23.7%;
    --date-y: 80.0%;
    --date-w: 20%;
    --date-h: 5%;
    --date-size: 1.5cqw;

    --number-x: 25.8%;
    --number-y: 89.0%;
    --number-w: 24%;
    --number-h: 4%;
    --number-size: 1.25cqw;
}

/* =========================================================
   MERIT WITHOUT SCORE
   Independent positions and font sizes.
   X/Y are the CENTRE of each text field, in % of canvas.
   ========================================================= */
.certificate_bg.merit-no-score-certificate {
    --name-x: 50%;
    --name-y: 53.0%;
    --name-w: 82%;
    --name-h: 10%;
    --name-size: 3.2cqw;

    --academy-x: 50%;
    --academy-y: 64.0%;
    --academy-w: 82%;
    --academy-h: 6%;
    --academy-size: 2.0cqw;

    --score-x: 26.8%;
    --score-y: 66.8%;
    --score-w: 20%;
    --score-h: 7%;
    --score-size: 1.9cqw;

    --category-x: 35.8%;
    --category-y: 66.8%;
    --category-w: 20%;
    --category-h: 7%;
    --category-size: 1.9cqw;

    --position-x: 77.0%;
    --position-y: 68.0%;
    --position-w: 20%;
    --position-h: 7%;
    --position-size: 2.0cqw;

    --date-x: 23.7%;
    --date-y: 80.0%;
    --date-w: 20%;
    --date-h: 5%;
    --date-size: 1.5cqw;

    --number-x: 25.8%;
    --number-y: 89.0%;
    --number-w: 24%;
    --number-h: 4%;
    --number-size: 1.25cqw;
}

/* Student name - both Merit designs */
.certificate_bg.merit-score-certificate .std_name,
.certificate_bg.merit-no-score-certificate .std_name {
    position: absolute !important;
    left: var(--name-x) !important;
    top: var(--name-y) !important;
    right: auto !important;
    width: var(--name-w) !important;
    height: var(--name-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0 1% !important;
    font-family: "Dancing Script", cursive !important;
    font-size: clamp(20px, var(--name-size), 42px) !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-transform: capitalize !important;
    color: #9A6700 !important;
    white-space: normal !important;
}

/* Academy name */
.certificate_bg.merit-score-certificate .std_std_ALC,
.certificate_bg.merit-no-score-certificate .std_std_ALC {
    position: absolute !important;
    left: var(--academy-x) !important;
    top: var(--academy-y) !important;
    right: auto !important;
    width: var(--academy-w) !important;
    height: var(--academy-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(14px, var(--academy-size), 25px) !important;
    line-height: 1.1 !important;
    color: #082B70 !important;
    font-family: Georgia, serif !important;
    font-weight: bold !important;
}

/* Score */
.certificate_bg.merit-score-certificate .std_correctAns {
    position: absolute !important;
    left: var(--score-x) !important;
    top: var(--score-y) !important;
    right: auto !important;
    width: var(--score-w) !important;
    height: var(--score-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(14px, var(--score-size), 22px) !important;
    line-height: 1.1 !important;
    color: #800000 !important;
    font-family: Georgia, serif !important;
    font-weight: bold !important;
}
.certificate_bg.merit-score-certificate .std_attendans,
.certificate_bg.merit-no-score-certificate .std_correctAns,
.certificate_bg.merit-no-score-certificate .std_attendans {
    display: none !important;
}

/* Category */
.certificate_bg.merit-score-certificate .std_category,
.certificate_bg.merit-no-score-certificate .std_category {
    position: absolute !important;
    left: var(--category-x) !important;
    top: var(--category-y) !important;
    right: auto !important;
    width: var(--category-w) !important;
    height: var(--category-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(14px, var(--category-size), 22px) !important;
    line-height: 1.1 !important;
    color: #800000 !important;
    font-family: Georgia, serif !important;
    font-weight: bold !important;
}

/* Position */
.certificate_bg.merit-score-certificate .std_win_place,
.certificate_bg.merit-no-score-certificate .std_win_place {
    position: absolute !important;
    left: var(--position-x) !important;
    top: var(--position-y) !important;
    right: auto !important;
    width: var(--position-w) !important;
    height: var(--position-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(14px, var(--position-size), 23px) !important;
    line-height: 1.1 !important;
    color: #003399 !important;
    font-family: Georgia, serif !important;
    font-weight: bold !important;
}

/* Exam date */
.certificate_bg.merit-score-certificate .std_examDate,
.certificate_bg.merit-no-score-certificate .std_examDate {
    position: absolute !important;
    left: var(--date-x) !important;
    top: var(--date-y) !important;
    right: auto !important;
    width: var(--date-w) !important;
    height: var(--date-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(12px, var(--date-size), 18px) !important;
    line-height: 1.1 !important;
    color: #800000 !important;
    font-family: Georgia, serif !important;
    font-weight: bold !important;
}

/* Certificate number */
.certificate_bg.merit-score-certificate .std_certificateNo,
.certificate_bg.merit-no-score-certificate .std_certificateNo {
    position: absolute !important;
    left: var(--number-x) !important;
    top: var(--number-y) !important;
    right: auto !important;
    width: var(--number-w) !important;
    height: var(--number-h) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: clamp(10px, var(--number-size), 15px) !important;
    line-height: 1.1 !important;
    color: #800000 !important;
    font-family: Georgia, serif !important;
    font-weight: bold !important;
}

/* Print: retain the exact 1100:770 canvas ratio */
@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .certificate_bg {
        width: 1100px !important;
        max-width: 1100px !important;
        height: 770px !important;
        aspect-ratio: auto !important;
        container-type: inline-size !important;
        background-size: 100% 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        overflow: hidden !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .hideOnPrint {
        display: none !important;
    }
}
