﻿@import url('https://fonts.googleapis.com/css?family=Droid+Sans|Playfair+Display|Raleway');

body {
    display: block;
    background-color: #F5F5F5;
    padding: 0;
    margin: 0;
}



/* Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 39px;
    background-color: #424242;
    border-bottom: 1px solid #616161;
}
header h1 {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.5em;
    width: 140px;
    margin: 0;
    margin-left: calc(50% - 70px);
    margin-top: 4px;
    text-align: center;
    color: white;
}
header a {
    float: right;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1em;
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease-out;
    margin: 9px 30px 0 0;
}
header a:hover {
    cursor: default;
    color: #1565C0;
}



/* Boxes */
.boxMain {
    display: flex;
    margin: 0;
    margin-top: 41px;
    width: 100%;
    flex-flow: row wrap;
    justify-content: center;
}
.boxMain div {
    width: 300px;
    height: 400px;
    padding: 10px;
    margin: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 5px 12px 6px #E0E0E0;
    overflow: hidden;
}

/* Box types */
.boxMain .listBox {
    background-color: #1E88E5;
}
.boxMain .listBox h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    text-align: center;
    color: white;
    font-size: 1.5em;
    transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
}
.boxMain .listBox ul {
    background-color: #2196F3;
    list-style: none;
    border-radius: 5px;
    padding: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.boxMain .listBox li {

}
.boxMain .listBox a {
    display: block;
    padding: 3px 11px;
    text-decoration: none;
    transition: background-color 0.3s ease-out;
}
.boxMain .listBox a:hover {
    background-color: #1E88E5;
    cursor: default;
}
.boxMain .listBox a p {
    margin: 3px 0;
}
.boxMain .listBox a p:first-child {
    font-family: 'Droid Sans', sans-serif;
    font-size: 1.1em;
    color: white;
}
.boxMain .listBox a p:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 0.8em;
    color: #BDBDBD;
}

/* Custom boxes */
.purpleListBox {
    background-color: #5E35B1 !important;
}
.purpleListBox ul {
    background-color: #673AB7 !important;
}
.purpleListBox a:hover {
    background-color: #5E35B1 !important;
}

.redListBox {
    background-color: #E53935 !important;
}
.redListBox ul {
    background-color: #F44336 !important;
}
.redListBox a:hover {
    background-color: #E53935 !important;
}

.tealListBox {
    background-color: #00897B !important;
}
.tealListBox ul {
    background-color: #009688 !important;
}
.tealListBox a:hover {
    background-color: #00897B !important;
}

.blueListBox {
    background-color: #2962FF !important;
}
.blueListBox ul {
    background-color: #3167fc !important;
}
.blueListBox a:hover {
    background-color: #2962FF !important;
}


@media (max-width: 600px){
    .boxMain {
        width: 100%;
        margin: 0 auto;
        margin-top: 60px;
    }
    .boxMain div {
        width: 100%;
    }
}

@media (max-width: 360px){
    .boxMain {
        width: 100%;
    }
    .boxMain div {
        width: 100%;
    }
    .boxMain .listBox a p:first-child {
        font-family: 'Raleway', sans-serif;
        font-size: 1.0em;
        color: #F5F5F5;
    }
    .boxMain .listBox a p:last-child {
        font-family: 'Playfair Display', serif;
        font-size: 0.7em;
        color: #BDBDBD;
    }
}