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

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

h1 {
  text-align: center;
}

h2 {
  margin-top: 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;
}

main {
  padding: 3em;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.left-column,
.center-column,
.right-column {
  width: 30%;
  min-width: 16em;
  margin: 0 1.5em;
  text-align: center;
}

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

select {
  width: 300px;
  height: 60px;
  margin-bottom: 10px;
}

/* Center Column */
input {
  font-family: Helvetica-LightOblique, Helvetica, sans-serif;
  font-style: oblique;
  font-size: 1em;
  width: 100%;
  height: 2.5em;
  padding: 0;
  display: block;
  margin: 10px 0;
}

div#volume-indicators {
  padding: 10px;
  margin-top: 20px;
  width: 500px;
  text-align: left;
}

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

/* Right Column */
.right-column {
  padding: 0 1.5em;
}

#log {
  text-align: left;
  border: 1px solid #686865;
  padding: 10px;
  height: 9.5em;
  overflow-y: scroll;
}

.log-entry {
  color: #686865;
  font-family: "Share Tech Mono", "Courier New", Courier, fixed-width;
  font-size: 1.25em;
  line-height: 1.25em;
  margin-left: 1em;
  text-indent: -1.25em;
  width: 90%;
}

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

button:disabled {
  cursor: not-allowed;
}

/* Dial and in-call DTMF keypad */
#dtmf-keypad {
  width: min(100%, 280px);
  margin: 16px auto 20px;
  padding: 16px;
  border: 1px solid #c9c9c9;
  border-radius: 10px;
  box-sizing: border-box;
}

#dtmf-keypad h3 {
  margin: 0 0 6px;
}

.keypad-help {
  margin: 0 0 14px;
  color: #686865;
  font-size: 0.9rem;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(54px, 1fr));
  gap: 10px;
}

.dtmf-key {
  min-height: 54px;
  margin: 0;
  border: 1px solid #777776;
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
}

.dtmf-key:hover,
.dtmf-key:focus-visible {
  background: #f0f0f0;
}

.dtmf-key:active {
  transform: scale(0.96);
}

.keypad-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.keypad-action {
  min-height: 38px;
  margin: 0;
  border: 1px solid #777776;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.keypad-action:hover,
.keypad-action:focus-visible {
  background: #f0f0f0;
}

.keypad-action:disabled {
  opacity: 0.5;
}

@media (max-width: 900px) {
  main {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25em;
  }

  .left-column,
  .center-column,
  .right-column {
    width: auto;
    min-width: 0;
    margin: 0 0 2em;
  }

  select,
  div#volume-indicators {
    width: 100%;
    box-sizing: border-box;
  }
}

