diff --git a/index.html b/index.html
index 6cdcfd0..2e0a516 100644
--- a/index.html
+++ b/index.html
@@ -42,8 +42,120 @@
width: 100vmin;
}
+ @keyframes scrollLeft {
+ from {left: 0;}
+ to {
+ left: -720em; /* fallback */
+ left: -7200vmin;
+ }
+ }
+
+ @-webkit-keyframes scrollLeft {
+ from {left: 0;}
+ to {
+ left: -720em; /* fallback */
+ left: -7200vmin;
+ }
+ }
+
+ @keyframes bounce {
+ 0% {top: 0; left: 0;}
+ 50% {
+ top: 1.2em; /* fallback */
+ top: 12vmin;
+ left: 0.2em; /* fallback */
+ left: 2vmin;
+ }
+ 100% {top: 0; left: 0;}
+ }
+
+ @-webkit-keyframes bounce {
+ 0% {top: 0; left: 0;}
+ 50% {
+ top: 1.2em; /* fallback */
+ top: 12vmin;
+ left: 0.2em;
+ left: 2vmin;
+ }
+ 100% {top: 0; left: 0;}
+ }
+
+ @keyframes rainbow {
+ 0% {color: #c6fe7a;}
+ 33% {color: #7ac5fe;}
+ 67% {color: #fe7ac6;}
+ 100% {color: #c6fe7a;} /* back to start */
+ }
+
+ @-webkit-keyframes rainbow {
+ 0% {color: #c6fe7a;}
+ 33% {color: #7ac5fe;}
+ 67% {color: #fe7ac6;}
+ 100% {color: #c6fe7a;} /* back to start */
+ }
+
#cracktro {
- display: none;
+ color: #c6fe7a;
+ font-size: 0.4em; /* fallback */
+ font-size: 6vmin;
+ height: 2em; /* fallback */
+ height: 20vmin;
+ margin: 0.4em 0; /* fallback */
+ margin: 4vmin 0;
+ overflow: hidden;
+ white-space: nowrap;
+ width: 720em;
+ width: 7200vmin;
+
+ position: relative;
+ animation: scrollLeft 420s linear infinite;
+ -webkit-animation: scrollLeft 420s linear infinite;
+ }
+
+ #cracktro span {
+ margin-right: 0.1em; /* fallback */
+ margin-right: 1vmin;
+ position: relative;
+ animation: bounce 4s infinite ease-in-out,rainbow 5s infinite;
+ -webkit-animation: bounce 4s infinite ease-in-out,rainbow 5s infinite;
+ text-shadow: 0.5vmin 0.5vmin black;
+ }
+
+ #cracktro span:nth-child(10n+1) {
+ animation-delay: 0.4s;
+ -webkit-animation-delay: 0.4s;
+ }
+ #cracktro span:nth-child(10n+2) {
+ animation-delay: 0.8s;
+ -webkit-animation-delay: 0.8s;
+ }
+ #cracktro span:nth-child(10n+3) {
+ animation-delay: 1.2s;
+ -webkit-animation-delay: 1.2s;
+ }
+ #cracktro span:nth-child(10n+4) {
+ animation-delay: 1.6s;
+ -webkit-animation-delay: 1.6s;
+ }
+ #cracktro span:nth-child(10n+5) {
+ animation-delay: 2s;
+ -webkit-animation-delay: 2s;
+ }
+ #cracktro span:nth-child(10n+6) {
+ animation-delay: 2.4s;
+ -webkit-animation-delay: 2.4s;
+ }
+ #cracktro span:nth-child(10n+7) {
+ animation-delay: 2.8s;
+ -webkit-animation-delay: 2.8s;
+ }
+ #cracktro span:nth-child(10n+8) {
+ animation-delay: 3.2s;
+ -webkit-animation-delay: 3.2s;
+ }
+ #cracktro span:nth-child(10n+9) {
+ animation-delay: 3.6s;
+ -webkit-animation-delay: 3.6s;
}
#game {
@@ -98,13 +210,19 @@
width: auto;
}
- #gameOver, #setup {
- position: absolute;
+ #gameOver, #setup, #tutorial {
+ background-color: rgba(0, 0, 0, 0.6);
width: 10em; /* fallback */
width: 100vmin;
height: 10em; /* fallback */
height: 100vh;
- background-color: rgba(0,0,0,0.3);
+ overflow: hidden;
+ position: absolute;
+ }
+
+ #gameOver .score {
+ margin-right: 1.2em;
+ margin-right: 12vmin;
}
#setup h2 {
@@ -122,24 +240,27 @@
text-shadow: 0.5vmin 0.5vmin 0 #a4f4b4; /* x y blur-radius colour */
}
+ #tutorial .gameBoard {
+ float: left;
+ padding: 0.5em; /* fallback */
+ padding: 5vmin;
+ padding-top: 0;
+ }
+
+ #tutorial p {
+ padding: 0 0.5em; /* fallback */
+ padding: 0 5vmin;
+ }
+
.centre {
- text-align: center;
+ clear: both;
margin-top: 0.2em; /* fallback */
margin-top: 2vmin;
+ text-align: center;
}
- input[type="radio"] {
- display: none;
- }
-
- /* after checked input */
- input:checked + label {
- border: 0.1em dotted #a4f4b4; /* fallback */
- border: 1vmin dotted #a4f4b4;
- border-radius: 0.2em; /* fallback */
- border-radius: 2vmin;
- padding: 0.1em 0.2em; /* fallback */
- padding: 1vmin 2vmin;
+ .subtitle {
+ text-align: center;
}
button {
@@ -170,6 +291,32 @@
left: auto;
}
+ button.donate {
+ background: #ffefa7;
+ background: -moz-linear-gradient(top, #ffefa7 0%, #feae27 100%);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffefa7), color-stop(100%,#feae27));
+ background: -webkit-linear-gradient(top, #ffefa7 0%,#feae27 100%);
+ background: -o-linear-gradient(top, #ffefa7 0%,#feae27 100%);
+ background: -ms-linear-gradient(top, #ffefa7 0%,#feae27 100%);
+ background: linear-gradient(to bottom, #ffefa7 0%,#feae27 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffefa7', endColorstr='#feae27',GradientType=0 );
+ }
+
+ button.twitter {
+ background: #51aaea;
+ background: -moz-linear-gradient(top, #51aaea 0%, #3375a6 100%);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#51aaea), color-stop(100%,#3375a6));
+ background: -webkit-linear-gradient(top, #51aaea 0%,#3375a6 100%);
+ background: -o-linear-gradient(top, #51aaea 0%,#3375a6 100%);
+ background: -ms-linear-gradient(top, #51aaea 0%,#3375a6 100%);
+ background: linear-gradient(to bottom, #51aaea 0%,#3375a6 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#51aaea', endColorstr='#3375a6',GradientType=0 );
+ }
+
+ form {
+ display: inline;
+ }
+
h1, h2 {
text-align: center;
}
@@ -186,6 +333,12 @@
text-shadow: 1vmin 1vmin 0 #fe7ac6; /* x y blur-radius colour */
}
+ h2 {
+ color: #7ac5fe;
+ font-size: 0.6em; /* fallback */
+ font-size: 6vmin;
+ }
+
ul {
float: left;
clear: both;
@@ -236,6 +389,12 @@
background-color: #c6fe7a;
}
+ li.highlighted {
+ border: 0.1em solid #fe7ac6; /* fallback */
+ border: 1vmin solid #fe7ac6;
+ padding: 0;
+ }
+
li.mine.revealed {
background-color: #d23000;
background-image: url("images/skull.png");
@@ -285,35 +444,59 @@
strong {
color: #fe7ac6;
}
+
+ table {
+ color: #fe7ac6;
+ font-size: 4vmin;
+ margin: 0 auto;
+ text-align: center;
+ }
+
+ th, td {
+ width: 50%;
+ }
+
+ td {
+ color: #fff;
+ font-size: 8vmin;
+ }