@charset "utf-8";

html{background:#121b29;
	font-family: acumin-variable, sans-serif;
font-style: normal;
  height: 100%;
}
.question{position:relative !important;}
[class^="imgr"] {
  position: absolute;
  cursor: grab;
  margin-top:30px;;
  bottom:20px;
  display:block;
  max-width: calc(100% - 40px); /* Ensure image fits within container */
  max-height: calc(100% - 60px); /* Account for margins */
  width: auto;
  height: auto;
  object-fit: contain; /* Maintain aspect ratio */
}
/* Responsive images in question containers */
.question img:not(.change-question-btn):not(.t2-count-dot),
.questiona img:not(.change-question-btn):not(.t2-count-dot) {
  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.question,.questiona{
width:97%;
margin-left:2%;
margin-right:auto;
height:100%;
}
        th, td {	font-family: acumin-variable, sans-serif;
font-style: normal;
            border: 0.5px solid black;
            padding: 2px;
            text-align: center;
			font-size:18px;
 font-weight:400 !important;
        }
        th {
            background-color: #ffffff;
			  word-wrap: break-word;       /* Legacy support */
  overflow-wrap: break-word;   /* Modern standard */
  white-space: normal;
  font-weight:500 !important;
        }
        table{min-width:0;}
        table th {
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
  font-size:18px;
}
.grid-item > .question{
  max-height: 100%;
  overflow: hidden;}
  .grid-item > .questiona{
  max-height: 100%;
  overflow: hidden;}

#mboxtext{font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#saved4{display:none;}
#saved{display:none;}
#saved1{display:none;}
#saved4{display:none;}
#savedw{display:none;}
#resaved{display:none;}
#savedb{display:none;}

#saved,#saved1,#saved4,#savedw{width:100%;}

#saved input,#saved1 input,#saved4 input,#savedw input {width:90%;
	margin-left:5%;
    border: 5px solid white;
    box-shadow:
      inset 0 0 8px  rgba(0,0,0,0.1),
            0 0 16px rgba(0,0,0,0.1);
    padding: 5px;
    background: rgba(255,255,255,0.5);
    font-size:1.3em;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 150;
margin-bottom:30px;
margin-top:30px;}
#saved1{width:100%;}
#saved1 input {width:90%;
	margin-left:5%;
    border: 5px solid white;
    box-shadow:
      inset 0 0 8px  rgba(0,0,0,0.1),
            0 0 16px rgba(0,0,0,0.1);
    padding: 5px;
    background: rgba(255,255,255,0.5);
    font-size:1.3em;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 150;
margin-bottom:30px;
margin-top:30px;}
#resaved,#savedb{width:100%;}
#resaved input,#savedb input{width:90%;
	margin-left:5%;
    border: 5px solid white;
    box-shadow:
      inset 0 0 8px  rgba(0,0,0,0.1),
            0 0 16px rgba(0,0,0,0.1);
    padding: 2px;
    background: rgba(255,255,255,0.5);
    font-size:1.3em;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 150;
margin-bottom:5px;
margin-top:5px;}
.code label{
	margin-top:40px;font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 400;
	font-size:1em;
}
#svd{
       background:#404D8E;
width:80%;
	margin-left:auto;
	margin-right:auto;
text-align: center;
display:block;
border-radius:10px;
		box-shadow: 2px 2px 7px #CFCFCF;
		padding-top:2px;
padding-bottom:3px;
font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 200;
	font-size:0.9em;
	color:#ffffff;
	border:none;
      }
#svd1{
       background:#404D8E;
width:80%;
	margin-left:auto;
	margin-right:auto;
text-align: center;
margin-top:15px;
display:block;
border-radius:10px;
		box-shadow: 2px 2px 7px #CFCFCF;
		padding-top:3px;
padding-bottom:4px;
font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 200;
	font-size:0.9em;
	color:#ffffff;
	border:none;
      }

#svd:hover{background:#CFCFCF;
		box-shadow: 2px 2px 8px #cfcfcf;

	}

#svd1:hover{background:#CFCFCF;
		box-shadow: 2px 2px 8px #cfcfcf;

	}
				#create{width:100%;display:flex;
				align-items:center;
				justify-content:space-between;}



img.selected-img,
    .selected-img {
      border: 2px solid red !important;
      outline: none;
    }

.selected-table {
  outline: 2px solid red;;
  outline-offset: -2px; /* Prevent layout shift */
  box-sizing: border-box;
  transition: outline 0.2s ease;
}

table.selected-table {
  cursor: move;
  position: relative;
}

/* .selected-text: no visual change - text stays black (arrow keys still resize font) */

html, body {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
    background: #121b29;
   font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 110, "wght" 200;
    /* Height and width fallback for older browsers. */
      display: flex;
    flex-direction: column;
	margin-right:auto;
	margin-left:auto;
  transition: background 0.3s ease;
}

    * {
        box-sizing: border-box;
      }


