                @charset "UTF-8";

:root{
    --badgeBG: white;
    --badgeFG: black;
}

.hidden{
    opacity: 0;
    pointer-events: none;
}

.none{
    display: none !important;
}

.bold{
    font-weight: 500;
}

.smallCaps{
    font-variant: small-caps;
}

body{
    width: 100vw;
    height: 100vh;
    position: relative;
    display: grid;
    justify-items:center;
    overflow-x: hidden;
    margin: 0;
}

body.wineList{
    font-family: roboto;
    font-size: small;
}

body.datatemplate.summary .detail{
    display: none;
}

body.datatemplate.detail .summary{
    display: none;
}

#thumbnails{
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

#thumbnails img{
    height: 6em;
    width: 6em;
}

#fullPicture{
    width: 90%;
    max-width: 45em;
}

#fullPicture img{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

span.keep{
    white-space: nowrap;
}

span.nokeep{
    white-space: wrap;
}

body.supervisor .supervisor{
    display: none;
}

body.supervisor .banner{
        grid-template-columns: 18vh 10vh 10vh auto 21vh;
}

body.mobile .banner{
    scale: 0.8;
    transform-origin: top;
    width: 120vw;
    margin-left: -10vw;
}

body.participant .scoring {
    display: none;
}

#tasting  *{
    display: block;
    width: auto;
}

.Names{
    width: fit-content;
    width: -webkit-fill-available;
}

.container{
    display:grid;
    position: relative;
    place-content:center;
    width:100vw;
    height:100vh;
    overflow-x:hidden;
    font-size: 3.5vh;
}

.standardButton{
    position: absolute;
    width: 104px;
    height: 56PX;
    opacity: .001;
}

#home{
    left: 74px;
    top: 21px;
}


#login, #enter{
    left: 614px;
    top: 519px;
}

.standardButton:hover{
    border-radius: 13PX;
    opacity: 1;
    background: transparent;
    color: transparent;
    cursor: pointer;
}

.standardButton:hover{
    border: yellow solid 3px;  
}

.standardButton.fdhome:hover {
    border: brown solid 3px;
}

.fdbutton10{
    position: absolute;
    width: 25px;
    height: 70px;
    opacity: .001;
    left: 290px;
    top: 152px;
}

#theWineCollection{
    position: absolute;
    top: 452px;
    left: 71px;
    width: 250px;
    height: 50px;
}

.fdmenu0{
    background: khaki;
}


.data-sheet{
    width: inherit;
    max-width: 100vh;
    font-size: 3.5vh;
    scrollbar-width: none;
    overflow-y: scroll;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 15% auto 10%;
}

.bottle{
    grid-area:b;
    height: 100vh;
}

.map{
    grid-area:b;
    height: 50vh;
}

.banner{
    grid-area:h;
    display:grid;
    grid-template-columns: 18vh 10vh 10vh auto 10vh;
    align-items:start;
    height: 11vh;
}

.banner img{
    height: 8vh;
    border: 1px black solid;
    border-radius: 2vh;
}

.banner button{
    background: transparent;
    border: 0;
    cursor: pointer;
}

.bannerText{
    pointer-events: none;
    grid-column: 1/4;
    display: grid;
    grid-template-columns: max-content 2fr;
    
    & :nth-child(even){
        text-align: right;
    } 
}

.bottleNumber{
    font-size: 7vh;
    margin: 0;
    border: 1px black solid;
    border-radius:15px;
    width: 8.2vh;
    background: var(--badgeBG);
    color:var(--badgeFG);
    text-align:center;
    justify-self: end;
    font-weight:900;
    margin-right: .1em;
}

body.supervisor .bottleNumber{
    width: 20vh;
}

.data{
    grid-area: d;
    font-family: special gothic;
}

.data h1,.data h2{
    line-height: 90%;
    margin: 0em 0 0.4em;
}

.data h1{
    text-align:left;
    font-size: 130%;
    font-family: special gothic;
}

.data h2{
    text-align:left;
    font-size: 110%;
    font-family: special gothic;
}

.data h2 span, .value span{
    display: inline-block;
    margin-right: 0.3em;
}

.Year{
    justify-self: end;
}

body.mobile .Year{
    justify-self: center;
}

body.mobile  .value span{
    margin-right: 0;
}

.expand{
    cursor: pointer;
}

.oldLinks{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    grid-area:l;
    margin-top: 4vh;
    justify-items: center;
}

.oldLinks > *{  
    font-size:xx-large;
}

.oldLinks button, .container button{
    font-size: 83%;
    width: 18vh;
    height: 4vh;
    border-radius: 10px;
}

.links button, #submit{
    font-size: 83%;
    width: 18vh;
    height: 4.2vh;
    border-radius: 12px;
    cursor: pointer;
}

.links{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 0.5em;
}

.separator{
    flex-grow: 1;
    margin: 0;
}

.details{
    display:grid;
    grid-template-columns:1fr 3fr;
    font-size: 90%;
}

#Year{
    justify-self: right;
    margin-right: 1rem;
}

