/*
 * What the Home pages need beyond the 2007 stylesheets of styles/myhabbo/ (served unchanged).
 */

/* Small full-body avatars (friends, guestbook authors): the 2007 pages used 30x56 images; the
   avatar here is the hotel's own drawing (imaging.html) shrunk to that box. */
.home-small-figure {
	display: block;
	width: 30px;
	height: 56px;
	overflow: hidden;
}

.home-small-figure iframe {
	transform: scale(0.47);
	transform-origin: 0 0;
	pointer-events: none;
}

.profile-figure iframe {
	display: block;
}

/* Editor dialogs: wide enough for four inventory items (80px + padding + border + margin). */
div.inventory-item.selected {
	outline: 2px solid #f60;
}

.home-widget-preview {
	height: 76px;
	background-repeat: no-repeat;
	background-position: 50% 50%;
}

div.widget-inventory-item h4 {
	margin: 4px 0;
}

div.widget-inventory-item p {
	margin: 0 0 4px 0;
}

.home-purse {
	margin: 0 0 6px 0;
	font-weight: bold;
}

/*
 * Edit-mode pictures that no archive kept (the editor needed a login, so no crawler saw it).
 * See docs/specs/habbo-homes-2007.md. These rules stand in for them; the 2007 rules stay untouched.
 */

/* Toolbar: the icons of Notes, Stickers, Widgets, Backgrounds and Edit (tools_*.gif) and the
   bar behind them (tools_bg.gif) are cut out of the 1:1 pictures of the help page
   (/hotel/homes, c_images/album1357/inst_*.gif). The Save and Cancel icons appear in no
   picture: those two keep the plain left end of the button (tools_left.gif). */
a.toolbutton.save, a.toolbutton.cancel {
	background-image: url(images/myhabbo/buttons/tools_left.gif);
	padding-left: 4px;
}

a.toolbutton.save span, a.toolbutton.cancel span {
	padding-left: 20px;
}

/* The editor's windows use the site's grey dialog (div.dialog-grey, images/dialogs/grey-*.gif);
   its close box grey-exit.gif is not on the site, menu-exit.gif of the same family stands in. */
div.dialog-grey.home-dialog-small {
	width: 230px;
}

div.dialog-grey .dialog-button-area {
	margin-top: 7px;
	padding-bottom: 6px;
}

#dialog-stickie-add select {
	font-size: 11px;
	margin-left: 6px;
}

/* The edit menu's header with its wrench, and its close box: same build family
   (images/dialogs/menu-top_with_edit.gif, menu-exit.gif), see docs/specs/habbo-homes-2007.md. */
div.menu-exit a {
	display: block;
	width: 11px;
	height: 11px;
	background: url(images/dialogs/menu-exit.gif) no-repeat;
	text-indent: -9999px;
	overflow: hidden;
}

/* Price tag (pricetag.gif is lost): the number after the credits coin of the site. */
div.pricetag, div.pricetag-free {
	background: url(/c_images/album209/credits_icon.gif) no-repeat 0 50%;
	height: 17px;
	padding-top: 2px;
}

div.pricetag span {
	margin-left: 26px;
	padding: 0 3px;
	font-weight: bold;
	color: #000;
	background-color: #fff;
	border: 1px solid #000;
}

/* Guestbook dialogs above the page items (Dialog.show() of 2007 used z-index 9001). */
#guestbook-form-dialog, #guestbook-delete-dialog {
	z-index: 9001;
}

/* The note preview of the note editor: div.stickie is parked at left: -1500px by myhabbo.css,
   #dialog-stickie-add div.stickie only makes it relative. */
#dialog-stickie-add div.stickie {
	left: 0;
	top: 0;
}

/* HC Machine skin: its 2007 pictures were never archived. The ones served are the later
   pictures of Kepler-www (web-gallery/images/skins), whose top is 42px high, not the 54px
   (widgets) and 44px (notes) skins.css of 2007 expects, which left a gap under the top.
   42px is the height the later skins.css of Kepler-www gives these same pictures. */
.w_skin_hc_machineskin div.widget-headline,
.w_skin_hc_machineskin div.widget-corner,
.n_skin_hc_machineskin .stickie-header,
.n_skin_hc_machineskin .stickie-header h3 {
	height: 42px;
}

