* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -o-font-smoothing: antialiased;
  font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Open Sans", "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 13px;
  line-height: 30px;
  color: #333399;
  background: #3399cc;
}

.container {

  width: 100%;
  margin: 10px 0px 0px 0px;
  position: relative;
  }
  
.list {
  color: #3399cc;
  font-weight: bold;
}

.number {
  color: #cc6633;
  font-weight: bold;
}

.question {
  border-bottom: 1px solid #3399cc;
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact select],
#contact textarea,
#contact button[type="submit"] {
  font: 400 12px/16px "Roboto", Helvetica, Arial, sans-serif;
}

#contact {
  background: #FFFFFF;
  padding: 25px;
  margin: 0px 0;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}

#contact h3 {
  font-family: "Playfair Display";
  display: block;
  font-size: 25px;
  font-weight: 300;
  margin-bottom: 10px;
  color: #cc0033;
}

#contact h4 {
  font-family: "Playfair Display";
  margin: 5px 0 15px;
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #cc6633;
  font-style: italic;
}

fieldset {
  border: medium none !important;
  margin: 0 0 10px;
  min-width: 100%;
  padding: 0;
  width: 100%;
}

#contact input[type="text"],
#contact input[type="password"],
#contact input[type="email"],
#contact input[type="tel"],
#contact input[type="url"],
#contact select,
#contact textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #FFF;
  margin: 0 0 5px;
  padding: 10px;
}

#contact input[type="text"]:hover,
#contact input[type="password"],
#contact input[type="email"]:hover,
#contact input[type="tel"]:hover,
#contact input[type="url"]:hover,
#contact select,
#contact textarea:hover {
  -webkit-transition: border-color 0.3s ease-in-out;
  -moz-transition: border-color 0.3s ease-in-out;
  transition: border-color 0.3s ease-in-out;
  border: 1px solid #aaa;
}

#contact textarea {
  height: 100px;
  max-width: 100%;
  resize: none;
}

#contact button[type="submit"] {
  cursor: pointer;
  width: 100%;
  border: none;
  background: #3399cc;
  color: #FFF;
  margin: 0 0 5px;
  padding: 10px;
  font-size: 15px;
}

#contact button[type="submit"]:hover {
  background: #0099cc;
  -webkit-transition: background 0.3s ease-in-out;
  -moz-transition: background 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

#contact button[type="submit"]:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.copyright {
  text-align: center;
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  outline: 0;
  border: 1px solid #aaa;
}

::-webkit-input-placeholder {
  color: #888;
}

:-moz-placeholder {
  color: #888;
}

::-moz-placeholder {
  color: #888;
}

:-ms-input-placeholder {
  color: #888;
}

#gallery
{
    display: none;

    position: fixed;
    top: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
}

/* common elements */
#chrome
{
    display: none;

    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 0px;
    z-index: 102;
}

/* big picture stuff */
.picture
{
    display: none;

    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 101;
}

/* show big picture */
.picture:target,
.picture:target~#chrome
{
    display: block;
}

/* look&feel */

.picture:target~*
{
    -webkit-user-select: none;
    -moz-user-select: none;
}

#chrome
{
    -webkit-user-select: none;
    -moz-user-select: none;
}
.picture
{
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-user-select: none;
    -moz-user-select: none;
}
.picture>img
{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -320px;
    margin-left: -320px;
    width: 640px;
    height: 640px;
}
.picture>a.next,
.picture>a.prev
{
    position: absolute;
    display: block;
    width: 30px;
    height: 120px;
    top: 50%;
    right: 20px;
    margin-top: -60px;
    text-decoration: none;
}
.picture>a.prev
{
    right: auto;
    left: 20px;
}
.picture>a.next:after,
.picture>a.prev:after
{
    content: "\203A";

    line-height: 120px;
    font-size: 120px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0px 0px 5px #ffffff;
}
    .picture>a.next:hover:after,
    .picture>a.prev:hover:after
    {
        color: #3d79d0;
        text-shadow: 0px 0px 5px #3d79d0;
    }
.picture>a.prev:after
{
    content: "\2039";
}
#chrome>a.close
{
    position: absolute;
    display: block;
    top: 10px;
    right: 10px;
    padding: 2px 7px;
    border: 1px solid #c0c0c0;
    color: #cccccc;
    text-decoration: none;
    text-shadow: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}
    #chrome>a.close:hover
    {
        color: #3d79d0;
        border-color: #3d79d0;
        text-shadow: 0px 0px 5px #3d79d0;
        -webkit-box-shadow: 0px 0px 2px #3d79d0;
        -moz-box-shadow: 0px 0px 2px #3d79d0;
        box-shadow: 0px 0px 2px #3d79d0;
    }
