@font-face {
    font-family: 'tutorSym';
    src: url('tutorsym.woff') format('woff');
}  

body{
    -webkit-touch-callout: none; /* iOS Safari */
    /* -webkit-user-select: none; */ /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    /* user-select: none; */ /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

x-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #3a606c;
    color: white;
    text-align: center;
  }
 
x-footer p{
    font-size: 1.1rem;
    margin: 0.3rem;
    color: yellow;
}

x-footer button{
    position: absolute;
    right: 0;
    bottom: 0;
}

x-footer.hide{
    /* opacity: 0; */
    transform: scaley(0);
    transform-origin: 100% 1000%;
    transition: 300ms linear;
}

x-footer a:link{
    color: lightgreen;
}

x-content{
    margin-top: 3.1rem;
    padding: 20px;
    margin: 3rem auto;
    display: flex;
    max-width: 1200px;
    justify-content: center;
}

x-label {
    position: relative;
    background: yellow;
    width: max-content;
    border-radius: 10px;
    border: red solid 2px;
    padding: 0.4rem;
}

x-label.left:before{
    content: "";
    position: absolute;
    top: 5px;
    left: -22px;
    z-index: 1;
    border: solid 10px transparent;
    border-right-color: tomato;
}

x-label.right:before{
    content: "";
    position: absolute;
    top: 5px;
    right: -22px;
    z-index: 1;
    border: solid 10px transparent;
    border-left-color: tomato;
}

@keyframes helpFader {
    0% {opacity: 0;}
    50% {opacity: 1;}
    100% {opacity: 0;}
}

#HelpLabel{
    animation-name: helpFader;
    animation-duration: 4s;
    animation-iteration-count: 1;
    opacity: 0;
}

.opacityTransition{
   transition: opacity 0.5s;
}

h2{
    margin: 0.6rem auto;
    color: white;
    position: inherit;
}

hr{
    width: -webkit-fill-available;
    margin: 0.5rem 2rem;
}

div.banner{
    background-image: url(../../images/BG.png);
    background-size: cover;
    height: 3rem;
    margin-bottom: -0.2rem;
    display: grid;
    grid-template-columns: auto 10rem auto;
}

div.banner p:nth-of-type(1){
    text-align: right;
}

div.banner p:nth-of-type(2){
    text-align: left;
}

div.banner img{
    transform: translateY(0.9rem) scale(3);
}

.home{
    text-align: center;
}

p.banner{
    width: 100%;
    font-family: "Lexend Tera";
    color: cyan;
    font-size: 1.5rem;
    font-weight: bolder;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    white-space: pre;
    margin: -0.1rem auto 0rem;
    pointer-events: none;
    padding-top: 0.6rem;
    text-align: center;
}

div.title{
    height: 5rem;
    margin-bottom: -0.2rem;
    text-align: center;
    background-image: linear-gradient(     gray .1rem,black 0.9rem,   black 2rem, gray 2.8rem,        white 2.8rem,      white 5rem,   rgb(209, 220, 250) 5rem);
    margin: 0 auto;
}

#Subtitle{
    font-size: 130%;
    font-weight: bold;
    margin: 0.4rem auto;
    /* grid-column: 2; */
    /* grid-row: 2; */
    color: black;
}

div.title div{
    align-content: center;
    max-width: 48rem;
    /* min-width: 33rem; */
    display: grid;
    grid-template-columns: 6rem auto 6rem;
    margin: 0rem auto;
}

div.title div img{
    margin: auto;
    padding-top: 0.1rem;
    height: 1.4rem;
}

#MenuHolder{
    height: 2.6rem;
    border: 0rem solid transparent;
    box-sizing: border-box;
    background: linear-gradient(gainsboro,#f0f0f0, gainsboro);
}

#MenuDiv{
    display: flex;
    /* flex-wrap: wrap; */
    max-width: 48rem;
    margin: 0 auto;
    /* height: 1.8rem; */
    padding: 5px 0px;
    align-items: center;
    width: inherit;
}

#MenuDiv div{
    text-align: center;
    padding-top: 1px;
    /* margin: 0 auto; */
}

#MenuDiv div{
    flex: 50%;
}

@media (max-width: 800px) {
    #MenuHolder{
        height: 4rem;
    }
    #MenuDiv{
        flex-direction: column-reverse;
        /* gap: 5px; */
    }
    #MenuDiv div{
      flex: 100%;
    }
    #FullContent{
        top: 7.4rem !important;
    }
  }

