/*
NOTICE: These are my custom-set personal preferences I use for my own Facebook.  Although I hope a lot of people will appreciate this, they may or may not work for you.
These addons/scripts are ALSO recommended for the best experience:
- Facebook - Left Side Chat Bar  (FIREFOX ONLY) - LINK http://userstyles.org/styles/83236/facebook-left-side-chat-bar-beta-firefox-only
- Social Fixer - LINK http://socialfixer.com/
- Facebook Minimalistic Login - LINK http://userstyles.org/styles/43192/facebook-minimalistic-login

Facebook - Perfection - by xd_1771.

Based on:
Facebook - Sticky Top Nav Bar & More Prettiness - http://userstyles.org/styles/25094/facebook-sticky-top-nav-bar-more-prettiness
Practical Facebook Update [2010] - http://userstyles.org/styles/39125/practical-facebook-update-2010
Facebook - Improve and Simplify Style - http://userstyles.org/styles/45239/facebook-improve-and-simplify-style
Facebook - Tweak Ads, Full Content Width - http://userstyles.org/styles/36151/facebook-tweaks-no-ads-full-content-width

Note that the reason I have had to make these scripts part of the single Facebook - Perfection script is so that I can make the content work with each other.  I'm not trying to steal anyone else's work on purpose and I'm crediting all the original writers by link where applicable.

Current version: 5.4

This userscript:
-Compacts and perfects the interface by adjusting padding & spacing
-Removes all advertisements and useless clutter on the right
-Widens the interesting content portion
-Styles top nav bar with gradient and shadow
-Adds Transparent menus (notifications, accounts menu, etc.) w/shadow
-Blinks notification icon on new notification
-Adds fade/hover animations and highlights
-Changes background colour of side notification counts to red for increased visibility
*/

