﻿p {
    font-size: 12pt;
}

hr {
    margin: 25px 0;
}

.outer {
    display: grid;
    grid-template-columns: 105px 1fr;
}

.years {
    font-size: 10.5pt;
    display: flex;
    flex-flow: row wrap;
    column-gap: 10px;
    row-gap: 3px;
    align-content: flex-start;
}

.years a {
    border: 1px solid #ffffff;
    color: #800000;
    padding: 2px 4px;
}

    .years a:hover {
        border: 1px solid #123456;
        border-radius: 5px;
        text-decoration: none;
        background-color: #ffffc0;
        box-shadow: var(--xBoxShadow);
    }

    .years a.selected {
        font-size: 30px;
        color: green;
        font-weight: bold;
    }

    .years a.selected:hover {
        background-color: #ffffff;
    }

.calendar {
    display: grid;
    column-gap: 22px;
    row-gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(215px, auto));
    justify-content: center;
}

.calmonth {
    width: 216px;
    border: 1px solid #606060;
    background-color: #f5f5f5;
    border-spacing: 0;
    box-shadow: 2px 2px 3px rgba(0,0,0,.2);
    font-size: 12px;
}

.calmonth td, table.calmonth th {
    padding: 2px;
    text-align: center;
}

.calmonth caption {
    text-align: right;
    caption-side: bottom;
}

.calmonth caption a {
    font-size: 7pt;
    vertical-align: top;
    margin-right: 1px;
}

.calmonth caption a:hover {
    color: #cc0000;
}

.caltitle {
    font-weight: bold;
    color: black;
    background-color: #d3d3d3;
}

.nyttitle {
    background-color: cyan;
}

.pstitle {
    color: white;
    background-color: #660000;
}

.psstitle {
    color: white;
    background-color: chocolate;
}

p.xinfo {
    font-weight: bold;
    margin-top: 16px;
}

@media (max-width: 650px) {
    .outer {
        grid-template-columns: 50px 1fr;
    }

    .years {
        font-size: 10pt;
        display: grid;
        column-gap: 12px;
        row-gap: 3px;
        align-content: flex-start;
    }

    .years a.selected {
        font-size: 13pt;
        color: green;
        font-weight: bold;
    }

    .calendar {
        margin-left: 12px;
        row-gap: 10px;
    }
}