/*
Theme Name: AFI 2015
Theme URI: http://armafinland.fi
Author: ARMA Finland
Author URI: http://armafinland.fi
Description: 2015 theme for ARMA Finland community. Created by MadReizka & Cultti, members of ARMA Finland.
Version: 1.0
License: -
License URI: -
Tags: 
Text Domain: AFI2015
*/

/* ACTUAL CSS */
body {
    color: #ffffff;
    background-color: #212121;
    background-image: url('gfx/background-body.png'), url('gfx/background-body-1px.png');
    background-repeat: no-repeat, repeat-y;
    background-position: top center;
}

#maincontainer {
    padding-top: 18px;
}

h1, aside h2 {
    background-color: rgba(0, 84, 166, 0.4);
    margin-top: 0px;
    margin-bottom: 5px;
    height: 30px;
    font-size: 17px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    padding-left: 12px;
    padding-top: 2px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 25px;
}

h3 {
    font-size: 18px !important;
    margin-bottom: 5px;
    margin-top: 8px;
    margin-left: 10px;
}

/*
nav ul {
    list-style-type: none;
    text-align: justify;
    min-width: 940px;
    height: 61px;
}

nav ul:after {
    content: '';
    display: inline-block;
    width: 100%;
}

nav ul li {
    display: inline-block;
    text-align: center;
    padding-top: 15px;
}

nav ul li a {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 19px;
    font-weight: normal;
    color: #eaeaea;
    text-decoration: none;
    line-height: 30px;
}
*/
#menu {
        clear: both;
        float: left;
        margin: 0;
        padding: 10px 0;
        width: 960px;
}
#menu:empty {
        display: none;
}
#menu ul {
        font-size: 13px;
        list-style: none;
        margin: 0;
        padding-left: 0;
}
#menu li {
        float: left;
        position: relative;
//	padding-right: 15px;
}

#menu li li {
        margin: 0;
}
#menu a {
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	font-size: 19px;
	font-weight: normal;
        color: #eaeaea;
        display: block;
        line-height: 40px;
        padding: 0 37px;
        text-decoration: none;
        text-transform: uppercase;
}

#menu ul ul {
        display: none;
        float: left;
        margin: 0;
        position: absolute;
        left: 0;
        width: 183px;
        z-index: 99999;
}
#menu ul ul ul {
        border-top-width: 0;
        left: 100%;
        top: 0;
}
#menu ul ul a {
	background-color: rgba(25,25,25,0.98);
        border-bottom: 1px dotted #444444;
        color: #aeaeae;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
        font-size: 13px;
        font-weight: normal;
        line-height: 1.5;
        padding: 6px 15px;
        width: 183px;
        height: auto;
}
#menu li:hover > a,
#menu a:focus {

}
#menu a:focus,
#menu a:active,
#menu li:hover > a {
        color: #fff;
}
#menu li.current-menu-item > a,
#menu li.current-menu-ancestor > a,
#menu li.current_page_item > a,
#menu li.current_page_ancestor > a {
        color: #e8a226;
}
#menu li li.current-menu-item > a,
#menu li li.current-menu-ancestor > a,
#menu li li.current_page_item > a
#menu li li.current_page_ancestor > a {
        border-radius: 0;
}
#menu ul li:hover > ul {
        display: block;
}
/* First selector is for wp_nav_menu(), second is for wp_list_pages(). */
#menu .menu > li > a,
#menu div.menu > ul > li > a {
        border-radius: 3px;
}


div#header {
    width: 940px;
    height: 367px;
    background-image: url('gfx/header.png');
}

main {
    margin-top: 18px;
    background-color: rgba(0, 0, 0, 0.3);
}

main article {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 35px;

}

main article h2 {
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    padding-left: 15px;
    margin-top: 15px;
    background-image: url('gfx/background-article.png');
    text-transform: uppercase;
    height: 23px;
    line-height: 23px;
    letter-spacing: 1px;
}

main article h2 a:link, main article h2 a:visited {
    color: #ffffff;
    text-decoration: none;
}