/* General Layout */
.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

 #middle{
  flex: 1;
  min-height: 0; /* Important for flex children to respect parent height */
  padding-top:5px;
  overflow: hidden; /* Prevent scrolling on middle */
  padding-left:20px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}


 .page-main {
     display: flex;
  height: 100%;
   margin-top:-5px;
padding-top:5px;
margin-bottom: 0;
padding-bottom: 0;
overflow: hidden;
}
.qnssection{flex: 1;
background:#121b29;
 display: flex;
  flex-direction: column;
  min-height: 0; /* Important for flex children */
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 10px;
  overflow-y: auto; /* Allow scrolling only for question content */
}

/*--side bar menu --*/

.vertical{
max-width:90px;
padding-right:8px;
padding-left:0;
margin:0;
margin-top:4px;
max-height: 100%; /* Fit within available height */
list-style: none;
display: flex;
flex-direction: column;
gap:4px;
align-items:center;
flex: 0 0 auto;
padding-top:4px;
padding-bottom:4px;
overflow-y: auto; /* Allow scrolling if buttons don't fit */
overflow-x: hidden;
}

.vertical .sidebar-close-btn {
  display: none !important;
}

.horizontal{
width:80%;
margin-left:auto;
margin-right:auto;
padding-right:0px;
max-height:40px;
  list-style: none;
  display: none !important; /* Always hidden on all screens */
  justify-content: space-around;
  align-items:center;
  margin: 0;
}
.horizontals{
  display:none;
}

section img{
width:26px;
height:26px;
max-width:28px;
max-height:28px;
margin-left:auto;
margin-right:auto;
padding:0px;
display:block;
transition: all 0.3s ease;
filter: brightness(0) invert(1);
opacity: 0.85;
object-fit: contain;
}

.tip {
  position: relative;
  cursor: pointer;
  width:60px;
  height:60px;
  min-width:55px;
  min-height:55px;
  max-width:65px;
  max-height:65px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  margin-right: 0;
  flex: 0 0 auto;
  z-index: 800;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.tip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.tip:hover img {
  opacity: 1;
}

.tip img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.tip span {
  visibility: hidden;
  background-color: rgba(26, 35, 50, 0.95);
  color: #ffffff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  box-sizing: content-box;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 120%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.tip span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(26, 35, 50, 0.95);
}

.tip:hover span {
  visibility: visible;
  opacity: 1;
}

.tip img {
  opacity: 0.85;
  pointer-events: none;
  transition: all 0.2s ease;
}


/*---footer**/

footer{
display:flex;
align-items: center;
justify-content: center;
bottom:10px;
text-align: center;
width:99vw;
margin:0;
padding:0;
padding-bottom:6px;
color:#ffffff;
font-size:16px;
font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400;
flex: 0 0 auto; /* Don't grow or shrink */
}

#ptitle{font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 300;
font-size:1.7em;
color:#ffffff;
margin-top:8px;
text-align: left;
margin-left:20px;
}


/* --- header --*/

header{
background:#121b29;
display:inline-flex;
height:55px;
max-height:55px;
min-height:55px;
align-items: center;
justify-content:space-between;
padding:10px;
padding-top:20px;
width:100%;
margin:0;
flex: 0 0 auto; /* Don't grow or shrink */
position: relative;
z-index: 10000;
}
/*Logo and MathsBox*/
#logo {
  display: inline-flex;
  align-items: flex-start;
  margin-left: 20px;
width:auto;
  font-size: 35px;
  font-weight: 500;
  color: #ffffff;

  margin-left:10px;}
#logo a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
#logo img {
  margin-top:auto;
  margin-bottom:auto;
  max-width: 35px;
  height: auto;
  margin-right:8px;
}



img.draggable {
  cursor: grab; /* default state */
}

img.dragging {
  cursor: move; /* active dragging state */
}
table.dragging {
  cursor: move; /* active dragging state */
}
/*Logo and MathsBox*/
#newqns a,#newqns1 a{border-radius:8px;
background:#007BFF;
margin-left:auto;margin-right:auto;
text-decoration: none;
color:#ffffff;
font-size:22px;
text-align: center;
font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400;
box-sizing:content-box;
padding:7px;
padding-right:15px;
padding-left:15px;
margin-top:20px;
}
#newqns a:hover,#newqns1 a:hover{background:#0078c8;
  transition:0.2s ease;}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-actions-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.header-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.header-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-menu-toggle[aria-expanded="true"] .header-menu-bar:nth-child(2) {
  opacity: 0;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  height: 45px;
  box-sizing: border-box;
}

.timer-control-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.timer-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.timer-settings-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
}

.timer-settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.timer-settings-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 45px;
  box-sizing: border-box;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.header-action-btn.primary {
  background: #2563eb;
  border: 1px solid #1e40af;
  font-weight: 600;
}

.header-action-btn.primary:hover {
  background: #1d4ed8;
  border-color: #1e3a8a;
}

.header-action-btn svg {
  flex-shrink: 0;
}

.header-action-btn .header-save-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Tick icon for All Answers: hidden on desktop, shown on phones when text is hidden */
.header-action-btn-icon-mobile {
  display: none;
}

.settings-toggle-btn {
  display: none;
}

