/* Screen Reader CSS */
div#accessibility-links {
	cursor: auto;
	border: none;
	background-color: #EEE;
	z-index: 99999;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	box-sizing: content-box;
}

div#accessibility-links.bottomleft, div#accessibility-links.topleft {
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

div#accessibility-links.bottomright, div#accessibility-links.topright {
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

div#accessibility-links * {
    box-sizing: content-box;
}

body.scr_highcontrast,
html.scr_highcontrast {
	filter: invert(100%);
}

div#accessibility-links span {
	color: #111;
	font-size: 11px;
	font-weight: bold;
	line-height: 12px;
	height: 20px;
	float: left;
	cursor: auto;
	padding-left: 32px;
	margin-top: 6px;
}

div#accessibility-links span.fr_label.startapp {
	background: transparent !important;
}

.topright {
	top: 0;
	right: 0;
}

.topleft {
	top: 0;
	left: 0;
}

.bottomright {
	bottom: 0;
	right: 0;
}

.bottomleft {
	bottom: 0;
	left: 0;
}

#accessibility-links.fixed {
	position: fixed;
}

.absolute {
	position: absolute;
}

.relative {
	position: relative;
	float: none;
	clear: both;
}

div.scbasebin {
	border: none!important;
	height: 36px;
	width: 56px;
	float: left;
	font-size: 13px;
	position: relative;
}

div.scbasebin.screenreader.text {
	height: 36px;
	text-align: center;
	background: url('images/fa_mainicon_hearing.png') no-repeat 4px 1px;
}

div.scbasebin.screenreader.text.scr_nolabel {
	width: 40px;
}

div.scbasebin.screenreader.text.scr_wheelchair {
	background: url('images/fa_mainicon_wheelchair.png') no-repeat 4px 2px;
}

div.scbasebin.speaker {
	text-align: center;
	width: 180px;
}

div#frclr {
	clear: left;
	width: 0;
	height: 25px;
}

div#accessibility-links button,
span.screenreader_embed_play_button,
span.screenreader_embed_stop_button {
	border: none!important;
	height: 32px;
	width: 32px;
	cursor: pointer;
	display: inline-block;
	margin: 5px 0 0 0;
	padding: 0;
  	box-sizing: border-box !important;
	vertical-align: middle;
	outline: none !important;
}

div#accessibility-links button#fr_screenreader_play {
	background: url('images/fa_play.png') no-repeat;
	border: none!important;
	margin-left: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

