/**
 * Slimak Technical Style CSS
 *
 * @author   Konrad Talik
 * @license  GPLv3
 */

/**
 * Navigator
 *
 * Navigator is divided to two parts:
 * * main (left) navigator,
 * * side (right) navigator.
 *
 * Whole horizontal area of navigator is divided as follows:
 *
 * 10% - left margin,
 * 50% - main navigator contents,
 * 30% - side navigator contents,
 * 10% - right margin,
 *
 * where % means percents of the screen width of the browser window.
 */

/*
 * Imports
 */

@font-face {
    font-family: "Free Sans";
    src: url("https://www.slimak.matinf.uj.edu.pl/theme/font/FreeSans.woff") format("woff"),
         url("https://www.slimak.matinf.uj.edu.pl/theme/font/FreeSans.ttf") format("truetype");
}


/*
 * Visual properties
 */

html {
    font-size: 70%;
}

body {
    font-family: "Free Sans", helvetica, sans;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

a.inverted {
    font-weight: bold;
}

p {
    transition: all 1s ease;
}


/*
 * Technical classes
 */

.brick {
    padding-top: 100px; padding-top: 10rem;
    padding-bottom: 100px; padding-bottom: 10rem;

    font-size: 15px; font-size: 1.5rem;
    text-align: center;

    background-attachment: fixed;
    background-position: center;
    background-size: 100%;
}

article {
    text-align: left;
    text-align: justify;
	box-shadow: 0px 0px 0.5em 0px;
	padding: 5%;
    margin-right: 2%;
    margin-left: 2%;
    overflow: hidden;
}

@media(min-width: 800px) {

    article {
        margin-right: 15%;
        margin-left: 15%;
    }

}

article h1 {
    font-size: xx-large;
}

article h1, h2, h2, h3, h4, h5 {
    text-align: left;
}

article p img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
}

.navigatorwrapper {
    overflow: auto;
    min-height: 50px;
    position: fixed;
    width: 100%;
    font-size: medium;
}

.navigator {
    padding-left: 8%;
    width: 60%;
    float: left;
    text-align: left;
    z-index: 10;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.navigator-mobile-expanded {
    margin-top: 3rem;
    height: 1em;
    padding-left: 8%;
    width: 50%;
    text-align: left;
    display: block;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.navigator-right {
    font-size: small;
    padding-right: 8%;
    width: 20%;
    float: right;
    text-align: right;
    z-index: 9;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (max-width: 47.999em) {

    .navigator {
        display: none;
    }

    .navigator-right {
        width: 100%;
        padding-right: 0;
        text-align: center;
        position: absolute;
        top: 0;
    }

}

.navigator a,
.navigator-right a {
    vertical-align: center;
    padding: 2px 10px 2px 10px;
    display: inline-block;
}

.navigator-mobile-expanded a {
    padding: 5px 10px 5px 10px;
    display: list-item;
    list-style: none;
}

.navigator a.active,
.navigator-mobile-expanded a.active {
    border-radius: 5px;
}

icon {
    color: white;
    font-size: large;
    text-shadow: 1px 1px 1px #111;

    background-color: rgba(255, 255, 255, 0.25);
    display: inline-block;
    width: 40px; width: 4rem;
    height: 40px; height: 4rem;
    border-radius: 50%;

    line-height: 40px; line-height: 4rem;
    text-align: center;
    margin-right: 5px; margin-right: 0.5rem;
    margin-left: 10px; margin-left: 1rem;
}

.categories {
    text-align: left;
    padding-left: 10%;
}

blockquote {
    border-width: 0px;
    border-left: 2px;
    padding: 5px 20px;
    border-style: solid;
}

/* Height manipulations */

.expandedtop {
    padding-top: 20%;
}

.compressed {
    padding-top: 50px; padding-top: 5rem;
    padding-bottom: 50px; padding-bottom: 5rem;
}

.verycompressed {
    padding-top: 12.5px; padding-top: 1.25rem;
    padding-bottom: 12.5px; padding-bottom: 1.25rem;
}

.barsize {
    padding-top: 12.5px; padding-top: 1.25rem;
    padding-bottom: 12.5px; padding-bottom: 1.25rem;
    min-height: 19px;
    max-height: 19px;
}

/* Specific divs */

.banner {
    vertical-align: middle;
    padding: 2.5% 5%;
}

.banner h1 {
    margin: 10px;
}

.note {
    font-weight: normal;
    padding-top: 5px; padding-top: 0.5rem;
    padding-bottom: 5px; padding-bottom: 0.5rem;
}

.description {
    vertical-align: top;
}

.rightball {
    margin-left: 50%;
    border-radius: 50%;
    text-align: right;
}

.leftball {
    margin-right: 50%;
    border-radius: 50%;
    text-align: left;
}

.img-member {
    margin: 20px;
    height: 100px;
}

.highlight {
    margin-right: 5%;
    
    border-radius: 10px;
    padding: 10px;

    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
}

code {
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    padding: 2px;
}

/* Location-dependent */

.brick hr {
    margin: 25px 35%;
    height: 3px;
}

div.wrapper {
}

div.container {
}

div.item {
    padding-top: 25px; padding-top: 2.5rem;
    padding-bottom: 25px; padding-bottom: 2.5rem;
    vertical-align: top;
    width: auto;
}

/* ID-dependent */

#header .container .item {
    vertical-align: middle;
}

#dzialalnosc .row {
    border-radius: 10px;
    padding: 0px;
    margin: 5%;
    /* Scroll background while scrolling a page */
    background-attachment: scroll;
    /* Cover width and height of the div with the image */
    background-size: cover;
    /* Webkit speeds-up performance in some browsers */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    /* Default position will be overwritten in most cases */
    background-position: 50% 50%;
}

#dzialalnosc .row p {
    border-radius: inherit;
    padding: 125px 50px;
}

#footer {
    padding: 50px;
}

#footer pre, #footer p {
    margin: 25px;
    font-size: small;
}

#title .published,
#title address {
    font-size: small;
}

#title {
    /* Scroll background while scrolling a page */
    background-attachment: scroll;
    /* Cover width and height of the div with the image */
    background-size: cover;
    /* Webkit speeds-up performance in some browsers */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    /* Default position will be overwritten in most cases */
    background-position: 50% 50%;
}

#title .row {
    padding: 0px;
    margin: 5% 0;
    margin-bottom: 0;
}

#title #meta {
    text-align: right;
    font-size: x-small;
    margin-right: 5%;
}
