:root { --blue: #27388b; --green: #63b846; --red: #d41389; --border: #000; } html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background-color: #00a000; } #spielfeld { position: absolute; height: 100%; width: 100%; } * { user-drag: none; user-select: none; } *[draggable=true] { cursor: move; } div[dropable=true] > * > * { pointer-events: none; } [draggable] { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; -khtml-user-drag: element; -webkit-user-drag: element; } .player { position: absolute; height: 160px; width: 550px; transform-origin: 50% 50%; display: grid; grid-template-columns: 1fr 0.5fr repeat(4, 1fr); } #p0 { bottom: 0; left: 50%; transform: translateX(-50%); position: absolute; height: 160px; width: 561px; transform-origin: 50% 50%; display: grid; grid-template-columns: repeat(5, 1fr); } #p0_discard { bottom: 160px; left: 50%; transform: translateX(-50%); position: absolute; height: 160px; width: 550px; transform-origin: 50% 50%; display: grid; grid-template-columns: 1fr 0.5fr repeat(4, 1fr); } #p1 { top: 50%; left: 0; transform: translate(-35.3%, -50%) rotate(90deg); } #p2 { top: 0; left: 50%; transform: translateX(-50%) rotate(180deg); } #p3 { top: 50%; right: 0; transform: translate(35.3%, -50%) rotate(-90deg); } #mainstack { height: 160px; width: 420px; position: absolute; top: 33.3%; left: 50%; transform: translate(-50%, -33.3%); display: grid; grid-template-columns: repeat(4, 1fr); } .pile { position: relative; margin: auto auto; border: 1px dotted var(--border); height: 140px; width: 90px; border-radius: 10px; background-color: rgba(0, 0, 0, 0.3); } .card_outer { height: 100%; width: 100%; position: absolute; background-color: #fff; border-radius: 10px; } .card_tri { position: absolute; height: 140px; width: 90px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 10px; } .card_number { position: absolute; font-size: 18pt; font-weight: bold; } .card_number_middle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 30pt; font-weight: bold; } .card_number_1 { top: 10px; left: 10px; } .card_number_2 { bottom: 10px; right: 10px; } .card_color_green { background: linear-gradient( 45deg, var(--green) 20%, white 20%, white 80%, var(--green) 80% ); } .card_color_red { background: linear-gradient( 45deg, var(--red) 20%, white 20%, white 80%, var(--red) 80% ); } .card_color_blue { background: linear-gradient( 45deg, var(--blue) 20%, white 20%, white 80%, var(--blue) 80% ); } .green { color: var(--green); } .red { color: var(--red); } .blue { color: var(--blue); } .card_color_joker { background: linear-gradient( 45deg, var(--blue) 6.66%, var(--green) 6.66%, var(--green) 13.33%, var(--red) 13.33%, var(--red) 20%, white 20%, white 80%, var(--red) 80%, var(--red) 86.66%, var(--green) 86.66%, var(--green) 93.33%, var(--blue) 93.33% ); } .player::before { content: 'Spielername'; font-weight: bold; text-align: center; display: block; position: absolute; bottom: -170px; right: -5px; top: -12px; left: -5; border-radius: 10px; border: 2px dashed #000; pointer-events: none; } .p_active::before { border: 2px solid red !important; }