@font-face {
  font-family:'OpenSans';
  src: url('fonts/opensans-bold.eot');
  src: url('fonts/opensans-bold.eot?#iefix') format('embedded-opentype'),
       url('fonts/opensans-bold.woff') format('woff'),
       url('fonts/opensans-bold.ttf') format('truetype'),
       url('fonts/opensans-bold.svg#open_sansbold') format('svg');
  font-weight:bold;
  font-style:normal;
}

a, a.visited {
  color:#000;
  text-decoration: none;
}

a:hover {
  color:#ccc;
}

b {
  color:#000;
}

body, select, textarea, input[type='text'] {
  font-family:OpenSans, Geneva, Verdana, sans-serif;
  padding:0;
  margin:0;
  overflow:hidden;
  font-size: 0.75em;
}

textarea, input[type='text'] {
  font-family:OpenSans, Geneva, Verdana, sans-serif;
  width: 100%;
  font-size: 1.5em;
  padding: 0.5em;
  box-sizing: border-box;
  margin-bottom: 0.5em;
}

button, input[type='button'], input[type='submit'] {
  font-family:OpenSans, Geneva, Verdana, sans-serif;
  font-size:1.25em;
  color: #fff;
  padding: .3em 2em .25em 2em;
  /*border-radius: 1em;*/
  background-color: #4bb95a;
  border: 1px solid #47ae56;
  box-sizing: border-box;
  overflow: hidden;
  /*box-shadow: 0 1em 1em rgba(0,0,0,0.5);*/
  margin-top: 0;
  margin-bottom: .25em;
  text-transform: uppercase;
}

button:active, input[type='button']:active, input[type='submit']:active {
  /*box-shadow: 0 0 .5em rgba(0,0,0,0.5);*/
  color: #4bb95a;
  background-color: #fff;
}

input[type='checkbox'] {
  transform: scale(1.5);
}

select {
  width: 100%;
  padding: 0.25em;
}

div, canvas, iframe, video {
  box-sizing:border-box;
  max-width:100%;
  border:none;
}

video {
  width: 100%;
}

#video {
  height: 100%;
}

img {
  opacity: 0.5;
  border:none;
  width: 100%;
}

#shared {
  height: 60px;
  overflow: hidden;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0);
}

#shared img {
  width: 12%;
  height: auto;
  top: 50%;
  transform: translate(0, -50%);
  position: relative;
}

button > img {
  height: 1.25em !important;
  width: auto;
  vertical-align: middle;
  opacity: 1;
}

.logo {
  height:4em;
  width:4em;
}

.icon {
  width: auto;
  height: 1.5em;
  vertical-align: middle;
}

#navbar .icon {
  height:30px;
  margin:5px;
}

#canvas {
  overflow:hidden;
  position:absolute;
  top:40px;
}

#navbar {
  position:absolute;
  top:0px;
  height:40px;
  width:100%;
  border-bottom:1px solid #ccc;
  background-color:#ddd;
  z-index:1;
  display: none;
  white-space: nowrap;
}

#overlay {
  display:none;
  position:absolute;
  top:0%;
  left:0%;
  width:100%;
  height:100%;
  z-index:2;
}

#curtain {
  /*background-color:rgba(0,0,0,.5);*/
  width:100%;
  height:100%;
}

#top, #left, #right, #bottom, #row {
  float: left;
  box-sizing: border-box;
  display: block;
}

#row {
  width: 100%;
  height: 100%;
}

#left, #right {
  width: 100%;
  height: 50%;
}

#top {
  width: 100%;
  height: 90px;
}

#bottom {
  width: 100%;
  height: 60px;
  z-index: 100;
  background-color: #fff;
}

.bar {
  background-color:#fff;
  height: 16px;
  min-width: 10px;
  display: block;
  box-sizing: border-box;
}

.small {
  font-size:0.75em;
}

.medium {
  font-size:1.25em;
}

.large {
  font-size:1.5em;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  white-space: nowrap;
}

.nowrap, button {
  white-space: nowrap;
}

.round {
  min-width: 300px;
  border-radius: 2em;
  overflow: hidden;
  background-color: #7a98cb;
  background: linear-gradient(0deg, rgba(122,152,203,1) 0%, rgba(255,255,255,1) 100%);
  box-shadow: 0 1em 1em rgba(0,0,0,0.5);
  box-sizing: border-box;
}

.white {
  background-color: #fff;
}

.faded {
  background-color: rgba(255,255,255,0.75);
}

table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  box-sizing: border-box;
  margin: -2px;
}

td {
  padding: 1em;
  border: 2px solid rgba(0,0,0,0.25);
  background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
  vertical-align: top;
}

td[onclick]:active {
  background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

tr:first-child td {
  border-top: none;
}

tr:last-child td {
  border-bottom: none;
}

tr td:first-child {
  border-left: none;
}

tr td:last-child {
  border-right: none;
}

td.selected .icon {
  opacity: 1;
}

td.selected {
  color: #000;
}

.nopad {
  padding: 0;
}

.hpad {
  padding: 0 10px;
}

.pad {
  padding: 1em;
}

.nopad {
  padding: 0;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.aright {
  float: right;
}

.aleft {
  float: left;
}

br, p, h1, h2, h3, h4, h5 {
  clear:both;
}

.full {
  width: 100%;
}

.half {
  width: 100%;
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10em;
  height: 10em;
  transform: translate(-50%, -50%);
}

#logo, #logo2 {
  position: absolute;
  left: 15%;
  top: 15%;
  width: 70%;
  height: auto;
  opacity: 1;
}

#pending {
  display: inline-block;
  position: absolute;
  width: 100%;
  height: 100%;
  border: 60px solid rgba(0,0,0,0);
  border-radius: 50%;
  border-top-color: #fff;
  border-left-color: #fff;
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
  to { -webkit-transform: rotate(360deg); }
}

#main, #popup {
  position:absolute;
  overflow:hidden;
  width:100%;
  height:100%;
  box-sizing:border-box;
  z-index:3;
  color:rgba(0,0,0,0.5);
}

#popup {
  left:0;
  top:40px;
}

.clicker, .icon, button, td[onclick] {
  cursor: pointer;
}

hr {
  border: 1px solid #ccc;
  width: 95%;
}

.container {
  box-sizing: border-box;
  position: relative;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.row:after, *[class^="row-"]:after {
	content: "";
	display: table;
	clear: both;
}

.col {
  box-sizing: border-box;
  float: left;
  display: block;
}

@media (orientation: landscape) {
  .half {
    width: 50%;
  }
  
  #left, #right {
    width: 50%;
    height: 100%;
  }
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  body, select {
    font-size:0.8em;
  }

  .hpad {
    padding: 0 1.5em;
  }

  #navbar .icon {
    height:40px;
    margin:5px;
  }
  
  #navbar {
    height: 50px;
  }
  
  #popup {
    top: 50px;
  }
  
  #canvas {
    top: 50px;
  }
}

@media screen and (min-width : 1224px) {
  body, select {
    font-size:0.85em;
  }
}

.preview {
  width:200px;
  height:200px;
  float:left;
  text-align:center;
  background-size:200% 100%;
  background-position:center;
  font-family:"OpenSans";
  border-collapse: separate;
  padding:14px;
}

.preview td {
  border: none;
  background: none;
  padding: 0;
  font-size: 1.75em;
  opacity: 0.75;
  text-align: center;
}