/* FUNNY PICTURES AND QUOTES STYLESHEET */

/* 1.  MAIN TAGS */
/* 2.  CONTAINER */
/* 3.  HEADER */
/* 4.  LEFT COLUMN */
/* 5.  MIDDLE COLUMN */
/* 6.  RIGHT COLUMN */
/* 7.  LEFT COLUMN */
/* 8.  FOOTER */
/* 9.  HEADER CLASSES */
/* 10. MIDDLE COLUMN CLASSES */
/* 11. RIGHT COLUMN CLASSES */
/* 12. FOOTER CLASSES */
/* 13. HOME PAGE LATEST FUNNY PICTURES / FUNNY QUOTES CLASSES */
/* 14. HOME PAGE SUBSCRIBE TO NEWSLETTER STYLES */
/* 15. FUNNY PICTURE / FUNNY QUOTE COLLECTION CLASSES */
/* 16. FUNNY PICTURE AND QUOTE STYLES */
/* 17. ADD THIS TOOLBAR STYLES */
/* 18. INTRO BOX STYLES */
/* 19. FOLLOW US STYLES */
/* 20. SEARCH BOX STYLES */
/* 21. NEWSLETTER PAGE STYLES */
/* 22. MISCELLANEOUS FLOAT CLASSES */
/* 23. GOOGLE ADSENSE DEFAULT STYLES (FOR DESKTOP) */
/* 24. MEDIA QUERIES */


/* 1. MAIN TAGS */

* {
  margin: 0px auto; /* I had to add this to center the middle column on the iPad */
  padding: 0px;
}

body {
  background-color: #FFFFFF; /* WHITE */
  color: #000000; /* BLACK */
  padding-bottom: 10px;	
  /* font-family: Verdana, Arial, Helvetica; */
  font-family: Bubblegum Sans;
  font-size: 26px;
  line-height: 1.0; 
}

h1, h2, h3, h4, h5, h6, p {
  margin-bottom: 30px;
}

a img {
  border: none;
}

img {
  border: none;
}

a:link {
  color: #1122CC; /* DARK BLUE */
  text-decoration: underline;
}

a:visited {
  color: #0000FF; /* BLUE */
  text-decoration: underline;
}

a:hover, a:active, a:focus { 
  text-decoration: none;
}

ul, ol {
  padding: 0px 15px 15px 40px; 
}

table {
  display: table;
  border-collapse: collapse;
  border-spacing: 0px;
}

tr {
  display: table-row;
}

th, td {
  display: table-cell;
}

table, td, th {
  vertical-align: top;
}

input[type="text"] {
  height: 18px;
  padding: 2px;
  border: 1px solid #AAAAAA; /* DARK GRAY */
}

input[type="button"],
input[type="submit"] {
  display: inline;
  padding: 3px 5px;
  border: 1px solid #AAAAAA; /* DARK GRAY */
  border-radius: 3px;
  background-color: #EEEEEE; /* LIGHT GRAY */
  cursor: pointer;
}

input[type="button"]:hover,  
input[type="submit"]:hover {
  background-color: #BBBBBB; /* LIGHT GRAY */
}

/* Remove extra padding in Firefox */
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner {
  padding: 0px !important;
  border: 0px none !important;
}  

label {
  cursor: pointer;
}

.lineBreak { 
  height: 0px;
  font-size: 0px;
  line-height: 0px;
  clear: both; /WHAT DOES THIS DO AGAIN? */
}

.noBorder {
  border: none !important;
}

.successMessage {
  color: #008000; /* GREEN */
  font-size: 12px;
  font-weight: bold;
}

.errorMessage {
  color: #FF0000; /* RED */
  font-size: 12px;
  font-weight: bold;
}

/* 2. CONTAINER */

#container {
  width: 1024px;
  /* margin: 0px auto; */
  /* The auto value on the sides, coupled with the width, centers the layout */
  /* I moved this attribute to the * tag (everything), it was necessary to center middle column on the iPad */
}

/* 3. HEADER */

#header {
  padding-bottom: 5px; /I NEED THIS 5PX OF PADDING ON THE BOTTOM FOR DESKTOP */
  margin-bottom: 10px;
  background: #FFFAF0 url(Pics/HeaderDivider.gif) repeat-x bottom center; /* VERY LIGHT ORANGE */
}