@media screen and (max-width: 1100px) {
  .settings-toggle-btn {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  /* 2q and 4q: stack question cards on phones, full width, enough space, scrollable */
  .page-main {
    min-width: 0;
    width: 100%;
  }
  .qnrow {
    flex-direction: column;
    min-height: 0;
    flex: 0 0 auto !important; /* don't split height; let rows stack so all 4 questions show and scroll */
  }
  .qnrow .large,
  br.large {
    display: none;
  }
  body.two-questions .qnssection,
  body.four-questions .qnssection {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  body.two-questions .qnrow {
    gap: 12px;
    margin-bottom: 0;
    height: auto;
  }
  body.four-questions .qnrow {
    display: contents;
  }
  body.two-questions #box1,
  body.two-questions #box2,
  body.four-questions #box1,
  body.four-questions #box2,
  body.four-questions #box3,
  body.four-questions #box4 {
    margin: 0 !important;
    height: auto !important;
    flex: 0 0 auto;
  }
  body.two-questions .question-number,
  body.four-questions .question-number {
    display: none !important;
  }
  .qnssection {
    padding-left: 12px;
    padding-right: 12px;
    overflow-y: auto;
    min-width: 0;
    width: 100%;
  }
  #box1, #box2, #box3, #box4 {
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
    min-height: 220px;
    min-width: 0;
    margin: 10px 0 !important;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: visible;
  }
  #box1 .question, #box2 .question, #box3 .question, #box4 .question {
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
  }
  #middle {
    padding-left: 12px;
    padding-right: 12px;
  }
  .new-question-btn {
    display: none !important;
  }
  body:not(.qg-compact-header) .header-action-btn span {
    display: none;
  }
  body:not(.qg-compact-header) .header-action-btn {
    padding: 8px;
    min-width: 40px;
    justify-content: center;
  }
  body:not(.qg-compact-header) #toggle-answers-btn .header-action-btn-icon-mobile {
    display: block;
  }
  /* Sidebar (vertical) must show above header when hamburger is clicked */
  .vertical.show {
    display: flex !important;
    flex-direction: column;
    z-index: 10002;
  }

  body.qg-compact-header header {
    overflow: visible;
    z-index: 10050;
  }
  body.qg-compact-header #logo > span {
    display: none;
  }
  body.qg-compact-header #logo {
    margin-left: 4px;
    font-size: 0;
  }
  body.qg-compact-header #ptitle {
    font-size: 1.05em;
    margin-left: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.qg-compact-header #title {
    display: none;
  }
  body.qg-compact-header .header-actions {
    gap: 8px;
  }
  body.qg-compact-header .header-menu-toggle {
    display: flex;
    order: 3;
  }
  body.qg-compact-header #toggle-answers-btn {
    order: 1;
    padding: 8px;
    min-width: 42px;
    justify-content: center;
  }
  body.qg-compact-header #toggle-answers-btn span {
    display: none;
  }
  body.qg-compact-header #toggle-answers-btn .header-action-btn-icon-mobile {
    display: block;
  }
  body.qg-compact-header #newquestions-btn {
    order: 2;
    padding: 8px 12px;
    min-width: 0;
  }
  body.qg-compact-header #newquestions-btn span {
    display: inline;
  }
  body.qg-compact-header .header-actions-menu {
    display: none;
    position: fixed;
    top: 55px;
    right: 8px;
    left: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 220px;
    max-width: calc(100vw - 16px);
    padding: 10px;
    background: #1a2438;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 10060;
  }
  body.qg-compact-header .header-actions-menu.is-open {
    display: flex;
  }
  body.qg-compact-header .header-actions-menu .header-action-btn {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 8px 14px;
    justify-content: flex-start;
  }
  body.qg-compact-header .header-actions-menu .header-action-btn span {
    display: inline;
  }
  body.qg-compact-header .header-actions-menu .settings-toggle-btn {
    display: flex;
  }
  body.qg-compact-header .header-actions-menu .settings-toggle-btn span {
    display: inline;
  }
}


  /*--TIMER--*/
#tex{display:none;
 	margin-top:0;
	padding-top:10px;
}
#controls{display:inline-flex;width:100%;
justify-content: center;
align-items: center;
margin:0;
padding:0;
height:2.5em;}
#tex #controls .timer {
	font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", monospace;
	font-style: normal;
 color: #000000;
font-size:2.6em;
display:inline-block;
border-radius:5px;
margin:0;
padding:0;
width:100%;
text-align: center;
}
#pp{display:block;
width:30px;height:auto;
cursor: pointer;}

#timer1 {
	font-family: 'Roboto Mono', monospace;
	font-style: normal;
 color: #ffffff;
font-size:1.1em;
font-weight: 600;
margin:0;
letter-spacing:1px;
display:none;
margin-top:0px;
padding-left: 20px;
padding-right: 20px;
}
#controls a{ color: gray;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
font-size:2.4em;
display:inline-block;margin:10px;
   cursor: pointer;}

/* toggle */
.tcontainer{width:100%;
display:inline-flex;
justify-content: space-around;
align-items: center;}
#timodal{width:250px;
position:absolute;
right:80px;
left:auto;
top:80px;
z-index:900;
padding:10px;
display:none;  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;}
.timt{ font-size: 24px;
    color: #000000;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 300;}
#textl {
    font-size: 14px;
    color: #ffffff;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
margin-left:5px;
}

