diff --git a/css/style.css b/css/style.css
index ff38c99..ab85c07 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,180 +1,176 @@
* {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- touch-action: none;
+ -webkit-box-sizing: border-box;
+ -moz-box-sizing: border-box;
+ box-sizing: border-box;
+ touch-action: none;
}
body {
- font-family: Arial, Helvetica, sans-serif;
+ font-family: Arial, Helvetica, sans-serif;
}
body,
html {
- margin: 0;
- padding: 0;
+ margin: 0;
+ padding: 0;
}
#game_view {
- width: 100vw;
- height: 100vh;
+ width: 100vw;
+ height: 100vh;
- background: #050;
- padding: 0;
+ background: #050;
+ padding: 0;
- overflow: clip;
+ overflow: clip;
}
#game_header {
- width: 100%;
- height: 50pt;
- background: #00000055;
- overflow: clip;
- display: flex;
+ width: 100%;
+ height: 50pt;
+ background: #00000055;
+ overflow: clip;
+ display: flex;
}
-
#game_footer {
- width: 100%;
- height: 50pt;
- background: #00000055;
- overflow: clip;
- display: flex;
+ width: 100%;
+ height: 50pt;
+ background: #00000055;
+ overflow: clip;
+ display: flex;
}
#game_main {
- width: 100%;
- height: calc(100% - 100pt);
- overflow: clip;
+ width: 100%;
+ height: calc(100% - 100pt);
+ overflow: clip;
}
#game_box {
- max-width: 100%;
- max-height: 100%;
- aspect-ratio: 1.6;
- margin: auto;
- background: #00000011;
- position: relative;
+ max-width: 100%;
+ max-height: 100%;
+ aspect-ratio: 1.6;
+ margin: auto;
+ background: #00000011;
+ position: relative;
}
#top_row {
- width: 100%;
- height: 25%;
- background: #00000011;
+ width: 100%;
+ height: 25%;
+ background: #00000011;
}
-
-#game_header>div {
- background-color: DodgerBlue;
- color: white;
- width: 200px;
- margin: 5px;
- text-align: center;
- line-height: 60px;
- font-size: 30px;
+#game_header > div {
+ background-color: DodgerBlue;
+ color: white;
+ width: 200px;
+ margin: 5px;
+ text-align: center;
+ line-height: 60px;
+ font-size: 30px;
}
.card,
#deal {
- position: absolute;
- height: 20%;
- aspect-ratio: 2.5/3.5;
- perspective: 1000px;
+ position: absolute;
+ height: 20%;
+ aspect-ratio: 2.5/3.5;
+ perspective: 1000px;
- -webkit-user-select: none;
- -ms-user-select: none;
- user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
- box-shadow: 0 0 5px #0009;
- overflow: clip;
+ box-shadow: 0 0 5px #0009;
+ overflow: clip;
}
#deal {
- top: 2.5%;
- left: 2.5%;
+ top: 2.5%;
+ left: 2.5%;
- background-image: url('../images/back.svg');
- background-size: 100%;
+ background-image: url("../images/back.svg");
+ background-size: 100%;
}
.flipped {
- transform: rotateY(-180deg);
+ transform: rotateY(-180deg);
}
.card_inner {
- position: absolute;
- width: 100%;
- height: 100%;
- transform-style: preserve-3d;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ transform-style: preserve-3d;
}
.card_front,
.card_back {
- position: absolute;
- width: 100%;
- height: 100%;
- -webkit-backface-visibility: hidden;
- backface-visibility: hidden;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ -webkit-backface-visibility: hidden;
+ backface-visibility: hidden;
}
.card_front {
- background-color: #fff;
- background-size: 100%;
+ background-color: #fff;
+ background-size: 100%;
}
.card_back {
- transform: rotateY(180deg);
- background-image: url('../images/back.svg');
- background-size: 100%;
+ transform: rotateY(180deg);
+ background-image: url("../images/back.svg");
+ background-size: 100%;
}
/* stack */
#stack {
- display: flex;
- position: absolute;
- height: 20%;
- left: 45.5%;
- right: 2.5%;
- top: 2.5%;
- justify-content: space-between;
+ display: flex;
+ position: absolute;
+ height: 20%;
+ left: 45.5%;
+ right: 2.5%;
+ top: 2.5%;
+ justify-content: space-between;
}
-#stack>div {
- height: 100%;
- aspect-ratio: 2.5/3.5;
- background-color: #0012;
-
- border-style: solid;
- border-width: 5px;
- border-color: #631;
+#stack > div {
+ height: 100%;
+ aspect-ratio: 2.5/3.5;
+ background-color: #0012;
+ border-style: solid;
+ border-width: 5px;
+ border-color: #631;
}
#tableau {
- display: flex;
- position: absolute;
- justify-content: space-between;
- height: 20%;
- left: 2.5%;
- right: 2.5%;
+ display: flex;
+ position: absolute;
+ justify-content: space-between;
+ height: 20%;
+ left: 2.5%;
+ right: 2.5%;
}
-#tableau>div {
- margin-top: 2.5%;
- height: 100%;
- aspect-ratio: 2.5/3.5;
- background-color: #0012;
-
- border-style: solid;
- border-width: 2px;
- border-color: #F75;
+#tableau > div {
+ margin-top: 2.5%;
+ height: 100%;
+ aspect-ratio: 2.5/3.5;
+ background-color: #0012;
+ border-style: solid;
+ border-width: 2px;
+ border-color: #f75;
}
.card,
#deal,
-#tableau>div,
-#stack>div {
- border-radius: 0.7cqw;
-}
\ No newline at end of file
+#tableau > div,
+#stack > div {
+ border-radius: 0.7cqw;
+}
diff --git a/images/back.svg b/images/back.svg
index ca9d0f7..b22eac4 100644
--- a/images/back.svg
+++ b/images/back.svg
@@ -1,6 +1,5 @@
-
\ No newline at end of file
+