@-moz-document domain("facebook.com") {

/****** START increased visibility of side notification counts ******/

	.count, .uiSideNavCount {background-color:#D63333!important;}
	.count, .count a, .uiSideNavCount, .uiSideNavCount a, .countValue,
	.pagesAltVoiceText a 											/* page voice */
	 {color:#FFF!important;}

/****** START Facebook Animations *******/
/*Animations require CSS3 to function; use the latest version of your web browser*/

* {
    -webkit-transition-property: background;
    -webkit-transition-duration: 50ms;
    -webkit-transition-timing-function: ease-in;

    -moz-transition-property: background;
    -moz-transition-duration: 50ms;
    -moz-transition-timing-function: ease-in;

    -o-transition-property: background;
    -o-transition-duration: 50ms;
    -o-transition-timing-function: ease-in;

    -transition-property: background;
    -transition-duration: 50ms;
    -transition-timing-function: ease-in;
}

/****** END Facebook Animations *******/

/****** START modified Facebook Tweaks: No Ads, Full Content Width script *******/

#leftCol { background: #fff !important; position: relative !important; z-index: 30 !important; }
.sidebarMode #music_trending { position: relative; top: 130px !important; }

}

@-moz-document url-prefix("http://www.facebook.com/groups"), url-prefix("https://www.facebook.com/groups") {

.groupCleanLayout [id*='pagelet_group_requests_summary'], .groupCleanLayout [id*='pagelet_group_members_summary'] { position: absolute !important; left: 980px !important; width: 350px !important; min-width: 350px !important; max-width: 350px !important; }

.groupAddMemberTypeaheadBox .plusIcon { left: 125px !important; }

#pagelet_group_mall li[id*='mall_post'] .mainWrapper a.uiSelectorButton:not(.uiCloseButton) { position: relative !important; top: 1px !important; right: -32px !important; }

#pagelet_group_mall li[id*='mall_post'] ul.uiList { width: 100% !important; }

}

@-moz-document domain("www.facebook.com") {

/****************
 **** GLOBAL ****
 ****************/

/*** REMOVE ADS ***/
#pagelet_ego_pane .ego_column + div, .UIStandardFrame_SidebarAds, #egoRefreshAds, .ego_iframe_tracking, .adsCell, [class*=' fbPhotoSnowboxAds'], [id*=' fbPhotoSnowboxAds'], .fbPhotoAdsCol, .fbCurrentThickline, .fbEmuEgoUnit, [class='fbEmu fbEmuBlock fbEmuEgo'], .egoOrganicColumn, [id*='pagelet_ego_pane'] {
  display: none !important;
  visibility: collapse !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  position: absolute !important;
  top: -10000px !important;
  z-index: -10000000000000 !important;
}

/*** ADJUSTMENT FOR RIGHT COLUMN ***/
.home #leftCol { min-height: 420px !important; margin-top: 10px !important; }

/* Adjust the 'Top' & 'Margin-Top' values as needed in relation to the height of your left column */
.home #contentCol:not([class*='friendListFilter']) #rightCol { left: 0 !important; top: 420px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) .home #contentCol:not([class*='friendListFilter']) #rightCol {top:740px!important;}
.home #rightCol #pagelet_current { padding-top: 12px !important; margin-top: 95px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) .home #rightCol #pagelet_current { padding-top: 12px !important; margin-top: 0 !important; }

.home #rightCol div { margin: 0 !important; }
.home #rightCol .home_right_column { padding-left: 1px !important; color: #999 !important; font-size: 9px !important; font-weight: bold !important; }
.home #rightCol #pagelet_current:before { content: "EVENTS" !important; }
.home #rightCol #pagelet_current .fbCurrent { margin-top:5px!important;}

.home #rightCol .tickerOnTop { position: relative; top: -30px !important; }
.home #rightCol #pagelet_rhc_ticker { margin-bottom: 5px !important; }

[class*=' ticker ']:not([class*='sidebarMode']) .home #rightCol { border-top: 1px solid #eee !important; padding-top: 0 !important; left: 0 !important; top: 642px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) .home #rightCol .tickerOnTop > div > [class*='hidden_elem'] + #pagelet_current { position: relative !important; top: -169px !important; }

.sidebarMode .home #rightCol .tickerOnTop > div > [class*='hidden_elem'] + #pagelet_current { position: fixed !important; top: 486px !important; }
.sidebarMode .home #rightCol .adsOnTop div[id*='fixed'] [class*='hidden_elem'] + #pagelet_current { position: fixed !important; top: 486px !important; }
[class=' ticker sidebarCapable videoCallEnabled '] .adsOnTop { position: relative; top: 360px !important; }
[class=' ticker sidebarCapable videoCallEnabled '] #pagelet_current { position: absolute; top: 340px !important; }
#chatFriendsOnline .uiHeaderNavEmpty { background-color: transparent !important; }


/*** SET OVERFLOW FOR SMALL RESOLUTIONS ***/
[class*=' ticker ']:not([class*='sidebarMode']) .home #leftCol, .tinyViewport .home #leftCol { position: static !important; }

.sidebarMode .home #leftColContainer { position: fixed; }

[class*=' ticker ']:not([class*='sidebarMode']) .home .hasRightCol #rightCol > #pagelet_friendlist_sidecol { padding-top: 0 !important; position: relative !important; top: 14px !important; }

.sidebarMode .home .hasRightCol #rightCol > #pagelet_friendlist_sidecol { position: relative !important; }

[class*=' ticker ']:not([class*='sidebarMode']) .home .hasRightCol #rightCol > #pagelet_friendlist_sidecol #pagelet_friend_list_suggestions { padding-left: 6px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) .home .hasRightCol #rightCol > #pagelet_friendlist_sidecol > #friend_list_sidecol [class='uiHeader uiHeaderTopAndBottomBorder uiHeaderSection'] { width: 100% !important; margin-left: -5px !important; }


/*** FIXES WHEN VIEWING FRIEND LISTS ***/
#pagelet_friend_list_suggestions table[class='uiGrid friendListSuggestion'] td.friendListSuggestionName span.friendListSuggestionNameWrap { padding-right: 10px !important; width: 70px !important; }

#friend_list_sidecol .plusIcon { left: 5px !important; }
#friend_list_sidecol .friendListTypeaheadBox { padding-bottom: 20px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) #pagelet_friendlist_sidecol { position: relative; top: 220px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) #pagelet_friend_list_suggestions { position: relative; left: -5px !important; }
[class*=' ticker ']:not([class*='sidebarMode']) #pagelet_friend_list_suggestions > div > [class='uiHeader uiHeaderTopAndBottomBorder uiHeaderSection'] { position: relative; left: 0 !important; width: 100% !important; }
[class*=' ticker ']:not([class*='sidebarMode']) #pagelet_friend_list_suggestions table[class='uiGrid friendListSuggestion'] { position: relative; left: 1px!important; }
[class*=' ticker ']:not([class*='sidebarMode']) #pagelet_friend_list_suggestions table[class='uiGrid friendListSuggestion'] td a img { margin-right: 5px !important; }

.sidebarMode .home .hasRightCol #rightCol #pagelet_friendlist_sidecol { position: fixed; padding-top: 34px !important; }
.sidebarMode .home .hasRightCol > #rightCol > #pagelet_friendlist_sidecol > #friend_list_sidecol > #pagelet_friend_list_suggestions { padding-left: 0 !important; padding-right: 4px !important; }
.sidebarMode .home .hasRightCol > #rightCol > #pagelet_friendlist_sidecol > #friend_list_sidecol > #pagelet_friend_list_suggestions .uiHeader { width: 97.5% !important; }
.sidebarMode .home .hasRightCol > #rightCol > #pagelet_friendlist_sidecol > #friend_list_sidecol > #pagelet_friend_list_suggestions table[class='uiGrid friendListSuggestion'] { position: relative; left: -1px!important; }


/***** NEW POPUP SETTINGS *****/

/*** DEFAULTS FOR RIGHT COLUMN BEING DISPLAYED IN LEFT COLUMN ***/
.home .uiOverlayContent { position: relative; left: 0px; box-shadow: rgba(0,0,0,0.3) -3px 3px 8px 0 !important; }
.home .uiOverlayArrow { -moz-transform: rotate(180deg) !important; position: relative; right: -169px !important; }
[class*='uiContextualDialogPositioner uiContextualDialogBelow '][style*=' ']:not([data-position='below']):not([data-position='left']) { position: relative; left: 506px !important; }

/*** SIDE BAR NEWS TICKER ***/
.home [class*='uiContextualDialogPositioner fbFlyoutDialog uiContextualDialogLeft uiContextualDialogFixed'] .uiOverlayContent,
.home [class*='uiContextualDialogPositioner fbFlyoutDialog uiContextualDialogFixed uiContextualDialogLeft'] .uiOverlayContent,
[class*='uiContextualDialogPositioner ']:not([data-alignh='center']):not([data-position='left']) .uiOverlayContent { position: relative; left: 2px !important; box-shadow: rgba(0,0,0,0.3) 3px 3px 8px 0 !important; }

.home [class*='uiContextualDialogPositioner fbFlyoutDialog uiContextualDialogLeft uiContextualDialogFixed'] .uiOverlayArrow,
[class*='uiContextualDialogPositioner ']:not([data-alignh='center']):not([data-position='left']) .uiOverlayArrow,
[class*='uiContextualDialogPositioner fbFlyoutDialog uiContextualDialogFixed uiContextualDialogLeft'] .uiOverlayArrow { -moz-transform: rotate(360deg) !important; position: relative; right: 0 !important; }

[class*=' ticker ']:not([class*='sidebarMode'])  [class='uiContextualDialogPositioner fbFlyoutDialog uiContextualDialogLeft '] { left: 127px !important; }
[class*=' ticker ']:not([class*='sidebarMode'])  [class='uiContextualDialogPositioner fbFlyoutDialog uiContextualDialogLeft '] i.uiOverlayArrow { left: 517px !important; }

/*** INDIVIDUAL POST PAGE-VIEW ***/
[class='uiContextualDialogPositioner uiContextualDialogBelow '][data-position='below'] {   }
[class='uiContextualDialogPositioner uiContextualDialogBelow '][data-position='below'] .uiOverlayArrow {   }


/***** END GLOBAL *****/


/****************
 ***** HOME *****
 ****************/

/*** NEWS FEED ***/
.uiSelectorButton { margin: 1px 5px 0 0 !important; }
.audienceSelector .uiSelectorButton { margin-right: 16px !important; }

#profile_minifeed .uiStreamStory .mainWrapper { padding-right: 20px !important; margin-right: -20px!important; }
#profile_minifeed .uiStreamStory .mainWrapper .uiStreamHide { margin: -3px -15px 0 0 !important; }
#profile_minifeed .uiStreamStory .mainWrapper .fbGearMenu { margin-right: -21px !important; }

.storyContent { padding-right: 0 !important; }

.home .homeWiderContent ul#home_stream { width: 781px !important; }
.home .homeWiderContent ul#home_stream #highlight_header { margin-left: 0 !important; }

.home #pagelet_home_stream ul#home_stream .uiUnifiedStory { padding-right: 0 !important; }
.home #pagelet_home_stream ul#home_stream .uiUnifiedStory .storyContent .mainWrapper > form > ul, .uiStreamBoulderStyle .uiStreamSubstories ul { width: 100% !important; }

.home #pagelet_home_stream ul#home_stream .uiStreamFirstStory .storyContent .mainWrapper .uiSelector a.uiSelectorButton:not(.uiCloseButton) { margin: 1px 5px 0 0 !important; }
.home #pagelet_home_stream ul#home_stream .uiStreamStory:not(.uiStreamFirstStory) .storyContent .mainWrapper .uiSelector a.uiSelectorButton:not(.uiCloseButton) { margin: 1px 5px 0 0 !important; }

/* .home #pagelet_home_stream ul#home_stream .uiStreamStory .storyContent .mainWrapper .uiSelector .uiSelectorMenuWrapper.uiToggleFlyout { position: relative; top: 15px !important; right: 5px !important; } */

.home #pagelet_home_stream ul#home_stream .storyContent ul:not(.uiStreamSubstories) .storyContent [class='UIImageBlock_Content UIImageBlock_SMALL_Content'] { max-width: 654px !important; }
.home #pagelet_home_stream ul#home_stream .storyContent ul:not(.uiStreamSubstories) .storyContent .commentContent { width: 592px !important; }
.home #pagelet_home_stream ul#home_stream .storyContent ul:not(.uiStreamSubstories) .storyContent a.uiCloseButton { position: relative; left: 0 !important; }

.home #pagelet_home_stream ul#home_stream #stream_movable_header { padding-right: 18px !important; }
.home #pagelet_home_stream ul#home_stream .mentionsAddComment { width: 691px !important; }
.home #pagelet_home_stream ul#home_stream .storyContent .storyContent .mentionsAddComment { width: 643px !important; }

.home #pagelet_home_stream ul#home_stream .commentList > li.uiUfiComment > div[class='UIImageBlock clearfix uiUfiActorBlock'] > div[class='commentContent UIImageBlock_Content UIImageBlock_SMALL_Content'] { max-width: 633px !important; }
.home #pagelet_home_stream ul#home_stream .commentList > li.uiUfiComment > div > label.deleteAction { left: -5px !important; }

ul[class*='uiList uiUfi focus_target fbUfi'] {width:99%!important;}

/*** NEW MESSAGES ***/
#MessagingDashboard .MessagingContentBorder, #MessagingDashboard #MessagingContentBorderShingle { width: 759px !important; }

#MessagingMainContent { width: 100% !important; }
#MessagingMainContent .uiList.body.contentListWidth > li  { width: 100% !important; }
#MessagingMainContent .uiList.body.contentListWidth > li > .content { width: 100% !important; }
#MessagingShelf { width: 759px !important; }

#MessagingDashboard .MessagingComposerForm > div { width: 645px !important; }
#MessagingDashboard .MessagingComposerForm > div > textarea { width: 640px !important; }


/*** COMMENTS PAGE FROM NOTIFICATIONS ***/
.ego_page.fbx #content .UIStandardFrame_Content { width: 980px !important; }
.ego_page.fbx #content .UIStandardFrame_Content div.permalink_stream ul[class='uiList uiStream'] > li { padding-left: 10px; padding-right: 12px !important; }
.ego_page.fbx #content .UIStandardFrame_Content div.permalink_stream ul[class='uiList uiStream'] > li .mainWrapper .uiCloseButton { margin-right: 0 !important; }
.ego_page.fbx #content .UIStandardFrame_Content div.permalink_stream ul[class='uiList uiStream'] > li ul[class*='uiList uiUfi focus_target fbUfi'] { width: 100% !important; }


/*****************
 **** PROFILE ****
 *****************/

#contentCol[class='clearfix hasRightCol'] #rightCol { border-top: 0 !important; }

/*** RIGHT COLUMN ADJUSTMENTS ***/
.hasLeftCol.fbx:not(.home) #rightCol { border: transparent !important; color: transparent !important; background: transparent !important; }
.hasLeftCol.fbx:not(.home) #rightCol #pagelet_right_sidebar { padding-top: 320px !important; margin-right: 5px !important; }
.hasLeftCol.fbx:not(.home) #rightCol #pagelet_right_sidebar div { margin: 0 !important; }
.hasLeftCol.fbx:not(.home) #rightCol #pagelet_right_sidebar #pagelet_ego_pane .ego_section .uiHeader {margin-bottom: 5px !important; }


/*** TOP PORTION ***/
#pagelet_byline .fbProfileByline { width: 100% !important; }

/*** PROFILE FEED ***/
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) #contentArea[role='main'] { width: 779px !important; padding: 0 10px !important; }
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) ul#profile_minifeed > li { width: 100% !important; margin-left: -10px; padding-left: 10px; padding-right: 10px !important; }
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) ul#profile_minifeed > li .storyContent .dynamicIconSelector { margin: -10px -20px 0 0 !important; }
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) ul#profile_minifeed > li .storyContent form > ul { width: 100% !important; }
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) ul#profile_minifeed > li .storyContent [class='uiSelector inlineBlock mlm highlightSelector uiStreamHide uiSelectorRight'] { margin: 0 !important; }
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) ul#profile_minifeed .uiStreamMinistoryGroup { padding: 0 !important; }
.hasLeftCol.fbx:not(.home):not(.fbPageEdit) ul#profile_minifeed .uiStreamMinistoryGroup li { padding: 0 !important; }