#conf{padding:2px;
padding-left:3px;padding-right:3px;
	font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500;
font-size:1.2em;
background:#cccccc;
border-radius:5px;
display:block;
width:40%;
margin-left:60%;
text-align: center;
margin-top:15px;
}
#conf:hover{background:#aaaaaa;
box-shadow:3px 3px 5px #dddddd;
transition:0.3s ease;
color:#ffffff;
}
#textr {
    font-size: 14px;
    color: #ffffff;
	font-family: acumin-variable, sans-serif;
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
font-style: normal;
margin-right:5px;
}
.tcontainer{width:100%;
display:inline-flex;
justify-content: space-around;
align-items: center;}
  #infopop {
      position: fixed;
      top: 80px;
      right: 20px;
      width: 300px;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      padding: 15px;
font-size:0.9em;
      display: none; /* Hidden by default */
z-index: 1000;

    }
#overpop {display:none;}
        .close-btn {
      float: right;
      cursor: pointer;
      font-size: 2em;
      color: #666;
     margin-top:-2px;
    }
    .itext{	font-family: acumin-variable, sans-serif;
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;}
.toggle {
    position: relative;
    width: 80px;
    height: 35px;

    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: .3s;
	background:#cccccc;
	padding:5px;margin-left:auto;margin-right:auto;
}
.circle {
    position: absolute;
    left: 5px;
    width: 28px;
    height: 28px;
    border-radius: 30px;
    background-color: #ffffff;
    transition: .3s;
}

.active .circle {

    transform: translateX(40px);
    transition: .3s;
    background-color: #ffffff;
}
/*---Questions----*/

.qnrow{width:100%;  display: flex;
  flex: 1;gap:0px;
  margin-bottom: 10px;
}
/* Question images only (not answer #qa*), so two images don't overlap in one box */
#q1 img:not(.t2-count-dot),#q2 img:not(.t2-count-dot),#q3 img:not(.t2-count-dot),#q4 img:not(.t2-count-dot),#q5 img:not(.t2-count-dot),#q6 img:not(.t2-count-dot),#q7 img:not(.t2-count-dot),#q8 img:not(.t2-count-dot),#q9 img:not(.t2-count-dot),#q10 img:not(.t2-count-dot){
  width:100px;
  height:auto;
  max-width: calc(100% - 40px); /* Ensure image fits within container with padding */
  max-height: 100%;
  margin-top:10px;
  margin-left:20px;
  padding:0;
  z-index:900;
  position:absolute;
  object-fit: contain; /* Maintain aspect ratio */
}

/* Entry Level inline shape rows (f121e, f130e, f1e): stay in question text, not draggable imgr diagrams */
.t2-count-diagram {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  margin-top: 0.2rem;
}
.t2-count-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
}
.t2-count-diagram img.t2-count-dot,
.question .t2-count-diagram img.t2-count-dot {
  position: static !important;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
  margin: 0 !important;
  max-width: none !important;
  max-height: none !important;
  width: 22px;
  height: 22px;
}
.t2-count-diagram--elc-f121e {
  --t2-f121e-dot: 58px;
  --t2-f121e-gap: 10px;
}
.t2-count-diagram--elc-f121e img.t2-count-dot {
  width: var(--t2-f121e-dot);
  height: var(--t2-f121e-dot);
}
.t2-count-line--elc-f121e {
  gap: var(--t2-f121e-gap);
}
.t2-count-diagram--elc-f130e {
  --t2-f130e-dot: 92px;
  --t2-f130e-gap: 10px;
}
.t2-count-diagram--elc-f130e img.t2-count-dot {
  width: var(--t2-f130e-dot);
  height: var(--t2-f130e-dot);
}
.t2-count-line--elc-f130e {
  gap: var(--t2-f130e-gap);
}

/* f131e / f134e / f136e: wrapped PNG diagrams (symmetry grid, block letters, 3D shapes) */
.t2-wp-qdiagram-wrap--elc-f131e,
.t2-wp-qdiagram-wrap--elc-f134e,
.t2-wp-qdiagram-wrap--elc-f136e {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin-top: 0.35em;
  box-sizing: border-box;
}
.t2-wp-qdiagram-wrap--elc-f131e img.t2-wp-qdiagram--elc-f131e,
.t2-wp-qdiagram-wrap--elc-f134e img.t2-wp-qdiagram--elc-f134e,
.t2-wp-qdiagram-wrap--elc-f136e img.t2-wp-qdiagram--elc-f136e,
.question > .t2-wp-qdiagram-wrap--elc-f131e img,
.question > .t2-wp-qdiagram-wrap--elc-f134e img,
.question > .t2-wp-qdiagram-wrap--elc-f136e img {
  display: inline-block;
  position: static !important;
  max-width: min(100%, 360px) !important;
  max-height: 360px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  vertical-align: middle;
}
.t2-wp-qdiagram-wrap--elc-f136e img.t2-wp-qdiagram--elc-f136e,
.question > .t2-wp-qdiagram-wrap--elc-f136e img {
  max-height: 280px !important;
}

