@import url('https://fonts.googleapis.com/css?family=Quicksand:500|Noto+Sans');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
/*@import url('https://cdn.jsdelivr.net/npm/@fontawesome/fontawesome-free@6.2.1/css/fontawesome.min.css');*/
/*@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css')*/

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: none;
  text-decoration: none;
}

p.noscript {
  margin: 1em auto;
  font-weight: bold;
  text-align: center;
  color: #1E90FF;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: 'Quicksand', Helvetica, sans-serif;
}

#container {
  padding: 2em;
  width: inherit;
  height: inherit;
  align-items: center;
  justify-content: center;
}

#container article {
  transition: display .5s ease-in-out;
}

.picture {
  background-position: center center;
  background-size: cover;
}

#main .picture {
  background-image: url('main.jpg');
}

#contacts .picture {
  background-image: url('do_full.jpg');
}

#contacts, #work {
  display: none;
} 

.content {
  height: 100%;
  width: 50%;
  float: right;
  padding: 1em 2em;
  overflow: auto;
}

.content header {
  text-align: center;
}

#main .content header h1 {
  text-transform: lowercase;
  letter-spacing: -.08em;
}

#main .content header h2 {
  letter-spacing: -.04em;
}

.content #claim {
  font-style: italic;
  text-align: center;
  padding: 0.7em 0 0 0;
}

.content #claim:after {
  content: '';
  display: block;
  width: 50%;
  height: 0;
  margin: 1em auto 0 auto;
  border-bottom: dotted 1px #ccc;
}

.content ul.links  {
  text-align: center;
  vertical-align: baseline;
  display: block;
  list-style-type: none;
  padding: 5vh 0 0 0;
}

#contacts .content ul.links {
  text-align: left;
  padding: 3em 0 1.5em 2em;
}

.content .links li {
  position: relative;
  display: block;
  vertical-align: middle;
}

.content .links li:after {
  display: block;
  height: 5vh;
  min-height: 1em;
  width: 0;
  content: '';
}

#work .picture {
  background-image: url('peru_2400.jpg');
  background-position: 25%;
}

#work .content {
  float: left;
}

#work .content .links {
  padding-bottom: 2em;
}

.content p {
  margin: 3vh 1em 0 1em;
  font-family: 'Noto Sans', Helvetica, sans-serif;
}

.content p.strong {
  font-size: 1.05em;
  font-weight: bold;
}

#main .content p a, #work .content p a {
  color: black;
  text-decoration: underline;
}

#contacts .content .links li:after {
  height: 5vh;
  min-height: 1em;
}

#contacts a {
  color: black !important;
  text-decoration: underline;
}

footer {
  text-align: center;
}

footer ul li {
  display: inline;
  list-style-type: none;
}

footer ul li .icon {
  display: inline-block;
  width: 3em;
  height: 3em;
  line-height: 3em;
  text-align: center;
}

.button, #contacts .button {
  background-color: transparent;
  border-radius: 5px;
  border: 0;
  -webkit-transition: color .2s ease-in-out, box-shadow .2s ease-in-out;
  -moz-transition: color .2s ease-in-out, box-shadow .2s ease-in-out;
  -ms-transition: color .2s ease-in-out, box-shadow .2s ease-in-out;
  transition: color .2s ease-in-out, box-shadow .2s ease-in-out;
  box-shadow: inset 0 0 0 1px #ccc;
  color: black !important;
  display: inline-block;
  line-height: 3em;
  height: 3em;
  padding: 0 3em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover, #contacts .button:hover {
  box-shadow: inset 0 0 0 1px #1E90FF;
  color: #1E90FF !important;
}

.button:active, #contacts .button:active {
  -webkit-transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -ms-transition: opacity .25s ease-in-out;
  transition: opacity .25s ease-in-out;
  opacity: 0;
}

a:hover, #contacts a:hover {
  color: #1E90FF !important;
}

.icon:before, .contacts-icon:before {
  font-family: 'FontAwesome';
  text-decoration: none !important;
  color: #aaa;
}

.icon:hover:before {
  color: #1E90FF !important;
}

a.icon>span.inner {
  display: none;
}

.contacts-icon {
  display: inline-block;
  width: 2em;
  margin-right: 1em;
}

@media only screen and (min-width: 769px) {
  .picture {
    height: 100%;
    width: 50%;
    float: left;
  }

  #work .picture {
    float: right;
  }
}

@media only screen and (max-width: 768px) {
  .picture {
    height: 33vw;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    float: none;
  }

  .content {
    width: 100%;
    position: absolute;
    top: 33vw;
    left: 0;
    float: none;
    overflow: visible;
    height: auto;
  }

  #contacts .picture {
    background-position: center 25%;
  }
}
