body {
    background-color: black;    
}

#wrapper {
    position: relative;
    margin: 0 auto;
    width: 1200px;
    height: 1100px;
    background-color: black;
}

#links {
    position: absolute;
    width: 1143px;
    height: 63px;
    background-color: rgb(65,57,61);
    left: 27px;
    top: 27px;
}

ul#nav {
    margin: auto;
}

ul#nav li {
    display: inline-block;
    margin: auto;
    padding-top: 20px;
    padding-left: 55px;
    padding-right: 55px;
}

ul#nav li a {
    text-decoration: none;
    font-family: localfont;
    font-size: 18px;
    color: white; 
    text-shadow: 4px 4px 6px #000000;
}

ul#nav li a:hover {
    color: rgb(190,30,45);
}

#lefttoppic {
    position: absolute;
    width: 351px;
    height: 117px;
    left: 27px;
    top: 126px; 
}

#logo {
    position: absolute;
    width: 369px;
    height: 117px;
    left: 414px;
    top: 117px;    
}

#righttoppic {
    position: absolute;
    width: 351px;
    height: 117px;
    left: 819px;
    top: 126px; 
}

#mainheading {
    position: absolute;
    width: 756px;
    height: 63px;
    background-color: rgb(190,30,45);
    left: 27px;
    top: 279px;
}

#mainheading h2 {
    line-height: 5px;
    font-family: quote; 
    font-size: 35px;
    justify-content: center;
    color: white;
    padding-left: 20px;
    text-shadow: 4px 4px 6px #000000;
    text-align: center;
}

#mainpic {
    position: absolute;
    width: 756px;
    height: 540px;
    background-color: rgb(65,57,61);
    left: 27px;
    top: 342px;  
}

#maintext {
    position: absolute;
    width: 756px;
    height: 540px;
    padding-top: 20px;
    padding-left: 40px;
    top: 342px;
}

#maintext p {
    font-family: localfont;
    font-size: 17px;
    color: white;
    text-align: center;
}

#righttext {
    position: absolute;
    width: 351px;
    height: 450px;
    left: 819px;
    top: 263px;
}

#righttext p {
    font-family: localfont; 
    font-style: italic;
    font-size: 16px;
    color: white;
    padding-left: 10px;
    padding-right: 10px;
}

#righttext p1 {
    font-family: localfont;
    font-style: italic;
    font-size: 11px;
    color: white;
}

#righttext a {
    text-decoration: none;
    color: white;
}

#righttext a:hover {
    color: rgb(190,30,45)
}

ul#menu li {
    margin: auto;
}

ul#menu li a {
    text-decoration: none;
    font-family: localfont;
    font-size: 18px;
    color: white;  
}

ul#menu li a:hover {
    color: rgb(190,30,45);
}

#gallery {
    position: absolute;
    width: 720px;
    height: 180px;
    left: 45px;
    top: 684px;
}

.gallery {
    position: relative;
    max-width: 720px;
    height: 180px;
    left: 45px;
    top: 684px;
}

.gallery figure {
   margin: 0;
   position: absolute;
}

.gallery figure {
   opacity:0;
}

figure:nth-child(1) {
  animation: xfade 49s 42s infinite;
}
figure:nth-child(2) {
  animation: xfade 49s 35s infinite;
}
figure:nth-child(3) {
  animation: xfade 49s 28s infinite;
}
figure:nth-child(4) {
  animation: xfade 49s 21s infinite;
}
figure:nth-child(5) {
  animation: xfade 49s 14s infinite;
}
figure:nth-child(6) {
  animation: xfade 49s 7s infinite;
}
figure:nth-child(7) {
  animation: xfade 49s 0s infinite;
}


@keyframes xfade{
  0%{
    opacity: 1;
  }
  14% {
    opacity: 1;
  }
  14.2% {
    opacity: 0;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#bottomrightinfotop {
    position: absolute;
    width: 351px;
    height: 81px;
    left: 819px;
    top: 730px;  
}

#bottomrightinfotop p {
    text-align: center;
    font-family: localfont;
    font-size: 18px;
    color: rgb(190,30,45);
}

#bottomrightinfobtm {
    position: absolute;
    width: 351px;
    height: 81px;
    left: 825px;
    top: 795px;  
}

#rightbtmpic {
    position: absolute;
    width: 369px;
    height: 180px;
    background-image: url(images/home/appspecial.jpg);
    left: 801px;
    top: 693px;    
}

#rightbtmtext {
    position: absolute;
    width: 369px;
    height: 36px;
    background-color: rgb(65,57,61);
    left: 801px;
    top: 873px;
}

#footer {
    position: absolute;
    background-color: black;
    left: 450px;
    top: 900px;  
}

ul#socialmedia {
    margin: auto;
}

ul#socialmedia li {
    display: inline-block;
    margin: auto;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

ul#socialmedia li a {
    text-decoration: none;
}

#bottom {
    position: absolute;
    left: 320px;
    top: 955px;  
}

ul#copyright {
    margin: auto;
}

ul#copyright li {
    display: inline-block;
    margin: auto;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    color: white;
}

ul#copyright li a {
    text-decoration: none;
    margin: auto;
    color: white;
}

ul#copyright li a:hover {
    color: rgb(190,30,45);
}