|
| 1 | +#root { |
| 2 | + max-width: 100%; |
| 3 | + margin: 0 auto; |
| 4 | + padding: 0; |
| 5 | + text-align: center; |
| 6 | + height: 100%; |
| 7 | + padding: env(safe-area-inset-top) env(safe-area-inset-right) |
| 8 | + env(safe-area-inset-bottom) env(safe-area-inset-left); |
| 9 | +} |
| 10 | + |
| 11 | +.logo { |
| 12 | + height: 6em; |
| 13 | + padding: 1.5em; |
| 14 | + will-change: filter; |
| 15 | + transition: filter 300ms; |
| 16 | +} |
| 17 | +.logo:hover { |
| 18 | + filter: drop-shadow(0 0 2em #646cffaa); |
| 19 | +} |
| 20 | +.logo.react:hover { |
| 21 | + filter: drop-shadow(0 0 2em #61dafbaa); |
| 22 | +} |
| 23 | + |
| 24 | +@keyframes logo-spin { |
| 25 | + from { |
| 26 | + transform: rotate(0deg); |
| 27 | + } |
| 28 | + to { |
| 29 | + transform: rotate(360deg); |
| 30 | + } |
| 31 | +} |
| 32 | + |
| 33 | +@media (prefers-reduced-motion: no-preference) { |
| 34 | + a:nth-of-type(2) .logo { |
| 35 | + animation: logo-spin infinite 20s linear; |
| 36 | + } |
| 37 | +} |
| 38 | + |
| 39 | +.card { |
| 40 | + padding: 2em; |
| 41 | +} |
| 42 | + |
| 43 | +.read-the-docs { |
| 44 | + color: #888; |
| 45 | +} |
| 46 | + |
| 47 | +.app-container { |
| 48 | + display: flex; |
| 49 | + flex-direction: column; |
| 50 | + align-items: center; |
| 51 | + width: 100%; |
| 52 | + height: 100%; |
| 53 | + max-width: 100%; |
| 54 | + margin: 0; |
| 55 | + padding: 0; |
| 56 | + box-sizing: border-box; |
| 57 | + overflow: hidden; |
| 58 | + position: absolute; |
| 59 | + top: 0; |
| 60 | + left: 0; |
| 61 | + right: 0; |
| 62 | + bottom: 0; |
| 63 | +} |
| 64 | + |
| 65 | +main { |
| 66 | + width: 100%; |
| 67 | + height: 100%; |
| 68 | + flex-grow: 1; |
| 69 | + display: flex; |
| 70 | + justify-content: center; |
| 71 | + align-items: center; |
| 72 | + overflow: hidden; |
| 73 | + position: relative; |
| 74 | +} |
| 75 | + |
| 76 | +footer { |
| 77 | + width: 100%; |
| 78 | + text-align: center; |
| 79 | + padding: 1rem 0; |
| 80 | +} |
| 81 | + |
| 82 | +.game-container { |
| 83 | + width: 100% !important; |
| 84 | + height: 100% !important; |
| 85 | + border-radius: 0; |
| 86 | + overflow: hidden; |
| 87 | + box-shadow: none; |
| 88 | + position: absolute; |
| 89 | + top: 0; |
| 90 | + left: 0; |
| 91 | + right: 0; |
| 92 | + bottom: 0; |
| 93 | + display: block; |
| 94 | +} |
| 95 | + |
| 96 | +.game-container canvas { |
| 97 | + width: 100% !important; |
| 98 | + height: 100% !important; |
| 99 | + display: block !important; |
| 100 | +} |
| 101 | + |
| 102 | +@media (min-width: 768px) { |
| 103 | + #root { |
| 104 | + padding: 1rem; |
| 105 | + } |
| 106 | + |
| 107 | + .app-container { |
| 108 | + max-width: 1200px; |
| 109 | + padding: 1rem; |
| 110 | + } |
| 111 | + |
| 112 | + .game-container { |
| 113 | + width: 800px; |
| 114 | + height: 600px; |
| 115 | + max-width: 100%; |
| 116 | + border-radius: 8px; |
| 117 | + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); |
| 118 | + } |
| 119 | +} |
| 120 | + |
| 121 | +.orientation-message { |
| 122 | + position: fixed; |
| 123 | + top: 0; |
| 124 | + left: 0; |
| 125 | + width: 100%; |
| 126 | + height: 100%; |
| 127 | + background-color: rgba(0, 0, 0, 0.8); |
| 128 | + display: flex; |
| 129 | + flex-direction: column; |
| 130 | + justify-content: center; |
| 131 | + align-items: center; |
| 132 | + z-index: 1000; |
| 133 | + color: white; |
| 134 | + text-align: center; |
| 135 | + padding: 20px; |
| 136 | +} |
| 137 | + |
| 138 | +.portrait-allowed { |
| 139 | + background-color: rgba(0, 0, 0, 0.7); |
| 140 | + height: auto; |
| 141 | + position: absolute; |
| 142 | + bottom: 0; |
| 143 | + top: auto; |
| 144 | + padding: 10px; |
| 145 | +} |
| 146 | + |
| 147 | +.dismiss-btn { |
| 148 | + margin-top: 10px; |
| 149 | + padding: 8px 12px; |
| 150 | + background: #646cff; |
| 151 | + color: white; |
| 152 | + border: none; |
| 153 | + border-radius: 4px; |
| 154 | + cursor: pointer; |
| 155 | +} |
| 156 | + |
| 157 | +.rotate-icon { |
| 158 | + font-size: 4rem; |
| 159 | + margin-bottom: 1rem; |
| 160 | + animation: rotate 2s infinite; |
| 161 | +} |
| 162 | + |
| 163 | +@keyframes rotate { |
| 164 | + 0% { |
| 165 | + transform: rotate(0deg); |
| 166 | + } |
| 167 | + 100% { |
| 168 | + transform: rotate(90deg); |
| 169 | + } |
| 170 | +} |
0 commit comments