.slicknav_menu {
  z-index: 100;
  display: none;
}

.slicknav_nav a {
  font-size: 20px; 
}

#mobileMenu {
  display: none; /* Why is this required? Not mentioned in the instructions */
}

/* 4. LEFT COLUMN */

#leftColumn {
  float: left;	
  width: 209px; 
  padding-bottom: 10px;
  margin-right: 5px;
  font-size: 12px;
}

/* 5. MIDDLE COLUMN */

#middleColumn {
  float: left;
  width: 600px;
  min-height: 600px;
  padding: 10px 20px;
  background-color: #FFFFFF; /* WHITE */
  text-align: center;
}

/* 6. RIGHT COLUMN */

#rightColumn {
  float: left;
  width: 160px;
  padding-left: 5px;
  margin-left: 5px;
  text-align: center;
}

#rightColumn {
  float: left;
  width: 160px;
  padding-left: 5px;
  margin-left: 5px;
  text-align: center;
}

/* 7. FOOTER */

#footer {
  margin-top: 20px;
  text-align: center;
}

/* 8. HEADER CLASSES */

#header .desktopLogo {
  float: left;
  width: 296px;
  height: 90px;
}

#header .mobileLogo {
  display: none;
  float: right;
  width: 550px;
  height: 90px;
  padding-top: 1px;
  padding-bottom: 1px;
  margin-bottom: 2px;
}

#header .banner {
  float: right;
  width: 728px;
  height: 90px;
}

#header .banner img {
  /* I'M TRYING TO VERTICALLY ALIGN THE ADSENSE BANNER FOR WHEN IT SHOWS A 468X60 , BUT IT'S NOT WORKING */
  vertical-align: middle;
  /* I ASSUME YOU CAN'T DO PADDING: AUTO 0PX; ? */
}

/* 9. LEFT COLUMN CLASSES */

#mainMenu {
  border: 1px solid #666666; /* DARK GRAY */
  border-bottom: none;
  margin-bottom: 15px;
}

#mainMenu .mainMenuHeader {
  border-bottom: 1px solid #666666; /* DARK GRAY */
  color: #FFFFFF; /* WHITE */
  padding: 3px 5px;
  font-size: 22px;
}

#mainMenu .mainMenuHeader.header1 {
  background-color: #FE9A02; /* ORANGE */
}

#mainMenu .mainMenuHeader.header2 {
  background-color: #32CD32; /* GREEN */
}

#mainMenu .mainMenuHeader.header3 {
  background-color: #993300; /* BROWN */
}

#mainMenu a {
  display: block; /* This gives the link block properties causing it to fill the whole LI containing it. This causes the entire area to react to a mouse click. */
  width: 197px; /* This width makes the entire button clickable for IE6. Calculate the proper width by subtracting the padding and borders from the width of your sidebar container. */	
  padding: 3px 5px;
  border-bottom: 1px solid #666666; /* DARK GRAY */ /* This creates the button separation */
  font-size: 22px;
}

#mainMenu a, 
#mainMenu a:visited { 
  /* Grouping these selectors makes sure that your links retain their button look even after being visited */
  color: #0000FF; /* BLUE */
  text-decoration: none;
}

#mainMenu a:hover, 
#mainMenu a:active, 
#mainMenu a:focus { 
  /* This changes the background and text color for both mouse and keyboard navigators */
  /* ANOTHER POSSIBILITY IS TO USE A HIGHLIGHT BACKGROUND IMAGE */
  background: url(Pics/Highlight.gif) no-repeat;
}

#voteBox {
  padding: 5px;
  border: 1px solid #666666; /* DARK GRAY */
  margin-bottom: 15px;	
  background-color: #FFFACD; /* LIGHT YELLOW */
  text-align: center;
}

#leftColumn p {
  margin-right: 10px;
  margin-left: 10px;
}

/* 10. MIDDLE COLUMN CLASSES */

#middleColumn h1 {
  color: #00407D; /* DARK BLUE */
  font-size: 32px;
  font-weight: bold;
}

#middleColumn h1 span {
  display: block;
  color: #000000; /* BLACK */
  font-size: 28px;
  font-weight: normal;
}

/* Use slogan class if you want home page color to be different */
#middleColumn div.slogan {
  color: #1E90FF; /* BLUE */
}

#middleColumn .mediumRectangle {
  margin-top: 30px;
}