/* Friends list of May 2007 (FriendsWidget of the page of 30/06/2007): its classes are not in
   the stylesheets of April 2007 and the June build (R13.2-b41) was never archived. These are
   the rules of myhabbo.css of build 5.0.22 (images.habbohotel.fr/web/web-5.0.22, the nearest
   archived build), copied as they are; images from the same build (plus.gif,
   raster_selected.gif, raster_unselected.gif) and minus.gif from Kepler-www, whose plus.gif
   is that build's byte for byte. */
/* avatar list */

div.avatar-widget-list-container {
	height: 196px;
	overflow: auto;
}

div.avatar-list-info-container {
	height: 196px;
	overflow: auto;
}

div.avatar-list-info {
	display: none;
}

div.avatar-list-info-close-container {
	float: right;
	width: 18px;
	height: 18px;
}

ul.avatar-widget-list {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

ul.avatar-widget-list li {
	margin: 2px 3px;
	width: 47%;
	height: 56px;
	border: 1px dashed white;
	overflow: hidden;
	float: left;
	font-size: 10px;
	white-space: nowrap;
	background-image: url(images/myhabbo/widgets/raster_unselected.gif);
}

ul.avatar-widget-list li:hover {
	border: 1px solid white;
	background-image: url(images/myhabbo/widgets/raster_selected.gif);
}

ul.avatar-widget-list li h4, ul.avatar-widget-list li p {
	margin: 0;
	font-size: 10px;
	padding: 2px;
	overflow: hidden;
}

div.avatar-list-info h4 {
	font-size: 11px;
}

div.avatar-list-info h4 a {
	color: black;
}

ul.avatar-widget-list li div.avatar-list-open {
	display: none;
	float: right;
	width: 14px;
	height: 14px;
}

ul.avatar-widget-list li:hover div.avatar-list-open {
	display: block;
}

ul.avatar-widget-list li div.avatar-list-open a {
	float: right;
	width: 14px;
	height: 14px;
	background-repeat: no-repeat;
	background-image: url(images/myhabbo/widgets/plus.gif);
}

div.avatar-list-avatar {
	display: block;
	float: left;
	margin-right: 2px;
}

p.avatar-list-birthday {
	font-style: italic;
}

a.avatar-list-info-close {
	float: right;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-image: url(images/myhabbo/widgets/minus.gif);
}

div.avatar-info-basic {
	padding: 0 0 4px 4px;
	border: 1px solid white;
	background-image: url(images/myhabbo/widgets/raster_selected.gif);
	margin-bottom: 2px;
	font-size: 10px;
}

div.avatar-info-basic h4 {
	margin: 0;
}

div.avatar-info-rights {
	padding: 4px;
	border: 1px dashed black;
	background-image: url(images/myhabbo/widgets/raster_unselected.gif);
	font-size: 10px;
	clear: both;
}

div.avatar-info-basic p, div.avatar-info-rights p {
	margin: 6px 0 0 2px;
}

div.avatar-info-image {
	float: right;
	margin: 0 2px 0 7px;
}

div.avatar-info-basic p.avatar-info-motto {
	clear: both;
	border-top: 1px dashed black;
	padding-top: 3px;
	margin-right: 6px;
	font-style: italic;
}

a.avatar-info-rights-revoke, a.avatar-info-rights-remove, a.avatar-info-rights-give, a.avatar-info-rights-leave {
	float: left;
	margin-left: 0;
	margin-top: 4px;
	clear: both;
}

/* The friends list needs the wider friends widget it came with: build 5.0.22 sizes it by its
   content (skins.css: ".FriendsWidget .widget-content { width: 290px; }"), each skin being that
   content plus its paddings (metal: 22 + 7 + 290 + 26 = 345px). The paddings of the April 2007
   skins served here differ, so the widget takes the same 290px of content and its frame the
   width that follows; the fixed widths of April 2007, made for the old grid, would put one
   friend a line. */
.FriendsWidget {
	width: auto;
}

.FriendsWidget .widget-content {
	width: 290px;
}

.FriendsWidget .w_skin_defaultskin, .FriendsWidget .w_skin_goldenskin, .FriendsWidget .w_skin_metalskin,
.FriendsWidget .w_skin_notepadskin, .FriendsWidget .w_skin_speechbubbleskin, .FriendsWidget .w_skin_noteitskin,
.FriendsWidget .w_skin_hc_machineskin {
	width: auto;
}

/* BadgesWidget (habbo.co.uk, October 2008). The li rule is the one of the web build's
   v2/styles/myhabbo.css (Kepler-www/web-gallery, a copy of Sulake's build); the list reset and
   the clearfix come from that build's v2/styles/style.css, which the 2007 pages do not load. */
#badgelist-content ul {
	margin: 0;
	padding: 0;
}

