/*##############################################################################
------------------------ CSS for Aron Fiechter's website -----------------------
##############################################################################*/

/* -----------------------------------------------------------------------------
Global settings
----------------------------------------------------------------------------- */

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;

  /* Colors */
  --kinda-white: #FAFAFA;
  --really-blue: #66C0FA;
  --quite-black: #212121;
  --less-black: #272727;
  --generally-grey: #303030;
  --incredibly-dark-white: rgba(66,66,66,0.95);
  --just-grey: #9E9E9E;
}

::-webkit-scrollbar {
    display: none;
}

body {
  background-color: var(--generally-grey);
  font-family: 'Roboto', sans-serif;
  overflow-y: hidden;
  height: 100%;
  margin: 0;
}

.main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
}

.link {
  font-size: 1em;
  color: var(--really-blue);
  text-decoration: none;
  display: inline-block;
  font-weight: 300;
  transition: all .2s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.link:hover {
  color: var(--kinda-white);
  background-color: var(--really-blue);
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  z-index: 999;
  transform: scale(1.01);
  transition: all .2s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.4);
  display: inline-block;
}

h1 {
  font-weight: 300;
  font-size: 2em;
}
h2 {
  font-weight: 300;
  margin-top: 0;
  color: #F5F5F5;
}
p {
  font-weight: 100;
  color: #EEEEEE;
  font-size: 1em;
}

/* -----------------------------------------------------------------------------
Static elements - navbar, content and footbar
----------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  padding-left: 80px;
  width: 100%;
  height: 80px;
  background-color: var(--quite-black);
  font-size: 2em;
  z-index: 999;
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-start;
}

.navbar>a:hover {
  background-color: var(--less-black);
}

.navbar>a, .navbar>a:link, .navbar>a:visited, .navbar>a:hover {
  /*flex: 1;*/
  padding: 20px;
  color: var(--just-grey);
  text-decoration: none;
}

.navbar>a.active {
  color: var(--kinda-white);
}

.footbar {
  position: fixed;
  bottom: 0px;
  left: 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 50px;
  background-color: var(--quite-black);
  opacity: 0.9;
  color: var(--just-grey);
  font-size: 1em;
  font-weight: 100;
  padding-left: 30px;
  padding-right: 30px;
  z-index: 998;
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.4);
}
#maller {
  font-size: 0.8em;
}

#sandwich {
  display: none;
  padding: 11px;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
}
#sandwich>img {
  max-width: 48px;
  max-height: 48px;
  vertical-align: middle;
}
.navbar>pagetitle {
  display: none;
  padding: 17px;
  color: var(--kinda-white);
}
#sidebar {
  position: absolute;
  top: 0;
  left: -66%;
  width: 66%;
  height: 100vh;
  background-color: var(--quite-black);
  z-index: 999;
  transition: all .3s cubic-bezier(0.4, 0.0, 0.6, 1);
}
#sidebar:target {
  display: block;
  transition: all .3s cubic-bezier(0.0, 0.0, 0.2, 1);
  transform: translateX(100%);
  box-shadow: 0px 0px 100px 0px rgba(0, 0, 0, 0.4);
}
#sidebar>#top {
  height: 70px;
  padding-left: 10px;
  border-bottom: 1px solid var(--just-grey);
}
#links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 15px;
}
#links>a {
  display: block;
  flex: 1;
  padding: 15px;
  padding-left: 30px;
  font-size: 1.5em;
  font-weight: 200;
  text-decoration: none;
  color: var(--kinda-white);
  transition: all .2s ease-in-out;
}
#links>a:hover {
  background-color: var(--just-grey);
  transition: all .2s ease-in-out;
}
#links>a.selected {
  background-color: var(--just-grey);
}
#backbutton {
  display: block;
  height: 70px;
  width: 70px;
  padding: 11px;
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px;
}
#backbutton>img {
  opacity: 0.7;
}
#backbutton:hover {
    background-color: var(--just-grey);
}
#sidebar>#bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--just-grey);
  color: var(--just-grey);
  font-size: 1em;
  font-weight: 200;
  padding-left: 30px;
}