span.screenreader_embed_play_button {
	background: url('images/fa_play.png') no-repeat;
	border: none!important;
	margin-left: 2px;
	color: transparent;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_pause {
	background: url('images/fa_pause.png') no-repeat;
	border: none!important;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_pause.active {
	background: url('images/fa_pause_active.png') no-repeat;
}

div#accessibility-links button#fr_screenreader_stop,
span.screenreader_embed_stop_button {
	background: url('images/fa_stop.png') no-repeat;
	border: none!important;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

span[class*=screenreader_embed_] {
	margin-left: 2px;
}

div#accessibility-links button#fr_screenreader_font_increase {
	background: url('images/fa_increase.png') no-repeat;
	border: none !important;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_font_decrease {
	background: url('images/fa_decrease.png') no-repeat;
	border: none !important;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_font_reset {
	background: url('images/fa_reset.png') no-repeat;
	border: none !important;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_font_family {
	background: url('images/fa_dyslexic.png') no-repeat;
	border: none !important;
	margin-left: 4px;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_gray_hues {
	background: url('images/fa_grayhues.png') no-repeat;
	border: none !important;
	margin-left: 4px;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_spacing_increase {
	background: url('images/fa_spacing_increase.png') no-repeat;
	border: none !important;
	margin-left: 4px;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_spacing_decrease {
	background: url('images/fa_spacing_decrease.png') no-repeat;
	border: none !important;
	margin-left: 4px;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_bigcursor {
	background: url('images/fa_bigcursor.png') no-repeat;
	border: none !important;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_skiptocontents {
	background: url('images/fa_skipto.png') no-repeat;
	border: none !important;
	padding: 2px;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_highcontrast {
	background: url('images/fa_highcontrast1.png') no-repeat;
	border: none !important;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_highcontrast2 {
	background: url('images/fa_highcontrast2.png') no-repeat;
	border: none !important;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#accessibility-links button#fr_screenreader_highcontrast3 {
	background: url('images/fa_highcontrast3.png') no-repeat;
	border: none !important;
	color: transparent;
	font-size: 0 !important;
	line-height: 0;
}

div#tts_message {
	cursor: auto;
	float: left;
	z-index: 99999;
	background-color: #EEE;
	top: 0;
	left: 0px;
	background: url('images/screen-reader-symbols_sound-off.png') no-repeat 5px 5px;
	width: 35px;
	height: 35px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

div#accessibility-links.topleft div#tts_message,
div#accessibility-links.bottomleft div#tts_message {
	float: right;
}

div#msgtext {
	display:  none;
}

div#stopbtn {
	height: 32px;
	width: 32px;
	margin: 2px 0 0 5px;
	background-image: url('images/screen-reader-symbols_stop-on.png') no-repeat 0 0;
	padding: 2px;
	float: left;
	cursor: pointer;
}

div#playicon {
	width: 35px;
	height: 35px;
	background: url('images/screen-reader-symbols_sound-on.gif') no-repeat 9px 7px;
	z-index: 99999;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

div#sm2-container {
	height: 0;
	width: 0;
	top: -10000;
	left: -10000;
	position: absolute;
	display: none;
}

div.volume_step {
	width: 8px;
	border: 1px solid #727272;
	position: absolute;
	bottom: 6px;
	margin-left: 0;
	cursor: pointer;
}

div.volume_step.active {
	background-color: #222;
}

#volume_step1 {
	height: 6px;
	left: 2px;
}

#volume_step2 {
	height: 10px;
	left: 13px;
}

#volume_step3 {
	height: 14px;
	left: 24px;
}

#volume_step4 {
	height: 18px;
	left: 35px;
}

#volume_step5 {
	height: 22px;
	left: 46px;
}

/* Custom dyslexic font */
@font-face {
	font-family: OpenDyslexic;
	src: url("fonts/OpenDyslexic-Regular.otf") format("opentype");
}

body.scr_dyslexic {
  font-family: 'OpenDyslexic', Arial, sans-serif;
}

body.scr_grayhues,
html.scr_grayhues {
	filter: grayscale(1);
}

body.scr_grayhues.scr_highcontrast,
html.scr_grayhues.scr_highcontrast {
	filter: invert(100%) grayscale(1);
}

body.scr_bigcursor * {
    cursor: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyOS4xODhweCIgaGVpZ2h0PSI0My42MjVweCIgdmlld0JveD0iMCAwIDI5LjE4OCA0My42MjUiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI5LjE4OCA0My42MjUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwb2x5Z29uIGZpbGw9IiNGRkZGRk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C41NDEtMC42NC0wLjk0MS0wLjcyYy0wLjA5NC0wLjAyNy0wLjE2NS0wLjAyNy0wLjI1OS0wLjAyN2MtMC4zMDYsMC0wLjU4OCwwLjEwNy0wLjg0NywwLjMyTDIuOCwzMi41OVY0LjU0OWwyMS41OTksMTUuODA2TDE2Ljk2NCwyMi43MDF6Ii8+PC9nPjwvZz48L2c+PC9nPjwvc3ZnPg=='),auto!important;
}

/* Override vertical template */
div#accessibility-links.vertical {
    width: 211px;
	border: 1px solid #DADADA;
}

div#accessibility-links.topleft.vertical,
div#accessibility-links.bottomleft.vertical {
	border: none;
}
    
div#accessibility-links.vertical #speaker_plugin {
	width: auto !important;	
}

div#accessibility-links.vertical.bottomright #speaker_plugin,
div#accessibility-links.vertical.topright #speaker_plugin,
div#accessibility-links.vertical.bottomright #volume_plugin,
div#accessibility-links.vertical.topright #volume_plugin {
	opacity: 0;
}

