@font-face{
    font-family: michalFont;
    src: url(MichalFont.ttf);
}

body, html {
    margin: 0;
    height: 100%;
    width: 100%;
    font-family: "Arial";
}

ol{
	margin-bottom: 30px;
}

li{
	margin-bottom: 20px;
}

.panel.header h1, h1,
.panel.header h2, h2, 
.panel.header h3, 
.panel.header h4, .black a, a.menu-item, a.related-link, .info-description{
    font-family: michalFont;
    word-spacing: 10px;
    letter-spacing: 2px;
}

p{
    margin-bottom: 45px;
    line-height: 1.5em;
}

.hidden {
    display: none;
}

.inline{
    width: 80%;
    margin:auto;
}

p.small{
    font-size: 14px;
}

.main-container {
    min-height: 100%;
}

@media screen and (min-width: 480px) {
    .panel.header{
        background: url(title.png) black;
        color: white;
        background-repeat: no-repeat;
        background-position: right;
        background-size: contain;
    }
}

.quote{
    margin-bottom: 40px;
    display: block;
	margin-left: 40px;
    margin-right: 40px;
    font-style: italic;
}

.footer {
    position: relative;
    margin-top: -140px;
    width: 100%;
    height: 140px;
    background: black;
    color: white;
    font-size: 13px;
    overflow: hidden;
}

.footer a{
    margin: 10px;
}

a{
    text-decoration: none;
}

iframe{
    margin: 10px;
}

.panel {
    width: 100%;
    min-height: 100px;
    display: inline-block;
}

.black{
    background: black;
    color: white;
}

.black a{
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.white{
    color: black;
    font-size: 20px;
    font-weight: 800;
}

.push {
    height: 140px;
    clear: both;
    margin-top: 40px;
}

.panel-box {
    margin: auto;
    max-width: 1000px;
    padding: 20px;
}

.newline {
    clear: both;
    display:block;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes webkitfadein {
    0%   {-webkit-filter: blur(10px)}
    100% {-webkit-filter: blur(0)}
}

/* Standard syntax */
@keyframes fadein {
    0%   {filter: blur(10px)}
    100% {filter: blur(0)}
}

body{

}

.text{
    font-weight: 300;
    font-size: 20px;
}

.panel-content{
    margin: 30px 0;
    text-align: justify;
}

.related-links{
    margin: 30px 0;
}

.related-links-title{
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 100;
    border-radius: 8px 8px 0 0;
}

.related-links-content{
    border-top: 5px black solid;
    padding: 10px 0;
}

.related-link{
        box-sizing: border-box;
        min-height: 20px;
        display: block;
        cursor: pointer;
        filter: grayscale(80%);
        -webkit-filter: grayscale(80%);
        margin-bottom: 10px;
}

.related-link:hover{
    filter: brightness(120%);
    -webkit-filter: brightness(120%);
    filter: grayscale(0);
    -webkit-filter: grayscale(0);
}

.related-link img{
    width: 10%;
    vertical-align: middle;
}

.related-link span{
    width: 80%;
    max-width: 80%;
    font-size: 15px;
    font-weight: 100;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
}

@media screen and (min-width: 500px){
    .related-link{
        width: 50%;
        padding-top: 60%;
        float: left;
        position: relative;
    }

    .related-link img{
        width: 95%;
        height: auto;
        top: 0;
        left: 0;
        position: absolute;
    }

    .related-link span{
        position: absolute;
        bottom: 0;
        left: 0;
        height: 15%;
        width: 95%;
        max-width: 95%;
    }
}

@media screen and (min-width: 600px){
    .related-link{
        width: 25%;
        padding-top: 30%;
    }
}

.info-panel{
    padding: 30px;
    text-align: justify;
}

.info-pic{
    width: 200px;
    border-radius: 100px;
    margin: 10px auto;
    display:block;
}

.info-description{
    width: 100%;
}

@media screen and (min-width: 650px){
    .info-pic{
        width: 20%;
        float: left;
        margin: 0;
    }

    .info-description{
        width: 80%;
        float:left;
        padding: 45px;
        box-sizing: border-box;
        font-size: 20px;
    }
}

.menu-item{
    position: relative;
    display: block;
}

.menu-item img{
    width: 100%;
    -webkit-filter: brightness(50%) blur(2px) grayscale(80%);
    filter: brightness(50%) blur(2px) grayscale(80%);
}

.menu-item.menu-item-clear img{
    width: 100%;
    -webkit-filter: brightness(95%) grayscale(10%);
    filter: brightness(95%) grayscale(10%);
}

.menu-item.menu-item-clear:hover img{
    width: 100%;
    -webkit-filter: brightness(100%) grayscale(0%);
    filter: brightness(100%) grayscale(0%);
}

.menu-item:hover img{
    -webkit-filter: brightness(60%) blur(2px) grayscale(30%);
    filter: brightness(60%) blur(2px) grayscale(30%);    
}

.menu-item .menu-item-title{
    color: white;
    margin: auto;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    height: 1em;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    text-shadow: 0 0 5px black;
}

.menu-item .menu-item-title i{
    font-size: 14px;
    font-style: normal;
    color: #d6b579;
}

.doubledesc{
    display:inline-block;
    vertical-align: top;
    font-weight: 200;
}

@media screen and (min-width: 600px){
    .menu-item{
        width: 45%;
        margin: 5px;
        display: inline-block;
        vertical-align: middle;
    }

    .menu-item-title{
        top: -100px !important;
    }

    .doubledesc{
        width:50%;
    }

    /*.menu-item{
        margin: 10px 0;
        background: #eeeeee;
        padding: 10px;
        border-radius: 0 300px 300px 0;
    }

    .menu-item:hover{
        background: #e8e8e8;
    }

    .menu-item img{
        width: 20%;
        float: left;
        -webkit-filter: grayscale(80%);
        filter: grayscale(80%);
    }

    .menu-item:hover img{
        -webkit-filter: brightness(110%);
        filter: brightness(110%);
    }

    .menu-item .menu-item-title{
        width: 80%;
        float: left;
        padding: 20px;
        box-sizing: border-box;
        position: relative;
        text-align: left;
        color:black;
    }*/
}

@media screen and (min-width: 700px){
    .menu-item-title{
        top: 0 !important;
    }
}

@media screen and (min-width: 1000px){
    .menu-item{
        width: 31%;
    }

    .doubledesc{
        width:60%;
    }
}

.MathJax{
    vertical-align: middle;
    font-size: 16px;
}

.small-img{
    width: 30%;
    max-width: 200px;
    border-radius: 200px;
    border: black solid 3px;
    display:block;
}

.wide-img{
    width: 100%;
}

.color-red{
    color: red;
}

.color-green{
    color: green;
}

.color-blue{
    color: blue;
}

.illuminated-letter{
    height: 53px;
    font-size: 80px;
    line-height: 80px;
    box-sizing: border-box;
    margin: 0 5px 2px 0;
    display: inline-block;
    vertical-align: baseline;
    float: left;
    font-family: michalFont;
}

.left-image-wrap{
    max-width: 300px;
    margin: 7px 20px 20px 0;
    float: left;
    display: inline-block;
    border-radius: 4px;
}

.right-image-wrap{
    max-width: 300px;
    margin: 7px 0px 20px 20px;
    float: right;
    display: inline-block;
    border-radius: 4px;

}

@media screen and (max-width: 600px) {
    .left-image-wrap, .right-image-wrap{
        max-width: 100%;
        margin: auto;
        display: block;
        float: none;
    }
}

