/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

html {
    height: 100%;
    width: 100%;

}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}

.center {text-align: center;}
.bold, b, strong {font-weight: 700;}
.left {float: left;}
.right {float: right;}


img {
  border: 0;
}
body {font-family: 'Lora', serif; color: #34322f; font-weight:400; background:#eee}
.velg {height: 100%}

a {color: #999;text-decoration: none;}
a:hover {color: #aaa;}
p { margin:  0 0 10px 0 }
h2{
    font-size: 36px;
    margin: 20px 0;
    color: #2c3f59
}
.home_cont {position: absolute; width: 100%; height: 100%; background-image: url(../img/bg.jpg); background-position: bottom center; background-size: cover; padding-top: 160px;}

.home_cont h2 {
    background: #fff;
    font-size: 24px;
    padding: 5px 10px;
    margin: 0 20px;
    display: inline;
}




#title {
	position: absolute;
	left: 340px;
	top: 50px;
	z-index: 2;
    padding: 0;
    width: auto;
    font-size: 20px;
}

@-webkit-keyframes in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

#page {
	position: relative;
    margin: 140px auto 0;
    padding: 20px;
	z-index: 0;
    width: 920px; 
    background: #fff;
    -webkit-animation: in 0.5s linear; /* Safari 4+ */
            -moz-animation: in 0.5 linear; /* Fx 5+ */
            -o-animation: in 0.5 linear; /* Opera 12+ */
            animation:  in 0.5 linear; /* IE 10+, Fx 29+ */
}

header {
    position:fixed;
    top:0;
    left:0;
    height: 120px;
    width: 100%;
    background: #2c3f59;
    z-index: 1;
}

#logo { 
    position: fixed; 
    top: 20px; 
    left: 20px; 
    z-index: 3;
}

#menu {	
    position: fixed;
    top: 85px;
	right: 20px;	
	z-index: 999;
}



#menu li {
  float: left;

}
#menu li a {
    font-weight: 700;
	font-size: 13px;
    padding: 0 8px;
	text-decoration: none;
    color: #8e98a2;
    text-transform: uppercase;   
    transition: 400ms ease-out;
        
}

#menu li a:hover, #menu li.current a {
    color: #fff;

}
.down {
    position: absolute; 
    bottom: 20px;
    left: 50%;
    margin-left: -14px;
    width:28px;
    height:30px;
    background: url(../img/down.png) no-repeat;
    z-index: 9999;
}
    

footer {
    position: relative;
    margin-top: 2%;
    left: 0;
    background: #fff;
    width: 100%;
    height: 290px;
    transition: .5s linear;
}

.footerhome {
    position: absolute;
    top: 98%;
}

footer img{
float: right;
}
footer p{
    font-size: 14px;
}
footer h3{
padding: 12px 0;
    font-weight: 700;
    font-size: 18px;
}
footer strong{
font-size: 10px;
}
.one-third {
    position:relative;
    float: left;
    width: 31%;
    margin:30px 0 30px 2%;
    border-right: 2px #34322f solid;
    height: 230px;
}

.one-third:last-child {
    border-right: none;
}

#sormegleren {
    margin: 0;
    height: 50px; width: 120px;
}

.back {
    position: absolute;
    top: 140px;
    right: 20px;
    background: url(../img/close2.png) no-repeat;
    width: 50px;
    height: 50px;
    opacity: 0.8;
}
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: url(../img/close.png) no-repeat;
    width: 50px;
    height: 50px;
    opacity: 0.8;
}
.back:hover, .close:hover {
    opacity: 1;
}
    


/* forms */

textarea, input {
    font-family: 'Lora', serif;
	font-size: 13px;
	color: #34322f;
    border: none;
	border-bottom: 1px solid #34322f;
	padding: 10px;
    margin: 0 0 5px 0;
	background: none;
	outline: 0;
	display: block;
	clear: both;
    -webkit-appearance: none;
    -webkit-border-radius: none;
    border-radius: 0;
    width: 86%;
}

textarea {
    width: 86%;
    resize: vertical; 
    height: 50px;
}

input[type="submit"] {
	text-transform: uppercase;
	padding: 5px 20px;
    margin-top: 15px;
	color: #34322f;
	border: 1px solid #34322f;
	background: none;
    cursor: pointer;
    width: 100px;
    -webkit-appearance: none;
    -webkit-border-radius: none;
    border-radius: 0;
}
input[type="submit"]:hover {
	color: #fff;
	background: #34322f;	
}

.error {
	background-color: #d75656;
    color: #fff;
    width: 86%;
	padding: 10px;
    margin:0 0 10px 0;
	font-size: 11px;
	clear: both;

}

