html, body, * {
	font-family: 'Avenir LT Std 45 Book', sans-serif;
	font-size:16px;
}
img {
	max-width:100%;
}
body {
	color: rgb(17, 17, 17); 
	/* background: url(http://localhost/pages/muistojenstadion/img/bg_stadion_logo.jpg) fixed rgb(255, 255, 255); */
	/* url(img/taustakuva_1272x2000px.jpg); */
	/* background-size:100%; */
	background-size: cover !important;
	font-size:24px;
	/* animation: animatedBackground 40s linear infinite; */
	
	min-height: 100%;
	min-width: 100%;
	overflow-x: hidden;
	/* background-position:10% 10%; */
	/* transition:all 1.0s; */
}
h1,h2,h3,h4,h5,p,a {
	color:#000;
}

h1,h2,h3,h4,h5 {
	font-family: 'Avenir LT Std 95 Black', sans-serif;
}

h1 {
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.07em;
}
h2 {
  text-transform: uppercase;
  font-size: 27px;
  font-weight: 600;
}
@media screen and (max-width: 500px){
	h1 {
		font-size:20px;
	}
}

.row {
	margin-bottom:20px;
}

.social-links {
	position: absolute;
	right: 7%;
	bottom: 2%;
}
.social-links a {
	margin-left:20px;
}
.social-links a,
.social-links a:hover,
.social-links i {
	font-size: 1.1em;
}

.item {
	width:25% !important;
}
@media screen and (max-width: 850px) {
    .item {
        width:33% !important;
    }
}
@media screen and (max-width: 650px) {
    .item {
        width:50% !important;
    }
}
@media screen and (max-width: 400px) {
    .item {
        width:100% !important;
    }
}



.item {
	opacity: 1;
	overflow:hidden;
}
.item  .title {
  margin: 0 0 4px;
  text-transform: uppercase;
  font-weight: bold;
    font-size: 15px;
}
.item .caption {
	margin-top: 0.5em;
	font-size: 0.9em;
	white-space: pre-line;
	word-wrap: break-word;
}

.container {
  max-width: 950px;
  padding-left: 40px;
  padding-right: 40px;
  background: rgba(255, 255, 255, 0.79);
}
.animated {
    -webkit-animation-duration:0.6s;
    animation-duration:0.6s;
    -webkit-animation-fill-mode:both;
    animation-fill-mode:both
}
@-webkit-keyframes fadeInUp {
    0% {
        opacity:0;
        -webkit-transform:translate3d(0, 100%, 0);
        transform:translate3d(0, 100%, 0)
    }
    100% {
        opacity:1;
        -webkit-transform:none;
        transform:none
    }
}
@keyframes fadeInUp {
    0% {
        opacity:0;
        -webkit-transform:translate3d(0, 100%, 0);
        transform:translate3d(0, 100%, 0)
    }
    100% {
        opacity:1;
        -webkit-transform:none;
        transform:none
    }
}
.fadeInUp {
    -webkit-animation-name:fadeInUp;
    animation-name:fadeInUp
}
a>img {
    border:0
}
.sortby {
    margin:10px;
    cursor:pointer;
    cursor:hand;
    background:#fff;
    padding:5px;
    border-radius:4px
}
#sortbynew {
    margin-left:5px
}
#sortbylikes:hover {
    background:#c84101;
    color:#fff
}
#sortbynew:hover {
    background:#6288c6;
    color:#fff
}
#instafeed {
    width:100%;
    text-align:center;
	margin-bottom:25px;
}
#instafeed a {
    padding:0;
    margin:5px;
    border:1px solid #eee;
    display:inline-block;
    border-radius:0;
    position:relative
}
    
#instafeed a img {
    border-radius:0;
	width:156px;
}
#instafeed .content {
    position:absolute;
    color:#fff;
    left:0;
    top:0;
    width:100%;
    height:100%;
    text-align:center;
    -webkit-font-smoothing:antialiased;

    /* display:none; */
    overflow:hidden
}

