/* 
 * Copyright (c) 2018 Andrea Gargiulo. All rights reserved.
 * Exclusively Licensed to GARGIULO.IO
 */

::selection {
  background: #ffffff;
  color: #000000;
}
::-moz-selection {
  background:  #ffffff;
  color: #000000;
}

body {
	font-family: 'Space Mono', monospace;
	background: rgb(15,15,15);
	color: #ededed;
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 1.5em
}

p {
	text-align: justify;
}

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

a:hover {
  text-decoration: underline;
}

a.nav-link {
	font-size: 16px;
}

textarea {
	resize: none;
}

.fixed {
	position: fixed;
}

.top {
	top: 0;
}

.bottom {
	bottom: 0;
}

.left {
	left: 0;
}

.right {
	right: 0;
}

.container {
	padding: 20px;
  background: rgb(15,15,15);
}

.container.center {
	max-width: 1200px;
	margin: 0px auto;
}

.text-center {
	text-align: center;
}

.page {
  	display: table;
  	position: absolute;
  	height: 100%;
  	width: 100%;
}

@media only screen and (max-width: 767px) {
  .top.left, .bottom.left {
    width: 100%
  }

  .top {
    border-bottom: 1px solid #ededed;
  }

  .bottom {
    border-top: 1px solid #ededed;
  }

  .page {
    position: relative;
    margin: 45px auto;
  }
}

.wrapper {
  	display: table-cell;
  	vertical-align: middle;
  	margin: 0;
	padding: 0;
}

.d-none {
	display: none;
}

.d-block {
	display: block;
}

.typewrite > .txt-wrap {
	border-right: 12px solid #606060
}

div.logo {
	background: url(logo.svg) top left no-repeat;
  width: 165px;
  height: 24px;
}

.form .text-input, .form .textarea, .form .label, .form .button {
  padding: 1em 1.5em;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
  line-height: normal;
  border: 1px solid transparent;
  border-radius: 0;
}

.form .text-input, .form .textarea {
  font: inherit;
  line-height: normal;
  width: 100%;
  box-sizing: border-box;
  display: block;
  padding-left: 0;
  border-bottom-color: #ffffff;
  background: transparent;
  outline: none;
  color: white;
}
.form .text-input:placeholder, .form .textarea:placeholder {
  color: #ededed;
}
.form .text-input:-webkit-autofill, .form .textarea:-webkit-autofill {
  box-shadow: 0 0 0px 1000px white inset;
  border-top-color: white;
  border-left-color: white;
  border-right-color: white;
}
.form .error.text-input, .form .error.textarea, .error .form .text-input, .form .error .text-input, .error .form .textarea, .form .error .textarea {
  border-color: transparent transparent red transparent;
}
.form:not(.has-floated-label) .text-input:active, .form:not(.has-floated-label) .textarea:active, .form:not(.has-floated-label) .text-input:focus, .form:not(.has-floated-label) .textarea:focus {
  border-color: transparent transparent white transparent;
}

.form .label {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  padding-left: 0;
}

.form .label {
  top: 0;
  left: 0;
  color: #ededed;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.active .form .label, .form .active .label {
  font-size: 0.75em;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0;
  color: #ededed;
  background: white;
}
.focus .form .label, .form .focus .label {
  color: #ededed;
}

.form.has-floated-label .field:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  border-bottom: 1px solid white;
  -webkit-transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  transition: width 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.form.has-floated-label .field.focus:after {
  width: 100%;
}

.form .button {
  font: inherit;
  line-height: normal;
  cursor: pointer;
  background-color: white;
  color: black;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.14286em;
}
.form .button:hover, .form .button:focus, .form .button:active {
  color: black;
  background: #ededed;
}
.form .button:active {
  position: relative;
  top: 1px;
  left: 1px;
}

.form {
  max-width: 50em;
  margin: 0 auto;
  padding: 1em 2em;
  box-sizing: border-box;
  overflow: hidden;
}
.form .field {
  position: relative;
  width: 100%;
  margin-bottom: 1.5em;
  float: left;
}
@media screen and (min-width: 40em) {
  .form .field.half {
    width: calc(50% - 2em);
    margin-right: 2em;
  }
  .form .field.half + .half {
    margin-left: 2em;
    margin-right: 0;
  }
}
.form .field:last-child {
  float: right;
  width: auto;
}
.form .textarea {
  max-width: 100%;
}

svg path {
  fill: #ededed;
}

div.diag-box {
  width: 100%;
  max-width: 800px;
  min-height: 100px;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  margin: 0px auto;
  background: #ffffff;
  display: none;
  z-index: 99999;
}

div.diag-box.open {
  display: block;
}

div.diag-header, div.diag-body {
  width: 100%;
  color: #000000;
  max-width: 800px;
}

div.diag-header {
  height: 40px;
}

a.diag-close {
  float: right;
}

a.diag-close::after {
  content: "";
  background: url(times.svg) top left no-repeat;
  height: 40px;
  width: 40px;
  position: absolute;
  right: 0px;
  background-size: contain;
}

div.diag-body {
  text-align: center;
  padding: 10px 0px 30px 0px;
}

div.grid {
  display: table;
  table-layout: fixed;
  width: 100%;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
}

div.grid-row {
  display: table-row;
}

div.grid-col {
  display: table-cell;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  padding: 5%;
}

@media only screen and (max-width: 767px) {
  .grid-col {
    display: block !important;
  }
}