#MenuDiv p{
    margin: 0px;
    min-width: 7rem;
    font-size: 1.1rem;
    height: 29px;
    display: inline-block;
}

#MenuDiv button{
    min-width: 7rem;
    font-size: 1.1rem;
    height: 29px;
    display: inline-block;
    margin-top: -6px;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

#headerBlock{
    position: absolute;
    width: 100vw;
    top: 0;
}

#headerDiv{
    text-align: center;
    background-image: linear-gradient(gray .1rem, black 0.9rem, black 2rem, gray 2.8rem, white 2.8rem, white 5rem, rgb(209, 220, 250) 5rem);
    margin: 0 auto;
}

.emptyGrid{
    display: grid;
    column-gap: 12px;
    justify-items: left;
    align-items: center;
}

.emptyGrid p{
    margin: 4px 0;
}

.emptyGrid .cardsHolder{
    /* transform:translateX(5px); */
}


p{
    clear: both;
}

#headerTable{
    width: 100%;
    height: 5rem;
    border-collapse: collapse;
    border-spacing:0;
    margin: 0 auto;
    max-width: 50rem;
}

#headerTable tr:nth-child(2){
    color: white;
    font-size: 1.4rem;
    /* background: black; */
}

#headerTable tr:nth-child(3){
    color: black;
    font-size: 1.2rem;
    /* background: white; */
}


.logo{
    height: 1rem;
    overflow: overlay;
    transform: translateY(123%) scale(3);
    cursor: pointer;
};


p.pointer{
    cursor: pointer;
}

p.description{
    
font-weight: normal !important;
}

select{
    font-size: 110%;
    padding: .1rem;
    text-align: left;
    border-radius: 2.1px;
    max-width: 12rem;
    margin: 0 0 0 1.7rem;
    background: #f0f0f0;
    cursor: pointer;
    height: 29px;
}

select:focus{
    outline: none;
}

option{
    background: #f8f8f8;
    text-align: left;
}

select:hover {
    background-color: #e8e8e8 !important;
}

#FullContent{
    margin: 16px auto;
    width: 100vw;
    /* padding: 0.5rem 1rem 1rem 1rem; */
    /* left: 50%; */
    position: absolute;
    display: grid;
    grid-template-columns: auto;
    top: 6rem;
    /* transform: translate(-50%, 0); */
    justify-content: center;
    border: 1rem transparent solid;
    box-sizing: border-box;
}

.contentBox{
    border: 2px firebrick solid;
    padding: 10px 15px;
    border-radius: 15px;
    background: floralwhite;
    max-width: 50rem;
    margin-right: 8px;
    margin-left: 8px;
}

.centre{
    text-align: center;
    display: grid;
    justify-items: center;
    grid-template-columns: 10rem auto 10rem;
}

.centre.narrow{
    grid-template-columns: 6rem auto 6rem;
    row-gap: .2rem;
    align-items: center;
}

.spanner{
    grid-column: 1/span 3;
}

.gridLeft{
    width: 100%;
    text-align: left;
}

button.go{
    min-width: 4.8rem;
    font-weight: bold;
    display: table-cell;
    /* transform: translateY(-1px); */
    border-radius: 10px;
    border: 1px black solid;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    height: 1.3rem;
}

button.go.back{
    background-color: lemonchiffon;
}

div.links{padding: 0.3rem;}

div.links p{
    padding: 0rem 0.5rem;
    margin: 0.1rem 0.2rem 0.1rem 0.4rem;
    display: table-cell;
    cursor: pointer;
    font-weight: normal;
}

div.linksItem{
    height: 1.7rem;
    display: table-row;
}

.links.bold{
    font-weight: bold;
}

/* p {
    margin: 0rem 0.3rem 0.6rem;
} */

  label  {
    font-size: 1.5rem;
    vertical-align: .3em;
    margin-top: 0px;
  }
  
  .footer {
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #3a606c;
    color: white;
    text-align: center;
  }
 
.footer p{
    font-size: 1.2rem;
    margin: 0.3rem;
    color: yellow;
}  

h3{
    text-align: center;
    margin: auto;
    font-size: 120%;
    margin-bottom: 4PX;
}

h3 p{
    margin: 0 auto;
}


h4{
    text-align: center;
    font-size: 140%;
    margin: 1rem auto;
}

