:root {
    --orval-brown: #2c1505;
    --orval-green: #2b5337;
    --orval-orange: #ea6d41;
    --orval-purple: #a090ae;
    --orval-gold: #e3c78e;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-color: var(--orval-brown);
}

a,
a:visited {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    text-decoration: dashed underline;
}

footer {
    padding: 10px;
    text-align: right;
}

span.nobreak {
    white-space: nowrap;
}

main.home {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 50% 50%;
}

header {
    background: url('../img/orval-in-dorval-head.jpg') no-repeat center bottom;
    background-size: cover;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--orval-gold);
    ;
    text-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.7);
}

header h1 {
    font-size: clamp(2rem, 8vw, 6rem);
    max-width: 100%;
    text-align: center;
    margin: 0;
}

.text {
    font-size: 1.5rem;
    padding: 2ch;
    text-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 1);
    text-align: center;
    color: var(--orval-gold);
    align-content: center;
}
.text li {
    text-align: left;
}

.text-big {
    font-size: 2.5rem;
    padding-left: 10rem;
    padding-right: 10rem;
}

.text-bigger {
    font-size: 3rem;
}

.wide {
    grid-column: 1 / -1;
}

.wide img {
    width: 100%;
}

.green-orange {
    background: var(--orval-green);
    color: var(--orval-orange);
    text-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.25);
}

.brown-gold {
    background: var(--orval-gold);
    color: var(--orval-brown);
    text-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.25);
}

.logo {
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 30px;
}
.logo img {
    width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.video-glasses {
    grid-row: span 3;
}

.video-glasses video {
    display: block;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    height: 100%;
}

img.full-glasses {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 400px;
    display: block;
}

.inline-image img {
    width: 100%;
}

img.caps {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 300px;
    display: block;
}

img.kitchen,
img.table {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

img.crate {
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 350px;
    display: block;
}

#resultsPane {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    background-color: white;
    padding: 1rem;
}

.legend {
    grid-column: span 1;
    width: 100%;
    height: 50px;
}

div.chartOverall {
    grid-column: span 1;
    height: 300px;
}

.vintages {
    height: 200px;
    width: 100%;
    position: relative;
}

.traits {
    display: grid;
    grid-template-columns: 5em 1fr;
    padding: 2rem;

}
.traitYear {
    margin-bottom: 2px;
    padding: 0.5rem 2rem 0.5rem 2rem;
    border-radius: 2rem 0 0 2rem;
    display: block;
    background: linear-gradient(
        to right,
        #ccc 95%,
        #999 100%
    );
}

input#year2023:checked~div>label[for="year2023"],
input#year2022:checked~div>label[for="year2022"],
input#year2021:checked~div>label[for="year2021"],
input#year2020:checked~div>label[for="year2020"],
input#year2019:checked~div>label[for="year2019"],
input#year2018:checked~div>label[for="year2018"],
input#year2017:checked~div>label[for="year2017"],
input#year2016:checked~div>label[for="year2016"],
input#year2015:checked~div>label[for="year2015"],
input#year2014:checked~div>label[for="year2014"],
input#year2013:checked~div>label[for="year2013"],
input#year2012:checked~div>label[for="year2012"],
input#year2011:checked~div>label[for="year2011"],
input#year2010:checked~div>label[for="year2010"] {
    background: #fff;
}

input.year {
    display: none;
}

.trait {
    background-color: #fff;
    border-radius: 0 2rem 2rem 2rem;
    padding: 2rem;
    display: none;
    grid-template-columns: 50% 50%;
    max-height: 50rem;
}

input#year2023:checked~#trait2023,
input#year2022:checked~#trait2022,
input#year2021:checked~#trait2021,
input#year2020:checked~#trait2020,
input#year2019:checked~#trait2019,
input#year2018:checked~#trait2018,
input#year2017:checked~#trait2017,
input#year2016:checked~#trait2016,
input#year2015:checked~#trait2015,
input#year2014:checked~#trait2014,
input#year2013:checked~#trait2013,
input#year2012:checked~#trait2012,
input#year2011:checked~#trait2011,
input#year2010:checked~#trait2010 {
    display: grid;
}
    
.traitBottle {
    background-color: #fff;
    padding: 1.5rem;
}

.traitChart {
    max-height: 50rem;
}

.bottle dl {
    display: grid;
    grid-template-columns: 8em 1fr;
}

.bottle dl dt {
    text-align: right;
}

dd.vintage,
dt.vintage {
    font-size: 2em;
    font-weight: bold;
}

.bottle img {
    display: block;
    margin-right: 2em;
    width: calc(100% - 3em);
    max-height: 400px;
    object-fit: cover;
    border-radius: 1em;
}

canvas.traitChart {
    width: 500px;
    height: 500px;
}

@media screen and (max-width: 700px) {
    main.home {
        grid-template-columns: 100%;
    }
    
    .text-big {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .video-glasses video {
        width: 100%;
    }

    .legend {
        text-align: center;
        align-content: center;
        width: 90%;
        height: 150px;
    }

    canvas {
        width: 100%;
    }

    canvas.traitChart {
        width: 100%;
    }    

    div.traitYearColumn {
        display: none;
    }
    .traits {
        grid-template-columns: 100%;
    }

    .trait {
        display: grid;
        border-radius: 2rem;
        margin: 0;
        padding: 1rem;
        width: 1fr;
        grid-template-columns: 90%;
        max-height: 100rem;
        margin-bottom: 2rem;
    }
    
    .bottle img {
        width: 100%;
    }

    .video-glasses {
        display: none;
    }
}
