@charset "utf-8"; body { background-color: #fff; font-family: Arial, sans-serif; font-size: 12pt; } *{ box-sizing: border-box; padding: 0; margin: 0; } .error-box { width: 80vw; padding: 0.5em; border: 2px solid #444; border-radius: 2em; background-color: #eaa; } .game-layout { display: grid; grid-template-areas: "navbar navbar navbar navbar" "north north north sidebar" "west center east sidebar" "south south south sidebar"; grid-template-rows: 5vh auto auto auto; grid-template-columns: 10vw minmax(0, 1fr) 10vw 20vw; width: 100vw; height: 100vh; } .navbar { grid-area: navbar; background: #eef; } .navbar li { display: inline; padding-right: 0.5em; } .trick-layout { display: grid; grid-template-areas: ". top ." "left top right" "left bottom right" ". bottom ."; grid-template-rows: repeat(4, 1fr); grid-template-columns: 1fr auto 1fr; } .trick-layout .top { grid-area: top; place-self: center end; } .trick-layout .left { grid-area: left; place-self: center end; } .trick-layout .right { grid-area: right; place-self: center start; } .trick-layout .bottom { grid-area: bottom; place-self: center start; } .main-page { margin: 0 auto; max-width: 50em; font-size: 150%; min-height: 80vh; } .main-menu { } .main-page h1, p { margin-top: 0.5em; padding-top: 0.5em; line-height: 1.5; } .main-menu li { list-style-type: none; } .footer { max-width: 50em; font-size: 150%; margin: 0 auto; } button, a { background: none!important; border: none; padding: 0!important; font-family: Arial, sans-serif; font-size: 100%; color: #229; text-decoration: underline; cursor: pointer; } button:hover, a:hover { box-shadow: inset 10em 5em 2em #eee; } .sidebar { grid-area: sidebar; display: grid; align-content: start; } .west { grid-area: west; /* transform: rotate(90deg); */ flex-direction: column; } .north { grid-area: north; /* transform: rotate(180deg); */ flex-direction: row; } .east { grid-area: east; /* transform: rotate(270deg); */ flex-direction: column; } .south { grid-area: south; flex-direction: row; } .center { grid-area: center; display: flex; flex-direction: column; height: 65vh; place-content: center center; } .center .card { height: 15vh; } .sidebar .card { height: 5vh; } .hand-diagram { display: flex; flex-direction: column; font-size: 150%; } .hand-diagram li { display: inline; padding-right: 0.1em; } .hand { display: flex; justify-content: center; align-items: center; min-height: 15vh; min-width: 15vw; } .hand .card:hover { box-shadow: 0.1em -0.1em 0.3em rgba(0,0,0,0.5); } .bidding-table { max-width: 250px; min-height: 50px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: min-content; border: 2px solid #000; border-radius: 10px; background-color: #eee; padding: 3px; } .bidding-table .header { font-weight: bold; border-bottom: 2px solid #000; } .bidding-table .bid { display: flex; } .bidding-table .suit-spade { color: #000; } .bidding-table .suit-heart { color: #d00; } .bidding-table .suit-diamond { color: #d00; } .bidding-table .suit-club { color: #000; } .bidding-table .suit-notrump { background-color: #dde; border-radius: 4px; display: flex; align-items: center; } .bidding-table .suit-spade:after { content: "♠" } .bidding-table .suit-heart:after { content: "♥" } .bidding-table .suit-diamond:after { content: "♦" } .bidding-table .suit-club:after { content: "♣" } .bidding-table .suit-notrump:after { content: "NT" } .bidding-box { max-width: 250px; display: grid; grid-template-columns: repeat(5, 1fr); } .bidding-box div { border: 1px solid #000; background-color: #eee; border-radius: 5px; min-width: 30px; padding: 2px; text-align: center; } .bidding-box div.enabled:hover { background-color: #fcc; } .bidding-box div.disabled { background-color: #aaa; } .bidding-box .suit-spade { color: #000; } .bidding-box .suit-heart { color: #d00; } .bidding-box .suit-diamond { color: #d00; } .bidding-box .suit-club { color: #000; } .bidding-box .suit-notrump { background-color: #dde; } .bidding-box .suit-spade:after { content: "♠" } .bidding-box .suit-heart:after { content: "♥" } .bidding-box .suit-diamond:after { content: "♦" } .bidding-box .suit-club:after { content: "♣" } .bidding-box .suit-notrump:after { content: "NT" } .svg-container { min-width: 0; min-height: 0; height: inherit; } .svg-element { width: 100%; height: inherit; overflow: hidden; }