﻿@import url(https://fonts.googleapis.com/css?family=Share+Tech+Mono);

body,
p {
  padding: 0;
  margin: auto;
  font-family: Arial, Helvetica, sans-serif;
}

body { height: 100vh; margin:0; }

h1 {
  text-align: center;
  margin:0px; 
  font-weight:normal;
}

h2 {
  margin: 0 0 14px 0;
  border-bottom: 1px solid black;
}

button {
  margin-bottom: 10px;
}

label {
  text-align: left;
  font-size: 1.25em;
  color: #777776;
  display: block;
}

header {
  text-align: center;
  height: 40px;
  background-color: #00805659;
  padding:10px 0; margin: 0;
}

#device-logout {
  position:absolute; top:0; right: 0;
  margin:10px; padding: 8px 15px;
  font-size:18px;
  background-color:#ddf3ec; border:1px solid black;
  cursor:pointer;
}

#device-logout:hover {
  background-color:#175843;
  color:white;
}

#my-phone-number {
  height:30px;
  font-size:20px;
  position: absolute; top:17px; left:10px;
  color:#385c50;
}

#current-number {
  position:relative; top:-10px;
  display:inline-block; width:140px;
  color:#4c7b6c;
}

#login-code {
  width:200px; height: 24px;
  display:block;
  padding: 4px; margin:10px auto;
  background-color:#ebebeb;
  border:1px solid #919191;
}

#startup-button {
  border:1px solid #919191;
  height:42px;
  display:block;
  padding:5px 40px; margin:0 auto;
  display:block;
  font-size:24px;
  cursor:pointer;
}
#startup-button:hover {
  background-color:#4c4c4c;
  color:white;
}

#login-error {
  font-size:24px; margin:18px 0;
  text-align:center;
  color:#9f0000;
  background-color:#ffd7d7;
  padding:10px;
  transition:opacity 1s;
}

main {
  padding: 25px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: calc( 100% - 110px );
}

.left-column,
.center-column,
.right-column {
  width: 30%;
  min-width: 260px;
  margin: 0 24px;
  text-align: center;
  height:100%;
}

/* Left Column */
#client-name {
  text-align: left;
  margin-bottom: 1em;
  font-family: "Helvetica Light", Helvetica, sans-serif;
  font-size: 20px;
  color: #777776;
  word-break:break-all;
}

#client-name .identity {
  font-size:26px;
  font-weight:bold;
  color:#3464a3;
}

#output-selection {
  height:calc( 100% - 365px );
}

#answer-options {
  height: 250px;
}

select {
  width: 100%;
  height: 25%;
  margin-bottom: 10px;
}

/* Center Column */
input {
  font-family: Helvetica-LightOblique, Helvetica, sans-serif;
  font-size: 20px;
  width: calc(100% - 15px);
  height: 30px;
  padding: 0 5px;
  display: block;
  margin: 5px 0 0 0;
}

#number-caption {
  font-size:12px;
  text-align:left;
  font-family: consolas;
  margin: 0 0 10px 0;
}

#dtmf-buttons {
  border:1px solid black;
  padding:5px 0;
  width:calc(80% - 2px);
  margin-left:10%;
}

#dtmf-buttons .dtmfbutton {
  width:50px; height:50px;
  border-radius:25px;
  font-size:24px; line-height:20px;
  cursor:pointer;
  border:1px solid black;
  margin:2px; padding:0;
}
#dtmf-buttons .dtmfbutton:hover {
  background-color:#bbb;
}
#dtmf-buttons .dtmfbutton div {
  font-size:12px; line-height:16px;
}

#button-call,
#button-hangup-outgoing,
#button-mute,
#button-join-conference,
#button-add-to-conference
{
  border:none; background:none;
  width:50px; height:50px;
  margin:3px; padding:0;
  cursor:pointer;
  background-size:contain;
}

#button-call { background-image:url("telephone-call.png"); }
#button-call:hover { background-image:url("telephone-call-dark.png"); }
#button-call.disabled { background-image:url("telephone-call-grey.png"); }

#button-hangup-outgoing { background-image:url("missed-call.png"); }
#button-hangup-outgoing:hover { background-image:url("missed-call-dark.png"); }
#button-hangup-outgoing.disabled { background-image:url("missed-call-grey.png"); }

#button-mute { background-image:url("mute.png"); }
#button-mute:hover { background-image:url("mute-dark.png"); }
#button-mute.disabled { background-image:url("mute-grey.png"); }
#button-mute.active { background-image:url("mute-active.png"); }
#button-mute.active:hover { background-image:url("mute-active-dark.png"); }

#button-join-conference { background-image:url("group.png"); }
#button-join-conference:hover { background-image:url("group-dark.png"); }
#button-join-conference.disabled { background-image:url("group-grey.png"); }

#button-add-to-conference { background-image:url("outgoing-call.png"); }
#button-add-to-conference:hover { background-image:url("outgoing-call-dark.png"); }
#button-add-to-conference.disabled { background-image:url("outgoing-call-grey.png"); }

