/* Aapeli 2014 layout layer.
   Measurements are the computed values of www.aapeli.com as archived on
   2 July 2014 (Wayback 20140702114708); artwork is the archived theme art in
   this folder. Loaded last on every site page, after library.css,
   profile-header.css and the page stylesheet.

   Page skeleton:
     <main class="page">
       <div class="cols"><div class="col c320">…</div><div class="col c650">…</div></div>
     </main>
   Box:
     <section class="box b320|b650|b980 [tabbed]">
       <div class="title"><h2>Title</h2><div class="subtitle">Subtitle</div></div>
       <div class="bcontent"> … </div>
     </section>
   Inner box (inside .bcontent):
     <div class="innerbox [ib300|ib310|ib630]">
       <div class="ibtitle"><h3>Title</h3></div>
       <div class="ibcontent"> … </div>
     </div>
*/

/* ---------- base ---------- */
body{font:11px/15px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif;color:#000;background:#62c1f7 url(themes_site_playforia_img_bg-body.jpg) no-repeat 50% 0;background-attachment:scroll}
a,.link{color:#09f;text-decoration:none}
a:hover{text-decoration:underline}
.left{float:left}.right{float:right}.clear{clear:both}
.acenter{text-align:center}.aright{text-align:right}
.strong{font-weight:bold}.small{font-size:10px}.gray,.faded{color:#999}
.rowbreak{clear:both;height:1px;font-size:0;overflow:hidden}

/* ---------- header (desktop geometry of the original) ---------- */
@media(min-width:1001px){
  #header{text-align:center}
  .header-top{height:70px;background:#97d4f8 url(themes_site_playforia_img_header-bg-top.png) repeat-x 100% 100%}
  .deco{height:70px;min-width:980px;background:url(themes_site_playforia_img_header-bg-deco.jpg) no-repeat 50% 100%}
  #menu{display:block;position:relative;width:980px;height:70px;min-height:0;margin:0 auto;padding:0;text-align:left}
  #logo{position:absolute;top:0;left:0;width:205px;height:70px;background:url(aapeli-preservation-project-logo.png) no-repeat 0 50%/contain}
  #menu>nav{display:block}
  #mainmenu{display:block;list-style:none;margin:0 0 0 205px;padding:20px 0 0;max-width:none;font-size:17px;line-height:normal;text-transform:uppercase}
  #mainmenu:after{content:"";display:block;clear:both}
  #mainmenu li{float:left;height:50px;margin:0 0 0 2px}
  #mainmenu a{display:block;padding:0 0 0 10px;color:#fff;text-decoration:none;background:url(themes_site_playforia_img_navi-normal-left.png) no-repeat 0 0}
  #mainmenu a span{display:block;height:50px;padding:15px 10px 0 0;background:url(themes_site_playforia_img_navi-normal-right.png) no-repeat 100% 0}
  #mainmenu li.active a,#mainmenu li:hover a{background-image:url(themes_site_playforia_img_navi-lit-left.png);color:#a30;text-shadow:0 -1px #fed,-1px 0 #fed,0 1px #fed,1px 0 #fed,0 0 3px #a30}
  #mainmenu li.active a span,#mainmenu li:hover a span{background-image:url(themes_site_playforia_img_navi-lit-right.png)}

  /* login / profile panel: 370x105 artwork overlapping the orange bar */
  #userinfo-v2{position:absolute;top:2px;right:-1px;left:auto;width:370px;max-width:none;font:11px/15px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif}
  #userinfo-v2 .uibox{position:relative;width:370px;height:105px;min-height:0;padding:0 0 0 20px;border:0;border-radius:0;box-shadow:none;background:url(profile-art/bg.png) no-repeat 0 0}
  #userinfo-v2 .profile-login{grid-template-columns:86px 86px 130px;grid-template-rows:21px 19px;gap:2px 5px;height:60px;padding:10px 10px 0 10px;align-items:start}
  #userinfo-v2 .profile-login input{height:21px;min-height:0;padding:2px 3px;border:1px solid #f90;border-radius:3px;font:11px tahoma,arial,sans-serif;text-align:center;color:#000}
  #userinfo-v2 .profile-login input::placeholder{color:#999}
  #userinfo-v2 .profile-content{height:60px;padding:8px 10px 8px 10px}
  #userinfo-v2 .profile-tabs,#userinfo-v2 .profile-guest-footer{height:40px}
  #userinfo-v2 .profile-guest-footer{padding:0 12px 0 2px}
  #userinfo-v2 .profile-nickname-editor{position:absolute;top:107px;right:8px;margin:0}
  #userinfo-v2 .profile-nickname-editor>summary{color:#fff}

  #menubar{clear:both;width:100%;height:50px;background:url(themes_site_playforia_img_header-bg-bottom.png) repeat-x 0 0;background-size:auto}
  .bar-inner{display:block;position:relative;width:980px;height:37px;margin:0 auto;padding:3px 0 4px;color:#fff;text-align:left}
  /* flags sit left of the login panel, as #language did */
  .bar-inner .profile-language{position:absolute;right:380px;top:9px}
  .bar-inner .profile-language label{display:none}
}
#userinfo-v2 .profile-login-button{border:0;border-radius:0;box-shadow:none;width:130px;height:40px;color:#fff;font:bold 13px/13px tahoma,arial,sans-serif;text-shadow:0 -1px #060,-1px 0 #060,0 1px #060,1px 0 #060,0 0 3px #060;background:#6ab413 url(themes_global_img_buttons_130x40-glossygreen.png) no-repeat 0 0;cursor:pointer}
#userinfo-v2 .profile-register{font-size:11px}
.profile-flag{opacity:.5}
.profile-flag:hover,.profile-flag[aria-pressed="true"]{opacity:1;border-color:transparent}

/* sub-navigation in the orange bar */
#subnav{list-style:none;margin:0;padding:0;position:absolute;top:3px;left:170px;height:34px;white-space:nowrap}
#subnav li{float:left;height:30px;font-size:12px;font-weight:bold}
#subnav li:first-child:before{content:"";float:left;width:2px;height:30px;background:url(themes_site_playforia_img_navi.png) no-repeat 100% 100%}
#subnav li a{display:block;height:30px;padding:8px 12px 4px 10px;color:#fff;text-decoration:none;text-shadow:0 -1px #c30,-1px 0 #c30,0 1px #c30,1px 0 #c30,0 0 3px #c30;background:url(themes_site_playforia_img_navi.png) no-repeat 100% 100%}
#subnav li.active,#subnav li:hover{background:url(themes_site_playforia_img_navi.png) repeat-x 50% -2px}
#subnav li.active{height:34px}
@media(max-width:1000px){#subnav{position:static;display:flex;justify-content:center;height:auto}.bar-inner:has(#subnav){flex-wrap:wrap}}

/* ---------- page skeleton ---------- */
main.page{display:block;width:980px;max-width:100%;margin:0 auto;padding:8px 0 0;text-align:left}
main.page:after,.cols:after{content:"";display:block;clear:both}
.cols{display:flex;align-items:flex-start;gap:10px}
.col{min-width:0}
.col.c320{width:320px;flex:none}
.col.c650{width:650px;flex:none}

/* ---------- box ---------- */
.box.b320,.box.b650,.box.b980{position:relative;display:block;margin:0 0 10px;padding:0 0 20px;border:0;border-radius:0;box-shadow:none;overflow:hidden;background:none;color:#000;text-align:left}
.box.b320{width:320px}.box.b650{width:650px}.box.b980{width:980px}
.box.b320>.title,.box.b650>.title,.box.b980>.title{position:relative;min-height:50px;margin:0;padding:2px 0 1px 20px;border:0;background:no-repeat 0 0}
.box.b320>.title{background-image:url(themes_site_playforia_img_320_top.png)}
.box.b650>.title{background-image:url(themes_site_playforia_img_650_top.png)}
.box.b980>.title{background-image:url(themes_site_playforia_img_980_top.png?v=2)}
.box>.title:before{content:"";position:absolute;top:10px;left:10px;width:30px;height:30px;background:url(title-icon.png) no-repeat 0 0}
.box>.title.noicon:before{display:none}
.box>.title h1,.box>.title h2{height:auto;min-height:0;margin:0;padding:7px 0 0 30px;border:0;background:none;color:#000;font:bold 17px/20.4px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif;text-transform:uppercase;letter-spacing:0}
.box>.title h1:only-child,.box>.title h2:only-child,.box>.title .nosubtitle{padding-top:13px}
.box>.title.noicon h1,.box>.title.noicon h2,.box>.title.noicon .subtitle{padding-left:0}
.box>.title .subtitle{padding:0 0 0 30px;color:#07b;font-size:13px;line-height:15px}
.box>.title .subtitle a{color:#07b}
.box>.title .title-tools{position:absolute;top:12px;right:14px}
.box.b320>.bcontent,.box.b650>.bcontent,.box.b980>.bcontent{display:flow-root;position:relative;min-height:20px;padding:0 10px;color:#000;background-repeat:no-repeat,repeat-y;background-position:0 0,0 0}
.box.b320>.bcontent{background-image:url(themes_site_playforia_img_320_bg-content.png),url(themes_site_playforia_img_320_bg.png)}
.box.b650>.bcontent{background-image:url(themes_site_playforia_img_650_bg-content.png),url(themes_site_playforia_img_650_bg.png)}
.box.b980>.bcontent{background-image:url(themes_site_playforia_img_980_bg-content.png?v=2),url(themes_site_playforia_img_980_bg.png?v=2)}
.box.b320:after,.box.b650:after,.box.b980:after{content:"";display:block;position:absolute;left:0;bottom:0;width:100%;height:20px;background:no-repeat 0 100%;pointer-events:none}
.box.b320:after{background-image:url(themes_site_playforia_img_320_bottom.png)}
.box.b650:after{background-image:url(themes_site_playforia_img_650_bottom.png)}
.box.b980:after{background-image:url(themes_site_playforia_img_980_bottom.png?v=2)}
.box .bcontent h3{color:#000}
.box .bcontent .pad{padding:10px}
.box .bcontent>p{margin:10px}

/* tabs in a box title (div.box.tabbed) */
.box.tabbed>.title{display:flex;align-items:flex-start}
.box.tabbed>.title h2{flex:none}
.box>.title ul.tabs{list-style:none;display:flex;align-items:flex-end;flex-wrap:nowrap;height:48px;margin:0 0 0 auto;padding:0 12px 0 30px;line-height:normal}
.box>.title ul.tabs li{height:28px;margin:0 0 0 2px;padding:0;border:1px solid #9cc9ea;border-bottom:0;border-radius:9px 9px 0 0;background:#e8f5fe;opacity:1}
.box>.title ul.tabs li.active,.box>.title ul.tabs li:hover{height:34px;background:#fff}
.box>.title ul.tabs li>a,.box>.title ul.tabs li>button{display:block;height:100%;padding:8px 15px 0;border:0;background:none;color:#09f;font:11px tahoma,arial,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
.box>.title ul.tabs li.active>a,.box>.title ul.tabs li.active>button{padding-top:10px;color:#000;font-size:14px}

/* ---------- inner box ---------- */
.innerbox{position:relative;display:flow-root;margin:10px 0;padding:0 0 10px;border:1px solid #b4d3e9;border-radius:8px;background:#e1f2fe;box-shadow:inset 0 0 0 1px #e9f4fc;color:#000;text-align:left}
.innerbox.ib300,.innerbox.ib310,.innerbox.ib630{border:0;border-radius:0;box-shadow:none;background:repeat-y 0 0}
.innerbox.ib300{width:300px;background-image:url(themes_site_playforia_img_innerbox-300-bg.png)}
.innerbox.ib310{width:310px;background-image:url(themes_site_playforia_img_innerbox-310-bg.png)}
.innerbox.ib630{width:630px;background-image:url(themes_site_playforia_img_innerbox-630-bg.png)}
.innerbox.ib300:before,.innerbox.ib310:before,.innerbox.ib630:before{content:"";position:absolute;top:0;left:0;width:100%;height:60px;background:no-repeat 0 0;pointer-events:none}
.innerbox.ib300:after,.innerbox.ib310:after,.innerbox.ib630:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:10px;background:no-repeat 0 0;pointer-events:none}
.innerbox.ib300:before{background-image:url(themes_site_playforia_img_innerbox-300-top.png)}
.innerbox.ib300:after{background-image:url(themes_site_playforia_img_innerbox-300-bottom.png)}
.innerbox.ib310:before{background-image:url(themes_site_playforia_img_innerbox-310-top.png)}
.innerbox.ib310:after{background-image:url(themes_site_playforia_img_innerbox-310-bottom.png)}
.innerbox.ib630:before{background-image:url(themes_site_playforia_img_innerbox-630-top.png)}
.innerbox.ib630:after{background-image:url(themes_site_playforia_img_innerbox-630-bottom.png)}
.innerbox>*{position:relative;z-index:1}
.innerbox>.ibtitle{padding:10px 10px 0}
.innerbox>.ibtitle h3{height:auto;margin:0;padding:0 0 14px;border:0;color:#369;font:bold 15px/15px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif;text-transform:uppercase;letter-spacing:0;background:url(themes_site_playforia_img_innerbox-divider.png) repeat-x 0 100%}
.innerbox>.ibtitle .subtitle{position:absolute;right:15px;top:12px;font-size:10px;color:#666}
.innerbox>.ibcontent{padding:0 10px}
.innerbox>.ibcontent:first-child{padding-top:10px}
.innerbox h3 a{color:#09f}
.innerbox-row{display:flex;gap:10px;align-items:flex-start}
.innerbox-row>.innerbox{margin-top:10px;flex:none}

/* ---------- lists, small parts ---------- */
ul.nolist{list-style:none;margin:0;padding:0}
ul.bullets{list-style:none;margin:0;padding:0}
ul.bullets li{padding:0 0 0 15px;background:url(themes_site_playforia_img_innerbox-bullet.png) no-repeat 2px 4px}
a.more{display:inline-block;padding:0 20px 0 0;font-weight:bold;background:url(themes_common_img_icons_15x15_continue.png) no-repeat 100% 50%}
.s-icon{display:inline-block;padding:0 0 0 15px;background:no-repeat 0 1px}
.s-icon.coins{background-image:url(profile-art/coins.png);background-size:11px 11px;background-position:0 2px}
.userface-60,.userface-30{display:inline-block;position:relative;background:#fff no-repeat 50% 50%;background-size:cover;image-rendering:pixelated}
.userface-60{width:60px;height:60px}.userface-30{width:30px;height:30px}
.userface-60:after,.userface-30:after{content:"";position:absolute;inset:0;background:no-repeat 50% 50%}
.userface-60:after{background-image:url(themes_site_playforia_img_portrait-frame-60.png)}
.userface-60.frame-gradient:after{background-image:url(themes_site_playforia_img_portrait-frame-60-gradient.png)}
.innerbox .userface-60:after{background-image:url(themes_site_playforia_img_portrait-frame-60-ib.png)}
.userface-30:after{background-image:url(themes_site_playforia_img_portrait-frame-30.png)}
div.pager{clear:both;display:flex;flex-wrap:wrap;gap:2px;color:#000}
div.pager a,div.pager span{padding:1px 4px;min-width:15px;text-align:center}
div.pager a{border:1px solid #09c;border-radius:5px;background:#fff;color:#000;text-decoration:none}
div.pager a:hover,div.pager a.current{background:#e1f2fe}
table.forum,table.users{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #b4d3e9}
table.forum thead th,table.users thead th,table.forum tfoot td,table.users tfoot td{padding:5px;background:#ceebff;border:1px solid #eff8ff;color:#369;text-align:left}
table.forum tbody td,table.users tbody td{padding:5px;background:#eff8ff;border:1px solid #fff}
table.forum tbody tr:nth-child(even) td,table.users tbody tr:nth-child(even) td{background:#e1f2fe}
table.forum tbody tr:hover td,table.users tbody tr:hover td{background:#fff}

/* ---------- form controls and buttons ---------- */
main.page input[type=text],main.page input[type=search],main.page input[type=password],main.page input[type=email],main.page input:not([type]),main.page textarea,main.page select{padding:2px 3px;border:1px solid #ccc;border-radius:3px;background:#fff;color:#000;font:11px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif}
main.page textarea{line-height:13px}
.abtn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:22px;padding:2px 12px;border:1px solid #e9b96c;border-radius:5px;background:#fff3d6 linear-gradient(#fffdf4,#ffe9b5) no-repeat 0 0;color:#c63;font:bold 11px/13px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif;text-decoration:none;text-align:center;cursor:pointer}
.abtn:hover{text-decoration:none;filter:brightness(1.04)}
.abtn:disabled,.abtn.disabled{cursor:default;filter:grayscale(1);opacity:.7}
.abtn.b35x22,.abtn.b80x22,.abtn.b120x22,.abtn.b100x30,.abtn.b235x30,.abtn.b300x30,.abtn.b80x40,.abtn.b100x25,.abtn.b100x40,.abtn.b200x35,.abtn.b300x35,.abtn.b130x40{border:0;border-radius:0;padding:2px}
.abtn.b35x22{width:35px;height:22px;background-image:url(themes_site_playforia_img_buttons_35x22-cream.png)}
.abtn.b80x22{width:80px;height:22px;background-image:url(themes_site_playforia_img_buttons_80x22-cream.png)}
.abtn.b120x22{width:120px;height:22px;background-image:url(themes_site_playforia_img_buttons_120x22-cream.png)}
.abtn.b100x30{width:100px;height:30px;background-image:url(themes_site_playforia_img_buttons_100x30-cream.png)}
.abtn.b235x30{width:235px;height:30px;background-image:url(themes_site_playforia_img_buttons_235x30-cream.png)}
.abtn.b300x30{width:300px;height:30px;background-image:url(themes_site_playforia_img_buttons_300x30-cream.png)}
.abtn.b80x40{width:80px;height:40px;background-image:url(themes_site_playforia_img_buttons_80x40-cream.png)}
.abtn.green{border-color:#4a8a08;background:#6ab413 linear-gradient(#a5e23a,#5ca200) no-repeat 0 0;color:#fff;font-size:13px;text-shadow:0 -1px #060,-1px 0 #060,0 1px #060,1px 0 #060,0 0 3px #060}
.abtn.green.b100x25{width:100px;height:25px;font-size:11px;background-image:url(themes_site_playforia_img_buttons_100x25-green.png)}
.abtn.green.b100x40{width:100px;height:40px;background-image:url(themes_site_playforia_img_buttons_100x40-green.png)}
.abtn.green.b200x35{width:200px;height:35px;background-image:url(themes_site_playforia_img_buttons_200x35-green.png)}
.abtn.green.b300x35{width:300px;height:35px;background-image:url(themes_site_playforia_img_buttons_300x35-green.png)}
.abtn.green.b130x40{width:130px;height:40px;background-image:url(themes_global_img_buttons_130x40-glossygreen.png)}

/* ---------- game icons ---------- */
.gameimg-90x80{display:inline-block;width:90px;height:80px;background-image:url(themes_global_img_games_sprite-90x80.png);background-repeat:no-repeat}
.gameimg-90x80 .inner{display:inline-block;width:100%;height:100%;background:url(themes_site_playforia_img_games-frame-90x80.png) 50% 50% no-repeat}

/* ---------- footer ---------- */
#footer{clear:both;margin:10px 0 0;min-height:345px;padding:0 0 20px;background:#f60 url(themes_site_playforia_img_footer-bg.png) repeat-x 0 0;color:#fff;font:12px/15px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif;text-align:center}
#footer .wrapper{display:flow-root;width:980px;max-width:100%;margin:0 auto;padding:20px 0 0;text-align:left}
#footer .col{float:left;width:196px;padding:0 0 0 20px}
#footer h3{margin:0 0 8px;padding:0 0 0 20px;color:#fff;font:bold 18px/15px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif;background:no-repeat 0 50%}
#footer h3.profile{background-image:url(themes_site_playforia_img_footer-icon-profile.png)}
#footer h3.games{background-image:url(themes_site_playforia_img_footer-icon-games.png)}
#footer h3.players{background-image:url(themes_site_playforia_img_footer-icon-players.png)}
#footer h3.shop{background-image:url(themes_site_playforia_img_footer-icon-shop.png)}
#footer h3.help{background-image:url(themes_site_playforia_img_footer-icon-help.png)}
#footer h4{margin:0 0 0 20px;color:#fc0;font:bold 12px/15px tahoma,"dejavu sans condensed",arial,helvetica,sans-serif}
#footer h4 a{color:#fff}
#footer ul{list-style:none;margin:0 0 0 20px;padding:0}
#footer li{padding:0 0 0 10px;background:url(themes_site_playforia_img_footer-bullet.png) no-repeat 0 50%}
#footer a{color:#fff;text-decoration:none}
#footer a:hover{text-decoration:underline}
#footer small{font-size:10px}
#footer .footer-bottom{clear:both;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:25px 20px 0}
#footer .footer-language h4{margin:0 0 3px}
#footer .footer-language select{width:150px;max-width:150px;padding:1px 3px;border:1px solid #c30;border-radius:3px;background:#fff;color:#000;font:11px tahoma,arial,sans-serif}
#footer .copyright{font-size:10px;text-align:right}
#footer .copyright a{margin:0 0 0 4px;padding:0 0 0 6px;border-left:1px solid #ffb27a}
#footer .copyright a:first-child{margin:0;padding:0;border:0}
.site-footer{display:none}

/* ---------- narrow screens: boxes become fluid, columns stack ---------- */
@media(max-width:1000px){
  main.page{width:650px;max-width:calc(100% - 16px)}
  .cols{flex-direction:column;align-items:center}
  .col.c320,.col.c650{width:100%;max-width:650px}
  .box.b320,.box.b650,.box.b980{width:100%;max-width:650px;margin-left:auto;margin-right:auto}
  .box.b320>.title,.box.b650>.title,.box.b980>.title{background-size:100% 50px}
  .box.b320>.bcontent,.box.b650>.bcontent,.box.b980>.bcontent{background-size:100% 120px,100% 50px}
  .box.b320:after,.box.b650:after,.box.b980:after{background-size:100% 20px}
  .innerbox.ib300,.innerbox.ib310,.innerbox.ib630{width:auto;background-size:100% 50px}
  .innerbox.ib300:before,.innerbox.ib310:before,.innerbox.ib630:before{background-size:100% 60px}
  .innerbox.ib300:after,.innerbox.ib310:after,.innerbox.ib630:after{background-size:100% 10px}
  .innerbox-row{flex-direction:column}
  .innerbox-row>.innerbox{flex:auto;width:100%}
  .box.tabbed>.title{flex-wrap:wrap;background-size:100% 100%}
  .box>.title ul.tabs{flex-wrap:wrap;height:auto;padding-left:0}
  #footer .wrapper{width:auto}
  #footer .col{width:50%;min-height:170px;margin-bottom:15px}
  #footer .footer-bottom{flex-direction:column;align-items:flex-start}
  #footer .copyright{text-align:left}
}
@media(max-width:420px){#footer .col{float:none;width:auto;min-height:0}}
#footer .copyright .site-version{display:block;margin-top:3px;opacity:.85}
#userinfo-v2 a.profile-currency{color:inherit;text-decoration:none}
#userinfo-v2 a.profile-currency:hover{text-decoration:underline}
#menubar .bar-inner.score-subnav>a{display:none}

/* the orange footer always reaches the bottom of the window, also on short pages */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body>*{flex:0 0 auto}
body>#footer{margin-top:auto}