/* 11. RIGHT COLUMN CLASSES */

#rightColumn .skyscraper {
  width: 160px;
  height: 600px;
  margin-bottom: 15px;
}

#rightColumn .linkUnit {
  width: 160px;
  height: 90px;
  margin-bottom: 15px;
}

#rightColumn .top20Free {
  margin-bottom: 15px;
}

/* 12. FOOTER CLASSES */

#footerMenu {
  padding: 6px 0px 4px 0px;
  margin-bottom: 20px;
  background: url(Pics/FooterMenuBackground.gif) repeat-x;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 4px;
}

#footerMenu a {
  margin: 0px 10px;
  color: #FFFFFF; /* WHITE */
  font-weight: bold;
  text-decoration: none;
}

#footerMenu a:hover {
  text-decoration: underline;
}

#footerMenu .footerSeparator {
  margin: 0px 5px;
  color: #666666; /* DARK GRAY */
}

/* 13. HOME PAGE LATEST FUNNY PICTURES / FUNNY QUOTES CLASSES */

.latestPuzzlesHeading {
  font-size: 28px;
  font-weight: bold;
}  

#latestFunnyPictures,
#latestFunnyQuotes {
  width: 500px;
  margin: 10px auto 0px auto;
}

#latestFunnyPictures td,
#latestFunnyQuotes td {
  text-align: center; 
} 

#latestFunnyPictures .pictureName,
#latestFunnyQuotes .quoteName {
  text-transform: uppercase;
}

#latestFunnyPictures .thumbnail,
#latestFunnyQuotes .thumbnail {
  display: block;
  width: 125px;
  height: 125px;
  border: 1px solid #000000; /* BLACK */
  margin: 0px auto 5px auto;
}

#latestFunnyPictures .thumbnail img,
#latestFunnyQuotes .thumbnail img {
  display: block;
}

/* 14. HOME PAGE SUBSCRIBE TO MONTHLY NEWSLETTER STYLES */

#subscribeToMonthlyNewsletterHome td.left img {
  padding-left: 45px;
  padding-right: 5px;
  vertical-align: middle;
}

#subscribeToMonthlyNewsletterHome td.right {
  padding-right: 45px;
  vertical-align: middle;
  font-size: 26px;
}

/* 15. FUNNY PICTURE / FUNNY QUOTE COLLECTION CLASSES */

table.collection {
  width: 615px;
}

table.collection td {
  height: 176px;
  padding: 0px 0px 15px 0px;
}

table.collection a {
  display: block;
  width: 125px;
  height: 125px;
  border: 1px solid #000000; /* BLACK */
  margin: 0px auto;
}

table.collection .funnyPictureName,
table.collection .funnyQuoteName {
  display: inline-block;
  /* The following overrides the styles in the previous block */
  width: 115px; 
  height: 36px;
  border: none;
  margin-bottom: 5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* 16. FUNNY PICTURE AND QUOTE STYLES */

#funnyPicture,
#funnyQuote {
  width: 600px;
}

#ratingBox {
  height: 50px;
  width: 300px;
  margin: 20px auto 0px auto; 
  background-image: url(Pics/Stars.gif);
}

#funnyPictureNavigation,
#funnyQuoteNavigation {
  margin-top: 18px; 
  font-size: 18px;
  font-weight: bold;
}

#funnyPictureList,
#funnyQuoteList {
  margin-top: 5px;
  font-size: 12px;
}

/* 17. ADD THIS TOOLBAR STYLES */

.addthis_toolbox {
  display: inline-block;
  height: 16px;
  margin-bottom: 20px;
}

#addThis {
  margin-top: -20px;
  font-size: 14px; /* THIS IS NEEDED TO CENTER THE COUNTER WHICH IS ALIGNED BASED ON DEFAULT 14PX FONT */
}

/* 18. INTRO BOX STYLES */

#introBox {
  margin-top: 10px;
  margin-bottom: 25px;
  text-align: left;
}

#introBox img.mainImage {
  float: left;
  border: 1px solid #333333; /* VERY DARK GRAY */
  margin: 0px 15px 8px 0px;
}

#introBox.shortIntro {
  display: inline-block;
}

/* 19. FOLLOW US STYLES */

