/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */
 @media only screen and (max-width: 320px) {
  .heading{
  margin-left:10;
}
  .title{
    font-size:24px;
}
}

html {

  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
body {
margin:0;
font-family: 'Open Sans', sans-serif;  
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
  width: auto; 
  }

.large{
  font-size:1.6em
}
/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

button,
input,
select,
textarea {
color: #222;
}

.buttonDiv{
  display:flex;
  justify-content: space-between;
}
button,.button{
cursor:pointer;
border:2px solid #c75305;
white-space: normal;
font-size:1.3em;
background:#FFF8DC
}

/* button,.button{ 
  padding:5px;
  } */

button:hover,.button:hover { 
  border: 2px solid #004000; 
} 
button:active,.button:active{ 
  outline: 0 !important;
  outline-offset: 0  !important;
  -webkit-box-shadow: none !important; 
   box-shadow: none  !important;
   /* -moz-box-shadow:0px 0px 1px #da9007;
    box-shadow:0px 0px 1px #da9007;-webkit-box-shadow:0px 0px 1px #da9007; */

}
button:visited,.button:visited{
  /* outline: 0 !important;
  outline-offset: 0  !important;
  -webkit-box-shadow: none !important; 
   box-shadow: none  !important; */
   -moz-box-shadow:0px 0px 1px #da9007;
    box-shadow:0px 0px 1px #da9007;
    -webkit-box-shadow:0px 0px 1px #da9007;
}

ul {
  list-style:none;
  margin: 0;
  padding: 0;}

a {
color:#004000;
}
a:hover{
  color:#555;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrapper {
width: 97%;
margin: auto ;
}
.sharetop{
  position:absolute;
  top:85px;
  right:15px;
  z-index:100
}

#addthis{
  top:36px;
  }

  .header-container{
    background: #004000;
    height:80px;
    -webkit-box-shadow: 0 1px 3px #aaa;
    -moz-box-shadow: 0 1px 3px #aaa;
    box-shadow: 0 1px 3px #aaa;
    z-index:1;
    }
.header{
  display:flex;
  
}
.heading{
  display:flex;
  flex-direction: column;
  position:relative;
  top:10px;
  margin-left:30px;
}
.title{
  font-size:26px;
  display:inline-block;
}
.title a{
  color:#fff;
  text-decoration:none
}
.title a:hover{
  color:#ccc;
  text-decoration:none;
  background:none
}
.sub-head{
  font-size:14px;
  color:#fff;

}
.couk{
  font-size:0.4em;
  display:none
}
.main-container{
  flex-grow: 1;
}
article{
  padding:10px;
}
article h1 {
  margin-top:30px;
font-weight:bold;
}
article p{
font-size:1.2em;
/* font-weight:bold */
}
aside{
  padding:10px;
  text-align:right;
}

/* home page */
.home-img{
  max-width:190px;
}
.home-link{
  margin:auto;
  border: 1px solid #aaa;
  margin-bottom:10px;
  padding:5px 0;
}
.home-img-title{
  margin:0;
  text-align:center;
}
.home-img-p{
  text-align:center;
}
.randomimageDiv{
  display:flex;
  justify-content: space-around;
}
.randomimageBtn{
  height:100px;
  width:300px;
}
#imageout{
  text-align:center
}
#thanks{
  text-align:center;
}
.footer-container {
color:white;
background: #004000;
-webkit-box-shadow: 0 -1px 3px #aaa;
    -moz-box-shadow: 0 -1px 3px #aaa;
    box-shadow: 0 -1px 3px #aaa;
}
.footer-container footer {
color: white;
font-size:0.9em
}

.copy{
  text-align:center;
  font-size:0.9em;
  margin-top:10px;
  }

.bottomLinks{
  margin-top:10px;
  margin-bottom:10px;
  display:flex;
  justify-content:space-between;
  }

.sites a, .privacy a{
color:white;
font-size:0.9em;
}

.sites a:hover, .privacy a:hover{
  color:#ccc
}

#midTop,.adslot_0,#midBottom,.adslot_1{
  display:none
}
#middleAd,#google2,#google3,.adslot_1,.adslot_2,.adslot_3 { 
display: none; 
}

#bottomAd{
margin:15px auto;
display:block;
}

#middleAd,.adslot_1{ 
display: block;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* 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 receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}


@media only screen and (min-width: 500px) {

.sharetop{
  top:28px;
}
.couk{
  display:inline-block
}

.home-link{
  max-width:100%
}

.home-img{
  max-width:100%;
}
}
    
@media only screen and (min-width: 768px) {

.sharetop{
  right:215px;
}
.main-container{
  display:flex;
}
article {
  padding:15px;
  flex:2
}


aside {
  padding:15px;
  flex:1
  }

.home-link{
  max-width:90%
}
.randomimageBtn{
 margin-top:40px
}
#midTop{
  display:block;
  margin-top:15px;
  width:468px;height:20px;
  }
  #midTop,.adslot_0,#midBottom,.adslot_1{
  margin:0 auto;
  }
.adslot_2, .adslot_3 ,#google2,#google3{ 
display: block; 
}

#google2,.adslot_2{
margin:auto;
}
#google3,.adslot_3{
margin-top:20px;
}

}    

@media only screen and (min-width: 980px) {

.sharetop{
right:450px;
}
nav{
  flex:2
}
.heading{
  margin-left:10px;
}
article {
  flex:6
  }
  
 aside {
  flex:3
  }
}
@media only screen and (min-width: 1300px) {


}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

