@import 'variables.css';

/*------------------------------------------------*/

body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    line-height: 150%;
    margin: 0px;
    padding: 0px;
    top: 0px;
    text-align: left;
    height: 100%;
    color: var(--b-text);
    background-color: #F0F0F0;
}

html {
    height: 100%;
}

/*------------------------------------------------*/

.box {
    position: relative;
    width: 100%;
}

.box-content {
    box-sizing: border-box;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/*------------------------------------------------*/

#bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#bg div {
    width: 100%;
    height: 450px;
    background-image: url("/images/graphics/header_bg.jpg");
    background-size: cover;
    background-position: center 67%;
}

#header {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

#logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--b-text);
}

#logo img {
    height: 70px;
}

#logo h2 {
    line-height: 1;
    font-size: 29px;
    display: flex;
    flex-direction: column;
    margin: 0 0 0 20px;
}

#logo h2 span {
    font-weight: 300;
    margin-bottom: 7px;
}

#content {
    min-height: calc(100vh - 520px);
}

#content.with-nav {
    min-height: calc(100vh - 300px);
}

#vertical-nav, #content-box {
    box-sizing: border-box;
    background-color: white;
    border-radius: 3px;
    margin-top: 220px;
    padding: 30px 50px;
}

#content-box {
    min-height: 200px;
}

#vertical-nav {
    width: 200px;
    padding: 30px 25px;
}

#content.with-nav #content-box {
    width: calc(100% - 220px);
}

#content.with-nav .box-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#footer {
    background-color: var(--b-blue);
    color: white;
    margin-top: 30px;
}

#footer .box-content {
    padding: 20px 0;
}

#footer * {
    text-align: center;
    color: white;
}

/*------------------------------------------------*/

.show-nav {
    display: none;
    background-color: white;
    color: var(--b-blue);
    border-radius: 3px;
    padding: 15px;
    margin-right: 0px;
    font-size: 25px;
    margin-left: 30px;
}

.main-nav {
    background-color: rgba(42, 42, 42, 0.7);
    border-radius: 3px;
    margin: 0;
    padding: 0 20px;
}

.main-nav li {
    display: inline-block;
}

.main-nav li:nth-of-type {
    border-left: none;
}

.main-nav li:last-of-type {
    border-right: none;
}

.main-nav a {
    font-family: 'Josefin Sans', sans-serif;
    padding: 13px 20px 9px 20px;
    display: block;
    text-decoration: none;
    font-weight: bold;
    color: white !important;
    font-size: 16px;
    transition: 0.5s;
}

.main-nav li:hover a, .main-nav li.active a {
    color: #87e4ff !important;
}

/*.main-nav li:last-of-type a, .main-nav li:nth-last-of-type(2) a {
    padding-right: 0px;

    font-family: 'Font Awesome 5 Brands';
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}


.main-nav li:last-of-type a:before {
    content: "\f16d";
}

.main-nav li:nth-last-of-type(2) a:before {
    content: "\f39e";
}*/

.vertical-nav {
    padding: 0;
    list-style-type: none;
}

.vertical-nav li a{
    text-decoration:  none;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    font-weight: bold;
}

.vertical-nav li.active a {
    color: var(--b-blue)
}

/*----------------------------------------------------------------------*/

#news {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#news .item {
    box-sizing: border-box;
    width: calc(50% - 10px);
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 3px;
    border: 1px solid rgba(0,92,255,.4);
    text-decoration: none;
    transition: 0.5s;
}

#news .item:hover {
    border-color: var(--b-blue);
    color: var(--b-text) !important;
}

#news .item h3 {
    padding: 10px 0 10px 0;
    margin: 0;
}

#news .item div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#news .item div span {
    display: inline-block;
}

#news .item .date {
    font-weight: 300;
}

#news .item .tag {
    padding: 1px 10px;
    margin-left: 15px;
    border-radius: 3px;
    color: white;
    background-color: #8C8C8C;
}

#news .item .tag_1 {
    background-color: #FF0015;
}

#news .item .tag_2 {
    background-color: var(--b-blue);
}

#news .item .tag_3 {
    background-color: #3AA600;
}

#news .item .link {
    color: var(--b-blue);
    text-decoration: underline;
}

#news .item:hover .link {
    text-decoration: none;
}

/*----------------------------------------------------------------------*/

h1 {
    font-size: 30px;
    display: inline-block;
    padding: 10px 30px 15px 0;
    border-bottom: 3px solid var(--b-blue);
}

h2 {
    font-size: 25px;
}

h3 {
    font-size: 18px;
}

a, a:visited {
    color: var(--b-text);
}

a:hover {
    color: var(--b-blue);
}

ul {
    padding-left: 10px;
}

ul li{
    list-style-type: none;
}

#content-box ul li:before {
    content: '';
    display: inline-block;
    margin-bottom: 2px;
    background-color: var(--b-blue);
    width: 5px;
    height: 5px;
    margin-right: 10px;
    border-radius: 50%;
}

@media screen and (max-width: 780px) {
    #vertical-nav, #content-box {
        padding: 30px 25px;
    }

    #news .item {
        width: 100%;
    }
}
