@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700|Open+Sans:400,700|Roboto+Mono:400');

:root {
  --main-color: #101820;
  --main-color-light: #363e47;
  --main-color-dark: #000000;
  --secondary-color: #cb2c30;
  --secondary-color-light: #ff625a;
  --secondary-color-dark: #930009;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #fff;
  background: #101820;
  /*background: linear-gradient(to right, #101820, #000000)*/
}


h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

input {
  min-width: 1px;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  border: 1px solid #cb2c30;
}

th {
  text-align: left;
  background: #cb2c30;
  color: #fff;
  text-transform: uppercase;
}

th, td {
  padding: 2px 5px;
}

td {
  border: 1px solid #363e47;
}

tr:hover {
  background: #e0e7ef;
}


.container {
  padding-top: 60px;
  padding-bottom: 24px;
  display: flex;
  min-height: calc(100% - 100px);
  position: relative;
  flex-direction: column;
}

.hidden, .hidden * {
  display: none;
  height: 0px;
  opacity: 0;
  transform: translateX(-500px);
}

/*Navigation Bar*/
.navbar {
  background: #363e47;
  /*background: linear-gradient(to right, #363e47, #101820);*/
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 999;
}

.navbar #menu-toggle {
  display: none;
  border: thin solid #363e47;
  background: #101820;
  width: 30px;
  border-radius: 4px;
  padding: 0 6px 6px 6px;
  margin: 5px;
}

.navbar #menu-toggle:hover, .navbar #menu-toggle.active {
  background: #fff;
  cursor: pointer;
}

.navbar #menu-toggle .line {
  border-bottom: 4px solid #363e47;
  height: 6px;
  width: 100%;
  display: block;
}

.navbar img.brand-image {
  width: 30px;
  padding: 3px 10px;
}

.navbar h1 {
  margin: 0;
  padding: 0 10px;
  user-select: none;
  cursor: default;
}

.navbar ul {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style-type: none;
  display: flex;
  height: 100%;
}


.navbar li a {
  display: table;
  color: white;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  text-transform: uppercase;
  height: 100%
}

.navbar li a.active {
  background: #101820;
  border-bottom: 4px solid #cb2c30;
  padding-bottom: 16px;
}

.navbar li a:hover {
  border-bottom: 4px solid #ff625a;
  padding-bottom: 16px;
  cursor: pointer;
}

.navbar-spacer {
  flex-grow: 1;
}



/*Footer*/
.footer {
  position: fixed;
  display: flex;
  justify-content: space-around;
  background: #000;
  padding: 5px 0;
  text-transform: uppercase;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 8pt;
  z-index: 998;
}

/*Section*/
.section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  transition: .2s;

}

.section > .header {
  display: flex;
  border-bottom: 4px solid white;
  margin: 0 10px;
}

.section >  :first-child {
  margin-bottom: 20px;
}

.section > .header > h2 {
  font-size: 3em;
  margin: 10px 0 0 0;
  text-transform: uppercase;
  flex-grow: 1
}

.section > .header > i {
  margin: auto 0 0 0;
  width: 32px;
  padding: 5px;
  border-radius: 100%;
  transition: .1s;
  text-align: center;
}

.section > .header > i:hover {
  background: #363e47;
}

.section > .header > i:active {
  background: #000;
  transform: translateY(4px);
}


.block:first-child {
  margin-top: 0;
}

.block:last-child {
  margin-bottom: 20px;
}


/*Block*/
.blocks {
  display: flex;
  flex-direction: column;
}

.block {
  background: white;
  margin: 10px;
  box-shadow: 2px 2px 2px rgb(0, 0, 0);
}

.block .header {
  background-color: #930009;
  padding: 10px;
  display: flex;
  align-content: center;
}

.block .header h2 {
  margin: 0;
  text-transform: uppercase;
  font-size: 2em;
  font-weight: 400;
}

/*Block Elements*/

.block  .content > :first-child  {
  margin-top: 15px;
}

.block .content > :last-child  {
  margin-bottom: 15px;
}

.block .block-footer > :first-child  {
  margin-top: 15px;
}

.block .block-footer > :last-child  {
  margin-bottom: 15px;
}



.block .item h3:first-child {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 1.5em;
  font-weight: 400;
}

.block p {
  margin: 0;
  padding: 0;
}