/* f143e handling-data: sub-parts — number/stem inline rules in qg-richq-qnum-inline.css */
.t2-wp2-stem + .t2-wp2-richq--f256e { margin-top: 0; }
.t2-wp2-stem:has(+ .t2-wp2-richq--f256e) { margin-bottom: 0; }
.t2-wp2-richq--f256e {
  display: flex;
  flex-direction: column;
}
.t2-wp2-richq--f256e .t2-wp2-f256e-map { order: 1; }
.t2-wp2-richq--f256e .t2-wp2-subwrap {
  order: 2;
  margin-top: 0;
  padding-top: 0;
  gap: 0.22em;
}
.t2-wp2-richq--f256e .t2-wp2-subwrap .t2-wp2-subrow { margin: 0.12em 0; }
.t2-wp2-f256e-map:not(:has(img)) { display: none; margin: 0; }
.t2-wp2-listinline {
  display: block;
  margin: 0.35em 0 0.5em;
  line-height: 1.4;
  word-break: break-word;
}
.t2-wp2-subwrap { display: block; margin-top: 0.5em; }
.t2-wp2-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em 0.35em;
  margin: 0.35em 0;
}
.t2-wp2-sublbl { font-weight: 600; flex: 0 0 auto; }
.t2-wp2-subq { flex: 1 1 auto; min-width: 8em; }
.t2-wp2-dotfill {
  flex: 1 1 4em;
  min-width: 3em;
  border-bottom: 1px dotted currentColor;
  margin-left: 0.25em;
  min-height: 1em;
}
.t2-wp2-counts { margin: 0.35em 0 0.5em; }
.t2-wp2-countrow { margin: 0.15em 0; }

[class^="imgri"] {right:10%;bottom:20px;}

/* Question Numbers - CSS Styled */
.question-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  margin-top: -35px;
  margin-left: -50px;
  margin-bottom: 10px;
  position: absolute;
  top: 0;
  z-index: 900;
  font-family: 'Roboto', sans-serif;
  transition: all 0.2s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

/* Project style for 2, 4, and 10 questions */
body.four-questions .question-number {
  margin-left: -50px;
}

#box1,#box2,#box3,#box4,#box5,#box6,#box7,#box8,#box9,#box10,#box11,#box12 {
  /* General */
flex:1;
    position:relative;
	 margin:10px;
  padding: 5px 5px;
    padding-left:30px;
    padding-right:30px;
    padding-top:30px;
width:100%;
height:100%;
  border-radius: 25px;
  /* Font */
  font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 200;

  background: #ffffff;
overflow: visible;

}

.new-question-btn {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(156, 163, 175, 0.7);
  color: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.4);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.question:hover .new-question-btn {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.new-question-btn:hover {
  background: rgba(156, 163, 175, 0.85);
  border-color: rgba(209, 213, 219, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.new-question-btn:active {
  transform: translateY(0) rotate(360deg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease;
}

.new-question-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.question {
  cursor: pointer;
  position: relative;
}

/* Ensure question text elements allow selection */
.question p#q1,
.question p#q2,
.question p#q3,
.question p#q4 {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  pointer-events: auto;
}
/*--Answers----*/
#qa1,#qa2,#qa3,#qa4,#qa5,#qa6,#qa7,#qa8,#qa9,#qa10{display:none;
 position: absolute;
  bottom: 0;
  right: 0;
  margin: 0.5em;
font-size:30px;
color:red;
z-index:1500;


}


#popupForm1 button,#popupForm2 button{
	margin-top:10px;
  	margin-bottom:10px;
background: #404D8E;
color: #fff;
border-radius: 8px;
box-shadow: 5px 5px 5px #eee;
text-shadow: none;
	padding:10px;
}
 #popupForm1 button:hover,#popupForm2 button:hover  {
background: #cccccc;
color: #fff;

box-shadow: 5px 5px 5px #eee;
text-shadow: none;
}

#popupForm1 button:active,#popupForm2 button:active  {
background: #ffffff;
color: #000000;
border: 1px solid #eee;

box-shadow: 5px 5px 5px #eee;
text-shadow: none;
}

#popupForm1 h2{color:#000000;
 font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 300;
font-size:0.8em;
width:100%;text-align: center;
padding-top:10px;
padding-bottom:20px;}


#popupForm1,#popupForm2{
top:50px;
    position: absolute;
    float:right;
right:5vw;
   height:auto;
    width:300px;
    background:#ffffff;
    border:0.5px solid #D8D8D8;
    border-radius:20px;
    box-shadow:1px 1px 1px 1px #D8D8D8;
      display: none;
     padding:10px;
   font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
font-size: 1em;
color:#000000;
text-align: center;
z-index: 1000;}

#popupForm1 .closebtn,#popupForm2 .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 24px;
	color:#000000;
}

#popupForm1 .closebtn:hover,#popupForm2 .closebtn:hover {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 24px;
	color:#EFEFF0;
	font-weight:600;
	text-shadow: 2px 2px 1px #ffffff;

}
#popupForm1 h1{
font-size:1.1em;
color: #404D8E;
font-family: acumin-variable, sans-serif;
font-style: normal;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
text-align: center;
width:100%;

}
.bot{width:100%;display:flex;
justify-content: center;align-items: center;
margin-top: 0;
padding-top: 0;
padding-bottom: 0;}
.bot h3{color:#ffffff;font-size:14px;padding-top:0;padding-bottom:0;padding-right:0;margin:0;}

#q1,#q2,#q3,#q4,#q5,#q6,#q7,#q8,#q9,#q10{margin-top:-8px;font-size:30px;}

/* Text cursor and selection styling for question elements */
#q1, #q2, #q3, #q4 {
  cursor: pointer;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

#q1::selection, #q2::selection, #q3::selection, #q4::selection {
  background-color: transparent;
  color: #000000;
}

#q1::-moz-selection, #q2::-moz-selection, #q3::-moz-selection, #q4::-moz-selection {
  background-color: transparent;
  color: #000000;
}

#q1.selected, #q2.selected, #q3.selected, #q4.selected {
  color: #000000;
}

.tip img.qg-mathsf-tip-icon {
  display: block;
  width: 26px;
  height: 26px;
  max-width: 28px;
  max-height: 28px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  vertical-align: initial;
  object-fit: contain;
  box-sizing: border-box;
  filter: none;
  opacity: 0.85;
}

#toggle-bold-math-btn:hover img.qg-mathsf-tip-icon,
#toggle-bold-math-btn-h:hover img.qg-mathsf-tip-icon,
#toggle-bold-math-btn.qg-mathsf-active img.qg-mathsf-tip-icon,
#toggle-bold-math-btn-h.qg-mathsf-active img.qg-mathsf-tip-icon {
  border: none;
  background: transparent;
  background-color: transparent;
  opacity: 1;
}

#toggle-bold-math-btn.qg-mathsf-active,
#toggle-bold-math-btn-h.qg-mathsf-active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.header .toolbar-buttons .btn img.qg-mathsf-icon {
  height: 45px;
  width: 45px;
  aspect-ratio: 1 / 1;
  border: 1px solid white;
  padding: 5px;
  border-radius: 4px;
  transition: border 0.2s;
  opacity: 0.7;
  box-sizing: border-box;
  display: block;
  object-fit: contain;
}

.header .toolbar-buttons .btn:hover img.qg-mathsf-icon {
  border: 1px solid rgb(156, 156, 156);
  background-color: #f7f7f7;
  opacity: 1;
}

#toggle-bold-math-ws.qg-mathsf-active img.qg-mathsf-icon,
#toggle-bold-math-res.wsheet-bold-math-active img.qg-mathsf-icon,
#toggle-bold-math-res.qg-mathsf-active img.qg-mathsf-icon,
#toggle-bold-math-res-sm.wsheet-bold-math-active img.qg-mathsf-icon,
#toggle-bold-math-res-sm.qg-mathsf-active img.qg-mathsf-icon {
  border-color: rgb(80, 80, 80);
  background-color: #e8e8e8;
  opacity: 1;
}

body.qg-mathsf-on .qnssection mjx-container,
body.qg-mathsf-on #mainprint mjx-container {
  font-family: 'Open Sans', 'Nimbus Sans', 'Helvetica Neue', Arial, sans-serif !important;
}

/* MathJax styling - black by default */
#q1 .MathJax, #q2 .MathJax, #q3 .MathJax, #q4 .MathJax,
#q1 .MathJax *, #q2 .MathJax *, #q3 .MathJax *, #q4 .MathJax *,
#q1 mjx-container, #q2 mjx-container, #q3 mjx-container, #q4 mjx-container,
#q1 mjx-container *, #q2 mjx-container *, #q3 mjx-container *, #q4 mjx-container *,
#q1 .mjx-math, #q2 .mjx-math, #q3 .mjx-math, #q4 .mjx-math,
#q1 .mjx-math *, #q2 .mjx-math *, #q3 .mjx-math *, #q4 .mjx-math *,
#q1 mjx-math, #q2 mjx-math, #q3 mjx-math, #q4 mjx-math,
#q1 mjx-math *, #q2 mjx-math *, #q3 mjx-math *, #q4 mjx-math *,
#q1 .MathJax svg, #q2 .MathJax svg, #q3 .MathJax svg, #q4 .MathJax svg,
#q1 mjx-container svg, #q2 mjx-container svg, #q3 mjx-container svg, #q4 mjx-container svg,
#q1 .MathJax svg *, #q2 .MathJax svg *, #q3 .MathJax svg *, #q4 .MathJax svg *,
#q1 mjx-container svg *, #q2 mjx-container svg *, #q3 mjx-container svg *, #q4 mjx-container svg * {
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}

/* MathJax styling when text is selected - keep black */
#q1 .MathJax::selection, #q2 .MathJax::selection, #q3 .MathJax::selection, #q4 .MathJax::selection,
#q1 .MathJax *::selection, #q2 .MathJax *::selection, #q3 .MathJax *::selection, #q4 .MathJax *::selection,
#q1 mjx-container::selection, #q2 mjx-container::selection, #q3 mjx-container::selection, #q4 mjx-container::selection,
#q1 mjx-container *::selection, #q2 mjx-container *::selection, #q3 mjx-container *::selection, #q4 mjx-container *::selection,
#q1 .mjx-math::selection, #q2 .mjx-math::selection, #q3 .mjx-math::selection, #q4 .mjx-math::selection,
#q1 .mjx-math *::selection, #q2 .mjx-math *::selection, #q3 .mjx-math *::selection, #q4 .mjx-math *::selection,
#q1 mjx-math::selection, #q2 mjx-math::selection, #q3 mjx-math::selection, #q4 mjx-math::selection,
#q1 mjx-math *::selection, #q2 mjx-math *::selection, #q3 mjx-math *::selection, #q4 mjx-math *::selection {
  background-color: transparent !important;
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}

#q1 .MathJax::-moz-selection, #q2 .MathJax::-moz-selection, #q3 .MathJax::-moz-selection, #q4 .MathJax::-moz-selection,
#q1 .MathJax *::-moz-selection, #q2 .MathJax *::-moz-selection, #q3 .MathJax *::-moz-selection, #q4 .MathJax *::-moz-selection,
#q1 mjx-container::-moz-selection, #q2 mjx-container::-moz-selection, #q3 mjx-container::-moz-selection, #q4 mjx-container::-moz-selection,
#q1 mjx-container *::-moz-selection, #q2 mjx-container *::-moz-selection, #q3 mjx-container *::-moz-selection, #q4 mjx-container *::-moz-selection,
#q1 .mjx-math::-moz-selection, #q2 .mjx-math::-moz-selection, #q3 .mjx-math::-moz-selection, #q4 .mjx-math::-moz-selection,
#q1 .mjx-math *::-moz-selection, #q2 .mjx-math *::-moz-selection, #q3 .mjx-math *::-moz-selection, #q4 .mjx-math *::-moz-selection,
#q1 mjx-math::-moz-selection, #q2 mjx-math::-moz-selection, #q3 mjx-math::-moz-selection, #q4 mjx-math::-moz-selection,
#q1 mjx-math *::-moz-selection, #q2 mjx-math *::-moz-selection, #q3 mjx-math *::-moz-selection, #q4 mjx-math *::-moz-selection {
  background-color: transparent !important;
  color: #000000 !important;
  fill: #000000 !important;
  stroke: #000000 !important;
}

/* Prevent Microsoft popup on text selection */
#q1, #q2, #q3, #q4 {
  -webkit-touch-callout: none;
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
/*--Background colour change--*/
    .bgpop{
		 display:none;
		 text-align: center;
		 width:200px;
		height:200px;
      position:fixed;
      right:5%;
      top:40%;
      z-index: 2000;
		transition:0.5s;
		border:none;
      }
      #bgSelect{
    border-radius: 5%;
    height: 100px;
    width: 100px;
    border: none;
    outline: none;
    transition:0.8s;
      }
      .bg-close-btn {
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
        background: #fff;
        border: 2px solid #e5e7eb;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
        z-index: 2001;
        color: #6b7280;
        padding: 0;
      }
      .bg-close-btn:hover {
        background: #ef4444;
        border-color: #ef4444;
        color: #fff;
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
      }
      .bg-close-btn:active {
        transform: translateX(-50%) scale(0.95);
      }
      .bg-close-btn svg {
        width: 20px;
        height: 20px;
      }

      /*--imgrid images---*/
    #box1 #imgrid0,#box2 #imgrid1,#box3 #imgrid2,#box4 #imgrid3,#box5 #imgrid5,#box6 #imgrid6,#box7 #imgrid7,#box8 #imgrid8,#box9 #imgrid9,#box10 #imgrid10{
      display:block;
      margin-top:10px;
      width: 20%;
      max-width: calc(100% - 40px); /* Ensure image fits within container */
      height: auto;
      margin-left:auto;
      margin-right:auto;
      object-fit: contain; /* Maintain aspect ratio */
  height: auto; /* maintains aspect ratio */
  ;
}
#share-modal,
#record-sheet-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 2147483647 !important;
}

#share-modal .modal-content,
#record-sheet-modal .modal-content {
  background: rgba(255, 255, 255, 0.94);
}

/* Record sheet modal (10q): same shell as Save options; body is left-aligned under centred title */
#record-sheet-modal .modal-content {
  text-align: left;
}

#record-sheet-modal .record-sheet-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}

#record-sheet-modal .record-sheet-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

#record-sheet-modal .record-sheet-input,
#record-sheet-modal .record-sheet-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

#record-sheet-modal .record-sheet-input:focus,
#record-sheet-modal .record-sheet-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

#record-sheet-modal .record-sheet-hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

#record-sheet-modal .record-sheet-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

#record-sheet-modal .record-sheet-modal-btn.secondary {
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

#record-sheet-modal .record-sheet-modal-btn.secondary:hover {
  background: #e5e7eb;
}

#record-sheet-modal .record-sheet-modal-btn.primary {
  background: #2358eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#record-sheet-modal .record-sheet-modal-btn.primary:hover {
  transform: translateY(-2px);
  background: #143cac;
}

#record-sheet-modal .record-sheet-hint-block {
  margin: 0 0 8px;
}

/* Modal Box */
.modal-content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
  position: relative;
  animation: fadeSlideUp 0.3s ease;
}

/* Close Button */
#close-modal,
#close-record-sheet-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  transition: color 0.2s ease;
}

#close-modal:hover,
#close-record-sheet-modal:hover {
  color: #ff4c4c;
}

/* Modal Header */
.modal-content h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 25px;
  color: #222;
}

/* Share Options */
.share-option {
  margin-bottom: 25px;
  text-align: center;
}

.share-option h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

/* Copy Buttons */
.copy-btn {
  background: #2358eb;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.copy-btn:hover {
  transform: translateY(-2px);
  background: #143cac;
}

/* Description Text */
.share-option p {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  line-height: 1.5;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0;
}
.nmes hr {
  border: 0;
  border-top: 2px dotted #8c8c8c;
  margin:0;
    padding:10px !important;
}
/* Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 999999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content2 {
  background: #ffffff;
  color: #1f2937;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  font-family: 'Roboto', sans-serif;
  animation: slideUp 0.3s ease;
}

.modal-content2 > .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
}

.modal-content2 > .modal-heading {
  padding: 20px 20px 0 20px;
  margin-bottom: 0;
}

.modal-content2-body {
  padding: 20px;
  padding-top: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Roboto', sans-serif;
}

.close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Heading */
.modal-heading {
  margin: 0 0 4px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #111827;
}

/* Label */
.modal-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Input field - matching timer modal */
.modal-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  background: transparent;
  color: #111827;
  box-sizing: border-box;
  transition: all 0.2s ease;
  margin: 0 0 20px 0;
}

.modal-input:focus {
  outline: none;
  border-color: #2563eb;
}

.modal-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Submit button - matching timer modal */
.modal-submit {
  flex: 1;
  padding: 12px;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  min-width: 120px;
}

.modal-submit:hover {
  background: #1d4ed8;
}

.modal-submit:active {
  transform: scale(0.98);
}

.btn:active{
    scale:1.11;
    transition: 0.1s ease-in-out;
}





#info-popover,#timer-popover {
  position: fixed;
  top: 150px;
  right: 30px;
  z-index: 3000;
  display: none;
  animation: popUp 0.3s ease;
}

#info-popover.show {
  display: block !important;
}

.popover-content {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px;
  width: 420px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  font-family: 'Roboto', sans-serif;
  color: #111827;
  font-weight: 400;
  font-variation-settings: normal !important;
}
.popovert-content {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 15px;
  width:280px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  font-family: roboto;
}

.arrow {
  position: absolute;
  top: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffffff;
}

/* Close button */
#close-popover,#closet-popover {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#close-popover:hover,#closet-popover:hover {
  color: #1f2937;
  background-color: #f3f4f6;
  border-radius: 4px;
}

/* Popover Header */
.popover-content h2 {
  font-size: 18px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
  color: #111827;
  font-weight: 600;
  font-variation-settings: normal !important;
}

/* Tool List */
.tool-list {
  list-style: none;
  padding: 0px;
  margin: 0 0 0 10px;
}

.tool-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 8px;
  color: #111827;
  line-height: 1.5;
  font-weight: 400;
  font-variation-settings: normal !important;
}

.tool-list img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.tool-list strong {
  color: #60a5fa;
  font-weight: 600;
  font-variation-settings: normal !important;
}

@media screen and (max-width: 1100px) {
.vertical{
  display:none;
  position: fixed;
  top: 0;
  right: 0;
  width: 90px;
  height: 100vh;
  background: #121b29;
  z-index: 10000;
  padding-top: 48px;
  padding-bottom: 8px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.vertical.show {
  display: flex !important;
}

.sidebar-close-btn {
  display: none !important;
}

@media screen and (min-width: 1101px) {
  .sidebar-close-btn {
    display: none !important;
  }
}

@media screen and (max-width: 1100px) {
  .sidebar-close-btn {
    display: none !important;
  }
  
  .vertical.show .sidebar-close-btn {
    display: flex !important;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
    padding: 0;
  }

  .vertical.show .sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .vertical.show .sidebar-close-btn svg {
    width: 16px;
    height: 16px;
  }
}

.settings-toggle-btn {
  display: flex;
  padding: 8px;
  min-width: 45px;
  justify-content: center;
}

.settings-toggle-btn span {
  display: none;
}

.horizontal{display:inline-flex;
max-width:60%;
margin-left:auto;
margin-right:auto;}

.tip img{width:20px;height:20px;
margin-left:auto;
margin-right:auto;
}
 .tip{
    position: relative;
    cursor: pointer;
	width:30px;
	height:30px;
  border-radius:5px;
}
#newqns a{border-radius:5px;
font-size:18px;

padding:3px;
padding-right:4px;
padding-left:4px;
margin-right:8px;}
#logo img {

  max-width: 30px;

}

#logo {
  font-size: 30px;
  margin-left:10px;
}
}
@media screen and (max-width: 760px) {
.horizontal{max-width:95%;
      justify-content: space-between;
}
#box1 #c1,#box2 #c2,#box3 #c3,#box4 #c4,#box5 #c5,#box6 #c6,#box7 #c7,#box8 #c8,#box9 #c9,#box10 #c10{width:20px;height:auto;
}
}