h5{
    font-size: 125%;
    font-style: italic;
    font-weight: normal;
    margin: 0.6rem 0 0.4rem;
    font-family: 'Oswald';
}

h5::before{
    content: "\00e6  ";
    font-weight: bolder;
    font-family: 'tutorSym';
}

h5::after{
    font-family: 'tutorSym';
    font-weight: bolder;
    content: "  \00e6 ";
}

h6{
    font-size: 1.3rem;
    margin: 0 .5rem .8rem 0;
}

h6.h7{
    font-size: 1.3rem;
    font-style: italic;
    margin: 0.5rem 0.8rem 0.3rem 0px;
}

ul{
    margin-top: 0;
}

li{
    margin-bottom: 0.3rem;
}

a:link{
    color: lightgreen;
}

a:hover{
    color: yellowgreen;
}

body{
    overflow-x: hidden;
    /* Max-width: 51rem; */
    margin: 0 auto;
    font-family: arial;
    background: rgb(209, 220, 250);
    /* background-image: linear-gradient(
        black 2.4rem,
        white 2.4rem,
        white 4.8rem,
        rgb(209, 220, 250) 4.8rem); */
    font-size: 1rem;
    background-repeat: no-repeat;
    /* height: 56rem; */
    /* width: 47rem; */
    /* transform: translate(-50%, 0); */
    /* left: 50%; */
}

.invisible{
    display: none!important;
}

.fade{
    opacity: 0.3;
}

.noShow{
    visibility: collapse;
}

#Ex{
    left: 50%;
    position: absolute;
    top: 0;
    height: 90%;
    width: 60%;
    opacity: 0.5;
    transform: translateX(-50%);
}

.Offsetter{
    position: relative;
}

svg{
    /* filter: drop-shadow(-0.2rem 0.2rem 0.5rem black); */
    width: 37rem;
    height: 3rem;
}

/* text styles */
p.low{
    margin-bottom: 0.2rem;
    margin-top: 0rem;
    margin-left: 2rem;
}

span.l{
    text-decoration: underline;
}

span.b{
    font-weight: bold;
}

span.i{
    font-style: italic;
}

span.k{
    color: black;
}
span.y{
    color: yellow;
}
span.u{
    color: blue;
}
span.o{
    color: orange;
}
span.r{
    color: red;
}
span.g{
    color: green;
}
span.w{
    color: white;
}
span.c{
    color: cyan;
}
span.m{
    color: maroon;
}

span.p{
    color: purple;
}

span.n{
    color: navy;
}

span.t{
    color: lightgreen;
}

span.sup{
    vertical-align: super;
    font-size: 60%;
}

span.sub{
    vertical-align: sub;
    font-size: 60%;
}

span.plus{
    font-size: 130%;
}

span.minus{
    font-size: 70%;
}

span.pre{
    white-space: pre;
}

span.keep{
    white-space: nowrap;
}

span.SH{
    width: 20rem;
    display: table-cell;
    text-align: center;
}

span.ST{
    width: 13.3rem;
    display: table-cell;
    text-align: center;
}

span.SQ{
    width: 10rem;
    display: inline-block;
    text-align: center;
}

span.SF{
    width: 8rem;
    display: table-cell;
    text-align: center;
}

span.S6th{
    width: 6.6rem;
    display: table-cell;
    text-align: center;
}

span.S7th{
    width:5.8rem;
    display: table-cell;
    text-align: center;
}

span.S8th{
    width: 5rem;
    display: inline-block;
    text-align: center;
}

span.S9th{
    width: 4.5rem;
    display: table-cell;
    text-align: center;
}

span.S0{
    width: 2rem;
    display: table-cell;
    text-align: center;
}

span.para0{
    width: 2.5rem;
    display: table-cell;
    text-align: lect;
}

span.para1{
    width: 2.5rem;
    display: table-cell;
    text-align: left;
    padding-left: 1rem;
}

.paran{
    width: 1.7rem;
    display: table-cell;
    text-align: right;
    padding-right: 0.5rem;
}

.paraN{
    width: 2.2rem;
    display: table-cell;
    font-weight: bold;
}

span.SFill ~ span{
    display: table-cell;
}

span.SFill{
    display: table-cell;
    text-align: center;
}

span.right{
    text-align: right;
}

span.left{
    text-align: left;
    display: table-cell;
}

div.cardInset{
    display: inline;
}

li.indent{
    list-style-type: none;
    margin-left: 1rem;
}

.CardImage{
    height: 4rem;
    margin: 0 -.9rem;
}

