/*
  Backup in case the link images don't work for some reason. Custom YI font.
  Sure, this is more authentic standards-wise... but the images look better imo 'o'
  I have an alt AND a title anyway vOv
*/
@font-face
{
  font-family: Yoster;
  src: url(yoster.ttf);
}

html
{
  /* CSS background-image footer won't occupy bottom of page unless page content exceeds
      browser height or HTML height is set to 100%. Height is not 100% by default. */
  min-height: 100%;
}

body
 {
  color: #888888;
  background-color: #000000; /* #285890; - old YI 'bright blue' cave BG color */
  background-image: url(images/cave/stalagmites.png), url(images/cave/bg.png);
  background-position: bottom, center;
  background-repeat: repeat-x, repeat;
  /*float: left; /* VERY IMPORTANT, DO NOT USE ABSOLUTE POSITIONING
  -- Apparently no longer important? I guess it was a quirk with the old setup... */
  padding-bottom: 250px;
  padding-top: 160px;
}

a:link
{
  color: #AAAAAA;
}

a:active
{
  color: red;
}

a:hover
{
  color: #FFFFFF;
}

a:visited
{
  color: #444444;
}

/* Sidebark for links */
#links
{
  position: absolute;
  top: 182px;
  left: -10px;
  border: 34px solid black;
  border-image: url(images/cave/border.png) 34 34 34 34 repeat;
}

/* Sidebar links' anchor text */
#links > .black  > a
{
  display: block;
  
  /* Fallback font rules to approxmimate images used */
  font-family: yoster;
  color: white;
  font-size: 0.7em;
  text-decoration: none;
}

/* Need to remove the border because IE is dumb and applies that sort of thing */
#links > .black  > a > img
{
  border: 0;
}

#banner
{
  width: 100%;
  height: 120px;
  position: absolute;
  top: 0px;
  left: 0px;
  background-image: url(images/cave/day.png);
  background-repeat: repeat-x;
}

/* "PHAZE PAGES" banner text */
#banner > img
{
  position: relative;
  top: 15px;
  left: 20px;
}

/* Marks the transition from above-ground to under-ground */
#transition
{
  width: 100%;
  height: 80px;
  position: absolute;
  top: 90px;
  left: 0px;
  background-image: url(images/cave/transition.png);
  background-repeat: repeat-x;
}

/* Surrounds all News Posts on the index */
#newsposts
{
  margin-left: 100px;
}

/* YI Cave borders, surrounds the sidebar links and each news post */
.border
{
  margin-top: 14px;
  border: 34px solid black;
  border-image: url(images/cave/border.png) 34 34 34 34 repeat;
  /*-moz-border-image: url(images/cave/border.png) 34 34 34 34 repeat;
  -webkit-border-image: url(images/cave/border.png) 34 34 34 34 repeat;*/
}

/* Maintains the black background inside of the border */
.black
{
  background-color: black;
  padding: 10px;
}

/* Header for the titles on news */
.newstitle
{
  font-size: 1.5em;
}

/* Header for the user who posted the news article */
.newsuser
{
  font-size: 0.8em;
}

.newsavatar
{
  float: left;
  padding-right: 20px;
}