div.code {
  white-space: pre;
  overflow: auto;
  margin: 0;
  padding: 5px;
  background: #363e47;
  color: #fff;
  font-size: 1em;
}




.block .content {
  display: block;
  position: relative;
  color: #101820;
}

.block .content .html-block {
  padding: 0;
  margin: 0;
  display: block;
  overflow: auto;
}

.code {
  font-family: 'Roboto Mono', monospace
}



span.code {
  background: #363e47;
  color: #fff;
  border-radius: 3px;
  padding: 0 2px;
}



button.delete-button {
  background: none;
  color: #fff;
  padding: 0 10px;
  border: none;
  border-radius: 100%;
  outline: none;
  transition: .1s;
}

button.delete-button:hover {
  background: #730007;
  
}

button.delete-button:active {
  background: #cb2c30;
  transform: translateY(4px);
}

span.header-spacer {
  flex-grow: 1;
}

/*Items*/

.content .item {
  display: flex;
  align-content: center;
  margin: 15px;
}

.content .item > * {
  flex-grow: 1;
}

.content .item > .item-delete {
  background: none;
  color: #101820;
  padding: 0;
  border: none;
  outline: none;
  flex-grow: 0;
  transition: .1s;
  margin: 0;
}

.content .item > .item-delete i {
  width: 26px;
  padding: 5px;
  border-radius: 100%;
}

.content .item > .item-delete:hover i {
  color: #fff;
  background: #363e47;
}

.content .item > .item-delete:active i {
  color: #fff;
  background: #101820;
  transform: translateY(4px);
}

/*Login*/
#login {
  max-width: 400px;
}


input.login-input {
  border: none;
  margin: 0 10px 20px 10px;
  padding: 4px 10px;
  font-size: 1.5em;
}



.button {
  margin: 0 10px 20px 10px;
  font-size: 1.5em;
  border: thin solid #930009;
  background: #930009;
  color: #fff;
  padding: 5px 10px;
}

.button:hover {
  cursor: pointer;
  background: #cb2c30;
}

.button:active {
  background: #930009;
  transform: translateY(4px);
}

#login-error {
  padding: 0 10px;
  margin: 0;
}

/*Add*/
#add {
  max-width: 400px;
}

.block-footer {
  display: flex;
  flex-direction: column;
  margin: 0
}


.block-footer input::placeholder {
  color: #9bafc5;
  font-size: 18pt;
  font-family: 'Open Sans', sans-serif;
}

.block-footer textarea::placeholder {
  color: #9bafc5;
  font-size: 18pt;
  font-family: 'Open Sans', sans-serif;
}

.block-footer textarea {
  font-family: 'Roboto Mono', monospace;
  font-size: 12pt;
}

.add-item {
  text-align: center;
  margin: 0 10px;
  padding: 10px 0;
  border: 4px dashed #9bafc5;
  color: #9bafc5;
  transition: .1s;
  flex-grow: 1
}

.add-item:hover {
  color: #363e47;
  border-color: #363e47;
  cursor: pointer;
}

.add-item-form {
  display: flex;
  flex-direction: row;
  border: 4px dashed #9bafc5;
  margin: 7.5px 15px;
}



.add-item-input {
  flex-grow: 1;
  border: none;
  margin: 0;
  padding: 0;
  font-size: 1.5em;
  background: none;
  padding: 5px;
  color: #101820;
  outline: none;
}



.add-item-button {
  background: none;
  color: #9bafc5;
  border: none;
  font-size: 1.4em;
  padding: 0 5px 0 10px;
  -webkit-transition: .2s ;
  -moz-transition: .2s ;
  transition: .2s ;
  outline: none;
}

.add-item-button:hover {
  color: #101820;
}

.add-block-form {
  display: flex;
  flex-direction: row;
  border: 4px dashed #363e47;
  margin: 10px
}

.add-block-form :last-child {
  margin-left: 0;
}

.add-block-input {
  flex-grow: 1;
  border: none;
  margin: 0;
  padding: 0;
  font-size: 1.5em;
  background: none;
  padding: 5px;
  color: #fff;
  outline: none;
}

input::placeholder {
  color: #363e47;
}

.add-block-button {
  background: none;
  color: #363e47;
  border: none;
  font-size: 1.4em;
  padding: 0 5px 0 10px;
  -webkit-transition: .2s ;
  -moz-transition: .2s ;
  transition: .2s ;
  outline: none;
}

.add-block-button:hover {
  color: #fff;
}

