
.wrap {
    max-width: 1050px;
    min-width: 680px;
    width: 80%;
    margin: 0 auto;
    position: relative;
}

.group {
    float: left;
}

.group-right {
    float: right;
}

.clear {
    width: 100%;
    clear: both;
}

#container {
    margin: 0px auto 0 auto;
    padding: 0px;
}

.footer .wrap {
    margin: 0px auto 0 auto;
}

.footer .mainlist {
  width: 18%;
}

.footer #some {
  float: right;
}

#top {
    height: 36px;
}

#masthead {

}

#logo {
    width: 297px;
    display: block;
    margin: 10px auto;
    position: relative;
    top: -20px;
}

.flexnav-container {
    display: none;
}

nav {
    margin-top: 20px;
}

.topnav {
    background: #1e2442;
    width: 100%;
    text-align: center;
}

.section-extra .topnav {
    background: #c6ad25;
}

.topnav > ul {
    line-height: 43px;
    margin-left: 0;
    margin-bottom: 0;
}

.topnav > ul > li {
    position: relative;
}

.topnav a {
    color: #fff;
}

.topnav .current a, .topnav .hover a {
    color: #fff;
}

/* hide dropdown */
.topnav ul li ul {
    display: none;
    width: 200px;
    padding: 10px;
    position: absolute;
    left: -30px;
    top: 32px;
    z-index: 1000;
    background: gray;
    text-align: left;
    background: #023e7c;
}

.section-extra .topnav ul li ul {
    background: #000;
}

.topnav ul li ul li { 
    display: block;
    margin: 5px 0;
}

.topnav ul li ul li a { 
    font-size: 14px;
    line-height: 24px;
    padding: 10px 0;
    margin: 0;
}

.topnav ul li ul li a:hover {
    background: transparent;
    text-decoration: underline;
}

.section-extra .topnav a:hover, 
.section-extra .topnav .current a, 
.section-extra .topnav .parent a {
  background: #000;
}

#event {
		margin-left: 280px;
}

#details {
    float: left;
    width: 240px;
    padding-right: 2%;
}

#events {
		width: 70%;
		float: left;
}

#tags {
		float: right;
		width: 25%;
		padding-top: 34px;
}

#topmenu {
    height: 41px;
    border-radius: 6px;
}

#topmenu li a {
    border-right: 1px solid #444;
    border-bottom: none;
}

#topmenu li:first-child a {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* Helpers */
.full {
    width: 100%;
    padding: 0px;
    clear: both;
}

.size1of4, .size2of4, .size3of4 {
    width: 22.9%;
    margin-right: 2.6%;
    float: left;
}

.size4of4 {
    width: 22.9%;
    float: right;
}

.size1of3 {
    width: 31.4%;
    margin-right: 2.9%;
    float: left;
    clear: both;
}

.size2of3 {
    width: 31.4%;
    margin-right: 2.9%;
    float: left;
}

.size3of3 {
    width: 31.4%;
    float: right;
}

.size1-2of3 {
    width: 64%;
    margin-right: 2%;
    float: left;
    clear: both;
}

.size2-3of3 {
    width: 66%;
    float: right;
}

.size1of2 {
    width: 48%;
    float: left;
    clear: both;
}

.size2of2 {
    width: 48%;
    float: right;
}

.horizontal li {
    float: left;
    display: inline;
    margin: 0;
    padding: 0;
}

.horizontal li a {
    display: block;
    padding: 5px;
}

#liity {
	display: block;
	width: 81px;
	position: absolute;
	top: -5px;
	left: 48%;
}

#login-form {
    position: absolute;
    top: 0;
    right: 0;
}

#blognav .prev {
    float: right;
}

#event .tapuilmo label, .tapulogin label {
	width: 200px;
	float: left;
	text-align: right;

}

.tapuilmo .row input, .tapulogin .row input {
		margin-left: 10px;
}

#event .tapuilmo .row input[type=text], #event .tapulogin input[type=text], #event .tapulogin input[type=password] {
		width: 35%;
}

