/* Basic layout styles */

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  overflow: auto;
}

body {
  overflow: hidden;
}

/* Fonts and other typographical settings */

html {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.2;
  margin: 0.8rem 0 0.4rem 0;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 2.15rem;
}

h3 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.85rem;
}

p {
  margin: 0 0 0.5rem 0;
}

hr {
  border: 0;
  border-top: 1px solid #CCC;
  height: 0;
}

/* Basic list styles */

ul,
ol {
  margin: 0;
  padding: 0 0 0 1.5em;
}

button {
  border: 1px solid #999;
  padding: 0.25em 0.75em;
  background-color: #FFF;
  font: inherit;
  color: inherit;
  transition: background-color 0.2s;
}

button:hover,
button.hover {
  background-color: #EEE;
}

button:active,
button.active {
  background-color: #CCC;
}

button:disabled {
  background-color: #EEE;
  border-color: #BBB;
  color: #BBB;
}

input,
label {
  display: block;
  width: 100%;
}

input {
  color: inherit;
  font: inherit;
  /* line-height must be normal in Firefox, make it the same cross-browser */
  line-height: normal;
  outline: none;
  border: 1px solid #999;
  padding: 0.25em 0.5em;
  margin: 0 0 0.5rem 0;
  transition: 0.2s border-color;
}

input:focus {
  border-color: #666;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  padding: 0;
  border: none;
}

.hut-modal {
  position: fixed;
  overflow: hidden;
  /* Position 100% above the screen so it can slide down */
  top: -100%;
  left: 0;
  /* Hide modal until it is shown */
  height: 0;
  width: 100%;
  z-index: 100;
  /* Slide down from top */
  /* Wait until it is slid up to change the height */
  transition: top 0.3s, height 0s 0.3s;
  background-color: rgba(238, 238, 238, 0.8);
}

.hut-modal.modal-shown {
  top: 0;
  height: 100%;
  overflow: auto;
  /* Offset for the dialog */
  padding: 2rem 1rem;
  /* Slide down from the top */
  /* Do not transition height when closing */
  transition: top 0.3s;
}

.hut-modal .modal-dialog {
  max-width: 500px;
  margin: 0 auto;
  background-color: #FFF;
  border: 1px solid #999;
}

.hut-modal .modal-header {
  margin: 0 1rem;
}

.hut-modal .modal-content {
  margin: 0 1rem;
  overflow: hidden;
}

.hut-modal .modal-footer {
  margin: 0 1rem 1rem 1rem;
  text-align: right;
}

body {
  margin: 0 auto;
  padding: 0 10px 10px 10px;
  max-width: 600px;
}