/*****************************************************************************
scalable Inman Flash Replacement (sIFR) version 3.

Copyright 2006 – 2008 Mark Wubben, <http://novemberborn.net/>

Older versions:
* IFR by Shaun Inman
* sIFR 1.0 by Mike Davidson, Shaun Inman and Tomas Jogin
* sIFR 2.0 by Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben

See also <http://novemberborn.net/sifr3> and <http://wiki.novemberborn.net/sifr3>.

This software is licensed and provided under the CC-GNU LGPL.
See <http://creativecommons.org/licenses/LGPL/2.1/>
*****************************************************************************/

@media screen {
  .sIFR-flash {
    visibility: visible !important;
    margin: 0;
    padding: 0;
  }
  
  .sIFR-replaced, .sIFR-ignore {
    visibility: visible !important;
  }
  
  .sIFR-alternate {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    display: block;
    overflow: hidden;
  }
  
  .sIFR-replaced div.sIFR-fixfocus {
    margin: 0pt; 
    padding: 0pt; 
    overflow: auto; 
    letter-spacing: 0px; 
    float: none;
  }
  
  #frontleft h1.sIFR-replaced + p, #frontleft h2.sIFR-replaced + p, #frontleft h3.sIFR-replaced + p, #frontleft h4.sIFR-replaced + p, #frontleft h5.sIFR-replaced + p, #frontleft h6.sIFR-replaced + p {
    margin-top:-0.5em;	
  }
  
  .frontcontent h1.sIFR-replaced, .frontcontent h2.sIFR-replaced, .frontcontent h3.sIFR-replaced, .frontcontent h4.sIFR-replaced {
    display:inline;
  }
  
  #post_text h1.sIFR-replaced, #post_text h2.sIFR-replaced, #post_text h3.sIFR-replaced, #post_text h4.sIFR-replaced {
    margin:1em 0px -0.5em 0px;
    padding:0px;
    line-height:1em;	
  }

  /* FUNKAR INTE I IE6 */
  #post_text > h1.sIFR-replaced:first-child, #post_text > h2.sIFR-replaced:first-child, #post_text > h3.sIFR-replaced:first-child, #post_text > h4.sIFR-replaced:first-child {
    margin-top:-0.5em;
  }

  /* FUNKAR INTE I IE6 */
  #post_text h1.sIFR-replaced + p, #post_text h2.sIFR-replaced + p, #post_text h3.sIFR-replaced + p, #post_text h4.sIFR-replaced + p {
    margin-top:0.5em;
  }

  /* FUNKAR INTE I IE6 */
  #post_text > p:first-child {
    margin-top:-1em;
    *margin-top:-0.2em; /* FIX FÖR IE7 */	
  }
}

@media print {
  .sIFR-flash {
    display    : none !important;
    height     : 0;
    width      : 0;
    position   : absolute;
    overflow   : hidden;
  }
  
  .sIFR-alternate {
    visibility : visible !important;
    display    : block   !important;
    position   : static  !important;
    left       : auto    !important;
    top        : auto    !important;
    width      : auto    !important;
    height     : auto    !important;
  }
}

/*
Place CSS rules for to-be-replaced elements here. Prefix by .sIFR-active
so they only apply if sIFR is active. Make sure to limit the CSS to the screen
media type, in order not to have the printed text come out weird.
*/
@media screen {
  /* Example:
  .sIFR-active h1 {
    font-family: Verdana;
    visibility: hidden;
  }
  .sIFR-active #center h2,
  .sIFR-active #single h2 {
  	visibility: hidden;
	font-family: "Arial Black", Georgia, sans-serif;
	font-size: 2.2em;
	font-weight: 100;
  }
  */
}
