/* game */ .header-logo h1 { color: white; font-size: 45px; } .game-section { position: relative; padding: 20px; padding-bottom: 0px; } .food-panel { position: relative; height: 100px; width: 100%; text-align: center; } .profile-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%); border-radius: 15px 15px 0 0; pointer-events: none; } .profile-btn:hover { background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%); box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); transform: translateY(-3px); } .food { position: absolute; width: 100px; height: 100%; touch-action: none; cursor: grab; background-size: contain; background-repeat: no-repeat; background-position: center; z-index: 5; } .title-game { position: relative; text-align: center; } .title-game span { font-size: 50px; } #egg { top: 0; left: 0%; background-image: url("assets/images/egg.webp"); } #chicken { top: 0; left: 30%; background-image: url("assets/images/ayamdada.webp"); } #milk { top: 0; left: 60%; background-image: url("assets/images/milk.webp"); } .basket-container { position: relative; width: 100%; min-height: 250px; margin-top: 10%; } #basket { position: relative; bottom: 10px; left: 50%; transform: translateX(-50%); width: auto; height: 150px; background-size: contain; background-repeat: no-repeat; background-position: center; z-index: 10; background-image: url("assets/images/basket.webp"); } #counter-panel { position: relative; width: 80%; margin-top: 3%; margin-bottom: 3%; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 20px; padding: 20px 25px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(102, 126, 234, 0.2); color: white; text-align: center; border: 3px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); position: relative; overflow: hidden; } #counter-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%); border-radius: 20px 20px 0 0; pointer-events: none; } #counter-panel .food-counts { display: flex; justify-content: space-around; align-items: center; margin-bottom: 15px; gap: 8px; } #counter-panel .food-item { background: rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 6px 10px; backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); flex: 1; min-width: 55px; transition: all 0.3s ease; text-align: center; font-size: 0.9em; } #counter-panel .food-item:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); } #counter-panel .protein-progress { background: rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 12px 20px; border: 2px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px); font-weight: 900; font-size: 1.2em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } #counter-panel span { font-size: 24px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); } #protein-total { font-weight: 900; color: #FFD700; } #protein-limit { font-weight: 900; color: #90EE90; } .profile-panel { position: relative; width: 80%; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 20px; padding: 15px 25px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(102, 126, 234, 0.2); text-align: center; border: 3px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); margin-top: 15px; overflow: hidden; } .profile-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%); border-radius: 20px 20px 0 0; pointer-events: none; } .profile-panel span { font-size: 24px; } .profile-btn { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); border: none; color: white; padding: 12px 24px; font-size: 16px; font-weight: 700; border-radius: 15px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3); text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; z-index: 1; } .profile-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%); border-radius: 15px 15px 0 0; pointer-events: none; } .profile-btn:hover { background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%); box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4); transform: translateY(-3px); } .button-panel { position: relative; width: 100%; margin: 3% 7%; left: 50%; transform: translateX(-50%); border-radius: 10px; } /* Responsive Design for Counter Panel */ @media (max-width: 768px) { #counter-panel { width: 95%; padding: 15px 20px; } #counter-panel .food-counts { flex-direction: row; gap: 6px; } #counter-panel .food-item { min-width: 50px; flex: 1; font-size: 0.8em; padding: 5px 8px; } #counter-panel span { font-size: 20px; } .profile-panel { width: 95%; padding: 12px 20px; } .profile-btn { padding: 10px 20px; font-size: 14px; } } @media (min-width: 700px) and (max-width: 720px) { #counter-panel { width: 85%; } .profile-panel { width: 85%; } } /* Animation for food items */ @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } #counter-panel .food-item.updated { animation: pulse 0.6s ease; }