@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: 5vw 10vw minmax(200px, 1fr) 10vw; grid-template-columns: 10vw 1fr 10vw 20vw; width: 100%; height: 100vh; } .navbar { grid-area: navbar; background: #eef; } .navbar li { display: inline; padding-right: 0.5em; } .playing-center-layout { display: grid; grid-template-areas: "current-trick"; grid-template-rows: 1fr; grid-template-columns: 3fr 1fr; } .current-trick { grid-area: current-trick; } .trick-layout { display: grid; grid-template-areas: ". top ." "left . right" ". bottom ."; grid-template-rows: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr); } .trick-layout .top { grid-area: top; } .trick-layout .left { grid-area: left; } .trick-layout .right { grid-area: right; } .trick-layout .bottom { grid-area: bottom; } button { background: none!important; border: none; padding: 0!important; font-family: Arial, sans-serif; font-size: 100%; color: #229; text-decoration: underline; cursor: pointer; } .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: grid; justify-content: center; align-content: center; } .hand { display: flex; justify-content: center; align-items: center; } .hand .card { box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); } .card:hover { box-shadow: 0 4px 8px 0 rgba(0,0,0,0.5); } .card { min-width: 30px; min-height: 20px; border-radius: 5px; border: 2px solid #444; transition: 0.1s; font-family: Arial, sans-serif; font-size: 2vw; padding: 4px; background-color: #fcfcf0; color: #000; line-height: 85%; } .card div { text-align: center; } .card .suit-spade { color: #000; } .card .suit-heart { color: #d00; } .card .suit-diamond { color: #d00; } .card .suit-club { color: #000; } .card .suit-spade:after { content: "♠" } .card .suit-heart:after { content: "♥" } .card .suit-diamond:after { content: "♦" } .card .suit-club:after { content: "♣" } .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" }