@media (max-width: 700px) {
  .navbar {
    height: 70px;
    padding-left: 10px;
  }
  .navbar>a {
    display: none;
  }
  #sandwich {
    display: block;
  }
  .navbar>pagetitle {
    display: block;
    padding-left: 10px;
    font-size: 1em;
  }
  .footbar {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
General elements of all pages
------------------------------------------------------------------------------*/

.main-content-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 80px 0 0 0;
  padding-top: 50px;
  padding-bottom: 100px;
}
@media (max-width: 700px) {
  .main-content-wrapper {
    margin: 70px 0 0 0;
  }
}
.left-bar, .right-bar {
  flex: 1;
}
.content {
  flex: 8;
  height: auto;
  margin: 0;
  color: #EEEEEE;
  z-index: 800;
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .left-bar, .right-bar {
    flex: 0 0 0%;
  }
  .content {
    flex: 1;
    margin: 0 15px;
  }
}

/* -----------------------------------------------------------------------------
Background art
------------------------------------------------------------------------------*/
.main {
  background-position: center;
  background-size: cover;
}

#home-bg.main {
  /* background-image: url(http://www.facets.la/wallpaper/W_2013_233_40_LUX.jpg); */
  background-image: url(../img/bg.jpg);
}
#about-me-bg.main {
  background-image: url(../img/bg.jpg);
}
#projects-bg.main {
  /* background-image: url(http://www.facets.la/wallpaper/W_2013_298.jpg); */
  background-image: url(../img/bg.jpg);
}


/* -----------------------------------------------------------------------------
Homepage
------------------------------------------------------------------------------*/

homecard {
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.4);
  background-color: var(--incredibly-dark-white);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.title {
  flex: 1 0 100%;
  height: 79px;
  margin: 0;
  padding: 20px;
  text-align: center;
  font-weight: 300;
  border-bottom: 1px solid var(--just-grey);
}
#contacts {
  flex: 1;
  min-width: 282px;
  padding: 30px;
  font-weight: 100;
}
#presentation {
  flex: 3;
  padding: 30px;
}
@media (max-width: 900px) {
  #contacts {
    flex-basis: 100%;
    order: 2;
  }
  #presentation {
    flex-basis: 100%;
    order: 1;
  }
}

#contacts>a {
  text-decoration: none;
}
.box {
  padding: 5px 0px 5px 5px;
  margin: 5px 0px;
  transition: all .4s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.linkbox:hover {
  background-color: var(--really-blue);
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  transition: all .3s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform: scale(1.01);
}
.linkbox>img, .box>img {
  max-width: 30px;
  max-height: 30px;
  vertical-align: middle;
}
.box>p {
  color: #EEEEEE;
  padding-left: 5px;
  text-decoration: none;
  display: inline;
  transition: color .4s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.linkbox:hover>p {
  color: var(--kinda-white);
  text-decoration: none;
  display: inline;
  transition: color .3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.linkbox>p {
  color: var(--really-blue);
  font-weight: 300;
}

/* -----------------------------------------------------------------------------
About me
------------------------------------------------------------------------------*/
#leftcolumn {
  flex: 1;
}
#middleseparator {
  flex: 0 0 50px;
}
#rightcolumn {
  flex: 1;
}
@media (max-width: 900px) {
  #leftcolumn, #rightcolumn {
    flex: 0 0 100%;
  }
  #leftcolumn {
    order: 2;
  }
  #rightcolumn {
    order: 1;
  }
  #middleseparator {
    flex: 0 0 0%;
  }
}

infocard {
  display: block;
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.4);
  background-color: var(--incredibly-dark-white);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  margin-bottom: 50px;
}
article {
  display: block;
  padding: 30px;
}

.article {
  padding: 30px;
}

/* -----------------------------------------------------------------------------
Projects
------------------------------------------------------------------------------*/

projectscard {
  flex: 1 0 100%;
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.4);
  background-color: var(--incredibly-dark-white);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
}