.success-box {
	padding: 10px;
    width: 86%;
    margin-bottom: 20px;
	background-color: #6FC666;
    color: #fff;
}
.google_maps {

}

@-webkit-keyframes inout {
    0%   { opacity: 0; }
    50% { opacity: 0.5; }
    100% { opacity: 0.2; }
}
svg { overflow:hidden; width:100%; height: 100%;}

svg g a { 
    opacity: 0.3;          
    transition: all 0.3s ;
    -webkit-animation: inout 1s linear; /* Safari 4+ */
    -moz-animation: inout 1s linear; /* Fx 5+ */
    -o-animation: inout 1s linear; /* Opera 12+ */
    animation:  inout 1s linear; /* IE 10+, Fx 29+ */}
}

svg g:nth-child(1) a{ -webkit-animation-delay: 0.1s }
svg g:nth-child(2) a{ -webkit-animation-delay: 0.2s }
svg g:nth-child(3) a{ -webkit-animation-delay: 0.3s }
svg g:nth-child(4) a{ -webkit-animation-delay: 0.4s }
svg g:nth-child(5) a{ -webkit-animation-delay: 0.5s }
svg g:nth-child(6) a{ -webkit-animation-delay: 0.6s }
svg g:nth-child(7) a{ -webkit-animation-delay: 0.7s }
svg g:nth-child(8) a{ -webkit-animation-delay: 0.8s }
svg g:nth-child(9) a{ -webkit-animation-delay: 0.9s }
svg g:nth-child(10) a{ -webkit-animation-delay: 1.0s }
svg g:nth-child(11) a{ -webkit-animation-delay: 1.1s }
svg g:nth-child(12) a{ -webkit-animation-delay: 1.2s }
svg g:nth-child(13) a{ -webkit-animation-delay: 1.3s }
svg g:nth-child(14) a{ -webkit-animation-delay: 1.4s }
svg g:nth-child(15) a{ -webkit-animation-delay: 1.5s }
svg g:nth-child(16) a{ -webkit-animation-delay: 1.6s }
svg g:nth-child(17) a{ -webkit-animation-delay: 1.7s }
svg g:nth-child(18) a{ -webkit-animation-delay: 1.9s }
svg g:nth-child(19) a{ -webkit-animation-delay: 2.0s }
svg g:nth-child(20) a{ -webkit-animation-delay: 2.1s }

svg text { 
    transition: all 0.2s 0.1s 
}   
svg g a:hover, svg g a:active { 
    opacity: 0.7; visibility: visible;
}
svg g a:hover ~ text { 
        opacity: 1; 
        visibility: visible 
}
text { 
    font-family: 'Lora', serif; 
    font-size: 40;
}
    
tspan { 
    font-family: 'Lora', serif; 
    font-size: 20;
}

        




@media only screen and (max-width: 959px) {
    

     
#leilighet, #page {
	margin-top: 120px;
    left: 0px;
	z-index: 0;
    padding: 3%;
    width: 94%;
}
    
#leilighet img, #page img {
    max-width: 100%;
}
    
#leilighet table img {
    max-width: 50%;
}
    
  
#menu {
position: fixed;
    top: 50px;
    right: -1000px;
    padding-left: 100px;
    width: 950px;
    height: 30px;
	background: url(../img/menu.png) no-repeat;
    background-position: 0 0;

    z-index: 9999;

}   
#menu:hover {
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #2c3f59;
    padding:0;
    margin:0;

	
}
#menu li {

  float: none;
    

}
#menu li a {
    width:70%;
    font-size: 16px;
	padding: 5% 0;
    margin: 0 15%;
    height: 20px;
    font-weight: 700;
	display: inline-block;
    text-align: center;
}

    
.hbg {
font-size: 16px;
padding: 12px;
margin: 0 0 6px 0;
bottom: 132px;
    width: 296px;

}
    .hbg p{
font-size: 12px;

}
}
@media only screen and (max-width: 720px) {
    
header {
    height: 80px;
    }

#logo img{ 
    width: 160px;
}

#menu {
    top: 30px;


}  
.home_cont {
    text-align: center;
    line-height: 40px;

}
#sormegleren {
    margin: 0 AUTO;
    height: 50px; width: 120px;
}

.one-third {
    position:relative;
    float: left;
    width: 96%;
    margin:15px 2%;
    border-bottom: 2px #34322f solid;
    border-right: none;
    text-align:center;
}

.one-third:last-child {
    border-bottom: none;

}

footer {  
height: 800px;
}

textarea, input {

	padding:8px 5%;
    width: 90%;
}
input[type="submit"] {

	padding:8px 5%;

    width: 100%;
}

}