@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(/fonts/playfair-display-v13-latin-regular.woff2) format('woff2'), url(/fonts/playfair-display-v13-latin-regular.woff) format('woff')
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    src: local('Playfair Display Italic'), local('PlayfairDisplay-Italic'), url(/fonts/playfair-display-v13-latin-italic.woff2) format('woff2'), url(/fonts/playfair-display-v13-latin-italic.woff) format('woff')
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 900;
    src: local('Playfair Display Black'), local('PlayfairDisplay-Black'), url(/fonts/playfair-display-v13-latin-900.woff2) format('woff2'), url(/fonts/playfair-display-v13-latin-900.woff) format('woff')
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 900;
    src: local('Playfair Display #000 Italic'), local('PlayfairDisplay-BlackItalic'), url(/fonts/playfair-display-v13-latin-900italic.woff2) format('woff2'), url(/fonts/playfair-display-v13-latin-900italic.woff) format('woff')
}

* {
    margin: 0;
    padding: 0
}

body {
    background: #fff;
    color: rgba(0, 0, 0, 0.87);
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6rem;
    text-rendering: optimizeLegibility;
}

h1 {
    font-style: italic;
    margin: 1rem auto;
}

nav {
    text-align: left;
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 2rem;
}

nav ul {
    list-style-type: none;
}

nav li {
    display: inline-block;
}

nav li::after {
    content: " |";
    font-weight: normal;
    color: rgba(0, 0, 0, .5);
}

nav li:last-child::after {
    content: "";
}

li.active a {
    font-weight: bold;
}

nav a:link,
nav a:visited {
    color: #ff5252;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 82, 82, 0);
    transition: .6s all;
}

nav a:hover,
nav a:active {
    border-bottom: 1px solid rgba(255, 82, 82, 1);
    transition: .3s all;
    cursor: not-allowed;
}

nav .active a:hover,
nav .active a:active {
    border-bottom: 1px solid rgba(255, 82, 82, 0);
    cursor: default;
}

nav li span {
    color: rgba(0, 0, 0, .45);
    font-size: .8em;
}

table {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .33);
    border-left: none;
    border-right: none;
    cursor: default;
}

tr {
    transition: background-color .3s;
}

tr.filtered {
    display:none;
}

tr:hover {
    transition: none;
}

th,
td {
    text-align: left;
    padding: 3px 5px;
    vertical-align: top;
}

th {
    font-style: italic;
    font-weight: normal;
    outline:none;
    cursor:pointer;
}

table a:link,
table a:visited {
    color: rgba(0, 0, 0, .87);
    text-decoration: none;
}

table a:hover,
table a:active {
    color: #ff5252;
    text-decoration: underline;
}

table a:hover::after {
    content: "↗";
    position: absolute;
}

.col-not-sm {
    display: none;
}

.portraitnotice {
    display: none;
}

.flag {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%)
}

tr:hover .flag {
    -webkit-filter: grayscale(0%);
    -moz-filter: grayscale(0%);
    -ms-filter: grayscale(0%);
    -o-filter: grayscale(0%);
    filter: grayscale(0%)
}

.wine-name {
    font-weight: bold;
}

.td-year {
    text-align: right;
}

.wrap {
    margin: 1rem auto;
    width: 95%;
}

.wrap.collapsed {
    max-width: 800px;
}

tfoot td {
    text-align: center;
    color: rgba(0, 0, 0, .33);
}

tbody tr:hover {
    background: rgba(0, 0, 0, .1);
}

.outof {
    text-decoration: line-through;
    opacity: .2;
}

.functions {
    display:table;
    width:100%;
    padding:7px 5px;
}

.filters {
    display:table-cell;
    text-align:left;
    opacity:.2;
}

.filters:hover {
    opacity:1;
}

.filters a:link,
.filters a:visited {
    display: inline-block;
    padding:4px 3px 1px;
    background:rgba(0, 0, 0, .1);
    color:rgba(0, 0, 0, .5);
    text-decoration:none;
    font-family:sans-serif;
    font-size:.8rem;
    text-transform: uppercase;
    letter-spacing:1px;
    height:1rem;
    line-height:1rem;
    border-radius:3px;
    transition: color .1s, background .3s;
}

.filters a:hover,
.filters a:active {
    color:#fff;
    background:#ff5252;
    transition: color .1s, background .2s;
}

.switch {
    display:table-cell;
    vertical-align:bottom;
}

.switch a:link,
.switch a:visited {
    color: #000;
    opacity: 0.2;
    text-decoration: none;
}

.switch a:hover,
.switch a:active {
    opacity: 1;
}

@media (max-width:450px) {

    .switch,
    .col-flag {
        display: none;
    }

    nav {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
}

@media (min-width:450.00001px) {
    .inline-flag {
        display: none;
    }
}

@media (min-width:500px) {
    .col-not-sm {
        display: table-cell;
    }

    .badge {
        height: 15px;
    }

}

@media (orientation: portrait) and (max-width:500px) {

    body {
        padding-bottom: 4rem;
    }

    .portraitnotice {
        display: block;
        width: 100%;
        position: fixed;
        bottom: 0;
        background: #ff5252;
        padding: 1rem 0;
        left: 0;
        color: #fff;
        font-style: italic;
    }

    .portraitnotice p {
        margin: 0 1rem;
    }

}