body {
  overflow:hidden;
  margin:0;
  padding:0;
}

#container a {
  display:inline-block;
  color:inherit;
  text-decoration:none;
  line-height:25px;
  height:100%;
  width:100%;
}


#bgimg {
  z-index:-10;
  position:absolute;
  height:100vh;
  width:100vw;
  background-size:cover;
  background-repeat:no-repeat;
  box-sizing: border-box;
}


#container {
  position: absolute;
  top:0;
  left:0;
  height:100vh;
  width:100vw;

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.sqr {
  display:inline-block;
  width:150px;
  height:150px;
  margin:3px 3px;
  border:0 solid #000000;
  overflow:hidden;
  -moz-transition:all .25s ease-in-out;
  -webkit-transition:all .25s ease-in-out;
  -o-transition:all .25s ease-in-out;
  transition:all .25s ease-in-out;
}

#container span {
  width:inherit;
  height:inherit;
  line-height:150px;
  text-transform:uppercase;
}


#searchinput {
  width:150px;
  height:37px;
  padding:0 10px;
  border:none;
  box-sizing:border-box;
}


.popup {
  z-index:101;
  position:absolute;
  right:40px;
  padding:25px;
  -moz-transition:bottom .25s ease-in-out;
  -webkit-transition:bottom .25s ease-in-out;
  -o-transition:bottom .25s ease-in-out;
  transition:bottom .25s ease-in-out;
  text-align:left;
}
.popup table {
  margin-bottom: 1em;
}
.popup td:first-child {
  padding-right: 3em;
}

#gearContainer {
  position: fixed;
  bottom: 0;
  right: 0;
  height: 20px;
  width: 20px;
  padding: 10px;
  cursor: pointer;
}
#gear {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}


#version {
  z-index:100;
  position:absolute;
  bottom:5px;
  right:5px;
}


/* CONFIGMENU */

.menuContainer {
  display:flex;

  position:absolute;
  z-index:120;
  top:0;
  left:0;

  width:100vw;
  height:100vh;

  font-family:Arial;
  font-size:14px;

  background-color:rgba(255,255,255,0.2);
  box-sizing:border-box;
}

.menu {
  background-color:#ffffff;
  box-shadow:0 0 15px rgba(0,0,0,0.5);
  margin:auto;
}

.menuBar {
  height:40px;
  font-size:20px;

  background-color:#fbfbfb;
}

.tabBar {
  display:inline-table;
  table-layout:fixed;
  height:100%;
  width:100%;
}

.tab {
  display:table-cell;
  line-height:38px;
  height:auto;
  width:100%;

  padding-left:10px;
  border-width:0 0 2px 2px;
  border-style:solid;
  border-color:#ccc;

  background-color:#eee;

  opacity:0.5;

  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
  cursor:pointer;
}
.tab:first-child {
  border-left-width:0;
}
.tab:last-child {
  border-right-width:0;
}
.tab:hover {
  background-color:#ccc;
}
#activeTab {
  background-color:#fff;
  border-bottom:none;
  border-color:#e5e5e5;
  opacity:1;
}

.menuContent {
  position:relative;
  height:calc(100% - 40px);
  overflow-y:auto;
}

.tabContent {
  position:absolute;
  top:0;
  left:0;
  width:100%;
}

input {
  line-height:19px;
  padding:0 0 0 5px;
  border-radius:0;
  border:1px solid #ddd;
  background-color:#fbfbfb;
}

.menu input {
  font-family:monospace;
  font-size:inherit;
}

.squareHeading {
  display:inline-block;
  position:relative;
  line-height:21px;
  height:21px;
  width:21px;

  margin:30px 0 10px 0;
}
.squareHeading_addS {
  display:inline-block;
  position:relative;
  line-height:21px;
  height:21px;
  width:21px;

  margin:10px 0;
}

.category img {
  display:inline-block;
  opacity:0.5;
  cursor:pointer;
}
.category img:hover {
  opacity:1;
}
.squareHeading input {
  display:inline-block;
  position:absolute;
  top:0;
  width:150px;
}
.squareHeading input[name="prefix"] {
  margin-left:165px;
  width:30px;
}


.squareURL {
  display: flex;
  position:relative;
  line-height:21px;
  height:21px;
  margin:5px 0 0 21px;
}

.squareURL input {
  width:150px;
}
.squareURL input[name="url"] {
  width:100%;
  margin-left:5px;
}

.squareOption {
  display: flex;
  position:relative;
  line-height:21px;
  height:21px;
  margin:5px 0 0 21px;
}
.squareOption input {
  margin-left:5px;
}
.squareOption input[name="opt"] {
  width:70px;
}
.squareOption input[name="url"] {
  width:100%;
}
.squareOption input[name="space"] {
  width:50px;
}


.option {
  display: inline-flex;
  width:100%;

  line-height:25px;
}

.radioOption {
  width:50%;
}

.option label {
  width:100%;
}

.option input {
  margin-top:4px;
}
.option input[type="text"] {
  width:100%;
}


.category {
  margin:40px;
}

.categoryHeading {
  display:inline-block;
  margin-bottom:10px;
  font-size:20px;
}

.menu-button {
  width:40px;
  height:40px;

  float:right;

  line-height:40px;
  text-align:center;

  background-color:#ffffff;
  border-bottom:2px solid #e5e5e5;

  cursor:pointer;
  box-sizing:border-box;
  background-color:#ccccdd;
}
.menu-button:hover {
  background-color:#9999bb;
}
.menu-button:last-of-type {
  border-width:0 0 2px 2px;
  border-style:solid;
  border-color:#e5e5e5;
}

#import {
  background-image:url("../img/import.png");
  background-size:contain;
}
#importinput {
  display:none;
}

#export {
  background-image:url("../img/export.png");
  background-size:contain;
}

#save {
  background-image:url("../img/save.png");
  background-size:contain;
  background-color:#ccddcc;
}
#save:hover {
  background-color:#99bb99;
}


.splitbutton {
  position:relative;

  --margin:18px;

  display:inline-block;
  height:calc(100% - var(--margin) * 2);
  width:calc(50% - (var(--margin) + var(--margin) / 2));
  margin:var(--margin) 0 0 var(--margin);

  font-size:14px;

  background-color:#fbfbfb;

  border:solid 1px #dddddd;
  box-sizing:border-box;

  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
  cursor:pointer;
}
.splitbutton_nametable {
  display:table;
  height:100%;
  width:100%;

  text-align:center;

  transition:height .1s ease-in-out;
}
.splitbutton_namecell {
  display:table-cell;

  vertical-align:middle;

  background-color:inherit;
}
.splitbutton_description {
  position:absolute;
  bottom:0;
  left:0;

  overflow:hidden;

  height:0;
  width:100%;

  padding:20px 10px 0 10px;
  box-sizing:border-box;

  background:linear-gradient(#dddddd, #f4f4f4 5%);

  transition:height .1s ease-in-out;
}

.splitbutton:hover .splitbutton_description {
  height:calc(100% - 100px);
}
.splitbutton:hover .splitbutton_nametable {
  height:100px;
}

.version {
  font-size:0.8em;
}