.CardImage.Spacer{
    opacity: 0;
}

#CardBids p{
    display: block;
}

.cardsHolder {
    margin-left: 0.9rem;
    margin-right: 1.5rem;
    float: left;
    justify-self: center;
    transform: translateX(5px);
    .emptyGrid .cardsHolder {
    transform: translateX(5px);
};
    
.emptyGrid .cardsHolder {
    transform: translateX(5px);
};
}

.cardsHolder.left {
    justify-self: start;
}

.cardsHolder.right {
    justify-self: end;
}

.zoom{
    transition: 500ms;
    max-height: 20rem;
    overflow: hidden;
}

.zoomHidden{
    transition: 500ms;
    max-height: 0;
}

#Vulnerability{
    margin: -1rem;
    border: solid 1.5rem;
    height: 0;
    width: 1rem;
    opacity: 0.8;
    position: relative;
}

#Vulnerability.Hidden{
    display: none;
}

#Vulnerability.None{
    border-bottom-color: green;
    border-top-color: green;
    border-left-color: green;
    border-right-color: green;
}

#Vulnerability.NS{
    border-bottom-color: red;
    border-top-color: red;
    border-left-color: green;
    border-right-color: green;
}

#Vulnerability.EW{
    border-bottom-color: green;
    border-top-color: green;
    border-left-color: red;
    border-right-color: red;
}

#Vulnerability.Both{
    border-bottom-color: red;
    border-top-color: red;
    border-left-color: red;
    border-right-color: red;
}

/* bidding box */
#biddingBox{
    position: absolute;
    width: 18.5rem;
    height: 19.6rem;
    top: 29rem;
    right: -4rem;
    background-color: black;
    border-radius: 0.5rem;
    cursor: pointer;
}

#biddingBox p{
    font-size: 2rem;
    font-weight: bold;
    margin-top: -0.2rem;
}

#biddingBox div{
    height: 1.8rem;
    width: 3.5rem;
    background-color: white;
    margin: 0;
    border-color: black;
    border-width: 0.1rem 0.1rem 0rem 0.1rem;
    border-style: solid;
    border-radius: 0.3rem 0.3rem 0rem 0rem;
    text-align: center;
    float: right;
    transition: 0.2s;
}

#biddingBox div.used{
    filter: contrast(0.3);
    transition: 0.2s;
}

#biddingBox div.tried{
    transition: 0.2s;
    filter: invert(0.7);
}
#biddingBox div.pass{
    width: 10.9rem;
    background-color: green;
    color: white;
    font-variant: small-caps;
    font-size: 1rem;
}

#biddingBox div.double{
    background-color: red;
    color: white;
    font-variant: small-caps;
    font-size: 1rem;
}

#biddingBox div.redouble{
    background-color: blue;
    color: white;
    font-variant: small-caps;
    font-size: 1rem;
}

#biddingBox div.pass p{
    font-size: 1.6rem;
    margin-top: 0.03rem;
}


#biddingBox p.nt{
    color: green;
    font-variant: small-caps;
}

#biddingBox p.spades{
    color: black;
    font-variant: small-caps;
}

#biddingBox p.spades::after{
    content: "";
    background-image: url(../../cards/SpadeF.png);
    background-size: 1.5rem 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    display: inline-block;
}

#biddingBox p.hearts{
    color: red;
    font-variant: small-caps;
}

#biddingBox p.hearts::after{
    content: "";
    background-image: url(../../cards/HeartF.png);
    background-size: 1.4rem 1.4rem;
    height: 1.4rem;
    width: 1.4rem;
    display: inline-block;
}

#biddingBox p.diamonds{
    color: #ff5000;
    font-variant: small-caps;
}

#biddingBox p.diamonds::after{
    content: "";
    background-image: url(../../cards/DiamondF.png);
    background-size: 1.5rem 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    display: inline-block;
    filter: hue-rotate(-8deg);
}

#biddingBox p.clubs{
    color: #606060;
    font-variant: small-caps;
}

#biddingBox p.clubs::after{
    content: "";
    background-image: url(../../cards/ClubF.png);
    background-size: 1.5rem 1.5rem;
    height: 1.5rem;
    width: 1.5rem;
    display: inline-block;
}

span.cc::after{
    font-size: 98%;
    font-family: symTutor;
    display: inline-block;
    font-family: 'tutorSym';
    font-weight: bold;
    content: '\00DF';
}

