* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: #fff url('../assets/NYC-Sunset.jpg') no-repeat center center;
  background-size: cover;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 100%;
  color: #333;
}

h1, h2, h3, strong {
  font-size: 0.9em;
  font-weight: 500;
}

h1 {
  font-weight: 300;
  font-size: 1.2em;
  text-align: center;
}

/* Keyframes */

@-webkit-keyframes backAndForth {
  from {
    transform: translate(-49%, -50%);
  }

  to {
    transform: translate(-51%, -50%);
  }
}

@keyframes backAndForth {
  from {
    transform: translate(-49%, -50%);
  }

  to {
    transform: translate(-51%, -50%);
  }
}

/* Header */

header {
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  padding-top: 20px;
  height: 33px;
  line-height: 28px;
}

header:before {
  content: '';
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/NYC-Sunset.jpg') no-repeat fixed center center;
  background-size: 100%;
  -webkit-filter: blur(15px);
  filter: blur(15px);
}

header h2 {
  position: relative;
  z-index: 2;
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  text-align: center;
}

/* Main */

#pagecontainer {
  height: 100%;
  font-size: 0.9em;
}

a {
  color: #000;
  text-decoration: none;
}

/* Login form */

.login-form {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 400px;
  -webkit-transform: translate(-50%, -45%) scale(0.8);
  transform: translate(-50%, -45%) scale(0.8);
  -webkit-transition: all ease-in 0.4s;
  transition: all ease-in 0.4s;
  background: #fff;
  box-shadow: 0 0 40px #838383;
  border-radius: 50px;
  opacity: 0;
  font-size: 1.2em;
}

.login-form.show {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
}

.login-form.error {
  -webkit-animation: backAndForth 70ms 10 alternate;
  animation: backAndForth 70ms 10 alternate;
}

.login-form h1 {
  margin-top: 1em;
  font-size: 1.6em;
}

.login-form fieldset {
  margin: 2em;
}

.login-form input {
  border: 0;
  border-bottom: 1px solid #eee;
}

.login-form .checkbox {
  font-size: 0.9em;
}

.login-form .form-buttons {
  overflow: hidden;
  position: absolute;
  width: 0;
  height: 0;
}

/* App view */

.app-view {
  padding-top: 70px;
  margin: 0 1% 1%;
  list-style: none;
}

.app-view li {
  display: inline-block;
  vertical-align: top;
  margin: 1%;
  width: 23%;
  text-align: center;
}

.app-view li a {
  color: #fff;
}

.app-view li img {
  display: block;
  margin: 0 auto 0.2em;
  max-width: 100%;
  border-radius: 25px;
}

/* Forms */

fieldset {
  margin: 1em;
  border: 0;
}

input, textarea, button {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1em;
  -webkit-appearance: none;
}

input, textarea {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
}

fieldset label {
  display: block;
}

fieldset label > span {
  display: inline-block;
  vertical-align: top;
  width: 40%;
  padding-top: 0.5em;
}

fieldset label > input {
  vertical-align: top;
  padding: 0.5em;
  width: 60%;
  box-sizing: border-box;
}

.form-no-labels label:not(.checkbox) span {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
}

.form-no-labels label:not(.checkbox) input {
  width: 100%;
}

fieldset label.checkbox {
  line-height: 2.2;
}

fieldset label.checkbox input {
  vertical-align: middle;
  width: auto;
  margin-right: 0.5em;
  border: 1px solid #eee;
}

fieldset label.checkbox span {
  vertical-align: middle;
  padding-top: 0;
  width: auto;
}

input:checked:after {
  content: '✔';
}

/* Form messages */

fieldset .message-below.message-error {
  margin-bottom: 4px;
  padding: 0.3em 0.5em;
  background: #ffac8f;
  border: 1px solid #c93b0c;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

/* List views */

.listview {
  margin: 1em;
  list-style: none;
}

.listview li {
  position: relative;
  border-bottom: 1px solid #eee;
}

.listview li a:first-child, .listview li .label:first-child {
  display: block;
  padding: 0.5em 1em;
}

.listview li a:first-child:hover, .listview li a:first-child:focus {
  background: #eee;
}

.listview li .item-delete {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 0 0.2em;
  background: #ff3b30;
  border: 0;
  color: #fff;
}