|
| 1 | +body { |
| 2 | + background: indigo; |
| 3 | +} |
| 4 | + |
| 5 | +.container { |
| 6 | + padding: 100px 0; |
| 7 | +} |
| 8 | + |
| 9 | +.row { |
| 10 | + text-align: center; |
| 11 | +} |
| 12 | + |
| 13 | +.col-sm-12 { |
| 14 | + text-align: center; |
| 15 | +} |
| 16 | + |
| 17 | +.square { |
| 18 | + font-family: Walter Turncoat; |
| 19 | + color: white; |
| 20 | + height: 150px; |
| 21 | + width: 150px; |
| 22 | + background: seagreen; |
| 23 | + box-sizing: border-box; |
| 24 | + float: left; |
| 25 | + border: 2px dashed white; |
| 26 | + font-size: 90px; |
| 27 | + cursor: pointer; |
| 28 | + user-select: none; |
| 29 | + transition: background 0.3s; |
| 30 | +} |
| 31 | + |
| 32 | +.highlight:hover { |
| 33 | + transition: background 0.2s; |
| 34 | + background: orange; |
| 35 | +} |
| 36 | + |
| 37 | +.fancy { |
| 38 | + font-family: Walter Turncoat; |
| 39 | +} |
| 40 | + |
| 41 | +.arrow { |
| 42 | + cursor: auto; |
| 43 | +} |
| 44 | + |
| 45 | +.choice { |
| 46 | + font-size: 20px; |
| 47 | + transition: font-size 0.4s, border 0.4s, margin 0.4s, width 0.4s; |
| 48 | + position: relative; |
| 49 | + padding: 18px 0px; |
| 50 | + margin: 50px 20px; |
| 51 | + user-select: none; |
| 52 | + cursor: pointer; |
| 53 | + height: 80px; |
| 54 | + width: 150px; |
| 55 | +} |
| 56 | + |
| 57 | +.tipText { |
| 58 | + opacity: 0; |
| 59 | + transition: opacity 1.3s; |
| 60 | + top: 125%; |
| 61 | + left: 30%; |
| 62 | + margin-left: -60px; |
| 63 | + font-size: 16px; |
| 64 | + font-weight: 700; |
| 65 | + font-family: arial; |
| 66 | + visibility: hidden; |
| 67 | + width: 120px; |
| 68 | + background: orange; |
| 69 | + color: black; |
| 70 | + text-align: center; |
| 71 | + padding: 5px 0; |
| 72 | + border-radius: 6px; |
| 73 | + position: absolute; |
| 74 | + z-index: 4; |
| 75 | +} |
| 76 | + |
| 77 | +.tipText::after { |
| 78 | + content: ""; |
| 79 | + position: absolute; |
| 80 | + bottom: 100%; |
| 81 | + left: 50%; |
| 82 | + margin-left: -5px; |
| 83 | + border-width: 10px; |
| 84 | + border-style: solid; |
| 85 | + border-color: transparent transparent orange transparent; |
| 86 | +} |
| 87 | + |
| 88 | +#chooseX:hover .tipText { |
| 89 | + visibility: visible; |
| 90 | + opacity: 1; |
| 91 | +} |
| 92 | + |
| 93 | +#startTitle { |
| 94 | + font-size: 55px; |
| 95 | +} |
| 96 | + |
| 97 | +#startModalBG { |
| 98 | + height: 100%; |
| 99 | + width: 100%; |
| 100 | + position: fixed; |
| 101 | + background: seagreen; /* For browsers that do not support gradients */ |
| 102 | + background: -webkit-linear-gradient(left top, seagreen, mediumseagreen); /* For Safari 5.1 to 6.0 */ |
| 103 | + background: -o-linear-gradient(bottom right, seagreen, mediumseagreen); /* For Opera 11.1 to 12.0 */ |
| 104 | + background: -moz-linear-gradient(bottom right, seagreen, mediumseagreen); /* For Firefox 3.6 to 15 */ |
| 105 | + background: linear-gradient(to bottom right, seagreen, mediumseagreen); /* Standard syntax */ |
| 106 | +} |
| 107 | + |
| 108 | +#modalContent { |
| 109 | + margin: 100px auto; |
| 110 | + width: 600px; |
| 111 | + height: 320px; |
| 112 | + padding: 40px; |
| 113 | + border: 3px dashed #FFF; |
| 114 | + border-radius: 3%; |
| 115 | + background: indigo; |
| 116 | + color: white; |
| 117 | + text-align: center; |
| 118 | + white-space: nowrap; |
| 119 | + overflow: hidden; |
| 120 | +} |
| 121 | + |
| 122 | +#endWinner { |
| 123 | + font-size: 50px; |
| 124 | + padding: 14px 0; |
| 125 | +} |
| 126 | + |
| 127 | +#endModalBG { |
| 128 | + height: 100%; |
| 129 | + width: 100%; |
| 130 | + position: fixed; |
| 131 | + background: rgba(0,0,0,0.5); |
| 132 | + display: none; |
| 133 | + z-index: 2; |
| 134 | +} |
| 135 | + |
| 136 | +#endModalContent { |
| 137 | + margin: 100px auto; |
| 138 | + width: 600px; |
| 139 | + height:280px; |
| 140 | + padding: 30px; |
| 141 | + border: 1px solid #FFF; |
| 142 | + background: rgba(0,0,0,0.6); |
| 143 | + color: white; |
| 144 | + text-align: center; |
| 145 | + white-space: nowrap; |
| 146 | + overflow: hidden; |
| 147 | + opacity: 0; |
| 148 | + transition: opacity 1s; |
| 149 | +} |
| 150 | + |
| 151 | +#chooseX:hover, #chooseO:hover, #newGame:hover { |
| 152 | + transition: font-size 0.4s, border 0.4s, margin 0.4s, width 0.4s; |
| 153 | + font-size: 26px; |
| 154 | + border: 2px dashed white; |
| 155 | + border-radius: 6%; |
| 156 | + margin: 50px 20px; |
| 157 | + width: 200px; |
| 158 | +} |
| 159 | + |
| 160 | +#newGame:hover { |
| 161 | + transition: background-color 0.4s, font-size 0.4s, border 0.4s, margin 0.4s, width 0.4s; |
| 162 | + font-size: 26px; |
| 163 | + border: 2px dashed white; |
| 164 | + margin: 50px 20px; |
| 165 | + width: 220px; |
| 166 | + background-color: indigo; |
| 167 | +} |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | +#board { |
| 172 | + position: fixed; |
| 173 | + height: 450px; |
| 174 | + width: 450px; |
| 175 | + position: auto; |
| 176 | + visibility: hidden; |
| 177 | + left: 50%; |
| 178 | + transform: translate(-50%, 0); |
| 179 | + white-space: nowrap; |
| 180 | + box-sizing: border-box; |
| 181 | + z-index: 1; |
| 182 | +} |
| 183 | + |
0 commit comments