html {
  --hover-bg: #434c5e;
  --hover-grn: #a3be8c;
  --hover-bg-2: #848ead;
  --remove-bg: #bf616a;
  --default-fg: #d8dee9;
  --default-bg: #2e3440;
}
  
html, body {
  font-size: 16px !important;
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  color: var(--default-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#links {
  display: flex;
  flex-direction: row;
  display: -webkit-flex;
  -webkit-flex-direction: row;
  min-height: 283px;
}

ul {
  position: relative;
  list-style: none;
  padding: 0;
  width: 10rem;
  margin: 0.5rem 2em 2em 2em;
  float: left;
}

img {
  float: left;
  margin-top: 1px;
  padding-right: 3px;
}

input {
  font-size: 16px !important;
  padding: 0;
  height: 18.5px;
  width: 112px;
  margin: 5px;
}

input.name {
  margin-bottom: 2.5px
}

input.url {
  margin-top: 2.5px
}

input.colname {
  width: calc(100% - 68px);
  height: 19px;
  margin: 14px 0 6px 0;
  border: 2px var(--hover-bg) dashed;
  background-color: var(--default-bg);
  color: inherit;
  font-family: inherit;
}

.remove {
  width: 29px;
  height: 35px;
  padding: 0;
  background-color: var(--hover-bg);
  float: right;
  text-align: center;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-family: monospace;
  display: flex;
}

.save {
  padding-left: 8px;
  float: right;
  height: 60px;
  width: 21px;
  display: flex;
  text-align: center;
  align-items: center;
  cursor: pointer;
  background-color: var(--hover-bg-2);
}

.save:hover, .save:focus, .save:focus-within {
  background-color: var(--hover-grn);
}

.remove:hover {
  background-color: var(--remove-bg);
}

#edit, #addcol {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--hover-bg);
  width: 29px;
  height: 29px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
}

#edit:hover {
  background-color: var(--hover-bg-2);
}

#addcol {
  display: none;
  right: 29px;
}

#addcol:hover {
  background-color: var(--hover-grn);
}

.add, .rmcol {
  background-color: var(--hover-bg);
  margin-top: 14px;
  width: 29px;
  height: 29px;
  padding: 0;
  justify-content: center;
  align-items: center;
  float: right;
  display: none;
  cursor: pointer;
}

.add:hover {
  background-color: var(--hover-grn) !important;
}

.rmcol {
  display: flex;
}

.rmcol:hover {
  background-color: var(--remove-bg) !important;
}

.new {
  background-color: var(--hover-bg);
}

.title:hover > .add {
  display: flex;
}

.title:hover .add:not(:hover),
li:hover > .remove:not(:hover) {
  display: flex;
  background-color: var(--hover-bg);
}

li:hover > a, li > a:focus, li > a:focus-within {
  display: inline-block;
  background-color: var(--hover-bg);
}

li:hover {
  background-color: var(--hover-bg);
}

a {
  color: inherit;
  outline: none;
  display: block;
  text-decoration: none;
  padding: 0.5rem;
  height: 19px;
}

.remove:not(:hover) {
  display: none;
}

a, ul > .title > p, .colname {
  width: calc(100% - 45px);
  display: inline-block;
}

li.sortable-chosen.sortable-ghost {
  background-color: var(--hover-bg-2);
}

span.grip {
  content: '....';
  position: relative;
  right: 20px;
  top: 36px;
  width: 10px;
  height: 20px;
  display: none;
  overflow: hidden;
  line-height: 5px;
  padding: 3px 4px;
  cursor: move;
  vertical-align: middle;
  font-size: 12px;
  font-family: sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
}

span.grip::after {
  content: '.. .. .. ..';
}

.title {
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-align: left;
  border-bottom: 1px solid var(--hover-bg);
}

.title p {
  width: 160px;
  margin: 16px 0 8px 0;
}
