/*
CSS for Handyman site
Main Style Sheet
*/

body {
//  width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-family: "Lato", sans-serif;
  }

header {
  height: 260px;
//  width: 90%;
  background-image: url("images/prideflaghdr.png");
  background-repeat: repeat-x;
//  background-image: url("images/image1.jpg");
//  background-repeat: no-repeat;
  background-position: center center;
//  border: 1px solid blue; /*Layout test*/
  }

#banner h1 {
  color: yellow;
  text-shadow: 2px 2px 8px #000000;
  font-size: 2em;
  float:right;
  margin-right:1em;
  margin-top:0;
  clear:right;
  }

#banner h1 a {
  color: yellow;
  text-shadow: 2px 2px 8px #000000;
  }

#banner h2 {
  font-size: 1em;
  }

#pagecontainer {
  overflow: auto;
  position: relative;
  width: 90%;
  max-width: 1024px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
//  border: 1px solid green; /*Layout test*/
  }

nav {
  margin: 0;
  padding: 0;
  width: 15%;
  background-color: #f1f1f1;
  float: left;
  height: 100%;
  overflow: auto;
//  border: 1px solid red; /*Layout test*/
  }

nav a {
  display: block;
  color: black;
  padding: 10px;
  text-decoration: none;
  }

nav a.active {
//  background-color: #4CAF50;
//  color: white;
  background-color: yellow;
  color: black;
  }

nav a:hover:not(.active) {
  background-color: #555;
  color: white;
  }

.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
//  padding: 18px;
//  width: 100%;
  border: none;
//  text-align: left;
  outline: none;
//  font-size: 15px;
  transition: 0.4s;
}

.active, .accordion:hover {
  background-color: #ccc;
}

.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

#content {
  margin: 5px;
  float: left;
  clear: right;
  width: 45%;
  padding: 1px 16px;
//  border: 1px solid blue; //Layout test
  }

.imgcontent {
  width: 90%;
  margin: 5%;
  }

#sidebar {
  float: right;
  position: relative;
  overflow: hidden;
  min-height: 20em;
  width: 30%;
  margin: 5px 10px 15px 0;
//  border: 1px solid red; //Layout test
  padding: .5em;
  }

.imgcenter {
  display: block;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
  }

.formerrortext {
  color: red;
  }

@media screen and (max-width: 700px) {

#banner {
  background-size: 200%;
//  margin-top: 2em;
  }

#banner h1 {
  font-size: 1.5em;
  margin-top: 0.5em;
  }

#banner h2 {
  font-size: 1.5em;
  }

  nav {
    width: 100%;
    height: auto;
    position: relative;
  }
  nav a {
    float: left;
  }
  #content {
    margin-left: 0;
  }

#sidebar {
  width: 250px;
  height: 1386px;
  }

}

@media screen and (max-width: 400px) {
  nav a {
    text-align: center;
    float: none;
  }

#banner {
  background-size: 200%;
//  margin-top: 2em;
  }

#banner h1 {
  font-size: 1em;
  margin-top: 0.5em;
  }

#banner h2 {
  font-size: 1em;
  }

#content {
  width: 90%;
  }
  
#sidebar {
  float: none;
  width: 350px;
  margin-left: auto;
  margin-right: auto;
  }
  
}

// Keyframe Animation 

#sidebarscroll {
  position: relative;
//  margin: 5px;
//  padding: 5px;
  margin-left: auto;
  margin-right: auto;
//  border: 1px solid yellow; //Layout test
  -webkit-animation: scrollphotos 30s linear infinite;
  animation: scrollphotos 30s linear infinite;
}

@-webkit-keyframes "scrollphotos" {
  from {top: 0px;}
  to {top: -1275px;}
}

// Standard syntax 
@keyframes "scrollphotos" {
  from {top: 0px;}
  to {top: -1275px;}
}