div#accessibility-links.vertical button#fr_screenreader_play,
div#accessibility-links.vertical button#fr_screenreader_pause,
div#accessibility-links.vertical button#fr_screenreader_stop,
div#accessibility-links.vertical button#fr_screenreader_font_increase,
div#accessibility-links.vertical button#fr_screenreader_font_decrease,
div#accessibility-links.vertical button#fr_screenreader_font_reset,
div#accessibility-links.vertical button#fr_screenreader_font_family,
div#accessibility-links.vertical button#fr_screenreader_gray_hues,
div#accessibility-links.vertical button#fr_screenreader_bigcursor,
div#accessibility-links.vertical button#fr_screenreader_spacing_increase,
div#accessibility-links.vertical button#fr_screenreader_spacing_decrease,
div#accessibility-links.vertical button#fr_screenreader_highcontrast,
div#accessibility-links.vertical button#fr_screenreader_highcontrast2,
div#accessibility-links.vertical button#fr_screenreader_highcontrast3,
div#accessibility-links.vertical button#fr_screenreader_skiptocontents {
    width: 100% !important;
    padding: 0 0 0 35px !important;
    color: inherit !important;
    font-size: inherit !important;
    margin: 0 !important;
    display: block !important;
    border-bottom: 1px solid #dadada !important;
    text-align: left;
    background-position: 2px 3px;
}

div#accessibility-links.vertical button:hover,
div#accessibility-links.vertical button:active {
	background-position: 2px 3px !important;
}

div#accessibility-links.vertical button:last-child {
	border-bottom: none !important;
}

div#accessibility-links.vertical div.scbasebin {
	height: auto;
	float: none;
}

div#accessibility-links.vertical #volume_plugin {
	margin-top: 35px;
}

div#accessibility-links.vertical #text_plugin {
    transition-duration: .5s;
}

div#accessibility-links.vertical #text_plugin:hover {
    box-shadow: 1px 1px 10px rgba(0,0,0,.9);
    transform: scale(1.1);
}

div#accessibility-links.vertical.topleft {
	top: 37px;
	left: 0;
}

div#accessibility-links.vertical.bottomleft {
	bottom: 37px;
	left: 0;
}

div#accessibility-links.topleft.vertical #text_plugin {
	position: absolute;
    top: -37px;
    left: 0;
    height: 36px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

div#accessibility-links.bottomleft.vertical #text_plugin {
	position: absolute;
    bottom: -37px;
    left: 0;
    height: 36px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

div#accessibility-links.topright.vertical #text_plugin {
	position: absolute;
    top: 0;
    right: 211px;
    height: 36px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

div#accessibility-links.bottomright.vertical #text_plugin {
	position: absolute;
    bottom: 0;
    right: 211px;
    height: 36px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

div#accessibility-links.vertical button#fr_screenreader_pause.active {
    background-position: 2px 3px;
}

div#accessibility-links.vertical.bottomright {
	border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

div#accessibility-links.vertical.topright {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

div#accessibility-links.vertical.bottomleft {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0px;
}

div#accessibility-links.vertical.topleft {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

body.scr_dyslexic ~ div#accessibility-links button#fr_screenreader_font_family,
body.scr_grayhues ~ div#accessibility-links button#fr_screenreader_gray_hues,
body.scr_bigcursor ~ div#accessibility-links button#fr_screenreader_bigcursor,
body.scr_highcontrast ~ div#accessibility-links button#fr_screenreader_highcontrast,
body[style*=hue-rotate]:not([style*=brightness]) ~ div#accessibility-links button#fr_screenreader_highcontrast2,
body[style*=brightness] ~ div#accessibility-links button#fr_screenreader_highcontrast3 {
	font-weight: bold;
	text-decoration: underline;
}

/* Media queries */
@media (max-width: 360px) {
	div.scbasebin.speaker {
		max-width: 360px	
	}
	div#accessibility-links button, span.screenreader_embed_play_button, span.screenreader_embed_stop_button {
	    width: 30px;
	}
}