#followUs {
  padding: 10px;
  border: 1px solid #AAAAAA; /* GRAY */
  margin-top: 15px;
  margin-bottom: 15px;
  background-color: #EEEEEE; /* VERY LIGHT GRAY */
  text-align: center;
}

#followUs span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
}

#followUs a {
  margin: 0px 3px;
}

#followUs a img {
  margin-bottom: -5px;
}

#followUs img:hover {
  opacity: 0.8;
}        

/* 20. SEARCH BOX STYLES */

#cse-search-box {
  margin-bottom: 15px;
}

/* 21. NEWSLETTER PAGE STYLES */

#subscribeToMonthlyNewsletter td {
  vertical-align: middle;
}  

#subscribeToMonthlyNewsletter td.left {
  width: 160px;
  padding: 6px 5px;
  text-align: right;
}

/* 22. MISCELLANEOUS FLOAT CLASSES */

.fltrt {  /* This class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
  float: right;
  margin-left: 8px;
}

.fltlft { /* This class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
  float: left;
  margin-right: 8px;
}

/* 23. GOOGLE ADSENSE DEFAULT STYLES (FOR DESKTOP) */

  .googleResponsive {display: inline-block; width: 728px; height: 90px;}
  .google160x600 {display: inline-block; width: 160px; height: 600px;}
  .google300x250 {display: inline-block; width: 300px; height: 250px;}
  .google160x90 {display: inline-block; width: 160px; height: 90px;}
  /* WHAT HAPPENS IF I USE DISPLAY: BLOCK INSTEAD OF DISPLAY INLINE-BLOCK? */

/* 24. MEDIA QUERIES */

/* LEFT COLUMN WIDTH (DESKTOP): 209px + 5px = 214px */
/* MIDDLE COLUMN WIDTH (DESKTOP): 600px + 40px = 640px */
/* RIGHT COLUMN WIDTH (DESKTOP): 160px + 5px + 5px = 170px */

/* All Mobile Phones Portrait And Landscape (with less than 1024 pixels of width available) */
@media only screen and (max-device-width: 1023px) {
  /* This will get applied mistakingly to iPads in landscape mode and will be undone later */
  #container {width: 100%;}
  #header {background-color: #000000;} 
  #header .desktopLogo {display: none;}
  #header .mobileLogo {display: inline-block;}
  #leftColumn {display: none;}
  /* SHOW MOBILE MENU */
  #mobileMenu {display: none;} /* Initial slicknav mobile menu */
  .slicknav_menu {display: block; position: absolute; left: 0px; top: 0px;}
  .slicknav_btn {float: left !important;}
}

/* All Mobile Phones Portrait And Landscape (with less than 833 pixels of width available) */
@media only screen and (max-device-width: 832px) {
  /* This will get applied mistakingly to iPads in landscape mode and will be undone later */
  /* CHANGE THE WIDTH OF THE MOBILE BANNER TO % SO THAT MOBILE MENU DOESN'T COVER IT */ 
  #header .mobileLogo {width: 67%; height: 54px;}
  #header .mobileLogo img {width: 100%; height: 54px;}
}

/* All Mobile Phones Portrait And Landscape (with less than 810 pixels of width available) */
@media only screen and (max-device-width: 809px) {
  /* This will get applied mistakingly to iPads in landscape mode and will be undone later */
  #middleColumn {width: 96%; padding: 10px 2%;}
  #funnyPicture, #funnyQuote {width: 100%; height: auto;}
  #rightColumn {display: none;}
  /* Apply display:none to Adsbygoogle tag for 160x600 and 160x90 which are now hidden (prevents ad call) */
  .google160x600 {display: none;}
  .google160x90 {display: none;}
  #footerMenu {display: none;} /* SHOULD WE BE HIDING FOOTER OR FOOTER MENU? */
}

/* All Mobile Phones Portrait And Landscape (with less than 728 pixels of width available) */
@media only screen and (max-device-width: 727px) {
  /* This will get applied mistakingly to iPhone 6 Plus in landscape mode and will be undone later */
  /* WITH A SCREEN WIDTH OF LESS THAN 728PX, ONLY ROOM FOR 468x60 ADSENSE BANNER ON MOBILE DEVICES */ 
  /* #header .banner {width: 468px; height: 60px;} */
  /* #header .googleResponsive {width: 468px; height: 60px;} */
  #header .banner, #header .banner img {width: 100%; height: auto;}
}

/* All Mobile Phones Portrait And Landscape (with less than 640 pixels of width available) */ 
@media only screen and (max-device-width: 639px) {
  /* This will get applied mistakingly to iPhone 6 and iPhone 6 Plus in landscape mode and will be undone later */
  #latestFunnyPictures, #latestFunnyQuotes {width: 100%;}
}

/* All Mobile Phones Portrait And Landscape (with less than 468 pixels of width available) */ 
@media only screen and (max-device-width: 467px) {
  /* This will get applied mistakingly to iPhone 4, iPhone5, iPhone 6, and iPhone 6 Plus in landscape mode and will be undone later */
  /* WITH A SCREEN WIDTH OF LESS THAN 468PX, ONLY ROOM FOR 320x50 ADSENSE BANNER ON MOBILE DEVICES */ 
  /* #header .banner {width: 320px; height: 50px;} */
  /* #header .googleResponsive {width: 320px; height: 50px;} */
  #middleColumn h1 {font-size: 30px;} /* TO KEEP HEADINGS FROM BREAKING ON TWO LINES */
}

/* iPhone 4 Landscape (iPhone 4 "mistakingly" reports device-width of 320x480 in both portrait and landscape) */
/* 480 pixels available but max-device-width reports only 320px available */
@media only screen and (device-width: 320px) and (device-height: 480px) and (-webkit-min-device-pixel-ratio: 2)  and (orientation: landscape) {
  /* Undo 468px media query styling mistakenly applied earlier caused by iPhones understating device-width (i.e. reporting device-width of portrait orientation when in Landscape) */
  /* #header .banner {width: 468px; height: 60px;} */
  /* #header .googleResponsive {width: 468px; height: 60px;} */
}

/* iPhone 5 Landscape (iPhone 5 "mistakingly" reports device-width of 320x568 in both portrait and landscape) */
/* 568 pixels available but max-device-width reports only 320px available */
@media only screen (device-width: 320px) and (device-height: 568px) and (-webkit-min-device-pixel-ratio: 2)  and (orientation: landscape) {
  /* Undo 468px media query styling mistakenly applied earlier caused by iPhones understating device-width (i.e. reporting device-width of portrait orientation when in Landscape) */
  /* #header .banner {width: 468px; height: 60px;} */
  /* #header .googleResponsive {width: 468px; height: 60px;} */
}

/* iPhone 6 Landscape (iPhone 6 "mistakingly" reports device-width of 375x667 in both portrait and landscape) */
/* 667 pixels available but max-device-width reports only 375px available */
@media only screen (device-width: 667) and (device-height: 335px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
  /* Undo 640px and 468px breakpoint media query styling mistakenly applied earlier due to misreported device-width */
  /* #header .banner {width: 468px; height: 60px;} */
  /* #header .googleResponsive {width: 468px; height: 60px;} */
}

/* iPhone 6 Plus Landscape (iPhone 6 Plus "mistakingly" reports device-width of 414x736 in both portrait and landscape) */
/* 736 pixels available but max-device-width reports only 414px available */
@media only screen (device-width: 763px) and (device-height: 414px) and (-webkit-min-device-pixel-ratio: 3)  and (orientation: landscape) {
  /* Undo 728px, 640px, and 468px breakpoint media query styling mistakenly applied earlier due to misreported device-width */
  /* #header .banner {width: 728px; height: 90px;} */
  /* #header .googleResponsive {width: 728px; height: 90px;} */
}

/* Tablets Landscape (iPad "mistakingly" reports device-width of 768x1024 in both portrait and landscape) */
/* 1024 pixels available but max-device-width reports only 768px available */
@media only screen and (device-width: 768px) and (device-height: 1024px) and (orientation: landscape) {
  /* Undo 1024px and 810px breakpoint media query styling mistakenly applied earlier due to misreported device-width */
  #container {width: 1024px;}
  .slicknav_menu {display: none;}
  #header .mobileLogo {display: none;}
  #header .desktopLogo {display: block; margin: inherit;}
  #leftColumn {display: block;}
  #middleColumn {width: 640px;}
  #rightColumn {display: block;}
  /* Ad back to the Google AdSense ads in the right hand column */
  .google160x600 {display: inline-block;}
  .google160x90 {display: inline-block;}
  #footerMenu {display: block;}
}