a[class='mlm uiTooltip uiStreamHide uiCloseButton'] { margin-right: 0 !important; }


/*** EDIT PROFILE PAGE ***/
.fbPageEdit #contentCol div[class='pal grayArea uiBoxGray noborder'] { width: 759px !important; }
.fbPageEdit #contentCol table.uiInfoTable tbody td.rightCol { position: absolute; }
.fbPageEdit #contentCol table.uiInfoTable tbody + tbody td.rightCol { position: absolute; }
.fbPageEdit #contentCol table.uiInfoTable tbody + tbody td.rightCol > div { position: relative!important; left: -575px !important; z-index: 3; }
.fbPageEdit #contentCol table.uiInfoTable tbody + tbody + tbody:not(.mrl) td.rightCol { position: absolute; }
.fbPageEdit #contentCol table.uiInfoTable tbody div[class='UIImageBlock clearfix fbHubsInfoPanel'] { display: none !important; }
.fbPageEdit #contentCol table.uiInfoTable tbody + tbody + tbody + tbody td.rightCol { position: absolute; }
.fbPageEdit #contentCol table.uiInfoTable .profileLanguagesField td.rightCol { position: absolute; }
.fbPageEdit #contentCol table.uiInfoTable .profileTextareaField td.rightCol { position: absolute; }



