$main-color: #fd500a; $secondary-color: #e62202; $lighter-color: #fe9402; $neutral-color: #ccc; body { font-family: 'Arvo', Georgia, serif; font-weight: 400; background-color: $neutral-color; } a { color: $lighter-color; &:hover { color: $main-color; } } button, input { display: block; border: none; outline: none; font-family: inherit; border-radius: 2px; background-color: $main-color; color: #fff; &:hover { background-color: $secondary-color; cursor: pointer; } } em { font-size: 1.2em; color: $secondary-color; font-style: normal; } h1 { display: block; font-size: 24px; padding: 15px; text-align: center; color: $main-color; } h2 { display: block; font-size: 20px; color: $main-color; } input { height: 100%; float: right; margin: 0; font-family: inherit; background-color: $main-color; color: #fff; border-radius: 2px; transition: background-color 0.2s ease-in; &:hover { background-color: $secondary-color; cursor: pointer; } } p { margin: 0 auto; text-align: right; color: $main-color; } // homescreen stuff // ---------------- .homescreen { width: 300px; height: 360px; margin: 25px auto; border-radius: 2px; background-color: #fff; } .homescreen > p { width: 80%; margin: 20px auto 0 10px; text-align: center; } .game-opt { height: 65px; width: 240px; margin: 0 auto; } // information overlay styles div.info { display: none; position: absolute; top: 25px; width: 400px; height: 360px; padding: 0 50px; margin-left: -100px; background-color: #fff; border-radius: 2px; z-index: 3; &.shown { display: block; } } button.got-it { float: right; margin-top: 2em; padding: 0.4em; font-size: 1.2em; } .info h1 { text-align: left; } // homescreen button .game-opt > button { width: 200px; position: absolute; float: left; font-size: 1.2em; color: #fff; transition: 0.4s ease-in; } .game-opt > button:nth-child(odd) { height: 60px; z-index: 2; background-color: $main-color; &:hover { background-color: $secondary-color; } } .game-opt > button:nth-child(even) { height: 40px; text-align: right; padding-right: 18px; background-color: $neutral-color; margin-top: 10px; &:hover { background-color: $lighter-color; } } .game-opt > button:nth-child(odd):hover + button, .game-opt > button:nth-child(even):hover { width: 240px; } /* gamescreen stuff ---------------- */ .game-screen { display: block; display: none; position: absolute; top: 25px; width: 500px; height: 500px; margin-left: -250px; left: 50%; background-color: #fff; border-radius: 2px; z-index: 4; &.shown { display: block; } } // gamescreen header stuff .game-screen header { display: block; width: 400px; height: 60px; margin-left: 16px; padding: 0 2px 20px 2px; } .game-screen h1, .game-screen h2 { margin: 0; padding: 0; } .game-screen h1 { padding: 10px 10px 10px 0; float: left; text-align: left; width: 50%; color: $neutral-color; } .game-screen h2 { width: 40%; float: right; padding: 15px 0 0 0; text-align: right; } .game-screen a { display: block; width: 36%; padding: 5px 0; font-size: 0.8em; } // board stuff .board { width: 400px; height: 320px; margin-left: 16px; background-color: $neutral-color; border-radius: 2px; } .board > div { width: 49.5%; height: 100%; float: left; position: static; } .board-left { border-right: 2px solid #dedede; } // displays-under-board styles .bottom-bar { margin: 20px 0 0 16px; width: 404px; height: 30px; } .bottom-bar span, .bottom-bar input { font-size: 18px; } .bottom-bar span { display: block; float: left; line-height: 1; color: $main-color; width: 40%; margin-top: 6px; } .bottom-bar input { float: right; } .error { display: none; width: 80%; margin-left: 16px; position: relative; top: 10px; color: red; &.shown { display: block; } } .level::before { content: 'Level ' } .score::before { content: 'Score: '; } .goal::before { content: 'Completed: '; } // game pieces .piece { width: 50px; height: 50px; position: absolute; border: 4px solid #ccc; border-radius: 50%; &:hover { cursor: pointer; } } .piece.selected { border: 4px solid #fff; } #base { width: 70px; height: 70px; position: relative; top: 50%; margin: -37px auto 0 auto; }