main article p {
    padding-top: 10px;
    padding-left: 25px;
    padding-bottom: 10px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    line-height: 140%
}

main article ul {
    padding-left: 25px;
}



/* SIDE */

aside {
    margin-top: 18px;

}

aside section {
    margin-bottom: 18px; 
    background-color: rgba(0, 0, 0, 0.3);
    padding-bottom: 8px;

}

#sidebar section h4 {
    padding-left: 12px;
    margin-top: 0;
}

#sidebar section div {
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    letter-spacing: 0px;
    padding-top: 8px;
    padding-bottom: 11px;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 140%
}

#sidebar section p {
    padding-left: 12px;
}


#sidebar section article h4 {
    font-size: 14px;
    padding-left: 12px;
}


#sidebar section article p {
    font-size: 14px; 
}


/* FOOTER */

footer {
    background-image: url('gfx/background-footer.png');
    background-repeat: no-repeat;
    background-position: top center;
    min-height: 250px;
    margin-top: 25px;
    padding-top: 15px;
    padding-bottom: 25px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 16px !important;
    font-weight: normal;
    color: #7c7c7c;
}

footer ul li, footer p, footer ul li a:link, footer ul li a:visited {
    padding-top: 8px;
    font-size: 14px;
    font-weight: normal;
    color: #4b4b4b;
    line-height: 19px;
    text-decoration: none;
}

footer section h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 0;
}

.evenly {
    display:flex;
    justify-content:space-between;
}
.evenly div {
    white-space:nowrap;
}


/* LINKKICOLOR OVERALL */
a:link {
    color: #2682cc;
}

a:visited {
    color: #2682cc;
}

a:hover {
    color: #e8a226;
}

a:active {
    color: #2682cc;
} 

/* LINKKICOLOR HEADER */
nav ul li a:link, nav ul li a:visited {
    color: #eaeaea;
}

nav ul li a:hover {
    color: #e8a226;
}

/* CALENDAR WIDGET */
.afical-widget {
    width: 100%;
    background-color: #1b1b1c;
    border-collapse: separate;
    //border-spacing: 2px;
}

.afical-widget th {
    text-align: center;
    vertical-align: middle;
    text-transform: capitalize;
    background-color: #2e2e2f;
    height: 20px;    
}

.afical-widget td {
    height: 25px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #474748;
}

.afical-widget tbody a {
    color: white;
    text-decoration: none;
}

.afical-widget caption {
    text-align: center;
    background-color: #1b1b1c;
}

.afical-prev {
    float: left;
    padding-left: 7px;
}

.afical-next {
    float: right;
    padding-right: 7px;
}

/* TODAY */
.afical-today {
    background-color: #6f6f6f;
}

/* PREV MONTH */
.afical-widget .afical-prevmonth {
    color: #646468;
}

.afical-widget .afical-prevmonth a {
    color: #646468;
}

/* NEXT MONTH */
.afical-widget .afical-nextmonth {
    color: #646468;
}

.afical-widget .afical-nextmonth a {
    color: #646468;
}

/* EVENTFUL PERUS */
.afical-widget .eventful {
    border: 1px dotted #9b6423;
}

.afical-widget .eventful a {
    color: #e8a226;
}

/* Viikkopeli */
.afical-widget .Viikkopeli {
    border: 1px solid #2494ff;
}

.afical-widget .Viikkopeli a {
    color: #2494ff;
}

/* Tapahtuma */
.afical-widget .Tapahtuma {
    background-color: #0c2e4e;
    border: 1px solid #2494ff;
}

.afical-widget .Tapahtuma a {
    color: #2494ff;  
}

/* Popover */
.afical-popover {
    max-width: 100px;
    background-color: #1b1b1c;
    border: 1px solid black;
}

.popover .arrow::after {
    border-right-color: #1b1b1c !important;
}

#afi-play-button {
    text-align: center;
}

#afi-play-button button {
    margin-top: 15px;
    background-color: rgba(0, 84, 166, 0.4);
    border: none;
    font-size: 15px;
    height: 30px;
    width: 115px;
}

#afi-play-button button:hover {
    color: #E8A226;
}