/******************
 **** PICTURES ****
 ******************/

#album_pagelet #album_metadata_pagelet .fbxPhotoSetPageMetadata, #album_pagelet #album_metadata_pagelet ul, #album_pagelet #album_metadata_pagelet li { width: 100% !important; }

.fbx #album_tagges_pagelet { position: relative !important; left: 50% !important; }
.fbx #album_tagges_pagelet div > .uiHeader { max-width: 165px !important; }
.hasLeftCol.fbx #pagelet_photo_albums table.fbPhotosGrid, .hasLeftCol.fbx #pagelet_photos_of_me table.fbPhotosGrid { width: 100% !important; }

/*** PHOTO SNOWBOX ***/
/*
#fbPhotoSnowbox .photoInfoWrapper { position: relative !important; }
[class*=' taggingMode'] .photoInfoWrapper td.fbPhotoDataCol #fbPhotoSnowboxActions a.fbPhotosPhotoActionsTag span.taggingOff { display: none !important; }

#fbPhotoSnowbox #fbPhotoStageActions a.tagButton {
  float: left !important;
  border-top-left-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  border-top-right-radius: 3px !important;
  border-bottom-right-radius: 3px !important;
  margin-left: -3px !important;
  background-color: rgba(255, 255, 255, 1) !important;
  border-left: 1px solid rgba(0, 0, 0, 0.15) !important;
}

#fbPhotoSnowbox td.fbPhotoDataCol > div * { display: inline !important; }

#fbPhotoSnowbox #fbPhotoSnowboxActions {
  background-clip: padding-box !important;
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.35) !important;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important;
  display: inline-block !important; 
  padding: 0 !important;
  margin: 0 !important;
  position: absolute;
  top: -27px;
  left: auto !important;
  right: 5px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 675px !important;
  min-width: 179px !important;
  width: auto !important;
  cursor: default !important;
  white-space: nowrap !important;
  text-align: center !important;
  z-index: 2;
}

#fbPhotoSnowbox #fbPhotoSnowboxActions * { 
  background-image: url("https://s-static.ak.facebook.com/rsrc.php/v1/yz/r/740QIqVwEis.png") !important;
  background-position: left 0 !important;
  background-repeat: no-repeat !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-left: 1px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "lucida grande",tahoma,verdana,arial,sans-serif !important;
  font-size: 11px !important;
  font-size-adjust: none !important;
  font-weight: bold !important;
  color: #333 !important;
  margin: -1px !important;
  padding: 3px 7px !important;
  text-decoration: none !important;
  vertical-align: top !important;
  display: inline-block !important;
}

#fbPhotoSnowbox #fbPhotoSnowboxActions > *:first-child, #fbPhotoSnowbox #fbPhotoSnowboxActions > a:first-child {
  border-left: 0 none !important;
  border-bottom-left-radius: 3px;
  border-top-left-radius: 3px;
}

#fbPhotoSnowbox #fbPhotoSnowboxActions > a:focus, #fbPhotoSnowbox #fbPhotoSnowboxActions > a:active, #fbPhotoSnowbox #fbPhotoSnowboxActions > div:focus, #fbPhotoSnowbox #fbPhotoSnowboxActions > div:active {
  background-image: url("https://s-static.ak.facebook.com/rsrc.php/v1/yz/r/740QIqVwEis.png") !important;
  background-position: left -49px !important;
  background-repeat: no-repeat !important;
}

#fbPhotoSnowbox #fbPhotoSnowboxActions > a:active, #fbPhotoSnowbox #fbPhotoSnowboxActions > div:active {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.05), 0 0 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(0, 0, 0, 0.08) inset !important;
}

#fbPhotoSnowbox #fbPhotoSnowboxActions > * * {
  border-color: transparent !important;
 }

.ff4.mac #fbPhotoSnowbox #fbPhotoSnowboxActions > * { line-height: 14px !important; }


#fbPhotoSnowbox table.fbPhotoSnowboxInfo td.fbPhotoDataCol { width: 0.1% !important; min-width: 40px !important; max-width: 40px !important; }
#fbPhotoSnowbox table.fbPhotoSnowboxInfo td.fbPhotoDataCol .photoDetailsContainer {
  display: inline !important;
  white-space: nowrap !important;
  position: absolute;
  right: 2px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: right !important;
}
#fbPhotoSnowbox #fbPhotoSnowboxMediaInfo { position: relative; text-align: right !important; display: inline-block !important; }

#fbPhotoSnowbox #fbPhotoSnowboxAuthorPic { margin-left: 6px !important; }

*/