.tapuilmo .fieldset {
		padding-top: 0.5em;
}

.submittapu {
		margin-left: 210px;
}

.helpmenu {
		float: right;
		margin-right: 20px;
		margin-top: 0px;
}

.tapuEventLocation {
		margin-left: 4px;
		margin-right: -54px;
		margin-bottom: 0px;
		float: right;
}

.julkaisu {
    overflow: hidden;
    padding: 20px;
    background: #f3f3f3;
    margin-bottom: 10px;
}

.julkaisu img {
    float: right;
    margin-left: 20px;
}


.flexslider {
    display: block;
    margin-bottom: 20px;
}

.flexslider > li {
    width: 100%;
    height: 300px;
}

.flexslider .slide {
    position: relative;
}

.slide-content {
    position: absolute;
    top: 105px; 
    left: 30px;
    width: 300px;
    padding: 20px;
    background: url(img/slide-content-bg.png);
}

.slide-content * {
    color: #fff;
}

/* front-page */
#front-left {
    width: 18.3%;
    margin-right: 3.2%;
}

#front-content {
    width: 100%;
}

/* basic-page */
#nav-container .date {
    position: absolute;
    left: 25.7%;
    bottom: 10px;
}

#left {
    width: 22.9%;
    min-height: 150px;
    margin-right: 2.8%;
}

#content {
    width: 74.3%;
}

#content-inner {
    width: 100%;
}

.with-right #content-inner {
    width: 65.4%;
}

#right {
    width: 30%;
}

.highlights-1 .image-highlights {
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-box-border-radius: 4px;
    -moz-box-shadow: 0 0 7px rgba(0,0,0,0.25);
    -webkit-box-shadow: 0 0 7px rgba(0,0,0,0.25);
    box-shadow: 0 0 7px rgba(0,0,0,0.25);
    -webkit-transition: -webkit-box-shadow .2s ease-in;
    -moz-transition: -moz-box-shadow .2s ease-in;
    -o-transition: -o-box-shadow .2s ease-in;  
    min-height: 330px;
}

.highlights-1 .image-highlights:hover {
    -moz-box-shadow: 0 0 20px rgba(0,0,0,0.25);
    -webkit-box-shadow: 0 0 20px rgba(0,0,0,0.25);
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.highlights-1 .image-highlights img {
    border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
}

.highlights-2 .image-highlights {
    min-height: 300px;    
}

.highlights-2 .image-highlights:hover h2 {
    text-decoration: underline;
}

.fixnav {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    margin-top: 0 !important;
}

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

    #logo {
        top: 20px;
    }

    .flexslider .slide h2 {
        font-size: 18px;
    }

    .flexslider .slide .summary {
        font-size: 14px;
    }

    /* basic-page */
    #nav-container .date {
        left: 36%;
    }

    #left {
        width: 32.9%;
        margin-right: 2.8%;
    }

    #content {
        width: 64.3%;
    }

    #content-inner,
    .with-right #content-inner,
    #right {
        width: 100%;
    }

    .size1of4, .size3of4 {
        width: 48.5%;
        margin-right: 2%;
        margin-bottom: 1em;
        float: left;
    }

    .size2of4, .size4of4 {
        width: 48.5%;
        margin-right: 0;
        margin-bottom: 1em;
        float: right;
    }
  
    /* frontpage */
    
    .slide .slide-content {
      top: 15%; 
    }
    
    .flexslider .slides img {
      width: 100%;
      height: auto;
    }
    
    .template-home #body .slide h2 {
      font-size: 1.2em;
    }
    
    .template-home #body .slide .summary {
      font-size: 0.8em;
    }

    .highlights-2 .image-highlights img {
        margin: 20px 20px 0 20px;
    }
    
    #top li {
      padding-right: 0;
    }
    
    #logo img {

    }
    
    #top #liity {
      display: none;
    }
    
    #masthead .topnav {
      margin-top: 43px;
    }
    
    .topnav a {	
      font-size: 0.85em;
      padding: 12px;
    }
  
}