span.cd::after{
    font-size: 98%;
    font-family: symTutor;
    display: inline-block;
    font-family: 'tutorSym';
    font-weight: bold;
    content: '\00AE';
}

span.ch::after{
    font-size: 98%;
    font-family: symTutor;
    display: inline-block;
    font-family: 'tutorSym';
    font-weight: bold;
    content: '\00A9';
}

span.cs::after{
    font-size: 98%;
    font-family: symTutor;
    display: inline-block;
    font-weight: bold;
    font-family: 'tutorSym';
    content: '\2122';
}


#biddingBox div.boxBase{
    background-color: forestgreen;
    border-width: 0;
    width: 103%;
    margin-right: -0.3rem;
    margin-top: 0.2rem;
    height: 4rem;
    border-radius: 0.2rem 0.2rem 0.7rem 0.7rem;
}

#biddingBox.hidden{
    opacity: 0;
    pointer-events: none;
    transform: translateX(4rem);
    transition: 0.4s;
    cursor: auto;
}

#biddingBox:not(.hidden){
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
    transition: 0.4s;
}

#correctBoxBid.showing{
    opacity: 1;
    transition: 0.3s;
}

#correctBoxBid:not(.showing){
    opacity: 0;
    transition: 0.0s;
}

input{
    height: 1.6rem;
    width: 3.4rem;
    cursor: pointer;
    margin: 0;
    vertical-align: -0.25rem;
}

.version{   
    transform: translate(0px, -0.07rem);
    display: inline-block;
    margin-top: -0.2rem;
}

.Options div{
    padding: 0.5rem 1.2rem 0.5rem;
    border: darkred 0.2em solid;
    border-radius: 1rem;
    background: lavender;
    margin-left: 1rem;
    margin-top: .6rem;
}

.linear > * {
    display: table-cell;
}

.OptionBox{float: left;width: 26.3%;}

#Options section{
    /* background: red; */
    /* margin-left: 1rem; */
    padding-left: 1rem;
    transition: 0.3s;
}

.OptionBox.highlight{
    background: lightgoldenrodyellow;
}

#Options section.dimmed{background: lightgray;border-radius: 15px;transform: scale(.85);transition: 0.3s;}



div.expander{
    /* height: 0; */
    padding: 0;
    overflow: hidden;
}

.tooltipHolder{
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -50%;
    transform: translateX(50%);
    /* padding: .5rem; */
    z-index: 10;
    }

.tooltipPointer {
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    border-radius: 8px;
    color: #fff;
    content: attr(data-title);
    font-size: 1.2rem;
    /* padding: 0.3rem; */
    white-space: nowrap;
    text-align: center;
    /* margin: 10px; */
}

.tooltipPointer.show{
    opacity: 1;
    transition-delay: opacity .8s;
    transition: opacity 0.3s;
    transition-delay: 0.8s;
    background-repeat: no-repeat;
}

.tooltipBox{padding: 5;background-color: rgba(0,0,0,.75);border: solid 0 transparent;border-radius: 8px;padding: 0.3rem 1rem;}

.tooltipHolder svg{position: absolute;/* left: 0;
top: 0; */overflow: visible;width: 20px;height: 20px;}

.tooltipBox p{
    margin: 0;
}

#arrows{
    position: absolute;
    top: -1rem;
    width: 56rem;
}

#arrows img{
    opacity: 0.3;
    height: 2.5rem;
    position: absolute;
    cursor: pointer;
    top: 1.4rem;
}

#arrows img.left{
    left: 2rem;
    transform: rotate(-90deg) scaleY(0.6);
}
#arrows img.right{
    right: 2rem;
    transform: rotate(90deg) scaleY(0.6);
}

#highlight{
    border-radius: 50%;
    border: red solid 2px;
    background-color: rgba(255,255,0,.5);
    transform-origin: 50% 50%;
    height: 2rem;
    width: 2rem;
    margin-top: -3px;
    font-size: 4rem;
    position: absolute;
    transform: scale(0);
    z-index: 100;
}

#highlight.flash{
    animation: flash 0.6s;
}

@keyframes flash{
    0% {transform: scale(0);}
    20% {transform: scale(1);}
    30% {transform: scale(0.8);}
    40% {transform: scale(1);}
    50% {transform: scale(0.8);}
    60% {transform: scale(1);}
    70% {transform: scale(0.8);}
    80% {transform: scale(1);}
    100% {transform: scale(0);}
}