/*

Digitpaint HTML5 Advent Calender 2011.

 _____                        _                     __           
(____ �_                      | |                   /  |     _    
 _   �_ �_ ____ ____ ____ ____ | | _   ____  ____   /_/ | ___| |_  
| |   | / _  ) ___) _  )    �_| || �_ / _  )/ ___)    | |/___)  _) 
| |__/ ( (/ ( (__( (/ /| | | | |_) | (/ /| |        | |___ | |__ 
|_____/ �_____)____)____)_|_|_|____/ �_____)_|        |_(___/ �____)

Copyright 2011 by Digitpaint. This code is licensed under the MIT License.

*/

.bubble{
  /* Make it an inline-block element so we can specify the size */
  display: inline-block;

  /* Size */
  width: 50px;
  height: 50px;

  /* Set the box-sizing so the border fit's within our specified size*/
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;        

  /* Some defaults for borders*/
  border-width: 25px;
  border-color: rgba(0,0,0,0.7);

  /* The transition from :hover -> normal */
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
  transition: 0.2s ease;
  background: #FFF;
}

/* Hide the text */
/* Note: We have to do it like this because otherwise Safari will do something strange with margins */
.bubble > span{
  display: block;
  overflow: hidden;
  text-indent: -10000px;
  font-size: 1px;
  
  width: 1px;
  height: 1px;        
  position: absolute;
}

/* The hovered state */
.bubble:hover {
  /* Some defaults for borders */
  border-width:0px;
  border-color: rgba(0,0,0,0.4);

  /* The transition from normal > :hover */
  -webkit-transition-duration:0.5s;
  -moz-transition-duration:0.5s;
  -ms-transition-duration:0.5s;
  -o-transition-duration:0.5s;
  transition-duration:0.5s;
}    

/* ===================== */
/* = Specific examples = */
/* ===================== */

/* Expose square width solid border */
.expose-square-solid{
  background: url(car1.jpg) 50% 50% no-repeat;
  border-style: solid;
}

/* Expose round with solid border */
.expose-round-solid{
  background: url(car2.jpg) 50% 50% no-repeat;
  border-style: solid;
  border-radius: 50%;
}

.expose-round-solid:hover{
  border-width: 2px;
}

/* Expose round with dotted border */
.expose-round-dotted{
  background: url(car3.jpg) 50% 50% no-repeat;
  border-style: dotted;
  border-radius: 50%;        
}

.expose-round-dotted:hover{
  border-width: 2px;
}      

/* Highlight round by means of a solid border */
.highlight-round-solid{
  border-radius: 50%;        
  border-color: rgba(70,150,230, 0);    
  border-style: solid;    
}

.highlight-round-solid:hover{
  border-color: rgba(70,150,230, 0.8);    
}

/* Highlight round by means of a remaining 4px dotted border */
.highlight-round-dotted{
  background: url(../images/bmw001.jpg) 50% 50% no-repeat;
  border-radius: 50%;        
  border-color: rgba(70,150,230, 0);    
  border-style: dotted;    
}

.highlight-round-dotted:hover{
  border-color: rgba(70,150,230, 0.8);    
  border-width: 4px;
}      