/*
   ======================================

   Written by: Steve Beeston
   Date:       26th August 2015

   ======================================
*/

@import url(normalize.css);
@import url(grid.css);


* {
   padding: 0;
   margin: 0;
   font-family: Nunito, sans-serif;
}

html {
   font-size: 62.5%;
   height: 100%;
}

body {
   background: #52931B;
}


/* For debugging only */
.column, .columns {border: 0px solid red;}


/*
   ======
   LAYOUT
   ======
*/


.outer-wrapper {
   position: relative;
   float: left;
   width: 100%;
   /* min-height: 100%; SRB 11/1/21 */
   background: white;
}

header, footer {
	width:100%;
}

.inner-wrapper {
   position: relative;
	margin: 0 auto;
   width: 100%;
   max-width: 1024px;

}

header {
   width: 100%;
}




footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  color: white;
  text-align: center;
}



footer p, 
footer a {
   color: #eee;
}

footer a {
   border-bottom: 0;
}

footer .column,
footer .columns {
   padding-bottom: 5px;
}

.top-bar {
   padding: 0;
}

.panel {
   float: left;
   background: #ce992e;
   border-radius: 7px;
   margin: 10px 0;
   padding: 10px;
}

.featurebox {
   float: left;
   min-width: 300px;
   background: #ce992e;
   border-radius: 7px;
   padding: 10px;
   margin-bottom: 20px;
}


.featurebox h2,
.sidebar h2,
.panel h2 {
   font-size: 19px;
   color: white;
   /* background: #eee;
   background: -moz-linear-gradient(top,  #f4f4f4,  #dbdbdb);
	background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#dbdbdb)); */
   border-radius: 7px 7px 0 0;
   padding-left: 0;
}

.featurebox p, 
.featurebox a, 
.sidebar p,
.sidebar a,
.panel p,
.panel a {
   /* margin: 0 10px; */
   font-size: 13px;
   color: #000;
   line-height: 20px;
}

.featurebox a,
.panel a {
   text-decoration: none;
   border-bottom: 1px dotted;
   padding-bottom: 1px;
   color: white;
}

.portfolio-item {
   border-top: 1px dotted #c2992e;
   padding: 10px 0;
   min-height: 200px;
   text-align: left;
}

.portfolio-item img {
   float: right;
   margin-left: 15px;
   margin-top: 10px;
}

.sidebar {
   float: right; 
  	width: 200px; 
	margin-top: 10px; 
   padding: 10px;
   background: #449;
   background: #ce992e;   
   border-radius: 7px;
   margin-left: 20px;
}

.sidebar p,
.sidebar a {
   color: #ddd;
   color: #000;
}

.text-center {
   text-align: center;
}

.text-right {
   text-align: right;
}

.text-left {
   text-align: left;
}

li {
   margin-left: 17px;
}

nav li {
   margin-left: 0;
}

.center {
   text-align: center;
}

.right {
   text-align: right;
}

/*
   ==========
   TYPOGRAPHY
   ==========
*/


h1, h2, p, a, li, td, .page {
   color: #444; 
}

p, a, .page {
   padding: 8px 0;
}

h1 {
   font-family: Nunito, serif; 
   font-size: 26px; 
   font-weight: normal; 
   padding: 8px 0;
}

h2 {
   font-family: Nunito, serif; 
   font-size: 20px; 
   font-weight: normal; 
   padding: 4px 0;
}

h3 {
   font-family: Nunito, sans-serif; 
   font-size: 1em; 
   font-weight: bold;
   padding: 8px 0;
}

p, a, li, td, label, input, .page {
   font-family: Nunito, sans-serif; 
   font-size: 1.6rem; 
   line-height: 2.6rem;
}

#footer p {
   font-size: 0.9em;
   color: #888;
}

nav a {
   text-decoration: none;
}



/*
   ================================
   NAVIGATION
   ================================
*/

/* Add a black background color to the top navigation */
.menu {
   float: right;
   overflow: hidden;
}

/* Style the links inside the navigation bar */
.menu a {
  float: left;
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.menu a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.menu a.active {
  background-color: #4CAF50;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.menu .icon {
  display: none;
}



/* 
   ================================
   MESSAGES 
   ================================
*/

.success, 
.failure {
   font: bold 13px arial;
   display: inline; 
   padding: 3px; 
   border-radius: 4px; 
   border-width: 2px; 
   border-style: solid; 
   margin: 3px;
}

.success {
   color: green; 
   border-color: green;
}

.failure {
   color: red; 
   border-color: red;
}



/*
   ================================
   BUTTON
   ================================   
*/

.button {
  background-color: #52931B; /* Green */
  border: none;
  color: white;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}



#pagination {
   margin-bottom: 15px;
}

.page {
  background-color: #silver; 
  border: 1px solid gray;
  padding: 9px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

}

/*
   ================================
   FORM
   ================================   
*/

input[type=button], input[type=submit], input[type=reset] {
  background-color: #ddd;
  border: 1px solid gray;
  color: #333;
  padding: 1px 8px;
  text-decoration: none;
  margin: 4px 0px;
  cursor: pointer;
}

input[type=submit] {
   margin-top: 10px;
   margin-bottom: 10px;
   padding: 0px 10px;
}



/* 
   ================================
   GO TO TOP BUTTON
   Added by SRB 19/9/20 00621
   Source: https://www.w3schools.com/howto/howto_js_scroll_to_top.asp
   ================================
*/

#topBtn {
   visibility: hidden; /* Hidden by default */
   position: fixed; /* Fixed/sticky position */
   bottom: 20px; /* Place the button at the bottom of the page */
   right: 30px; /* Place the button 30px from the right */
   z-index: 99; /* Make sure it does not overlap */
   border: none; /* Remove borders */
   outline: none; /* Remove outline */
   background-color: #52931B; /* Set a background color */
   color: white; /* Text color */
   cursor: pointer; /* Add a mouse pointer on hover */
   padding: 8px 14px; /* Some padding */
   border-radius: 0px; /* Rounded corners */
   font-size: 14px; /* Increase font size */
   opacity: 0;
   transition: ease 0.5s;
}

#topBtn.show {
   visibility: visible;
   opacity: 0.8;
}

#topBtn:hover {
   background-color: #52951B; /* Add a dark-grey background on hover */  
}




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

   .button {
      padding-left: 15px;
      padding-right: 15px;
   }

   #pagination {
      margin-bottom: 150px;
   }

   .page {
      padding-left: 7px;
      padding-right: 7px;
   }

}





/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .menu a:not(:first-child) {display: none;}
  .menu a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .menu.responsive {position: relative;}
  .menu.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .menu.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}





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


   footer .text-right,
   footer .text-left {
      text-align: center;
   }

   .featurebox {
      float: none;
      margin: 15px auto;
   }

   li {
      list-style-type: none;
   }

   .portfolio-item p,
   .portfolio-item h2 {
      text-align: center;
   }

   .portfolio-item img {
      float: none;
      display: block;
      margin: 10px auto;
   }

   nav {
      width: 100%;
   }

}


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


   .featurebox {
      width: 100%;
      text-align: center;
   }


}