/*****************
 **** FRIENDS ****
 *****************/

/*** LISTS ***/
#editFriendsHeader h2 .editFriendsHeaderNewList, #editFriendsHeader h2 .editFriendsPhonebookHeaderRight { margin-right: 0 !important; }

.home .friendListFilter #rightCol { position: fixed !important; }
.home .friendListFilter #pagelet_friendlist_sidecol { position: relative !important; margin-top: -75px !important; right: -800px !important; }


/*** CONTACTS ***/
.hasLeftCol.fbx:not(.home) #rightCol {
 width: 159px !important;
 position: absolute !important;
 left: 1px !important;
 top: 595px !important;
 padding-top: 15px !important;
 border-top: 1px solid #eee !important;
}

.hasLeftCol.fbx:not(.home) #rightCol div { margin-left: 7px !important; margin-right: -15px !important; }



/*******************************
 **** USER-SUBMITTED TWEAKS ****
 *******************************/

/***** AUTHOR: Dixours - http://userstyles.org/users/121322 *****/

#fbPhotoSnowbox .fbPhotoSnowboxInfo .photoUfiContainer > div { width: 100% !important; max-width: 100% !important; min-width: 100% !important; }

#fbPhotoSnowbox .fbPhotoContributor #fbPhotoSnowboxFeedback ul { width: 100% !important; }
.fbxPhoto .fbPhotoImageStage .stageContainer {background: rgba(255, 255, 255, 0.4) !important;}