div#volume-indicators {
  padding: 10px;
  margin-top: 20px;
  width: calc(100% - 22px);
  border:1px solid black;
  text-align: left;
}

div#volume-indicators > div {
  display: block;
  height: 20px;
  width: 0;
  margin-bottom:5px;
}

/* Right Column */

#log {
  text-align: left;
  border: 1px solid #686865;
  padding: 10px;
  overflow-y: scroll;
  font-size:12px;
  height:calc( 100% - 110px );
}

.log-entry {
  color: #686865;
  font-family: "Share Tech Mono", "Courier New", Courier, fixed-width;
  font-size: 16px;
  line-height: 18px;
  margin-left: 22px;
  text-indent: -26px;
  width: 90%;
}

.log-entry span.close {
  background-image: url("close-dark.png");
  width: 20px; height: 20px;
  display: inline-block;
  background-size: contain;
  margin-left: 5px;
  position: relative;
  bottom: -5px;
  cursor: pointer;
}
.log-entry span.close:hover { background-image: url("close.png"); }

.green { color: #0a0; }
.red { color:#a00; }
.strike { color:#ccc; text-decoration: line-through; }

#command-bar {
  margin: 0 0 10px 0;
  position:relative;
}

#command-input {
  width:calc(100% - 22px); padding:0 10px; margin: 0;
  font-family: "Share Tech Mono", "Courier New", Courier, fixed-width;
  font-size:16px;
  color:#6fff47; background-color: #444;
}

#command-bar i {
  position:absolute;
  width:1px; height: 18px;
  background-color:#6fff47;
  left:12px;
  top:8px;
  animation-name:blink;
  animation-duration:1100ms;
  animation-iteration-count:infinite;
  opacity:1;
}
#command-bar #command-input:focus + i { display:none; }
@keyframes blink {
  from { opacity: 1; }
  50% { opacity: 1; }
  to { opacity: 0; }
}

/* Other Styles */
.hide {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

button:disabled {
  cursor: not-allowed;
}

/* CSS FOR THE TOGGLE SWITCH */
/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #447464;
}

input:focus + .slider {
  box-shadow: 0 0 1px #447464;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* css for the fancy radio buttons */
.radio-wrapper-9 input[type=radio] {
	display: none;
	appearance: none;
}
.radio-wrapper-9 input[type=radio] + label {
  line-height: 1.75em;
}
.radio-wrapper-9 input[type=radio] + label:before {
	content: "";
	background: #f4f4f4;
	border-radius: 100%;
	border: 1px solid #b4b4b4;
	display: inline-block;
	width: 1.4em;
	height: 1.4em;
	position: relative;
	top: -0.1em;
	margin-right: .6em;
	vertical-align: middle;
	cursor: pointer;
	text-align: center;
	transition: all 250ms ease;
}
.radio-wrapper-9 input[type=radio]:checked + label:before {
	background-color: #3197EE;
	box-shadow: inset 0 0 0 4px #f4f4f4;
}
.radio-wrapper-9 input[type=radio]:focus + label:before {
	outline: none;
	border-color: #3197EE;
}
.radio-wrapper-9 input[type=radio]:disabled + label:before {
	box-shadow: inset 0 0 0 4px #f4f4f4;
	border-color: #b4b4b4;
	background: #b4b4b4;
}
.radio-wrapper-9 input[type=radio] + label:empty:before {
	margin-right: 0;
}



/* RESPONSIVE SECTION */

/* Medium devices (992px and down) */
@media only screen and (max-width: 992px) {

main {
  padding: 5px 0;
}

.left-column,
.right-column {
  min-width:150px;
}

#output-selection label {
  font-size:18px;
}

.log-entry {
  font-size:14px;
  margin-left:18px; text-indent: -23px;
  line-height:16px;
}

}


/* Extra small devices (600px and down) */
@media only screen and (max-width: 600px) {

header {
  height: 30px;
  padding:4px 0;
}

#device-logout {
  top:32px;
  padding: 2px 10px;
  font-size:16px;
}

#my-phone-number {
  top:45px;
}


main {
  padding:5px 0;
  flex-wrap:wrap;
  height:auto;
}

h1 {
  font-size:20px;
  margin:6px;
}

#current-number {
  font-size:16px;
  top:-5px;
  width:110px;
}

.left-column {
  order:2;
}

.left-column,
.right-column {
  width:calc(50% - 20px);
  min-width:100px;
  margin: 0 10px;
}

.center-column {
  width:100%;
  height:auto;
  margin:0 10px;
  padding-bottom:10px;
}

#log {
  height: 25em;
}
#client-name .identity {
  font-size: 20px;
}

label {
  font-size: 1em;
}

#dtmf-buttons {
  width:250px;
  margin:0 auto;
}

.switch {
  width: 34px;
  height: 22px;
}

.slider:before {
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
}

input:checked + .slider:before {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}


}