.subject{
    text-align:right;
    font-style:italic;
    font-size:90%;
    font-weight:lighter;
    margin-top: 0;
    margin-bottom: 0;
}

.value{
    font-weight: 500;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    line-height: 1em;
    align-self: end;
    &.wineList:hover{
        background-color:lightblue;
        width: min-content;
    }
}


#bottle{
    overflow: hidden;
    height: 80vh;
}

#map{
    overflow: hidden;
}

#map img{
    width:99%;
    max-width: 28rem;
    pointer-events: none;
}

#bottle img{
    height: inherit;
    pointer-events: none;
}

.Header{
    display:grid;
    grid-template-columns: auto auto;
    grid-column-gap: 0.7em;
    justify-content: center;
    align-items: self-start;
    padding: 0 0.5em 0 1em;
}

.Header.mobile{
    grid-template-columns: auto;
    justify-items: center;
}

.Header.mobile #Year{
    justify-self: center;
    margin-right: 0;
}

.Header.mobile .value{
    margin-top: -0.3rem;
    text-align: center;
    line-height: 3.9vh;
}

.Header.mobile .subject{
    margin: 0;
    margin-top: 0.3rem;
    margin-bottom: 0.1rem;
}

.Header.mobile div *{
    text-align:center;
}


#tastingText{
    width: 70vh;
    font-family: special gothic;
    font-size: 3.5vh;
    max-width: 85vw;
    pointer-events: none;
    &p{
        margin-top: 1;
    }
}

.taster{
    font-variant: small-caps;
    font-weight: bold;
}

#fromFile #tastingText > p:first-of-type::first-letter{
        line-height: 0.9em;
        margin-right:.1em;
        float: left;
        font-size: 2.8em;
}

#selections :is(input, label), button{
    font-size: 1.2rem;
}

dialog{
  
  &::backdrop {
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete,
      background-color .5s;
    background-color: hsl(0 0 0 / 0);
    }

  &[open]::backdrop {
    background-color: hsl(0 0 0 / 20%);
  }
}

dialog {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out,
    overlay 0.5s ease-in-out allow-discrete,
    display 0.5s ease-in-out allow-discrete;

  opacity: 0;
  transform: translateY(10vh);
}


dialog[open]{
  opacity: 1;
  transform: translateY(0);
  font-family: system-ui;
  /* max-width: 38rem; */
  font-size: min(2vw, 1rem);
  /* width: -webkit-fill-available; */
  
  
  
  
  & h4{
    padding: 1rem;
    font-size: 1.2rem;
    margin: 0;
  }
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(-10vh);   
  }

  dialog[open]::backdrop {
    /* opacity: 0; */
    background-color: hsl(0 0 0 / 0);
  }
}

.selectionHolder{
    row-gap: .5em;
    /* width: 78vw; */
    /* max-width: 33em; */
    display: flex;
    justify-items: center;
    column-gap: 1em;
    padding:  0rem .8rem 0.9rem;
    font-size: 1em;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    & div > *{
        font-size: 1.1rem;
        text-align: center;
        /* height: 1.4em; */
    }
}

#baseSelection, #sorting{
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.2rem;
    grid-template-columns: 1fr 1fr 1fr;
    /* justify-items: center; */
    padding: 0 .8rem;
    justify-content: space-between;
    & > div{
        width: 9.5rem;
    }
}

#wineFilters{
    grid-column: 2/4;
    & pre{
        font-family: inherit;
        margin: 0;
    }
}

.arithmetic{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.searchValue{
    flex: 1 0 auto;
}

.textual{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#wineContent{
    width: 90vw;
    max-width: 35em;
}

.spacer{
    height: 3.1rem;
    width: 100%;
    position: fixed;
    background: white;
}

#selections .buttons, #enterPassword .buttons, #admin button{
    padding: 0.3em 0 1em;
    display: flex;
    flex-flow: wrap;
    grid-column: 1/4;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    justify-items: center;
    justify-content: center;
    row-gap: 0.8rem;
    column-gap: .8rem;
    & button{
        width: 8.1em;
        border-radius: 0.4em;
        border: 1px black solid;
        cursor: pointer;
    }
}


#wineSelector{
    position: fixed;
    /* height: 3em; */
    width: 90vw;
    max-width: inherit;
    background-color: #ded6b5;
    border: 1px black solid;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    grid-template-rows: 1.5em 1.5em;
    padding: 0;
    top: 2px;
    & p{
        margin: 0 0 0 1em;
    }
    & button{
        /* width: max-content; */
        background: transparent;
        border: 0;
        justify-self: end;
        /* margin: 1rem; */
        transform: translate(0.1rem, 0.75rem);
    }
    & img{
        height: 26px;
    }
}

#wineList{
    height: fit-content;
    margin-top: 3.5em;
    padding: 0 1em;
    grid-template-columns: 0.7fr 4fr 0.5fr;
    display: grid;
}

#wineSummary{
    display: grid;
    grid-template-columns: 1fr 4fr 0.5fr;
}

