/* * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ body { background: black url(background.jpeg) repeat-x center top; background-size: 200px; color: white; text-align: center; } a { color: #ff9249; } /** I'm so sorry. */ blink { animation: blink 1s step-end infinite; } @keyframes blink { 67% { opacity: 0 } } header .logo { width: 100px; } header ul { list-style: none; padding: 0; color: #555; } header li { display: inline-block; } header li::before { content: " — "; } header li:first-child::before { content: ""; } .counter { display: inline-flex; margin: 20px; } .counter span { border: 1px solid #333; width: 12px; font-family: Monospace; background: linear-gradient(to top, red, blue); } dl { width: 400px; margin: 0 auto; text-align: left; } dd { margin-bottom: 1em; } section table { margin: 0 auto; text-align: left; } section table td, section table th { min-width: 50px; } .dragon { box-sizing: border-box; padding: 20px; width: 280px; height: 280px; margin: 12px auto; border: 2px solid rgba(255, 255, 255, 0.125); background: #111; border-radius: 2px; position: relative; overflow: hidden; } .dragon #guy { position: absolute; width: 100px; margin-left: -50px; margin-top: -50px; z-index: 1000; transition: transform 1s ease-in-out; } .dragon img { width: 100%; cursor: pointer; transition: transform 0.25s; } .dragon img:hover { transform: scale(1.45) rotate(10deg); } .coin { position: absolute; opacity: 0.5; width: 10px; height: 5px; margin-left: -5px; margin-top: -2px; background: yellow; border-radius: 100%; /** oval */ border-bottom: 1px solid rgba(0, 0, 0, 0.5); border-top: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.75), 0 -1px 0 rgba(0, 0, 0, 0.25); } .actions { width: 280px; height: 80px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, 0.125); background: #211; border-radius: 2px; margin: 12px auto; display: flex; padding: 2px; } .actions button { border: 0; flex-grow: 1; width: 300%; /** forces equal size */ margin-left: 2px; background: rgba(255, 255, 255, 0.125); color: white; font-size: 16px; padding: 12px; opacity: 0.8; } .actions button:first-child { margin-left: 0; } .actions button:disabled { text-decoration: line-through; } .actions button:hover:not(:disabled) { opacity: 1.0; cursor: pointer; }