#gameContainer { text-align: center; margin: 20px; display: flex; gap: 20px; justify-content: center; } #gameCanvas { border: 1px solid black; } #results { margin-top: 20px; font-size: 18px; } #roundHistory { width: 100px; height: 400px; text-align: left; border: 1px solid #ccc; font-family: monospace; } .round { margin: 5px 0; } #startButton { margin-top: 20px; padding: 10px 20px; font-size: 18px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } .msg { font-size: 24px; margin-top: 20px; height: 50px; font-weight: bold; } .bounce { opacity: 0; transform: translateY(-30px); animation: bounceIn 0.4s ease-out forwards; } .result { text-align: center; } @keyframes bounceIn { 0% { opacity: 0.5; transform: translateY(-30px); } 20% { opacity: 1; transform: translateY(15px); } 80% { opacity: 1; transform: translateY(-5px); } 99% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } } .number-container { width: 400px; margin: 0px auto; } .number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .number-cell { background: white; border: 1px solid #e0e0e0; padding: 12px 8px; text-align: center; border-radius: 4px; } .number-value { font-size: 14px; color: #333; margin-bottom: 4px; } .number-label { font-size: 12px; color: #666; } .popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease-out; } .popup-overlay.show { opacity: 1; } .popup-container { background-color: white; width: 400px; min-height: 100px; max-height: 650px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; position: relative; transform: scale(0, 0); transition: transform 0.3s ease-out; margin: auto; } .popup-container.show { transform: scale(1, 1); } .popup-content { padding: 20px; flex-grow: 1; } .popup-close { width: 100%; padding: 15px 0; background-color: #f5f5f5; border: none; border-top: 1px solid #eee; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; cursor: pointer; transition: background-color 0.2s; } .popup-close:hover { background-color: #ebebeb; } @keyframes scaleIn { from { transform: scale(0, 0); } to { transform: scale(1, 1); } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }