body {
	background-color: #FFF; 
	line-height: 1.8;
	font-size:1.1rem;
}
form {background-color:#FFF;}

h1, h2, h3, h4, h5, h6 {letter-spacing: -1px;color:#375372}

#HEAD_SECTION {
	background-color:#FFFFFF;
	color:#000000;
	padding:10px!important;
	/*padding:30px!important;*/
	text-align:left;
	margin-bottom:80px;
	}
	
.left_block {
  position: absolute;
  left: 0px;
  text-align: left;
  top: 0px;
  padding-left: 10%;
}

.right_block{
  position: absolute;
  right: 0px;
  text-align: right;
  top: 30px;
  padding-right: 10%;
}
	
#HEAD_INNER{
	padding:0px;
	margin:0px;
	/*max-width:1000px; why is this here? It makes error messages wrap weirdly. If anyone knows why this was added, lmk and I can restore this. */
}
	
#MAINLINE, .MAINLINE {
	background-color:#a9c94b; 
	height:2px;
	margin-top:10px;
}

/* added to have those elements cover the with of the body section div and for textarea to have 100% width when it is a single option */

p.QUESTION, p.NOTE, .CATEGORYTABLE tr:only-child textarea {width:100%;}

input.BUTTON {
	background-color:#a9c94b !important
}

.btn {  
	display: inline-block;
  font-weight: 400;
  line-height: 1.5;
	background-color:#a9c94b !important;
	text-align: center;
  text-decoration: none;
  vertical-align: middle;
	user-select: none;
}

.btn-success, .btn-lg, .BUTTON, .BUTTON:hover {
	border:none!important;  
	padding: .5rem 1rem;
  font-size: 1.25rem;
  border-radius: .3rem;
}
.BUTTON {  
	text-align: center;	
	text-indent: 0px;	
	vertical-align: middle;		
	color: rgb(255, 255, 255);	
	/* Box */	height: 60px;	width: 156px;	
	margin: 0px;	
}

.BUTTON:hover {  
	text-align: center;	
	text-indent: 0px;	
	vertical-align: middle;	
	background-color: white!important;	
	color: #375372;	
	border: 1px solid #375372!important;
	/* Box */	height: 60px;	width: 156px;	
	margin: 0px;	
}

.btn-success, .btn-lg {
  border: none !important;
}

.form-check-input:checked {
  background-color: #a8d091!important;
  border-color: #b3d582!important;
}

.unselectable{
  background-color: #eeeeee;
  cursor: not-allowed;
  pointer-events: none;
}

.LOGO_SPAN {
display: inline-block;
width: 320px;
text-align:left;
padding:0px;
margin:0px;
}

.LANG_SPAN {
display: inline-block;
width:20%;
height:auto;
text-align:right;
padding:0px;
margin:0px;
}

.err, .ERREUR {
	color: #c18c26;
/* Added order 99 to put last in flexbox  - mike.h 2024-01-10 */
	order: 99;
}

#BODY_SECTION, #BUTTON_TABLE, #PROGRESS_TABLE {
	background-color:#FFF;
	}
	
#BUTTON_TABLE div {padding:.8em;margin-top:10%;} 
	
thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: #ffff;
  color: #375372;
  text-align: center;
  z-index: 2;
}

table {background-color:transparent !important;}

table.MATRICE {margin-left: auto;
    margin-right: auto;}
    
/* start of new css rules for CW tables 20230215 - in progress */
    
.MATRICE3 .REPONSE {display: none;}

.MATRICE th, .MATRICE td {
	padding: 10px; 
	min-width: 75px;
}

/* added 20231124 - background colour of columns with *S* behaviour code */

td.SPECIAL_CELL1, th.SPECIAL_LINE_A0, td.ORDINARY_CELL_A1 {
	background-color: whitesmoke;
}
td.SPECIAL_CELL1:hover {background:rgb(207, 207, 207) !important;}
/* added 20230216 */

th.SPECIAL_LINE_A0, th.SPECIAL_LINE_B0 {text-align:left!important;}

/* added 20230311 */

.COLONNE {font-weight:normal;}

.LIGNE {font-weight:600;}

/* added 20230219 */

.ORDINARY_CELL_A1:hover, 
.ORDINARY_CELL_B1:hover { 
background: #d1e39b!important;
	}


/* eases the eye on the #00000 bold/strong font - 20230216 */
.MATRICE3 th {color: #375372;}

/*border around inputs when checked */

.SPECIALTBOX {
 background-color: whitesmoke;
 cursor: default;
 -moz-user-select: none;
 -webkit-user-select: none;
 /*-ms-user-select*/
}

.SPECIALTBOX:focus {
 background-color: whitesmoke;
 cursor: default;
 -moz-user-select: none;
    border: 1px gray!important;
    /*border:none!important;*/
 outline-color: gray!important;
}

input:enabled:hover:not([class]) {
    border-color: #ccc;
    box-shadow:0 0 5px 0px #ccc inset;
}

input[type='text']:focus, textarea:focus {
  border: 1px solid #375372;
  outline-style: solid;
  outline-color: #375372;
}

input[type="radio"]:checked {
  line-height: 14px;
}

input[type="checkbox"]:checked {
  line-height: 14px;
}



/************************************************************************************/
/* Special formatting for mobile */
/************************************************************************************/

@media only screen and (max-width:767px) {


	.left_block .LOGO_SPAN {
	  width: 200px!important;
	}
	
	.right_block .LOGO_SPAN {
	  width: 140px!important;
	}

	/* Center-align suffix text in tables on mobile */

	th.SPECIAL_LINE_A0 {
		text-align: center;
		text-align:center!important;
	}
	th.SPECIAL_LINE_B0 {
		text-align: center;
		text-align:center!important;
	}
	.LIGNE {
		text-align: center;
		text-align:center!important;
		font-size: 1.3rem;
		font-weight: 700;
	} 

	/* Columns with *S* behaviour code were stil displaying in mobile, this fixes it*/

	.tr-head, table.MATRICE3 th.SPECIAL_COLUMN1, table.MATRICE3 th.SPECIAL_CELL1 {display:none;}

	/* Halve the padding in textboxes on mobile; R can see more of what they wrote and it's overall easier to read */
	
	.TEXTBOX, .NUMBOX {padding: 5px !important;}

	/* Pre-existing mobile table formatting - not by Mars*/

	th.SPECIAL_LINE_A0, th.SPECIAL_LINE_B0, table.MATRICE3 td {display: block;}
	
	.MATRICE3 tr td span.REPONSE {display:block!important;text-align:center;}
	
	.table tr td:first-child {color: #375372; font-weight: bold;}
	
	.MATRICE3 th, .MATRICE3 td  {
		padding: .5rem .5rem;
		background-color: var(--bs-table-bg);
		border-bottom-color: rgba(0, 0, 0, 0.1);
		border-bottom-width: 1px;
		box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
	}
	
	select {color:#375372; width:100%;font-size:0.9em;}
	

}

@media only screen and (max-width:560px) {
	
#MAINLINE, .MAINLINE {
	margin-top:40px;
}	
}

@media only screen and (max-width:414px) {
	
	
	.BUTTON {  
		max-width: 100px; /* max-width: 35vw; seems like a better rule imo as the buttons will scale to the device width but it would need some testing -MC */
		min-width: fit-content;	/* Needed as the previous rule cuts off the button text for the French "soumettre" button*/	
	}
	.btn-success, .btn-lg, .BUTTON, .BUTTON:hover {
	  font-size: 1rem;
	}
	
}


	
/************************************************************************************/    
/* start of new css rules for radio inputs and labels 20230215 */
/************************************************************************************/
    
input:checked[type="radio"] {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

input:checked[type="radio"] {
  box-shadow:0 0 0 1px #b3d582!important;
  appearance:none;
  border-radius:50%;
	width: 1.3em;
	height: 1.3em;
  background-color:#a8d091!important;
}

input[type='radio'] {
	width: 1.3em;
	height: 1.3em;
	margin-top: .5em;
	background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
	border-radius: 50%;

}

input:focus[type='radio'] {outline: 5px solid #ADD8E6; border-radius:50%;}

input:active[type='radio'] {outline:none!important;}

input:after[type='radio'] {accent-color:#ADD8E6;}

input:checked[type="checkbox"] {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' class='bi bi-check' viewBox='0 0 16 16'%3e%3cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3e%3c/svg%3e");
}

input:checked[type="checkbox"] {
  box-shadow:0 0 0 1px #b3d582!important;
  appearance:none;
  border-radius:5%;
	width: 1.3em;
	height: 1.3em;
  background-color:#a8d091!important;
}

input[type="checkbox"] {
	width: 1.3em;
	height: 1.3em;
	margin-top: .5em;
	background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
	border-radius: 5%;

}

input:focus[type="checkbox"] {outline: 5px solid #ADD8E6; border-radius:5%;}

input:active[type="checkbox"] {outline:none!important;}

input:after[type="checkbox"] {accent-color:#ADD8E6;}

/* last css input checkbox addition 20230216 */

.REPONSE {margin-left:5px;}

/* remove the padding for mobile screens */

table.CATEGORYTABLE label {
	padding-left:10px; 
	padding-right:10px; 
	margin-top: 0.25em;
}

/* Mala blue for the dropdowns 20230217 */
select {color:#375372}

textarea {width:100%;}

@media only screen and (min-width: 768px) {

.MATRICE3 tr:nth-child(odd):hover > th.SPECIAL_LINE_A0  {background-color:#eaf2d3;}
.MATRICE3 tr:nth-child(odd):hover > td.ORDINARY_CELL_A1  {background-color:#eaf2d3;}
.MATRICE3 tr:nth-child(even):hover > th.SPECIAL_LINE_B0  {background-color:#eaf2d3;}
.MATRICE3 tr:nth-child(even):hover > td.ORDINARY_CELL_B1  {background-color:#eaf2d3;}

/* grey hover colour for special columns */ 
.MATRICE3 tr:nth-child(odd):hover > th.SPECIAL_CELL1 {background-color:whitesmoke;}
.MATRICE3 tr:nth-child(odd):hover > td.SPECIAL_CELL1 {background-color:rgb(228, 228, 228);}
.MATRICE3 tr:nth-child(even):hover > th.SPECIAL_CELL1 {background-color:whitesmoke;}
.MATRICE3 tr:nth-child(even):hover > td.SPECIAL_CELL1 {background-color:rgb(228, 228, 228);}

}

/* end of new rules 20230217 */

/* removes the first and second td where there is only tr in the table. this will allow easier further styling 20230216 */ 

table.CATEGORYTABLE tr:only-child td:nth-child(1) {display:none!important;}
table.CATEGORYTABLE tr:only-child td span.REPONSE {display:none!important;}
	
#FOOT_SECTION {
	 background-color: #375372; 
	color: #FFF;
}

#FOOT_SECTION a {color:#a9c94b;text-decoration:none;}
#FOOT_SECTION a:hover {color:#a9c94b;text-decoration:underline;}
#FOOT_SECTION a:visited {color:#a9c94b;text-decoration:none;}

label {
	display:inline-block;
	width:auto;
	min-width:90px;
	}

label:hover {background-color: /*#b3b3b3;*/ #d1e39b;}

.THERMOMETRE {display:none;}



.table tr th, .table tr td {text-align: center;}

.p-h {color: #375372;}

.center {text-align: center;}


/* character count for open ends */
span[id^="rchar"] {color:#39598C;}


@media only screen and (max-width:600px) {

	.TEXTBOX, .NUMBOX {
	  width:95%!important;
	} 
}

.TEXTBOX, .NUMBOX {
  max-width: 95%;
  display: inline-block;
  border: 1px solid #bbc2af;
  border-radius: 5px;
  padding: 10px;
  margin-top:1%; /* changed from 3% to 1%, open-ends were spaced way too far down from their labels. 07-02-2024 -MC */
  box-sizing: border-box;
  margin-left: 15px;
} 

/* Added 07-02-2024 - text inputs inside of matrix table th elements don't need the left margin, the left margin is for text inputs next to radio buttons/checkboxes - MC */
.LIGNE > .TEXTBOX {
	margin-left: 0px;
}
.LIGNE > .NUMBOX {
	margin-left: 0px;
}



textarea {font-family: 'Noto Sans', sans-serif;}

textarea:focus, textbox:focus {
  -webkit-box-shadow: inset 2px 2px 2px 0px #dddddd;
  -moz-box-shadow: inset 2px 2px 2px 0px #dddddd;
  box-shadow: inset 2px 2px 2px 0px #dddddd;
}  

input[type="radio"], input[type="checkbox"] {margin-top: .5em;}

/* radio & checkbox type inputs */
/* Keep if defaults are used instead */

/*input[type="checkbox"], input[type="radio"] {
	margin: 4px 0 0;
	margin-top: 1px\9;
	line-height: normal;
    cursor: pointer;
}

input[type="checkbox"], input[type="radio"] {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0;
    cursor: pointer;
}*/

/* -------------------------------------------------------- */
/* -------------------------------------------- TOOLTIPS */
/* -------------------------------------------------------- */

	.tooltip {
		position: relative;
		display: inline-block;
		border-bottom: 1px dotted black;
		opacity:1;
	}

	.tooltip .tooltiptext {
		visibility: hidden;
		min-width: 500px;
		background-color: #555;
		color: #fff;
		text-align: left;
		font-weight:normal;
		border-radius: 6px;
		padding: 5px;
		position: absolute;
		z-index: 1;
		bottom: 125%;
		left: 50%;
		margin-left: -60px;
		opacity: 1;
		transition: opacity 1s;
	}

	.tooltip .tooltiptext::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 10%;
		margin-left: -5px;
		border-width: 5px;
		border-style: solid;
		border-color: #555 transparent transparent transparent;
	}

	.tooltip:hover .tooltiptext {
		visibility: visible;
		opacity: 1;
	}

/* if needed css accordions */

/* lang accordion dropdowns */
/*details.lang {position:absolute; color: white;z-index:5;}*/
 details.lang {height: fit-content; color: white;z-index:5;}
details.lang { background-color:#003F70; padding:10px;border-radius:5%;cursor:pointer;width:fit-content;}

/* buttons are specifc to lang class */
.BUTTONL {color:white;font-size:1em;cursor:pointer;}
.BUTTONL:hover {text-decoration: underline;}

details > summary {
  list-style: none;
}

details.accordion {
	background-color: #f1f1f1;
	color: #444;
	cursor: pointer;
	padding: 18px;
	width: 100%;
	border: none;
	display:inline-block;
	text-align: left;
	outline: none;
	font-family: 'Open Sans', Noto Sans, sans-serif;
	transition: 0.4s;
}

summary.heading {
	font-weight: 600;
}

summary > p.panel {
	padding: 0 18px;
	background-color: transparent;
	font-size: 1em;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease-out;
}

details[open] summary ~ * {
  animation: sweep .5s ease-in-out;
}
@keyframes sweep {
  0%    {opacity: 0; margin-top: -10px}
  100%  {opacity: 1; margin-top: 0px}
}

/* Hover to Popup on coarse screens */

@media (pointer: coarse), (hover: none) {
  [title] {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }
  [title]:focus::after {
    content: attr(title);
    position: absolute;
    top: 90%;
    color: #ffffff;
    background-color: #555555;
    border: 1px solid;
    width: 15vh;
    padding: 3px;
    font-size: 12px;
    z-index: 10;
  }

}

/* for popout modals */

.MODAL_BACKGROUND {
  display: none;
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  height: 100vh;
  width: 100vw;
}

 .MODAL_CONTENT {
   position: fixed;
   overflow: auto;
   background-color: #FFFFFF;
   color: #000;
   border: 1px solid #54585A;
   left: 50%;
   -webkit-transform: translate(-50%, 0);
   -moz-transform: translate(-50%, 0);
   transform: translate(-50%, 0);
   width: 90%;
   max-width: 900px;
   max-height: 300px;
   z-index: 5001;
   top: 10%;
   bottom: 10%;
 }
 .MODAL_CONTENT .MODAL_HEADER {
   padding-left: 20px;
   padding-right: 20px;
 }
 .MODAL_CONTENT .MODAL_CLOSE {
   position: absolute;
   top: 1em;
   right: 1em;
   cursor: pointer;
 }
 .MODAL_CONTENT .MODAL_CONTAINER {
   padding-left: 20px;
   padding-right: 20px;
 }
 .MODAL_CONTENT .MODAL_FOOTER {
   padding: 30px 30px;
 }
 .MODAL_CONTENT .MODAL_FOOTER .MODAL_CLOSE_BTN {
   cursor: pointer;
   padding: 8px 50px;
 /*  background-color: #3e8dda; */
   background-color: #27aae1;
   color: #FFFFFF;
   border: 0;
   -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
   box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
 }

 /* Laura's nice lil header fix - mikeh 2024-01-09*/
 @media only screen and (max-width:767px) {
    div#HEAD_INNER {
        flex-direction: column;
    }
}
/* Wraps placeholder text - mikeh 2024-01-11 */
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
	white-space:pre-line;  
	position:relative;
	top:-7px;
	
  }
  ::-moz-placeholder { /* Firefox 19+ */
	   white-space:pre-line;  
	position:relative;
	top:-7px;
  }
  :-ms-input-placeholder { /* IE 10+ */
	  white-space:pre-line;  
	position:relative;
	top:-7px;
  }
  :-moz-placeholder { /* Firefox 18- */
	   white-space:pre-line;  
	position:relative;
	top:-7px;
  }

/***************************************************
*
*	Special styling for new UI enhancement scripts
*
***************************************************/

.rankDropdown td {
	min-width: 30px;
    text-align: center;
}

.invisible {
	visibility: hidden;
	pointer-events: none; /* likely not necessary but here just in case */
}

/************************************************************************************/
/* Animations and special classes for collapsible table */
/************************************************************************************/



@keyframes fadeIn {
	0% {display: none;}
	1% {display: block; opacity: 0%;}
	100% {opacity: 100%;}
}

@keyframes fadeOut {
	0% {display: block; opacity: 100%;}
	99% {opacity: 0%;}
	100% {display: none;}
}

th.answered {
	border: 1px solid #a9c94b !important;
	box-shadow: 0px 0px 5px 1px #a9c94b inset !important;
}

th.unanswered {
	/* put something here, maybe. or just a note that this class name can't be used for other stuff*/
}

th.thError {
	border: 1px solid #d44747 !important;
	box-shadow: 0px 0px 5px 1px #d44747 inset !important;
}