/*
	style.css
	Mike's PBX Cookbook
	http://pbxbook.com/
*/

a img {border:none;}
table {border-radius:4px;}
textarea {border-radius:4px;}

img.shdw {box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);}
img.rnd {border-radius:4px;}
img.led {width: 16px;height: 16px;vertical-align: middle;}

a:link {color:blue;background-color:transparent;}
a:visited {color:purple;background-color:transparent;}
a:active {color:green;background-color:transparent;}
a:hover {color:red;}

#content {padding:0 20px;text-align:left;margin:auto;max-width:1200px;}
#content hr {background-color:#9E9E9E;border:0;color:#9E9E9E;height:1px;text-align:left;width:100%;}
#content hr.dotted{display: inline-block;border:none;margin-left:0;border-top:1px dotted #f00;color:#fff;background-color:#fff;height:1px;width:50%;}

#indexpage {padding: 0 10px;text-align:left;margin:auto;max-width:1600px;}
.indexpage hr {background-color:#9E9E9E;border:0;color:#9E9E9E;height:1px;text-align:left;width:100%;}

/*  icons for links */
.indexcols a[href$=".pdf"]::after {content: " " url(/images/pdf.png);}
.indexcols a[href$=".zip"]::after {content: " " url(/images/zip.png);}
.indexcols a[href$=".gif"]::after {content: " " url(/images/img.png);}
.indexcols a[href$=".xlt"]::after {content: " " url(/images/xls.png);}
.indexcols a[href$=".xls"]::after {content: " " url(/images/xls.png);}
.indexcols a[href$=".xlsx"]::after {content: " " url(/images/xls.png);}
.indexcols a[href$=".doc"]::after {content: " " url(/images/doc.png);}
.indexcols a[href$=".docx"]::after {content: " " url(/images/doc.png);}
.indexcols a[href$=".php"]::after {content: " " url(/images/app.png);}
.indexcols a[href$=".exe"]::after {content: " " url(/images/app.png);}
.indexcols a[href^="http"]::after {content: " " url(/images/link.png);}

#query {font-size:14px;}
#addthis {position:absolute;right:5px;top:5px;}
#disclaimer {display:block;font-size:9px;line-height:1.3em;padding:10px;text-align:center;max-width:610px;margin:0 auto;}

select {font-size:12px;border-radius: 10px;}

span.step {float:left;margin: 0 0 10px 5px;-moz-border-radius:1em;-webkit-border-radius:1em;background-color: rgb(255, 38, 0);border-radius:1em;color:#fff;display:inline-block;font-size:90%;font-weight:700;line-height:1.6em;margin-right:6px;text-align:center;width:1.6em;padding:1px}

b.pen {background-color:#FF8;color:#000;font-weight:400;padding:1px 2px;}

table.bixlabel{border-collapse:collapse;table-layout:fixed;width:920px;font-size:11px;line-height:14px;margin:auto;text-align:center;}
table.bixlabel td {border:1px solid #c0c0c0;margin:0;padding:4px;}
table.bixlabel tr {border:2px solid var(--background-color, black);vertical-align:middle;}
table.bixlabel th {background:grey;margin:0;padding:4px;color:#444}

table.thinline {border:solid 1px #aaa;padding:2px;}
.thinline tr:nth-of-type(odd) {background-color:#f0f0f0;}
.thinline th {background-color:#E6E6FA;text-align:center;vertical-align:middle;}

table.thingrey {border-collapse:collapse;border-color:#c0c0c0;border-spacing:0;border-style:solid;border-width:0 0 1px 1px;}
.thingrey td {border-color:#c0c0c0;border-style:solid;border-width:1px 1px 0 0;margin:0;padding:4px;vertical-align:text-top;}
.thingrey th {border-color:#c0c0c0;border-style:solid;border-width:1px 1px 0 0;margin:0;padding:4px;text-align:center;vertical-align:middle;background-color:#E6E6FA;}

table.thinblack {border-collapse:collapse;border-color:grey;border-spacing:0;border-style:solid;border-width:0 0 1px 1px;}
.thinblack tr:nth-of-type(odd) {background-color:#f0f0f0;}
.thinblack td {border-color:grey;border-style:solid;border-width:1px 1px 0 0;margin:0;padding:4px;vertical-align:text-top;}
.thinblack th {background-color:#E6E6FA;border-color:grey;border-style:solid;border-width:1px 1px 0 0;margin:0;padding:4px;text-align:center;vertical-align:middle;}

table.prompts {border:solid 1px #aaa;padding:2px;width:80%;margin:20px auto}
table.prompts tr:nth-of-type(odd) {background-color:#f0f0f0;}
table.prompts th {background-color:#E6E6FA;text-align:center;vertical-align:middle;}
table.prompts td:nth-child(1) {width:100px;color: var(--tty-color,#000080);font: 14px monospace;padding:1px 3px;}
table.prompts td:nth-child(2) {width:130px;color: var(--tty-color,#000080);font: 14px monospace;padding:1px 3px;}

table.prompt {margin-left: 50px}
table.prompt th {text-align:left;vertical-align:middle;padding:6px 0;text-decoration: underline}
table.prompt td:nth-child(1) {display: inline-block;width:200px;color: var(--code-color,darkblue);font:14px monospace;}


@media only screen and (max-width: 725px) { 
table.prompts {width:100%;}
}

.errorMessage,.warningMessage,.successMessage,.infoMessage {margin:20px auto;padding:5px 5px 5px 35px;text-align:left;display:inline-block;position: relative;left: 50%;transform: translateX(-50%);border-radius:4px;color:black}
.warningMessage {background:url(/images/knob/warning.png) no-repeat 5px rgba(255, 255, 204, .9);border:1px solid #FC3;}
.successMessage {background:url(/images/knob/success.png) no-repeat 5px rgba(224, 241, 221, .9);border:1px solid #69AF5F;}
.errorMessage {background:url(/images/knob/error.png) no-repeat 5px rgba(255, 221, 221, .9);border:1px solid #C00;}
.infoMessage {background:url(/images/knob/info.png) no-repeat 5px rgba(236, 244, 255, .9);border:1px solid #04A;}

#tester  {display:none;}

#prtname {display:none;}

@media print {
	body {-webkit-print-color-adjust: exact;zoom:75%;
	      -moz-transform: scale(0.75);
         }
	#content {width: 100%;padding:0;margin:0;}
	#google  {display:none;}
	#navsite {display:none;}
	.hideme  {display:none;}

	#prtname {display:block;font:bold italic 14pt Verdana;}
}

/* ------------------------------------------------- */


@media (prefers-color-scheme: light) {
  :root {
    --background-color: #ffffff;
    --text-color: #000000;
    --subheading: #339;
    --navsite-bg: #E6E6FA;
    --navsite-tab: #ccf;
    --navsite-color: #339;
    --navsite-current: #339;
    --navsub-current: red;
    --tty-color: #000080;
    --code-bg:#eee;
    --code-color:darkblue;
    --pre-bg: #eef;
    --pre-border:#A8A8FF;
    --pre-color: #000;
    --index-bg:#e0e0e0;
    --index-color: #000;
    --heading-color:#339;
    --em-color:blue;
    --thinbluebg:#ECF4FF;
    --navdropdown-bg:#ccc;
    --navdropdown-color:black;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #141414;
    --text-color: #d0d0d0;
    --subheading: #936;
    --navsite-bg: #1f1f1f;
    --navsite-tab: #1f1f1f;
    --navsite-color: #33f;
    --navsite-current: #936;
    --navsub-current: #936;
    --tty-color: #316ea4;
    --code-bg: #555;
    --code-color: lime;
    --pre-bg: #000;
    --pre-border: green;
    --pre-color: lime;
    --index-bg:grey;
    --index-color: #333;
    --heading-color:#669;
    --em-color:yellow;
    --thinbluebg:#000055;
    --navdropdown-bg:black;
    --navdropdown-color:white;

  }
}

body {
/* -webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none; */
  font:400 14px/1.5 'Verdana', sans-serif;margin:0;padding:0;text-align:center;
  background-color: var(--background-color, white);
  color: var(--text-color, black);width:100%;
}

#navsite {
  background-color: var(--navsite-bg,#E6E6FA);
  color: var(--navsite-color,white);
  margin:0;padding:0;text-align:center;
}

#navsite ul {border-bottom:1px solid #669;font-size:14px;font-weight:bold;margin:0;padding:0;}
#navsite ul li {display:inline;line-height:normal;list-style:none;margin:0;}

#navsite ul li a {
  background-color: var(--navsite-tab,#ccf);color: var(--navsite-color,#339);
  border-top:1px solid #669;border-left:1px solid #669;border-right:1px solid #669;border-top-left-radius:4px;border-top-right-radius:4px;margin-left:3px;padding:2px .4em;text-decoration:none;
}

#navsite ul li a#navcurrent {
  background-color: var(--background-color,white);
  color: var(--navsite-current,#339);
  border-bottom:1px solid var(--background-color,white);
}

#navsite ul li a:hover {
  background-color: var(--background2-color);
  color: var(--subheading,#339);
}

#navsub {text-align:center;}
#navsub ul li {display:inline;font-weight:normal;}

#navsub ul {
  background-color: var(--background-color,white);
  border:0;float:center;margin:10;padding:6px;
}

#navsub ul li a {
  background-color: var(--background-color,white);
  border:0;text-decoration:none;padding:2px
}

#navsub ul li a#current {border-bottom:2px; border-color: var(--navsub-current,red); border-style:solid;}
#navsub ul li a:hover {border-bottom:2px solid #00f}


.navsite {position:relative;text-align:center;cursor:pointer;width: 100%;}

.navdropdown-content {
  display: none;
  position: absolute;
  background-color: var(--navdropdown-bg,#ccc);
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.navdropdown-content a {text-align:left;color: var(--navdropdown-color,black);padding: 12px 16px;text-decoration: none;display: block;}
.navdropdown-content a:hover {background-color: #222;color:white}
.navdropdown-show {display: block;}

.titletext {color: var(--heading-color,#339);font:bold italic 40px Verdana;line-height:1.3em;border-top:1px solid #669;cursor:context-menu;}
.titletext a:visited, a:link {color: var(--heading-color,#339);text-decoration: none;}
.titletext a:hover, a:active {color: var(--heading-color,#339);text-decoration: none;}

.keeptogether {display: inline-block;width: 100%;margin:5px 0}
.keeptogether ul {list-style: none;padding-left: 0;}

pre {
background-color: var(--pre-bg,#eef);color: var(--pre-color,#000);
border: solid 1px var(--pre-border,#A8A8FF);border-radius:4px;
font:14px monospace;margin:20px auto;line-height:1.3;
overflow:auto;padding:5px 10px;white-space:0;max-width:800px;word-wrap:break-word;
}
pre::-webkit-scrollbar {-webkit-appearance: none;width: 8px;}
pre::-webkit-scrollbar-thumb {border-radius: 4px;background-color: #7c7c7c;}
pre::-webkit-scrollbar-track {background-color: #e0e0e0;} 

.subhead, .subhead a:link {color: var(--subheading,#339);font:bold 13pt Verdana;}


.indexcols a:link {padding:2px;}
.indexcols a:visited {text-decoration:none;}
.indexcols a:active {text-decoration:none;}
.indexcols a:hover {background-color: var(--index-bg,#e0e0e0);color: var(--index-color,#000);text-decoration:none;border-radius:4px;}

.indexcols {display:block;padding:10px 20px;column-width: 220px;column-count: auto;column-gap:30px;}
.indexcols ul {list-style: none;padding-left: 0;}


h1 {color: var(--heading-color,#339);font-size:180%;padding:5px 0;line-height:normal;text-align:center}
h2 {color: var(--heading-color,#339);font-size:150%;padding:10px 0 0;line-height:normal;text-align:center}
h3 {color: var(--heading-color,#339);font-size:130%;padding:10px 0 0;line-height:normal;}
h4 {color: var(--heading-color,#339);font-size:110%;padding:0;line-height:normal;}

code {
background-color: var(--code-bg,#eee);
color: var(--code-color,#000);display: inline-block;margin:1px;
font:14px monospace;padding:0 3px;border-radius:2px;
}

#tty {color: var(--tty-color,#000080);font: 14px monospace;padding:1px 3px;} /* dont use ID=TTY */
.tty {color: var(--tty-color,#000080);font: 14px monospace;padding:1px 3px;}
tt-x {color: var(--code-color,darkblue);font:14px monospace;}


em {color: var(--em-color,blue);}
tt {color:#0040ff;font-size:14px;}
.tt {font: 14px monospace;padding:1px 3px;color:#0040ff;}

#related {font-size:10pt;padding:2px 4px;}
#related a:link {color:#66c;padding:2px;text-decoration:none;}
#related a:hover {background-color: var(--index-bg,#e0e0e0);color: var(--index-color,#000);text-decoration:none;border-radius:4px;}

table.thinblue {margin:0 auto;border-collapse: collapse;}
.thinblue tr:nth-child(odd) td{border: solid 1px #c0c0c0;background-color: var(--thinbluebg,#ECF4FF);color: var(--text-color, black);padding:4px;}
.thinblue tr:nth-child(even) td{border: solid 1px #c0c0c0;background-color: var(--background-color, white);color: var(--text-color, black);padding:4px;}
.thinblue td {vertical-align:text-top;}

table.bixlabel{border-collapse:collapse;table-layout:fixed;width:920px;font-size:11px;line-height:14px;margin:auto;text-align:center;}
table.bixlabel td {border:1px solid #c0c0c0;margin:0;padding:4px;}
table.bixlabel tr {border:2px solid var(--text-color, black);vertical-align:middle;}
table.bixlabel th {background:#f0f0f0;margin:0;padding:4px;}


/* ------------------------------------------------- */


/*  Dark theme only */

@media (prefers-color-scheme: dark) {
  
img {filter: brightness(90%);}
img.shdw {box-shadow: 0 4px 8px 0 rgba(128, 128, 128, 0.1), 0 6px 20px 0 rgba(128, 128, 128, 0.1);}

#indexpage hr {background-color:grey;border:0;color:grey;height:1px;text-align:left;width:100%;}

table.thinline {border:solid 1px grey;padding:2px;}
.thinline tr:nth-of-type(odd) {background-color:black;}
.thinline th {background-color:#336}

table.thingrey {border-color:grey;}
.thingrey th {background-color:#669;color:black;border-color:grey}
.thingrey td {border-color:grey}

table.thinblack {border-collapse:collapse;border-color:grey;border-spacing:0;border-style:solid;border-width:0 0 1px 1px;}
.thinblack tr:nth-of-type(odd) {background-color:black;}
.thinblack tr:hover {background-color:#555;}
.thinblack td {border-color:grey;border-style:solid;border-width:1px 1px 0 0;margin:0;padding:4px;vertical-align:text-top;}
.thinblack th {background-color:#336;border-color:grey;border-style:solid;border-width:1px 1px 0 0;margin:0;padding:4px;text-align:center;vertical-align:middle;}


table.prompts {border:solid 1px #666;padding:2px;width:80%;margin:20px auto}
table.prompts tr:nth-of-type(odd) {background-color:black;}
table.prompts th {background-color:#336;text-align:center;vertical-align:middle;}
table.prompts td:nth-child(1) {width:100px;color: var(--tty-color,#000080);font: 14px monospace;padding:1px 3px;}
table.prompts td:nth-child(2) {width:130px;color: var(--tty-color,#000080);font: 14px monospace;padding:1px 3px;}


@media only screen and (max-width: 725px) { 
table.prompts {width:100%;}
}


}
/* breadcrumb line*/
.breadcrumb {display: none;color:#669;font-weight: bold;;margin:4px} 

/*--------------------------------------------------------------------
 For small screen
--------------------------------------------------------------------*/

@media only screen and (max-width: 725px) { 
  #google {display: none;} 
  #navsub {display: none;} 
  #hideme {display: none;}  
  .hideme {display: none;} 
  .breadcrumb {display: inline-block;} 
  
  #content {padding:4px;}
  .titletext {font-size:26px;border-bottom:1px solid #669;padding:5px} 
  img, pre {max-width: 100%;height:auto;}
}
/* hack to stop mobile safari making some fonts larger */
@media screen and (max-device-width: 480px){
  body{
    -webkit-text-size-adjust: none;
  }
}
/*--------------------------------------------------------------------*/

/* https://w3bits.com/rainbow-text/ */

.rainbow-text {
        background-image: repeating-linear-gradient(45deg, violet, indigo, blue, green, yellow, orange, red, violet);
        text-align: center;
        background-size: 800% 800%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: rainbow 6s ease infinite;
    }

@keyframes rainbow {
        0%  {background-position: 0% 50%}
        50% {background-position: 100% 25%}
        100% {background-position: 0% 50%}
    }


/* --------------------------------------------------
   Accordion - used for FAQ pages
   -------------------------------------------------- */

.accordion {
    margin:3px 0;
    background: rgba(220,220,255,0.5);
    cursor: pointer;
    padding: 2px 10px;
    text-align: left;
    transition: 0.4s;
    border: 1px solid #aac;
    border-radius:20px;
}

.accordion:hover, .accordion.active {
    background-color: #ddd;color: #000;
}

.accordion:after {
    content: '\2192';
    color: #777;
    float: right;
    margin-right: 5px;
}

.accordion.active:after {
    content: "\2193";
}

.accdpanel {
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accbtn {
    margin:8px 0;background-color: #ccc;
    cursor: pointer;height:24px;width:24px;
    font-size:14px;border: 0;border-radius:12px;
}

.accbtn:hover, .button.active {
    background-color: #ddd;
}

/* computer keyboard and norstar keys */
kbd {
display: inline-block;
margin: 0 .3em;
padding: .1em .5em;
font-family:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;
font-size: 12px;
line-height: 1.3em;
color: rgb(36, 39, 41);
text-shadow: rgb(255, 255, 255) 0px 1px 0px;
background-color: rgb(228, 230, 232);
border: 1px solid rgb(159, 166, 173);
border-radius: 3px;
box-shadow: rgba(12, 13, 14, 0.15) 0px 1px 1px 0px, rgb(255, 255, 255) 0px 1px 0px 0px inset;
white-space: nowrap;min-width: .7em;text-align: center;font-weight: bold;
}

setdisp {
display:block;font-family:monospace;
font-size:1.1em;line-height:1.5em;
margin:10px;padding:0 4px;
float:right;width:160px;border:1px solid blue;
border-radius:5px;color:black;background-color:#E0F8F1;
}

/* --------------------------------------------------
   lightbox
   -------------------------------------------------- */

/* Preload images */
body:after {
  content: url(/images/close.png) url(/images/loading.gif) url(/images/prev.png) url(/images/next.png);
  display: none;
}

.lightboxOverlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: black;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
  opacity: 0.8;
  display: none;
}

.lightbox {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10000;
  text-align: center;
  line-height: 0;
  font-weight: normal;
}

.lightbox .lb-image {
  display: block;
  height: auto;
  max-width: inherit;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
}

.lightbox a img {
  border: none;
}

.lb-outerContainer {
  position: relative;
  background-color: white;
  *zoom: 1;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
  border-radius: 4px;
}

.lb-outerContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-container {
  padding: 4px;
}

.lb-loader {
  position: absolute;
  top: 43%;
  left: 0;
  height: 25%;
  width: 100%;
  text-align: center;
  line-height: 0;
}

.lb-cancel {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  background: url(../images/loading.gif) no-repeat;
}

.lb-nav {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.lb-container > .nav {
  left: 0;
}

.lb-nav a {
  outline: none;
  background-image: url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
}

.lb-prev, .lb-next {
  height: 100%;
  cursor: pointer;
  display: block;
}

.lb-nav a.lb-prev {
  width: 34%;
  left: 0;
  float: left;
  background: url(../images/prev.png) left 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-prev:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-nav a.lb-next {
  width: 64%;
  right: 0;
  float: right;
  background: url(../images/next.png) right 48% no-repeat;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.6s;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.lb-nav a.lb-next:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.lb-dataContainer {
  margin: 0 auto;
  padding-top: 5px;
  *zoom: 1;
  width: 100%;
  -moz-border-radius-bottomleft: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.lb-dataContainer:after {
  content: "";
  display: table;
  clear: both;
}

.lb-data {
  padding: 0 4px;
  color: #ccc;
}

.lb-data .lb-details {
  width: 85%;
  float: left;
  text-align: left;
  line-height: 1.1em;
}

.lb-data .lb-caption {
  font-size: 13px;
  font-weight: bold;
  line-height: 1em;
}

.lb-data .lb-number {
  display: block;
  clear: left;
  padding-bottom: 1em;
  font-size: 12px;
  color: #999999;
}

.lb-data .lb-close {
  display: block;
  float: right;
  width: 30px;
  height: 30px;
  background: url(../images/close.png) top right no-repeat;
  text-align: right;
  outline: none;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
  opacity: 0.7;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  -o-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.lb-data .lb-close:hover {
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}
/* --------------------------------------------------
   LEDs  
-----------------------------------------------------*/

.led {
  height: 14px;width: 14px;
  border-radius: 50%;margin:0 0 2px 0;
  display: inline-block;vertical-align: middle;;
}

.grn {background-color: rgb(46, 224, 64)}
.red {background-color: rgb(224, 46, 64)}
.yel {background-color: rgb(255,223,0)}
.off {background-color: rgb(105, 105, 105)}
.ora {background-color: rgb(255, 133, 27)}

.grnoff {animation: grnoff 1s infinite;}
.grnofffast {animation: grnoff 0.5s infinite;}
.redoff {animation: redoff 1s infinite;}
.redofffast {animation: redoff 0.5s infinite;}
.redoffslow {animation: redoff 5s infinite;}
.redgrn {animation: redgrn 1s infinite;}
.redgrnfast {animation: redgrn 0.5s infinite;}
.yeloff {animation: yeloff 1s infinite;}
.yelgrn {animation: yelgrn 1s infinite;}

@keyframes grnoff {
  from {background-color: rgb(46, 224, 64)}
  50%  {background-color: rgb(105, 105, 105)}
  to   {background-color: rgb(46, 224, 64)}
}

@keyframes redoff {
  from {background-color: rgb(224, 46, 64)}
  50%  {background-color: rgb(105, 105, 105)}
  to   {background-color: rgb(224, 46, 64)}
}

@keyframes yeloff {
  from {background-color: rgb(255,223,0)}
  50%  {background-color: rgb(105, 105, 105)}
  to   {background-color: rgb(255,223,0)}
}

@keyframes yelgrn {
  from {background-color: rgb(255,223,0)}
  50%  {background-color: rgb(46, 224, 64)}
  to   {background-color: rgb(255,223,0)}
}

@keyframes redgrn {
  from {background-color: rgb(224, 46, 64)}
  50%  {background-color: rgb(46, 224, 64)}
  to   {background-color: rgb(224, 46, 64)}
}



/* --------------------------------------------------
   goto top button
   -------------------------------------------------- */
   
#gototop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: 1px solid black;
  outline: none;
  background-color: #669;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

#gototop:hover {
  background-color: #555;
}