/* Personal CSS file for future projects
   Start off with some good classes for responsiveness */
/* Cardinal Red: #8C1515 */

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.container {
    margin: 0 auto;
    max-width: 80rem;
    width: 70%;
}

/* Disable columns at 640px */
@media (min-width: 640px) {
    .column {
        padding: 0.5rem;
    }
    .column.half {
        width: 50%;
    }
    .column.quarter {
        width: 25%;
    }
    .column.threeq {
        width: 75%;
    }
    .column.full {
        width: 100%;
    }
    .column.third {
        width: 33%;
    }

    div.puzzleBox {
        margin: 0.1em;
        padding: 0.1em;
    }
}
.column.rest {
    overflow: hidden;
    float: none;
}

/* For mobile views */
.column {
    width: 100%;
}

.row:before, .row:after {
    content: " ";
    display: table;
}

.row:after {
    clear: both;
}

.row {
    margin: 0px;
    padding: 0px;
    *zoom: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Remaining */

body {
    font-family: sans-serif;
    font-size: 18px;
    color: #444444;
    background-color: white;
    line-height: 140%;
}

a {
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

a:link, a:visited {
    color: #8C1515; /* All about that cardinal red */
    text-decoration: none;
}

a:hover, a:active, a:focus {
    color: #AC5555;
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    line-height: 1.1em;
}

p {
    line-height: 1.1em;
}

div.puzzleBox {
    border: 2px solid #4D4F53;
    margin: 0.2em;
    padding: 0.5em;
    cursor: pointer;
    background-color: #DDDDDD;
}

div.puzzleBox.puzzleBoxSelected {
    background-color: #CCAAAA;
}

div.puzzleBox p {
    margin: 0.5em;
}

a.puzzle_button {
    /* Meh */
}

a:link.puzzle_button,
a:visited.puzzle_button {
    text-decoration: none;
}

a:hover.puzzle_button,
a:active.puzzle_button,
a:focus.puzzle_button {
    text-decoration: none;
    background-color: #DDDDDD;
}

/* Useful classes */
.center {
    text-align: center;
}

td {
    padding-right: 10px;
}

/* Animations are sick */
* {
    -webkit-transition: 0.3s;
    transition: 0.3s;
}