/*C F*/

/**
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    contenteditable attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that are clearfixed.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
    *zoom: 1;
}


#random{

  width: 500px;
  height: 100%;
  background-image: url('../images/birk.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}


html{
   height: 100%;
}

body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content:center;
  width: 100%;
  min-height: 100%;
  flex-wrap: wrap;
  border: 10px solid transparent;
  border-image: url(../images/orange.gif) 20% stretch;
  position: absolute;
  box-sizing: border-box;
}

.wrapper{
  display: flex;
  flex-direction: row;
  width: 900px;
  /* background-color: #ededed; */
}

.picture {
  width: 500px;
}

.text{
  width: 100%;
  height: 100%;
  padding-left: 45px;
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
}

.cim{
  width: 100%;
}

.links{
  align-self: flex-end;
  padding-top: 100px;
}

h1{
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 60px;
  color: #444444;
}

.alcim{
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 30px;
  color: #444444;
  display: flex;
  flex-direction: row;
  height: 30px;
  overflow: hidden;
}

#flip{
    padding-left: 8px;
    animation: mymove 4s infinite;
    position: relative;
}


@keyframes mymove {
  0%   {top:  -60px;}
  5%   {top: -30px;}
  45%  {top: -30px;}
  50%  {top: 0px}
  99.99%  {top: 0px}
  100% {top: -60px;}
}

.links a{
  text-decoration: none;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 300;
  font-size: 24px;
  font-style: italic;
  line-height: 180%;
  color: #444444;
}

@media screen and (max-width: 500px) {
body{
  width: auto;
}

  .wrapper{
    flex-direction: column;
    width:auto;
  }

  .picture{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
  }

  .text{
    width: 100%;
  }

  #random{
    width: 250px;
    height: 200px;
  }
}
