body {
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  color: #fbfeff;
  margin: 0;
  background-color: #f0f2f3;
}
a {
  color: #fbfeff;
  cursor: pointer;
  opacity: 0.7;
  text-decoration: none;
  -webkit-transition: opacity 200ms, -webkit-transform 200ms;
  transition: opacity 200ms, transform 200ms;
}
a:hover {
  opacity: 1;
}
.main {
  max-width: 1000px;
  margin: 30px auto;
  width: calc(100% - 40px);
}
#mainCard {
  background-color: #0093E9;
  background-image: linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 300;
  letter-spacing:3px;
  margin-bottom: 30px;
  padding: 20px;
}
#ipa {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.5;
  padding-top: 5px;
  text-align: center;
}

.col {
  float: left;
  height: 500px;
  margin-right: 15px;
  width: calc(42% - 15px);
}

#photos {
  height: 500px;
  margin-bottom: 30px;
}

.photo {
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  position: relative;
}

.photo span {
  bottom: 5px;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0;
  position: absolute;
  right: 5px;
  text-shadow: 0 0 2px rgba(0,0,0,0.4);
  transition: opacity 0.5s;
}

.photo:hover span {
  opacity: 1;
}

.photo1 {
  background-image: url(images/1b.jpg);
  border-top-left-radius: 5px;
  float: left;
  height: 300px;
  width: 100%;
}

.photo2 {
  background-image: url(images/2.jpg);
  border-bottom-left-radius: 5px;
  float: left;
  height: 185px;
  margin-top: 15px;
  width: 100%;
}

.photo3 {
  background-image: url(images/3.jpg);
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  float: left;
  height: 500px;
  width: 58%;
}

#contactCard {
  background-color: #0093E9;
  background-image: linear-gradient(160deg, #80D0C7 0%, #76d1ff 100%);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  box-sizing: border-box;
  font-weight: 300;
  height: 420px;
  letter-spacing:3px;
  margin-bottom: 30px;
  overflow-x: hidden;
  overflow-y: hidden;
  position: relative;
}

#contactCard p {
  box-sizing: border-box;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1.6;
  margin: 20px auto;
  padding: 0 5px;
  max-width: 400px;
  width: 90%;
}

#me {
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 65px auto;
  width: 80%;
}

#me a:visited,
#me a {
  display: inline-block;
  position: relative;
}

/* wow */
#me a:after {
  content: "....................";
  font-size: 22px;
  left: 0;
  letter-spacing: 2px;
  margin-top: 17px;
  overflow: hidden;
  position: absolute;
  width: 100%;
}

#links {
  text-align: center;
}

#links a {
  display: inline-block;
  height: 28px;
  margin: 0 3px;
  text-decoration: none;
  width: 28px;
}

#links a img {
  height: 100%;
  width: 100%;
}

.contact {
  margin-bottom: -20px;
  margin-top: 50px;
  text-align: center;
}

.contact a {
  font-size: 16px;
}

.contact .down {
  font-size: 30px;
}

h1 {
  font-size: 20px;
  font-weight: 300;
  margin: 0;
  padding: 0;
  text-align: center;
}

h3 {
  font-size: 20px;
  font-weight: 300;
  margin: 0;
  padding: 0;
  text-align: center;
}

.form {
  margin: 20px auto;
  max-width: 400px;
  width: 90%;
}

.row {
  overflow: auto;
}

input {
  display: block;
  float: left;
  width: calc(50% - 10px);
}

textarea {
  height: 120px;
  resize: none;
  width: calc(100% - 10px);
}

input,
textarea,
button {
  box-sizing: border-box;
  color: #fbfeff;
  background: none;
  border: 1px solid #fbfeff;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 300;
  margin: 5px 5px;
  opacity: 0.7;
  outline: none;
  padding: 10px;

  -webkit-transition: box-shadow 300ms, opacity 300ms, -webkit-transform 300ms;
  transition: box-shadow 300ms, opacity 300ms, transform 300ms;
}

input:focus,
textarea:focus {
  opacity: 1;
  box-shadow: 0 0 2px rgba(255,255,255,0.25);
}

input.error:focus,
textarea.error:focus {
  box-shadow: 0 0 2px rgba(255,124,124,0.25);
}

input.error,
textarea.error {
  border: 1px solid rgba(255,124,124,0.55);
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #fbfeff;
  font-weight: 300;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #fbfeff;
  font-weight: 300;
}
:-ms-input-placeholder { /* IE 10+ */
  color: #fbfeff;
  font-weight: 300;
}
:-moz-placeholder { /* Firefox 18- */
  color: #fbfeff;
  font-weight: 300;
}

button {
  background: none;
  box-shadow: 0 0 4px rgba(255,255,255,0.5);
  cursor: pointer;
  display: block;
  height: 44px;
  margin: 20px auto 0;
  opacity: 1;
  overflow-y: hidden;
  padding: 12px;
  width: calc(100% - 10px);
}
button.loading {
  cursor: default;
}
button.loading .loader {
  display: inline-block;
}
button.loading .content {
  display: none;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.4s infinite ease-in-out;
  animation: load7 1.4s infinite ease-in-out;
}
.loader {
  display: none;
  position: relative;
  margin-top: 12px;
  -webkit-animation-delay: -0.15s;
  animation-delay: -0.15s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
}
.loader:before {
  left: -12px;
  -webkit-animation-delay: -0.30s;
  animation-delay: -0.30s;
}
.loader:after {
  left: 12px;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 12px 0 -6px;
  }
  40% {
    box-shadow: 0 12px 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 -8px 0 -6px;
  }
  40% {
    box-shadow: 0 -8px 0 0;
  }
}

#airplane {
  display: block;
  height: auto;
  margin: 40px auto 0px;
  max-width: 420px;
  width: 90%;
  z-index: 10;
}

#sent {
  position: absolute;
  font-size: 16px;
  letter-spacing: 1px;
  width: 320px;
  height: 50px;
  text-align: center;
  left: calc(50% - 150px);
  top: calc(50% - 25px);
  display: none;
}

@media screen and (max-width: 1040px) {
  #me {
    font-size: 24px;
  }

  #me a:after {
    margin-top: 12px;
  }
}

@media screen and (max-width: 640px) {
  .main {
    margin: 15px auto;
    width: calc(100% - 30px);
  }

  #me {
    font-size: 22px;
    margin: 40px auto;
    width: 90%;
  }

  #me a:after {
    margin-top: 8px;
  }

  .contact {
    margin-top: 30px;
  }

  #photos {
    height: auto;
  }

  #photos .col {
    float: none;
    height: 200px;
    margin-right: 0;
    width: 100%;
  }

  .photo1, .photo2 {
    height: 100%;
  }

  .photo1 {
    width: 35%;
  }

  .photo2 {
    margin-left: 10px;
    margin-top: 0;
    width: calc(65% - 10px);
  }

  .photo3 {
    float: none;
    height: 200px;
    margin-top: 10px;
    width: 100%;

  }

  #contactCard {
    margin-bottom: 15px;
  }

  #contactCard p,
  #sent {
    font-size: 14px;
  }
}