.ufiItem, .uiMorePagerPrimary, .uiSideHeader, .uiHeaderNav, .uiHeaderSection { background-color: rgba(100, 149, 237, 0.2) !important; }

.uiStreamStory:hover, .photocaption_text:hover, .fbxWelcomeBox:hover { background-color: rgba(255, 255, 255, 0.5) !important; }

#contentCurve { display: none !important; }

.fbPhotoSnowbox { background-color: rgba(0, 0, 0, 0.75) !important; }

.container { background-color: rgba(36, 31, 37, 0.7) !important; } 

/***** END Dixours TWEAKS *****/


/****** START modified "Facebook - Improve and simplify style" script *******/

/*** Highlighting and borders ***/

/* On Chrome (and other browsers?) the comments have a background color. Force an override. */
li.ufiItem {
background-color: #ffffff !important;
}

/* When hovering on either a friends block or a post, highlight it a nice light "Facebook blue" color. */
ul.profile-friends div.UIImageBlockTemplate:hover, li.uiStreamStory:hover {
background-color: #dae6ff !important;
  -moz-transition-duration: 200ms;
  -moz-transition-property: background;

  -webkit-transition-duration: 200ms;
  -webkit-transition-property: background;

  -o-transition-duration: 200ms;
  -o-transition-property: background;

  -transition-duration: 200ms;
  -transition-property: background;
}

