Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- body {
- font-family: 'PT Sana', sans-serif;
- font-size: 14px;
- background: #000;
- margin: 0;
- padding: 0;
- }
- /* //////////////////////////popup////////////////////////////////////////////// */
- .box {
- background:rgb(0, 0, 0, 0.8);
- z-index: 9999;
- height: 100%;
- width: 100%;
- position:fixed;
- top:50%;
- left:50%;
- -ms-transform: translateX(-50%) translateY(-50%);
- -webkit-transform: translate(-50%,-50%);
- transform: translate(-50%,-50%);
- }
- .box .popupcard {
- background:rgb(0, 0, 0, 0.8);
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- /* /////////////////////////////////////////////////////////////////////////////// */
- .player-me {
- text-align: center;
- color: white;
- }
- #top-wrapper {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-content: stretch;
- align-items: flex-start;
- }
- #role-order {
- display: flex;
- flex-wrap: wrap;
- max-width: 400px;
- }
- .role {
- display: flex;
- flex-wrap: wrap;
- flex-direction: row;
- color: #000;
- margin: 1px 1px;
- background-color: #9c9b98;
- border-color: black;
- border-radius: 5%;
- font-size: 16px;
- padding: 4px 2%;
- width: 100%;
- font-weight: bold;
- }
- #role-order>div {
- flex: 45%;
- }
- .action {
- margin: 10px;
- }
- a {
- color: purple;
- font-weight: bold;
- text-decoration: none;
- }
- div#game-hand {
- text-align: center;
- }
- .handcards {
- height: 10px;
- width: 10px;
- text-align: center;
- }
- div#game-roles-deck {
- display: flex;
- margin: 0;
- align-items: flex-start;
- }
- div#coin {
- z-index: 100;
- background-color: rgba(0, 0, 0, 0.2);
- padding: 10px;
- border: dotted 1px #fff;
- height: 32px;
- width: 32px;
- text-align: center;
- background-image: url("/game/coin.png");
- background-size: 32px 32px;
- background-repeat: no-repeat;
- background-position: center;
- }
- div#coin span {
- font-size: 24px;
- font-weight: bold;
- color: rgb(255, 198, 41);
- text-shadow: 1px 0 1px #000,
- 0 1px 1px #000,
- -1px 0 1px #000,
- 0 -1px 1px #000;
- position: relative;
- top: 12px;
- left: 12px;
- }
- /* div#game-log-current {
- overflow: hidden;
- } */
- div#hand,
- div#game-log-full {
- background-color: #000;
- color: #fff;
- height: 400px;
- padding: 0px;
- text-align: center;
- }
- div#game-log-full div {
- padding: 10px;
- }
- #game-log-full {
- overflow-x: hidden;
- overflow-y: scroll;
- }
- div.role div.role-coin {
- width: 26px;
- height: 16px;
- margin: auto;
- text-align: center;
- color: #ffd878;
- text-shadow: 1px 0 1px #000,
- 0 1px 1px #000,
- -1px 0 1px #000,
- 0 -1px 1px #000;
- font-size: 14px;
- font-weight: bold;
- background: rgba(0, 0, 0, 0) url(/game/coin.png) no-repeat;
- background-size: contain;
- background-position: center;
- order: 1;
- }
- div.role div.role-penalty {
- width: 26px;
- height: 15px;
- margin: auto;
- text-align: center;
- color: #ffd878;
- font-size: 15px;
- font-weight: bold;
- background: rgba(0, 0, 0, 0) url(/game/penalty.png) no-repeat;
- background-size: contain;
- background-position: center;
- order: 4;
- }
- div.role div.role-closed {
- width: 26px;
- height: 15px;
- margin: auto;
- text-align: center;
- color: #ffd878;
- font-size: 15px;
- font-weight: bold;
- background: rgba(0, 0, 0, 0) url(/game/closed.png) no-repeat;
- background-size: contain;
- background-position: center;
- order: 3;
- }
- div.role div.role-card {
- width: 26px;
- height: 15px;
- margin: auto;
- text-align: center;
- color: #ffd878;
- font-size: 15px;
- font-weight: bold;
- background: rgba(0, 0, 0, 0) url(/game/card.png) no-repeat;
- background-size: contain;
- background-position: center;
- order: 2;
- }
- div.role-current {
- background: #999;
- }
- div.role span.role-player {
- margin-left: 5px;
- }
- div#hand,
- div#getcard,
- div#roles {
- background: #000;
- position: relative;
- /* right: 2px; */
- padding: 1px;
- }
- div#roles div {
- margin-right: 1px;
- }
- div#hand div,
- div#getcard div,
- td.citadel-cards div,
- div#roles div,
- div#roles-deck div {
- border: solid 1px #000000;
- display: inline-block;
- width: 120px;
- }
- div#roles-deck {
- display: inline-block;
- height: 320px;
- margin-right: 10px;
- }
- #citadels td.citadel-cards,
- div#roles-deck {
- position: relative;
- width: 120px;
- padding: 1px;
- }
- #game-log {
- display: block;
- width: 100%;
- position: relative;
- margin-bottom: 5px;
- }
- .ui-accordion-header {
- min-height: 24px;
- }
- div.card-stack-0 {
- top: 0px;
- }
- div.card-stack-1 {
- top: 45px;
- }
- div.card-stack-2 {
- top: 90px;
- }
- div.card-stack-3 {
- top: 135px;
- }
- div.card-stack-4 {
- top: 180px;
- }
- div.card-stack-5 {
- top: 225px;
- }
- div.card-stack-6 {
- top: 270px;
- }
- /* --------------------------------------Grid------------------------------- */
- .container {
- display: flex;
- flex-wrap: wrap;
- }
- .citGridLayout {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- grid-template-rows: repeat(2, 1fr);
- grid-column-gap: 0px;
- grid-row-gap: 0px;
- }
- .gridLayout {
- display: grid;
- grid-template-columns: 1fr 2fr;
- margin-bottom: 15px;
- min-width: 50%;
- align-items: center;
- }
- #game-log-full { grid-area: 1 / 2 / 3 / 3; }
- #game-log-full::-webkit-scrollbar {
- display: none;
- }
- .player-1 { grid-area: 1 / 1 / 2 / 2; }
- .player-2 {
- grid-area: 1 / 3 / 2 / 4;
- grid-template-columns: 2fr 1fr;
- order: 2;
- }
- .player-3 { grid-area: 2 / 1 / 3 / 2; }
- .player-4 { grid-area: 2 / 3 / 3 / 4; }
- .name {
- line-height: 30px;
- text-align: center;
- padding: 0 5px;
- /* margin-right: 20%; */
- color: white;
- }
- .cards-container {
- display: grid;
- grid-template-columns: 1fr 1fr;
- justify-self: center;
- }
- .stack {
- background-color: white;
- overflow: hidden;
- height: 30px;
- min-width: 30px;
- max-width: 30px;
- line-height: 30px;
- text-align: center;
- margin: 5px;
- border: thin solid black;
- }
- .stack:nth-child(odd) {
- justify-self: end;
- }
- .stack div {
- margin: 0;
- }
- .stack span {
- display: none;
- padding: 0 5px;
- text-align: left;
- }
- img {
- height: 480px;
- width: 384px;
- }
- @media screen and (max-width:640px) {
- #game-log {
- display: block;
- width: auto;
- }
- }
- @media screen and (max-width:480px) {
- div#coin {
- margin: 15px 0 0 -85px;
- }
- div#role-order {
- width: 175px;
- }
- div#hand div,
- div#getcard div,
- #citadels td.citadel-cards div,
- div#roles div,
- div#roles-deck div {
- width: 100px;
- }
- #citadels td.citadel-cards,
- div#roles-deck {
- width: 100px;
- }
- div.card-stack-0 {
- top: 0px;
- }
- div.card-stack-1 {
- top: 36px;
- }
- div.card-stack-2 {
- top: 72px;
- }
- div.card-stack-3 {
- top: 108px;
- }
- div.card-stack-4 {
- top: 144px;
- }
- div.card-stack-5 {
- top: 180px;
- }
- div.card-stack-6 {
- top: 216px;
- }
- div#roles-deck {
- height: 300px;
- }
- }
- @media screen and (max-width:360px) {
- div#coin {
- margin: 15px 0 0 -75px;
- }
- div#role-order {
- width: 150px;
- }
- div#hand div,
- div#getcard div,
- #citadels td.citadel-cards div,
- div#roles div,
- div#roles-deck div {
- width: 80px;
- }
- #citadels td.citadel-cards,
- div#roles-deck {
- width: 80px;
- }
- div#roles-deck {
- height: 300px;
- }
- div.card-stack-0 {
- top: 0px;
- }
- div.card-stack-1 {
- top: 30px;
- }
- div.card-stack-2 {
- top: 60px;
- }
- div.card-stack-3 {
- top: 90px;
- }
- div.card-stack-4 {
- top: 120px;
- }
- div.card-stack-5 {
- top: 150px;
- }
- div.card-stack-6 {
- top: 180px;
- }
- }
- #citadels td.citadel-cards div,
- #roles-deck div {
- position: absolute;
- display: block;
- left: 0;
- background: #000;
- }
- #citadels div.player-me {
- background-color: #444;
- }
- #citadels div.player-minister {
- font-weight: bold;
- color: #fcc !important;
- }
- #citadels div.player-name {
- color: #fff;
- text-align: center;
- font-size: 12px;
- font-variant: all-small-caps;
- padding: 2px;
- }
- div#roles div.canselect,
- div#getcard div.canselect,
- div#hand div.canselect {
- transform: rotate(1.5deg);
- }
- div.game-winner {
- background-color: #fcc !important;
- }
- div.game-result {
- vertical-align: top;
- display: inline-block;
- background-color: #eee;
- color: #000;
- margin: 10px;
- padding: 10px;
- font-size: 14px;
- text-align: center;
- }
- div.game-result span {
- font-size: 18px;
- }
- div.action-title {
- background: #f0f0f0;
- color: #666;
- }
- div#roles div.canselect:active,
- div#getcard div.canselect:active,
- div#hand div.canselect:active {
- border-color: #f99;
- }
- div.action:active {
- color: #600;
- background: #fcc;
- }
- div.action {
- background: #fee;
- color: #400;
- }
- div.action,
- div.action-title {
- padding: 10px;
- display: inline-block;
- font-weight: bold;
- font-size: 16px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement