body {
  background: #111;
  font-weight: 300;
}
.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: url('../img/norwichcastle.jpg');
  background-size: cover;
  background-position: center;
  text-rendering: optimizeLegibility;
}
.background:after {
  content: '';
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
}
.wrapper {
  display: none;
}


/* 1. Intro Keyframe
--------------------------------------- */
#intro {
  position: fixed;
  top: 48%;
  left: 10%;
  width: 80%;
  color: #fff;
  text-align: center;
  text-transform: lowercase;
}
.name {
  font-size: 20px;
  letter-spacing: 12px;
  line-height: 1.5;
  font-weight: 900;
  text-transform: uppercase;
}
.byline { 
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  font-weight: 300;
}
.scroll { 
  font-size: 16px;
  letter-spacing: 4px;
  text-align: center;
  font-weight: 300;
}
.ampersand {
  font-family: 'Tenor Sans', sans-serif;
  font-style: italic;
}

/* 2. Explosion/Images/Links Structure and Text
--------------------------------------- */
#explosion,
#images {
  position: fixed;
  top: 100%;
  width: 100%;
  height: 100%;
}
.explosion-byline,
.images-byline {
  position: fixed;
  top: 40%;
  left: 10%;
  color: white;
  max-width: 80%;
  opacity: 0;
}

.images-byline-2 {
  text-align: center;
  position: fixed;
  top: 53%;
  left: 25%;
  color: white;
  width: 50%;
  opacity: 0;
}

/* 3. Explosion Keyframe
--------------------------------------- */
#domExplosionList {
  position: fixed;
  width: 270px;
  top: 90%;
  right: 15%;
  opacity: 0;
}
.dom-explosion-item {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: #fff;
  display: none;
}

p.explosion-byline, p.images-byline {font-size: 14px;text-align: justify;}


.dei-1  { top: 0;   left: 0;  }
.dei-2  { top: 0;   left: 70px; }
.dei-3  { top: 0;   left: 140px; }
.dei-4  { top: 0;   left: 210px; }
.dei-5  { top: 70px;   left: 0;  }
.dei-6  { top: 70px;   left: 70px; }
.dei-7  { top: 70px;   left: 140px; }
.dei-8  { top: 70px;   left: 210px; }
.dei-9  { top: 140px;   left: 0;  }
.dei-10 { top: 140px;   left: 70px; }
.dei-11 { top: 140px;   left: 140px; }
.dei-12 { top: 140px;   left: 210px; }
.dei-13 { top: 210px;   left: 0;  }
.dei-14 { top: 210px;   left: 70px; }
.dei-15 { top: 210px;   left: 140px; }
.dei-16 { top: 210px;   left: 210px; }


/* 3. Images Keyframe
--------------------------------------- */
.raw-page {
  position: fixed;
  width: 85%;
  border-radius: 6px;
  box-shadow: inset 0 0 1px rgba(255,255,255,.3);
  border: 1px solid rgba(0,0,0,.2);
  background-clip: padding-box;
}
#mediumHomepage {
  top: 100%;
  right: 5%;
}

#medium-profile-iphone {
  z-index: 2;
}



/* 3. Links Keyframe
--------------------------------------- */
#links {
  position: fixed;
  top: 48%;
  left: 10%;
  width: 80%;
  color: #fff;
  text-align: center;
  opacity: 0;
}
.links-byline {
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
}
.links-byline:hover {color:#abc04a;}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.btn:hover,
.btn:focus {
  color: #fff;
  border-color: #fff;
}

.logo {
  position: fixed;
  top: 20px;
  left: 20px;
}

.logo img {
  width: 75px;
}

.socme, .phone {
  position: fixed;
  top: 20px;
  right: 20px;
}

.phone {right: 0px;top:60px;}

.socme img {
  width: 30px;
  height: 30px;}

a.telno  {
  color: #ffffff;
  text-decoration: none;
  padding-right: 20px;
}

/* 4. Handling resize and small devices
--------------------------------------- */

/* Minimum width of 960 pixels. */
@media screen and (min-width: 450px) {
  h1.name {font-size: 40px}
  .byline { font-size: 20px;}
    .phone {right: 180px;top: 20px;}
    p.explosion-byline, p.images-byline  {font-size: 18px;text-align: left;}
    .explosion-byline,.images-byline {top: 50%}
    .links-byline {font-size: 30px;line-height: 2.15;}
    .footer {font-size: 26px;}
  }


@media screen and (min-width: 650px) {
  .explosion-byline, .images-byline {max-width:30%;}
  .dom-explosion-item {display: inline;}
  .raw-page {width: 45%;}
  #mediumHomepage {
  top: 100%;
  right: 5%;

}
/*.error {
  display: none;
  position: fixed;
  width: 80%;
  font-size: 30px;
  font-weight: 300;
  text-align: center;
  top: 30%;
  left: 10%;
}
.page-error .error {
  display: block;
}
.page-error .container {
  display: none;
}
@media all and (max-width: 1000px) {
  .container {
    display: none;
  }
  .error {
    display: block;
    font-size: 22px;
  }
}*/