/* When hovering on a post, highlight the comments a slightly lighter blue. */
li.uiStreamStory:hover li.ufiItem {
background-color: #e0eaff !important;
  -moz-transition-duration: 200ms;
  -moz-transition-property: background;

  -webkit-transition-duration: 200ms;
  -webkit-transition-property: background;

  -o-transition-duration: 200ms;
  -o-transition-property: background;

  -transition-duration: 200ms;
  -transition-property: background;
}

/* Highlight the items on the left nav bar when hovering */
a.item:hover {
background-color: #dae6ff !important;
  -moz-transition-duration: 200ms;
  -moz-transition-property: background;

  -webkit-transition-duration: 200ms;
  -webkit-transition-property: background;

  -o-transition-duration: 200ms;
  -o-transition-property: background;

  -transition-duration: 200ms;
  -transition-property: background;
}
/****** END MODIFIED Facebook - Improve and simplify style script ******/

/* START blink new notifications buttons */
.fbJewel { margin-right: 1px !important; }
div:not(#fb_menu_unfriends) > .jewelUnread {
  background: url('data:image/gif;base64,R0lGODlhAQABAIAAAP///zpalCH/C05FVFNDQVBFMi4wAwEAAAAh+QQJeAABACwAAAAAAQABAAACAkQBACH5BAl4AAEALAAAAAABAAEAAAICTAEAOw==') !important;
  /*border: solid 1px white !important;*/
  display: block;
  height: 29px !important;
}
/* END blink new notifications buttons */


/* START shadows under menus & chat */
#navAccount > ul, .fbJewelFlyout, .uiOverlay, #navSearch .uiTypeaheadView,  .pop_container_advanced, .HovercardOverlay div.stage {
  -webkit-box-shadow: 3px 3px 20px rgba(0,0,0,0.4) !important;
  -box-shadow: 3px 3px 20px rgba(0,0,0,0.4) !important;
  opacity: 0.9;
}
.fbNubFlyout, .uiMenu {
  opacity: 0.9;
  -webkit-box-shadow: 0px 0px 12px rgba(0,0,0,0.3) !important;
  -box-shadow: 0px 0px 12px rgba(0,0,0,0.3) !important;
}
.fbDockChatTab.disabled > a {
  background-color: rgba(235,238,244,0.8) !important;
  opacity: 0.9;
}
.fbDockChatTab.disabled > a:hover {
  background-color: rgba(235,238,244,1) !important;
  opacity: 0.9;
}
form .uiTypeaheadView {
  z-index: -10 !important;
  border-top: 0;
}
/* END shadows under menus & chat */

/* START bottom right ad removal - mod CSS by creatineconlon */
#rightCol .ego_column{
visibility: hidden;
} 
/* END bottom right ad removal */

}