#wineList .ean{
    justify-self: center;
    width: 100%;
    background: #cdcdef;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0.3em 0;
    padding: 0.1em 0.7em;
}

#winelist .ean span{
    text-align: right;
}

#wineList .wineUID{
    border-radius: .5em;
    border: black solid 1px;
    padding: 0 0.3em;
    cursor: pointer;
}

.trash{
    font-size: 2em;
    border: 0;
    background: transparent;
    margin-top: -0.1em;
    &::before{
        content: "\1F5D1"
    }
}

.banner{
    position: fixed;
    background: linear-gradient(to bottom, white 80%, transparent);
    z-index: 2;
    width: -webkit-fill-available;
    max-width: 100vh;
}

.data{
    position: relative;
    padding: 3em 1em 0;
    margin-bottom: 0.7em;
}

.oldLinks{
    position: relative;
}

.wrapper {
    margin:0 auto;
    width: 1000px;
}
.static {     
    width:1000px;
    z-index:2;
    height:100px;
    position: fixed;   
}
.header {
    background-color:Silver;
    height:100px;
}
.content {
    background-color:Orange;
    width:800px;
    height:500px;
    float: left;
    position:relative;
    top: 100px;
}
.menu {
    background-color:Green;
    position: relative;
    left: 800px;
    width:200px; 
}

#score{
    padding: 0;
    width: 86%;
    max-width: 35em;
    font-family: 'Special Gothic';
    & h4{
        margin: 0.6em 0;
    }
}

#scorePage{
    margin: 1.5rem;
}

#closeScore{
    width: 1.5em;
    height: 1.5em;
    font-family: sans-serif;
    font-weight: 900;
    background-color: white;
    text-align: center;
    color: black;
    position: absolute;
    top: 0.1em;
    right: 0.1em;
    border: 1px black solid;
    z-index: 10;
    
    
    &:hover{
        color: white;
        background-color: red;
    }
}

#participants, #scores, #submit{
    font-size: 1.2rem;
    text-align: center;
    border-radius: 2em;
    width: 8em;
    border: 2px solid;
}

.shieldFromClicks{
    font-size: 2em;
    padding: 0;
}

.keepOpen{
    padding: 0;
}

#results{
    width: 100%;
    table-layout: fixed;
    font-size: .5em;
    padding: 0 1.5rem 1.5rem;
    & th:first-child{
        width: 4em;
        text-align: left;
    }
}

#results td:nth-child(n+2){
    text-align: center;
}

#results tbody >:last-child{
    font-weight: bold;
}

#errorStatus{
    font-size: 0.5em;
    font-style: italic;
    margin: 0 0.1em;
}

hr{
    margin: 0.1em 1em 0.5em 1em;
}

/* checkbox formatting */
.wineList input[type="checkbox"] {
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    text-align: center;
    font-size: large;
    background-color: red;
    color: white;
    transition: 250ms;
}

.wineList input[type="checkbox"]:before {
    content: "✖";
}

.wineList input[type="checkbox"]:checked:before {
    content: "✔";
}

.wineList input[type="checkbox"]:checked {
    background-color: green;
    box-shadow: inset 0px 0px 5px #222;
}

.wineDetails{
    grid-column: 1/4;
    display: grid;
    grid-template-columns: 0.7fr 4fr 3.7em;
    justify-items: start;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    cursor: zoom-out;
    transform: translateX(-0.7em);
    /* min-height: 3.4em; */
}

.wineDetails p{
    margin: 0;
    font-weight: 500;
}

.wineParagraphs{
    grid-column: 2/3;
    justify-self: start;
    text-align: left;
    border: solid 1px gray;
    border-radius: 8px;
    padding: 0 0.7em;
    width: 100%;
    overflow-y: hidden;
}


.expander{
    display: grid;
    width: -webkit-fill-available;
    grid-column: 2/3;
    grid-template-columns: 0 1fr 0;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s;
}

.expander.show{
    grid-template-rows: 1fr;
}

#enterPassword{
    height: 20rem;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    z-index: -100;
    text-align: center;
    /* width: 28rem; */
}

.enterPassword{
    color: #d99526;
    font-size: 1.8rem;
    margin: 0rem 0px 1rem;
    text-align: center;
}

#enterPassword .title{
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    align-items: end;
}

#thePassword{
    width: -webkit-fill-available;
    margin: 1rem auto 1rem;
    font-size: 1.5rem;
}

#admin{
    width: 28rem;
    overflow-x: hidden;
    & div:nth-of-type(2){
        padding-bottom: 1rem;
    }
    & p{
        font-weight: 500;
    }
    & hr{
        margin-top: 10px;
    }
}

#admin button{
    width: 20rem;
    height: 2rem;
    margin: 6px auto;
    border-radius: 0.4rem;
    line-height: 1.2rem;
}

#admin select, #admin input, #admin p{
    width: 70%;
    margin: 0 15%;
    font-size: 1.2rem;
    text-align: center;
    overflow: auto;
}