.instalink .content * {
	opacity:0;
    filter:alpha(opacity=0);
}
.instalink .content,
.instalink .content * {
	-webkit-transition:all 400ms ease;
    -moz-transition:all 400ms ease;
    -o-transition:all 400ms ease;
    -ms-transition:all 400ms ease;
    transition:all 400ms ease;
}
.instalink .content {
	background:rgba(0, 0, 0, 0);
}
.instalink:hover .content {
	background:rgba(0, 0, 0, .6);
}
.instalink:hover .content *{
	opacity:100;
    filter:alpha(opacity=100);
}
#instafeed .content p {
	max-height: 100%;
	overflow: hidden;
	padding: 4px;
	font-size: 12px;
	font-weight: 400;
	color:#fff;
}

.modal-dialog {
max-width: 550px;
}
.modal-body table td {
	vertical-align:top;
	text-align:center;
}
.modal-dialog img {
	width: 100%;
}
.arrow {
	font-size:25px;
	color:#999;
	padding-top:50%;
	color:#aaa;
	cursor:pointer;
}
.arrow:hover {
	color:#555;
}
.modal-header .close {
margin-top: -10px;
}
.modal-header {
	padding:18px;
}

.image_caption {
	word-break: break-word;
}



.navbar-default {
	margin: 20px auto;
}

.footer {
padding: 15px;
background: #aaa;
font-size: 11px;
text-align: left;
}




a {
	cursor:pointer;
}

.sort i {
	color: #B3B4C0;
}



.saantotxt h1,
.saantotxt h2,
.saantotxt h3,
.saantotxt h4,
.saantotxt h5,
.saantotxt p {
	font-size:0.75em;
}

#overlay {
	text-align:center;
	position:absolute;
	width:100%;top:0;left:0;
	z-index: 10000;
	display:none;
}
#popup_content{
	display:none;
	max-width:600px;margin:30px auto;
	padding: 30px;
	text-align: left;
	background: #fff;
	box-shadow: 0px 0px 20px -2px #888888;
	border: 1px solid #C5C5C5;
	color: #000;
}
#popup_content p{color:#000;margin-bottom:8px;}






.menu-top-container ul,
.menu-top-container li,
.menu-top-container a {
color: #fff;
}
.menu-top-container {
	width: 100%;
	background: #000;
	padding-right:20px;
}

.top-nav {
	margin-left: auto;
	margin-right: auto;
	padding-top: 16px;
	width: 100%;
	list-style-position: outside;
	text-align: right;
	list-style-type: none;
	margin-bottom: 0;
	padding-bottom: 9px;
}

.top-nav li {
	display: inline-block;
	margin-left: 15px;
	padding-bottom: 17px;
	color: #fff;
	text-transform: uppercase;
	font-weight: 400;
	font-size: 12px;
	line-height: 14px;
}

.top-nav li:first-child {
	margin-left: 0;
}

.top-nav a {
	color:#fff;
}




.footer ul,
.footer li,
.footer a {
color:#fff;
}
.footer {
  clear: both;
  width: 100%;
  min-width: 100%;
  background-color: #000;
  color: #fff;
}
.footer .navs {
  overflow: hidden;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}
.footer-nav.left {
  /* width: 630px; */
  /* width: 70%; */
}
.footer-nav {
	overflow: hidden;
	/* padding-top: 30px; */
	padding: 17px 0 0 4px;
	list-style-position: outside;
	list-style-type: none;
}
.footer-nav.right {
  /* width: 30%; */
  padding-top: 28px;
  padding-right: 0px;
}
.footer-nav li {
  float: left;
  padding-bottom: 30px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
}

.left li {
  margin-right: 13px;
}




@keyframes animatedBackground {
	from { background-position: 0 0; }
	to { background-position: 100% 100%; }
}



.btn-primary,.btn-primary:hover {
  color: #fff;
  background-color: #ADD046;
  border-color: #A7C743;
}