.container
{
    margin: 20px 0px;
}
.container>.thumb
{
    display: inline-block;
    margin: 0px 5px;
}
.container>.thumb>a
{
    display: inline-block;
    padding: 2px;
    background-color: #ffffff;
    border: 1px solid #c0c0c0;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-box-shadow: 0px 0px 1px #c0c0c0;
    -moz-box-shadow: 0px 0px 1px #c0c0c0;
    box-shadow: 0px 0px 1px #c0c0c0;
}
    .container>.thumb>a:hover
    {
        border-color: #3d79d0;
        -webkit-box-shadow: 0px 0px 2px #3d79d0;
        -moz-box-shadow: 0px 0px 2px #3d79d0;
        box-shadow: 0px 0px 2px #3d79d0;
    }
.container>.thumb img
{
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}
/* extra stuff: loop */
#do_loop
{
    display: none;
}
#chrome>.loop
{
    position: absolute;
    display: block;
    top: 11px;
    left: 15px;
    width: 36px;
    height: 24px;
    background-image: url("/loop.png");
    background-position: 0px 0px;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
}
    #do_loop:checked~#chrome>.loop
    {
        background-position: 0px -24px;
    }
    #chrome>.loop:hover
    {
        background-position: 0px -48px;
    }
    #do_loop:checked~#chrome>.loop:hover
    {
        background-position: 0px -72px;
    }
.picture>a.loop
{
    display: none;
}
#do_loop:checked~.picture>a.loop
{
    display: block;
}
/* plus workaround iOS */
#do_loop
{
    position: fixed;
    display: block;
    z-index: 103;
    top: 11px;
    left: 15px;
    width: 36px;
    height: 24px;
    cursor: pointer;
    opacity: 0;
}
#do_loop:hover~#chrome>.loop
{
    background-position: 0px -48px;
}
#do_loop:checked:hover~#chrome>.loop
{
    background-position: 0px -72px;
}
.picture ~ header
{
    position: relative;
    z-index: 104;
}
.picture ~ #github
{
    z-index: 105;
}
    .picture:target ~ header,
    .picture:target ~ #github
    {
        z-index: 99;
    }

/* animation */

.picture
{
    display: block;
    height: 0px;
    opacity: 0;
    overflow: hidden;
}
    .picture:target
    {
        height: 100%;
        opacity: 1;
    }

.picture:not(:target)
{
    -webkit-animation-name: disappearing;
    -webkit-animation-duration: 1s;
    -moz-animation-name: disappearing;
    -moz-animation-duration: 1s;
}
.picture:target
{
    -webkit-animation-name: appearing;
    -webkit-animation-duration: 1s;
    -moz-animation-name: appearing;
    -moz-animation-duration: 1s;
}

.picture ~ header,
.picture ~ #github
{
    -webkit-transition-property: z-index;
    -webkit-transition-delay: 1s;
    -moz-transition-property: z-index;
    -moz-transition-delay: 1s;
}
    .picture:target ~ header,
    .picture:target ~ #github
    {
        -webkit-transition-property: z-index;
        -webkit-transition-delay: 0s;
        -moz-transition-property: z-index;
        -moz-transition-delay: 0s;
    }

/* initial animation cover */
#cover
{
    position: fixed;
    z-index: 998;
    top: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
    background-color: #eeeeee;
    background-image: url("/bright_squares.png");
    background-position: 0px 0px;
    background-repeat: repeat;
    opacity: 0;

    -webkit-animation-name: cover;
    -webkit-animation-duration: 1.5s;
    -moz-animation-name: cover;
    -moz-animation-duration: 1.5s;
}
#loading
{
    z-index: 999;
}
/* keyframes */

@-webkit-keyframes cover
{
    0%
    {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    75%
    {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    99%
    {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
    100%
    {
        width: 0px;
        height: 0px;
        opacity: 0;
    }
}
@-moz-keyframes cover
{
    0%
    {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    75%
    {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    99%
    {
        width: 100%;
        height: 100%;
        opacity: 0;
    }
    100%
    {
        width: 0px;
        height: 0px;
        opacity: 0;
    }
}

@-webkit-keyframes disappearing
{
    0%
    {
        height: 100%;
        opacity: 1;
    }
    100%
    {
        height: 100%;
        opacity: 0;
    }
}
@-moz-keyframes disappearing
{
    0%
    {
        height: 100%;
        opacity: 1;
    }
    100%
    {
        height: 100%;
        opacity: 0;
    }
}
@-webkit-keyframes appearing
{
    0%
    {
        height: 100%;
        opacity: 0;
    }
    100%
    {
        height: 100%;
        opacity: 1;
    }
}
@-moz-keyframes appearing
{
    0%
    {
        height: 100%;
        opacity: 0;
    }
    100%
    {
        height: 100%;
        opacity: 1;
    }
}