#badgelist-content ul li {
	list-style: none;
	width: 53px;
	height: 45px;
	float: left;
	background-repeat: no-repeat;
	background-position: center center;
}

#badgelist-content ul.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

/* The widgets of 2008 (TraxPlayer, badges). The 2007 stylesheet gives every widget 250px, frame
   included, which leaves some skins less room than the player's 210px; the later web build
   (Kepler-www, styles/myhabbo/skins.css) gives both a content 218px wide, the frame of the skin
   around it. */
.widget.TraxPlayerWidget,
.widget.BadgesWidget {
	width: auto;
}

.TraxPlayerWidget div.widget-content,
.BadgesWidget div.widget-content {
	width: 218px;
}

/* The edit button over the headline: the skins' h3 is position: relative and comes after it, so
   it covered the button of the notepad, speech bubble and note skins. */
#editmode .movable .edit-button {
	z-index: 1;
}

/* HC pillow skin (Club). The 2007 stylesheet's rules point to GIFs that were never archived:
   these are the rules and PNGs of the later web build (Kepler-www, styles/myhabbo/skins.css and
   images/skins/girl), the same files as HabboHistory's copy of habbo.fr's Homes of 2008. Its
   frame is drawn for that build's content widths (218px; 290px for the friends and the
   guestbook; 160px for the rating), which a widget takes with this skin. */
.widget:has(> .w_skin_hc_pillowskin) {
	width: auto;
}

.FriendsWidget .w_skin_hc_pillowskin,
.GuestbookWidget .w_skin_hc_pillowskin {
	width: auto;
}

.w_skin_hc_pillowskin .edit-button {
	right: 10px;
	top: 20px;
}

.w_skin_hc_pillowskin a {
	color: #7c0065;
}

.w_skin_hc_pillowskin .metadata {
	color: #b53f6e;
}

.w_skin_hc_pillowskin div.widget-content {
	background: url(images/skins/girl/Skin_HCpillow_btmR.png) no-repeat bottom right;
	padding: 0 41px 38px 0;
	color: #000;
	font-size: inherit;
	font-weight: normal;
	margin-bottom: 1px;
	margin-left: 44px;
	width: 218px;
}

.FriendsWidget .w_skin_hc_pillowskin div.widget-content,
.GuestbookWidget .w_skin_hc_pillowskin div.widget-content {
	width: 290px;
}

.RatingWidget .w_skin_hc_pillowskin div.widget-content {
	width: 160px;
}

.w_skin_hc_pillowskin div.widget-body {
	background: url(images/skins/girl/Skin_HCpillow_btmL.png) no-repeat bottom left;
	margin-left: 0;
}

.w_skin_hc_pillowskin div.widget-headline {
	background: url(images/skins/girl/Skin_HCpillow_topRh.png) no-repeat top right;
	height: 49px;
	padding-left: 0;
	margin-left: 13px;
}

.w_skin_hc_pillowskin div.widget-corner {
	background: url(images/skins/girl/Skin_HCpillow_topLh.png) no-repeat top left;
	background-position: 0 0;
	padding-left: 41px;
	height: 49px;
}

.w_skin_hc_pillowskin div.widget-headline .header-right {
	background: none;
	padding: 1px 18px 3px 0;
}

.stickie .n_skin_hc_pillowskin,
#stickie-preview-window .n_skin_hc_pillowskin {
	width: 300px;
}

.n_skin_hc_pillowskin .stickie-header {
	background: url(images/skins/girl/Skin_HCpillow_topL.png) no-repeat;
	padding-left: 40px;
	height: 49px;
	padding-bottom: 0;
	margin: 0;
	font-size: 1%;
}

.n_skin_hc_pillowskin .stickie-header h3 {
	background: url(images/skins/girl/Skin_HCpillow_topR.png) no-repeat top right;
	height: 49px;
	margin: 0;
	padding-bottom: 0;
	font-size: 1%;
}

.n_skin_hc_pillowskin .stickie-body {
	background: url(images/skins/girl/Skin_HCpillow_btmL.png) no-repeat bottom left;
	padding-left: 41px;
}

.n_skin_hc_pillowskin .stickie-content {
	background: url(images/skins/girl/Skin_HCpillow_btmR.png) no-repeat bottom right;
	padding: 0 35px 36px 3px;
	margin-left: 4px;
}

.n_skin_hc_pillowskin .stickie-content p {
	vertical-align: top;
	margin-top: 0;
	padding-left: 0;
	color: #000;
}
