/* Import Custom Font */ @font-face { font-family: 'DarkerGrotesque'; src: url('DarkerGrotesque-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; } * { margin: 0; padding: 0; box-sizing: border-box; /* overflow: hidden; */ } body { font-family: 'DarkerGrotesque', 'Arial Black', 'Helvetica', sans-serif; background: url('assets/images/BG\ .jpg') center center/cover no-repeat; background-attachment: fixed; min-height: 100vh; padding: 20px; font-size: 16px; line-height: 1.4; font-weight: 700; color: #000; display: flex; justify-content: center; align-items: center; } .container { max-width: 1000px; width: 100%; margin: 0 auto; background: #FFF; border-radius: 50px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); } .header-logo { text-align: center; padding: 30px 30px; background: #363c96; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); display: flex; justify-content: center; align-items: center; } .logo-image { max-height: 150px; max-width: 600px; height: auto; width: auto; object-fit: contain; } .calculator-section { padding: 30px 40px 20px; } .info-banner { display: flex; align-items: center; background: #FF5722; padding: 15px; margin: 0 -40px 20px; border: 1px solid #e64a19; border-left: 3px solid #d84315; border-radius: 4px; } .info-icon { font-size: 1.2em; margin-right: 10px; color: #FFF; } .info-text { flex: 1; font-size: 0.9em; color: #FFF; line-height: 1.4; font-weight: bold; } .info-close { background: #4CAF50; border: none; color: #FFF; font-size: 0.8em; font-weight: 900; cursor: pointer; padding: 8px 12px; text-transform: uppercase; border-radius: 6px; box-shadow: 0 4px 0 #2E7D32, 0 6px 12px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; position: relative; overflow: hidden; transform: translateY(0); } .info-close::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 6px 6px 0 0; pointer-events: none; } .info-close:hover { background: #45A049; box-shadow: 0 6px 0 #2E7D32, 0 8px 15px rgba(0, 0, 0, 0.3); transform: translateY(-2px); } .info-close:active { background: #2E7D32; box-shadow: 0 2px 0 #1B5E20, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } .gender-selection { display: flex; gap: 5px; justify-content: center; margin-bottom: 20px; position: relative; } .gender-option { cursor: pointer; transition: all 0.3s ease; background: transparent; border: none; padding: 0; margin: 0; } .gender-option:hover { transform: scale(1.05); } .gender-option.selected { transform: scale(1.1); } .gender-icon-img { width: auto; height: 400px; object-fit: contain; transition: all 0.3s ease; border-radius: 12px; filter: grayscale(100%); } .gender-option:hover .gender-icon-img { filter: grayscale(50%) brightness(1.1); } .gender-option.selected .gender-icon-img { filter: grayscale(0%) brightness(1.2) saturate(1.3); } /* Form Grid Layout */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 30px; } .form-row-full { grid-column: 1 / -1; } .input-card { background: #FFF; border-radius: 8px; padding: 0px; position: relative; transition: all 0.2s ease; } .input-card:hover { border-color: #4CAF50; } .input-card.keyboard-active { border-color: #4CAF50; } .input-card label { display: block; font-weight: 900; margin-bottom: 15px; color: #000; text-transform: uppercase; letter-spacing: 1px; font-size: 10em; } .input-card input, .input-card select { width: 100%; padding: 12px; border: 2px solid #E0E0E0; border-radius: 15px; font-size: 32px; font-weight: bold; background: #FFF; color: #000; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .input-card input:focus, .input-card select:focus { outline: none; border-color: #4CAF50; box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2); } .input-card select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 45px; } .input-card:focus-within { border-color: #4CAF50; } .input-card label { display: block; margin-bottom: 8px; font-weight: 900; color: #000; font-size: 1.5em; text-transform: uppercase; } .input-card input, .input-card select { width: 100%; padding: 17px; border: 1px solid #000; border-radius: 15px; font-size: 1.5em; color: #000; background: #FFF; outline: none; font-weight: bold; } .input-card input::placeholder { color: #666; font-size: 0.9em; font-weight: bold; } /* Button Container */ .button-container { display: flex; gap: 20px; justify-content: center; margin-top: 30px; flex-wrap: wrap; } .calculate-btn { flex: 1; max-width: 400px; min-width: 180px; padding: 10px; background: #ed1580; color: #FFF; border: none; border-radius: 25px; font-size: 3em; font-weight: 900; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 2px; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; box-shadow: 0 6px 0 #b91465, 0 8px 15px rgba(0, 0, 0, 0.3); position: relative; overflow: hidden; transform: translateY(0); } .calculate-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 25px 25px 0 0; pointer-events: none; } .calculate-btn:hover { background: #D81B60; box-shadow: 0 8px 0 #a01155, 0 12px 20px rgba(0, 0, 0, 0.4); transform: translateY(-2px); } .calculate-btn:active { background: #C2185B; box-shadow: 0 2px 0 #a01155, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } .reset-btn { flex: 1; max-width: 300px; min-width: 180px; padding: 25px; background: #9C27B0; color: #FFF; border: none; border-radius: 8px; font-size: 1.4em; font-weight: 900; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 2px; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; } .reset-btn:hover { background: #8E24AA; } .reset-btn:active { background: #7B1FA2; } .reset-btn.hidden { display: none; } /* Utility class untuk menyembunyikan elemen */ .hidden { display: none !important; } .results-container { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .result { padding: 15px; font-size: 0.9em; font-weight: 900; text-align: center; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.2s ease; border: 1px solid #e0e0e0; background-color: #FFF; border-radius: 8px; } .result h3 { font-size: 1em; margin-bottom: 8px; color: #000; text-transform: uppercase; letter-spacing: 1px; } .result .value { font-size: 1.8em; font-weight: 900; margin: 5px 0; } .result .category { font-size: 0.8em; margin-bottom: 8px; font-weight: bold; } .result.success { background-color: #4CAF50; color: #FFF; border: 1px solid #45a049; } .result.warning { background-color: #FF5722; color: #FFF; border: 1px solid #e64a19; } .result.danger { background-color: #F44336; color: #FFF; border: 1px solid #d32f2f; } .result.info { background-color: #2196F3; color: #FFF; border: 1px solid #1976d2; } /* BMI Meter Styles */ .bmi-meter { width: 100%; margin: 20px 0; } .bmi-scale { height: 25px; background: linear-gradient(to right, #2196F3 0% 18.5%, #4CAF50 18.5% 25%, #FF5722 25% 30%, #F44336 30% 100%); position: relative; border: 1px solid #ccc; border-radius: 4px; } .bmi-pointer { position: absolute; top: -10px; width: 6px; height: 44px; background: #000; transition: left 0.5s ease; border-radius: 3px; } .bmi-pointer::before { content: ''; position: absolute; top: -8px; left: -6px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 10px solid #000; } .bmi-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.8em; font-weight: 900; text-transform: uppercase; } .bmi-labels span { text-align: center; line-height: 1.2; color: #000; } .bmi-value-display { text-align: center; font-size: 2em; font-weight: 900; margin-bottom: 10px; color: #000; } .bmi-category-display { text-align: center; font-size: 1.2em; font-weight: 900; margin-bottom: 15px; text-transform: uppercase; color: #000; } .bmi-category { margin-top: 15px; font-size: 1em; font-weight: 900; text-transform: uppercase; } .protein-breakdown { margin-top: 15px; font-size: 0.9em; line-height: 1.4; text-align: left; width: 100%; } .protein-breakdown h4 { margin-bottom: 10px; color: #000; font-size: 1em; font-weight: 900; text-transform: uppercase; } .protein-breakdown ul { list-style-type: none; padding-left: 0; } .protein-breakdown li { margin-bottom: 8px; padding: 12px 16px; background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%); border: none; font-size: 0.85em; color: #FFF; font-weight: bold; border-radius: 8px; box-shadow: 0 4px 0 #2E7D32, 0 6px 12px rgba(0, 0, 0, 0.15); position: relative; overflow: hidden; } .protein-breakdown li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 8px 8px 0 0; pointer-events: none; } .formula-sources { background-color: #FF5722; padding: 40px; margin-top: 40px; border: 1px solid #e64a19; border-radius: 8px; } .formula-sources h3 { color: #FFF; margin-bottom: 30px; font-size: 2.2em; text-align: center; border-bottom: 2px solid #d84315; padding-bottom: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; } .formula-toggle { cursor: pointer; user-select: none; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 10px; } .formula-toggle:hover { color: #000; transform: scale(1.05); } #formula-arrow { font-size: 1em; transition: transform 0.3s ease; display: inline-block; color: #FFF; } .formula-content { max-height: 1000px; overflow: hidden; transition: max-height 0.5s ease, opacity 0.3s ease; opacity: 1; } .formula-content.collapsed { max-height: 0; opacity: 0; margin-top: 0; } .source-item { background: #FFF; padding: 30px; margin-bottom: 25px; border: 1px solid #e0e0e0; border-radius: 8px; } .source-item:last-child { margin-bottom: 0; } .source-item h4 { color: #000; margin-bottom: 15px; font-size: 1.6em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; } .formula-button-container.in-result-mode { padding: 0; margin-top: 0px; } .source-item p { margin-bottom: 15px; line-height: 1.6; color: #000; font-size: 1.1em; font-weight: bold; } .source-item ul { margin-left: 30px; color: #000; font-size: 1.1em; font-weight: bold; } .source-item li { margin-bottom: 8px; line-height: 1.6; } @media (max-width: 768px) { body { padding: 15px; font-size: 16px; } .container { max-width: 100%; } .header-logo { padding: 20px 15px; } .logo-image { max-height: 100px; max-width: 400px; } .calculator-section { padding: 25px; } .form-row { grid-template-columns: 1fr; gap: 20px; } .results-container { grid-template-columns: 1fr; gap: 20px; } .formula-sources { padding: 25px; } .source-item { padding: 20px; } .bmi-labels { font-size: 0.7em; } .bmi-labels span { text-align: center; } .formula-toggle { font-size: 1.3em; } #formula-arrow { font-size: 0.7em; } } /* Large display optimization for smart signage */ @media (min-width: 1400px) { body { font-size: 22px; padding: 50px; } .container { max-width: 1600px; } .header-logo { padding: 40px 50px; } .logo-image { max-height: 200px; max-width: 800px; } .calculator-section { padding: 60px; } .form-row { gap: 60px; margin-bottom: 40px; } label { font-size: 1.6em; margin-bottom: 15px; } input[type="number"], select { padding: 25px 30px; font-size: 1.5em; border: 1px solid #ddd; border-radius: 8px; } button { padding: 35px; font-size: 1.8em; margin-bottom: 60px; border: none; border-radius: 12px; } .results-container { gap: 40px; margin-bottom: 60px; } .result { padding: 40px; min-height: 250px; font-size: 1.5em; border: 1px solid #e0e0e0; border-radius: 12px; } .result h4 { font-size: 1.8em; margin-bottom: 20px; } .formula-sources { padding: 60px; margin-top: 60px; } .formula-sources h3 { font-size: 2.5em; margin-bottom: 40px; } .source-item { padding: 40px; margin-bottom: 35px; border: 1px solid #e0e0e0; border-radius: 12px; } .source-item h4 { font-size: 1.8em; } .source-item p { font-size: 1.3em; } .source-item ul { font-size: 1.3em; } } label { display: block; margin-bottom: 8px; font-weight: 900; color: #000; font-size: 1.1em; text-transform: uppercase; } input[type="number"], select { width: 100%; padding: 12px; border: 2px solid #E0E0E0; border-radius: 15px; font-size: 32px; transition: all 0.3s ease; background-color: #FFF; font-weight: bold; color: #000; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } input[type="number"]:focus, select:focus { outline: none; border-color: #4CAF50; background-color: #f8f8f8; box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2); } button { width: 100%; padding: 18px; background: #4CAF50; color: #FFF; border: none; border-radius: 8px; font-size: 18px; font-weight: 900; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 2px; transform: none; } button:hover { background: #45a049; } button:active { background: #388e3c; } .result { margin-top: 20px; padding: 20px; font-size: 18px; font-weight: 900; text-align: center; min-height: 60px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; border: 1px solid #e0e0e0; border-radius: 8px; transform: none; } .result.success { background-color: #4CAF50; color: #FFF; border: 1px solid #45a049; } .result.warning { background-color: #FF5722; color: #FFF; border: 1px solid #e64a19; } .result.danger { background-color: #F44336; color: #FFF; border: 1px solid #d32f2f; } .result.info { background-color: #2196F3; color: #FFF; border: 1px solid #1976d2; } .bmi-category { margin-top: 10px; font-size: 16px; font-weight: 900; text-transform: uppercase; } .protein-breakdown { margin-top: 15px; font-size: 14px; line-height: 1.6; text-align: left; } .protein-breakdown h4 { margin-bottom: 10px; color: #000; font-weight: 900; text-transform: uppercase; } .protein-breakdown ul { list-style-type: none; padding-left: 0; } .protein-breakdown li { margin-bottom: 8px; padding: 12px 16px; background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%); border: none; color: #FFF; font-weight: bold; border-radius: 8px; box-shadow: 0 4px 0 #2E7D32, 0 6px 12px rgba(0, 0, 0, 0.15); position: relative; overflow: hidden; } .protein-breakdown li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 8px 8px 0 0; pointer-events: none; } @media (max-width: 600px) { .container { margin: 10px; } .header-logo { padding: 15px 10px; } .logo-image { max-height: 80px; max-width: 300px; } .calculator-section { padding: 20px; } h2 { font-size: 1.5em; font-weight: 900; text-transform: uppercase; } } /* Inline Keyboard Styles */ .inline-keyboard { background: #FF5722; border: 1px solid #e64a19; border-radius: 8px; margin-top: 15px; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; transform: none; transition: all 0.3s ease; } .inline-keyboard .keyboard-display { background: #FFF; padding: 15px; border-bottom: 1px solid #ddd; text-align: right; } .inline-keyboard .keyboard-display-text { font-size: 1.8em; font-weight: 900; color: #000; min-height: 1em; display: block; } .inline-keyboard .keyboard-keys { padding: 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .inline-keyboard .key-btn { background: #FFF; color: #000; border: 1px solid #ccc; border-radius: 4px; padding: 15px; font-size: 1.2em; font-weight: 900; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; min-height: 50px; display: flex; align-items: center; justify-content: center; } .inline-keyboard .key-btn:hover { background: #4CAF50; color: #FFF; border-color: #4CAF50; } .inline-keyboard .key-btn:active { background: #388e3c; } .inline-keyboard .key-clear { background: #F44336 !important; color: #FFF !important; } .inline-keyboard .key-clear:hover { background: #D32F2F !important; color: #FFF !important; } .inline-keyboard .key-backspace { background: #FF9800 !important; color: #FFF !important; } .inline-keyboard .key-backspace:hover { background: #F57C00 !important; color: #FFF !important; } .inline-keyboard .key-enter { background: #4CAF50 !important; color: #FFF !important; } .inline-keyboard .key-enter:hover { background: #388E3C !important; color: #FFF !important; } .inline-keyboard .key-zero { grid-column: span 2; } /* Input card with active keyboard */ .input-card.keyboard-active { border-color: #4CAF50; } /* Responsive inline keyboard */ @media (max-width: 600px) { .inline-keyboard .keyboard-keys { padding: 10px; gap: 6px; } .inline-keyboard .key-btn { padding: 12px; font-size: 1em; min-height: 40px; } .inline-keyboard .keyboard-display { padding: 12px; } .inline-keyboard .keyboard-display-text { font-size: 1.5em; } } /* Results Container (Inline Display) */ .results-container { margin-top: 30px; padding: 0; } .results-container .result { background: #FFEB3B; margin-bottom: 20px; padding: 25px; border: 1px solid #f9a825; border-radius: 8px; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; transform: none; min-height: 120px; display: none; /* Hidden by default, shown after calculation */ } .results-container .result:last-child { margin-bottom: 0; } .results-container .result.show { display: block; animation: resultSlideIn 0.6s ease; } @keyframes resultSlideIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .results-container .result h3 { color: #000; margin-bottom: 15px; font-size: 1.6em; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; } .results-container .result .value { font-size: 2.5em; font-weight: 900; color: #FF5722; margin-bottom: 10px; line-height: 1; } .results-container .result .category { font-size: 1.4em; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; color: #000; letter-spacing: 1px; } .results-container .result .description { font-size: 1em; color: #000; line-height: 1.6; font-weight: bold; } /* New Results Layout */ .results-layout { padding: 30px 20px; background: #FFF; border-radius: 20px; } .result-card { background: #FFF; border-radius: 20px; overflow: hidden; } .body-section { display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 20px; gap: 15px; } .body-silhouette { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; position: relative; margin: 0; } .body-icon-img { width: auto; height: 400px; object-fit: contain; margin: 0; border-radius: 10px; filter: brightness(1.2) saturate(1.3); } .body-icon { width: 120px; height: 200px; background: #4CAF50; border-radius: 60px 60px 40px 40px; position: relative; margin-bottom: 15px; } .body-icon::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background: #4CAF50; border-radius: 50%; } .underweight-label { background: #4CAF50; color: #FFF; padding: 6px 12px; border-radius: 15px; font-size: 0.8em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; position: absolute; left: -20px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; } .underweight-label.info { background: #2196F3; } .underweight-label.success { background: #4CAF50; } .underweight-label.warning { background: #FF5722; } .underweight-label.danger { background: #F44336; } .results-data { display: flex; flex-direction: column; gap: 10px; } .result-label { color: #363c96; font-size: 3em; font-weight: 700; margin-bottom: 2px; } .result-value { color: #363c96; font-size: 3.5em; font-weight: 900; line-height: 1; margin-bottom: 8px; margin-top: -20px; } .user-info { margin-top: 5px; font-size: 1.5em; color: #363c96; line-height: 1.3; } .result-actions { display: flex; justify-content: center; gap: 15px; padding: 20px 30px; background: #FFF; } .action-btn { flex: 1; padding: 15px 25px; border: none; border-radius: 10px; font-size: 3em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; position: relative; overflow: hidden; transform: translateY(0); max-width: 400px; } .action-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 25px 25px 0 0; pointer-events: none; } .check-again-btn { background: #9C27B0; color: #FFF; box-shadow: 0 6px 0 #7B1FA2, 0 8px 15px rgba(0, 0, 0, 0.3); } .check-again-btn:hover { background: #8E24AA; transform: translateY(-2px); box-shadow: 0 8px 0 #7B1FA2, 0 12px 20px rgba(0, 0, 0, 0.4); } .check-again-btn:active { background: #7B1FA2; box-shadow: 0 2px 0 #6A1B9A, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } .back-btn { background: #E91E63; color: #FFF; box-shadow: 0 6px 0 #C2185B, 0 8px 15px rgba(0, 0, 0, 0.3); } .back-btn:hover { background: #D81B60; transform: translateY(-2px); box-shadow: 0 8px 0 #C2185B, 0 12px 20px rgba(0, 0, 0, 0.4); } .back-btn:active { background: #C2185B; box-shadow: 0 2px 0 #AD1457, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } /* Mobile responsive for results layout */ @media (max-width: 768px) { .body-section { flex-direction: column; padding: 20px; gap: 20px; } .body-silhouette { align-items: center; } .underweight-label { position: static; transform: none; margin-top: 10px; } .result-value { font-size: 2em; } .result-actions { flex-direction: column; padding: 15px 20px; } .action-btn { margin-bottom: 10px; } } /* Game Layout - Same structure as Results Layout */ .game-layout { background: #FFF; border-radius: 20px; margin-bottom: 20px; } .game-card { background: #FFF; border-radius: 20px; overflow: hidden; } .game-header { text-align: center; padding: 20px; background: linear-gradient(135deg, #4CAF50, #45a049); color: white; } .game-header h1 { margin: 0; font-size: 2em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; } .game-actions { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 15px; padding: 20px 30px; background: #FFF; } .game-actions .action-btn { flex: 1; max-width: 200px; } /* Formula Button Container */ .formula-button-container { margin-top: 30px; text-align: center; padding: 20px 0; } .formula-toggle-btn { background: #4CAF50; color: #FFF; border: none; border-radius: 15px; padding: 12px 20px; /* Reduced from 15px 30px */ font-size: 1.1em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; transform: none; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; max-width: 350px; /* Added max-width to make it smaller */ box-shadow: 0 4px 0 #2E7D32, 0 6px 12px rgba(0, 0, 0, 0.2); position: relative; overflow: hidden; text-align: center; } .formula-toggle-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 25px 25px 0 0; pointer-events: none; } .formula-toggle-btn:hover { background: #45a049; box-shadow: 0 6px 0 #2E7D32, 0 8px 15px rgba(0, 0, 0, 0.3); transform: translateY(-2px); } .formula-toggle-btn:active { background: #3d8b40; box-shadow: 0 2px 0 #2E7D32, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } .formula-icon { font-size: 1.5em; } /* Popup Modal Styles */ .popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .popup-overlay.show { opacity: 1; visibility: visible; } .popup-modal { background: linear-gradient(145deg, #FFFFFF 0%, #F8F8F8 100%); border: none; border-radius: 20px; max-width: 90%; max-height: 90%; width: 600px; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; transform: scale(0.7); transition: all 0.3s ease; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); position: relative; display: flex; flex-direction: column; } /* Remove problematic pseudo-elements */ .popup-overlay.show .popup-modal { transform: scale(1); } .formulas-modal { width: 700px; max-height: 85vh; } /* Fix for popup white space issue */ .popup-modal { min-height: 0; height: auto; } .popup-content { min-height: 0; } /* Ensure proper modal structure */ #protein-limit-popup { max-height: 90vh; overflow: hidden; } #protein-limit-popup .popup-content { max-height: calc(90vh - 200px); overflow-y: auto; } .formulas-content { max-height: 55vh; } .popup-header { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); padding: 24px 30px; border: none; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; flex-shrink: 0; } /* Remove header pseudo-element */ .popup-title { font-size: 1.8em; font-weight: 900; color: #FFF; text-transform: uppercase; letter-spacing: 2px; margin: 0; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); position: relative; z-index: 1; } .popup-close { background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%); color: #FFF; border: none; border-radius: 12px; padding: 10px 14px; font-size: 1.5em; font-weight: 900; cursor: pointer; transition: all 0.3s ease; min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 #B71C1C, 0 6px 12px rgba(244, 67, 54, 0.4), 0 2px 6px rgba(244, 67, 54, 0.3); position: relative; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .popup-close::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 12px 12px 0 0; pointer-events: none; } .popup-close:hover { background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%); transform: translateY(-2px); box-shadow: 0 6px 0 #B71C1C, 0 8px 16px rgba(244, 67, 54, 0.5), 0 4px 8px rgba(244, 67, 54, 0.4); } .popup-content { padding: 30px; flex: 1; overflow-y: auto; position: relative; z-index: 2; background: transparent; } /* Removed duplicate formulas-content rule */ .popup-content .result { margin-bottom: 20px; padding: 25px; border: 1px solid #e0e0e0; border-radius: 8px; transform: none; min-height: auto; } .popup-content .result:last-child { margin-bottom: 0; } .popup-content .source-item { background: linear-gradient(145deg, #ECEFF1 0%, #CFD8DC 100%); padding: 30px; margin-bottom: 20px; border-radius: 16px; border: none; box-shadow: 0 6px 0 #B0BEC5, 0 8px 16px rgba(176, 190, 197, 0.4), 0 4px 10px rgba(176, 190, 197, 0.3); transform: none; position: relative; overflow: hidden; } .popup-content .source-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%); border-radius: 16px 16px 0 0; pointer-events: none; } .popup-content .source-item:last-child { margin-bottom: 0; } .popup-content .source-item h4 { color: #2E7D32; margin-bottom: 15px; font-size: 1.4em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); position: relative; z-index: 1; } .popup-content .source-item p { margin-bottom: 15px; line-height: 1.6; color: #37474F; font-size: 1em; font-weight: bold; position: relative; z-index: 1; } .popup-content .source-item ul { margin-left: 25px; color: #37474F; font-size: 1em; font-weight: bold; position: relative; z-index: 1; } .popup-content .source-item li { margin-bottom: 8px; line-height: 1.5; position: relative; z-index: 1; } .popup-footer { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); padding: 24px 30px; border: none; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; flex-shrink: 0; } /* Remove footer pseudo-element */ .popup-btn { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); color: #FFF; border: none; border-radius: 12px; padding: 18px 30px; font-size: 1.1em; font-weight: 900; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; min-width: 120px; box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3); position: relative; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); z-index: 1; } /* Remove button pseudo-element */ .popup-btn:hover { transform: translateY(-2px); background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%); box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4); } .popup-btn.close-btn { background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%) !important; color: #FFF !important; box-shadow: 0 4px 0 #B71C1C, 0 6px 12px rgba(244, 67, 54, 0.4), 0 2px 6px rgba(244, 67, 54, 0.3) !important; } .popup-btn.close-btn:hover { background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%) !important; color: #FFF !important; transform: translateY(-2px); box-shadow: 0 6px 0 #B71C1C, 0 8px 16px rgba(244, 67, 54, 0.5), 0 4px 8px rgba(244, 67, 54, 0.4) !important; } /* Responsive popup */ @media (max-width: 768px) { .popup-modal { width: 95%; margin: 10px; } .formulas-modal { width: 95%; } .popup-header { padding: 15px; } .popup-title { font-size: 1.4em; } .popup-content { padding: 20px; max-height: 50vh; } .popup-footer { padding: 15px; gap: 10px; } .popup-btn { padding: 12px 20px; font-size: 1em; min-width: 100px; } .popup-content .result { margin-bottom: 15px; padding: 20px; min-height: auto; } } /* Mobile Responsive for Grid Layout */ @media (max-width: 768px) { .container { max-width: 95%; margin: 10px auto; } .calculator-section { padding: 20px; } .form-grid { grid-template-columns: 1fr; gap: 20px; } .form-row_full { grid-column: 1; } .gender-selection { gap: 5px; margin-bottom: 20px; } .gender-option { min-width: 100px; } .gender-icon { width: 60px; height: 60px; font-size: 2.5em; } .input-card { padding: 20px; } .calculate-btn { font-size: 1.2em; padding: 20px; max-width: 100%; } .formula-toggle-btn { font-size: 0.9em; padding: 12px 20px; border-radius: 20px; min-height: 40px; gap: 8px; } } /* Mobile-Style Keyboard Overlay */ .mobile-keyboard-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .mobile-keyboard-overlay.show { opacity: 1; visibility: visible; } .mobile-keyboard { background: #FFF; border: none; border-radius: 20px; width: 90%; max-width: 500px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); transform: scale(0.8); transition: transform 0.3s ease; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; overflow: hidden; } .mobile-keyboard-overlay.show .mobile-keyboard { transform: scale(1); } .keyboard-header { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); padding: 20px; border-bottom: none; display: flex; justify-content: space-between; align-items: center; position: relative; box-shadow: 0 4px 0 #2E7D32, 0 6px 12px rgba(76, 175, 80, 0.3); } .keyboard-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); pointer-events: none; } .keyboard-title { font-size: 2em; font-weight: 900; color: #FFF; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .keyboard-close { background: #F44336; color: #FFF; border: none; padding: 8px 12px; font-size: 1.2em; font-weight: 900; cursor: pointer; border-radius: 8px; box-shadow: 0 4px 0 #D32F2F, 0 6px 12px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; max-width: 100px; min-height: 40px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transform: translateY(0); } .keyboard-close::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 8px 8px 0 0; pointer-events: none; } .keyboard-close:hover { background: #E53935; box-shadow: 0 6px 0 #D32F2F, 0 8px 15px rgba(0, 0, 0, 0.4); transform: translateY(-2px); } .keyboard-close:active { background: #D32F2F; box-shadow: 0 2px 0 #C62828, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } .keyboard-display { padding: 25px; background: linear-gradient(135deg, #ECEFF1 0%, #CFD8DC 100%); border-bottom: none; position: relative; overflow: hidden; } .keyboard-display::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); pointer-events: none; } #keyboard-display-input { width: 100%; padding: 20px; font-size: 2em; font-weight: 900; text-align: center; border: none; background: rgba(255, 255, 255, 0.9); color: #37474F; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; border-radius: 12px; box-shadow: 0 4px 0 rgba(255, 255, 255, 0.7), 0 6px 12px rgba(0, 0, 0, 0.2); position: relative; z-index: 1; } .keyboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 25px; background: #FFF; } .keyboard-grid .key-btn { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); border: none; padding: 20px; font-size: 1.5em; font-weight: 900; cursor: pointer; transition: all 0.3s ease; border-radius: 12px; box-shadow: 0 4px 0 #2E7D32, 0 6px 12px rgba(76, 175, 80, 0.4); min-height: 60px; display: flex; align-items: center; justify-content: center; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; color: #FFF; position: relative; overflow: hidden; transform: translateY(0); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .keyboard-grid .key-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 12px 12px 0 0; pointer-events: none; } .keyboard-grid .key-btn:hover { background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%) !important; color: #FFF !important; box-shadow: 0 6px 0 #2E7D32, 0 8px 16px rgba(76, 175, 80, 0.5); transform: translateY(-2px); } .keyboard-grid .key-btn:active { background: #2E7D32 !important; box-shadow: 0 2px 0 #1B5E20, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } /* Specific button styles */ .keyboard-grid .key-backspace { background: #FF5722 !important; color: #FFF !important; box-shadow: 0 4px 0 #D84315, 0 6px 12px rgba(0, 0, 0, 0.2); } .keyboard-grid .key-backspace:hover { background: #F4511E !important; color: #FFF !important; box-shadow: 0 6px 0 #D84315, 0 8px 15px rgba(0, 0, 0, 0.3); transform: translateY(-2px); } .keyboard-grid .key-backspace:active { background: #D84315 !important; box-shadow: 0 2px 0 #BF360C, 0 4px 8px rgba(0, 0, 0, 0.2); transform: translateY(2px); } .keyboard-grid .key-zero { grid-column: span 2; } .keyboard-grid .key-wide { grid-column: span 1; } .keyboard-actions { display: flex; gap: 15px; padding: 25px; background: linear-gradient(135deg, #ECEFF1 0%, #CFD8DC 100%); border-top: none; position: relative; overflow: hidden; } .keyboard-actions::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); pointer-events: none; } .keyboard-actions .action-btn { flex: 1; padding: 15px 25px; font-size: 1.1em; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 15px; transition: all 0.3s ease; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; border: none; position: relative; overflow: hidden; transform: translateY(0); z-index: 1; } .keyboard-actions .action-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%); border-radius: 25px 25px 0 0; pointer-events: none; } .clear-btn { background: #F44336; color: #FFF; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .clear-btn:hover { background: linear-gradient(135deg, #F44336 0%, #bb291e 100%); transform: translateY(-2px); } .clear-btn:active { background: linear-gradient(135deg, #F44336 0%, #bb291e 100%); transform: translateY(2px); } .done-btn { background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); color: #FFF; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .done-btn:hover { background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%); box-shadow: 0 8px 0 #2E7D32, 0 12px 20px rgba(76, 175, 80, 0.5); transform: translateY(-2px); } .done-btn:active { background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%); box-shadow: 0 2px 0 #1B5E20, 0 4px 8px rgba(76, 175, 80, 0.3); transform: translateY(2px); } .popup-content .source-item { padding: 20px; } /* Video Screensaver Styles */ .video-screensaver { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background: #000; display: flex; justify-content: center; align-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; } .video-screensaver.active { opacity: 1; visibility: visible; } .video-screensaver.fade-out { opacity: 0; visibility: hidden; } .video-screensaver video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; } /* Hide video controls completely */ .video-screensaver video::-webkit-media-controls { display: none !important; } .video-screensaver video::-webkit-media-controls-panel { display: none !important; } .video-screensaver video::-webkit-media-controls-play-button { display: none !important; } .video-screensaver video::-webkit-media-controls-start-playback-button { display: none !important; } /* Fun Facts Section Styling */ .fun-facts-section { margin-top: 40px; margin-left: 150px; margin-right: 150px; padding: 20px; background: #27b35a; border-radius: 20px; box-shadow: 0 6px 0 #2E7D32, 0 8px 15px rgba(0, 0, 0, 0.3); position: relative; overflow: hidden; transform: none; } .fun-facts-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%); border-radius: 20px 20px 0 0; pointer-events: none; } .fun-facts-title { color: #FFF; font-size: 1.8em; font-weight: 900; text-align: center; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3); position: relative; z-index: 1; } .fun-fact-card { background: rgba(255, 255, 255, 0.95); border: none; border-radius: 15px; padding: 20px; min-height: 80px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); position: relative; z-index: 1; } .fun-fact-text { color: #666; font-size: 1.1em; font-weight: 600; text-align: center; line-height: 1.5; margin: 0; transition: opacity 0.3s ease-in-out; } /* Modern Food Recommendations Design */ .food-recommendations { background: linear-gradient(145deg, #f8fffe 0%, #e8f5f3 100%); border-radius: 16px; padding: 20px; } .recommendations-header { text-align: center; margin-bottom: 16px; } .recommendations-header h4 { color: #2c5f5f; font-size: 1.1em; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; } .recommendations-header p { color: #666; font-size: 0.8em; margin: 0; font-style: italic; } .food-cards-container { display: flex; flex-direction: row; gap: 15px; justify-content: space-between; } .food-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(135deg, #ffffff 0%, #f9fffe 100%); border-radius: 12px; padding: 15px; border: 2px solid transparent; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); position: relative; flex: 1; min-width: 0; overflow: hidden; } .food-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1); opacity: 0; transition: opacity 0.3s ease; } .food-card:hover::before { opacity: 1; } .chicken-card { border-top: 4px solid #ff6b6b; } .chicken-card:hover { background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2); } .milk-card { border-top: 4px solid #4ecdc4; } .milk-card:hover { background: linear-gradient(135deg, #f0fdfc 0%, #ccfbf1 100%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(78, 205, 196, 0.2); } .egg-card { border-top: 4px solid #ffd93d; } .egg-card:hover { background: linear-gradient(135deg, #fffcf0 0%, #fef3c7 100%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 217, 61, 0.2); } .food-icon { font-size: 3em; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); } .food-info { width: 100%; } .food-info h5 { margin: 0 0 8px 0; color: #2c5f5f; font-size: 1em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; } .food-amount { color: #333; font-size: 0.9em; font-weight: 700; margin-bottom: 2px; } .food-protein { color: #666; font-size: 0.75em; font-weight: 600; background: rgba(78, 205, 196, 0.1); padding: 2px 8px; border-radius: 12px; display: inline-block; } /* Responsive adjustments for fun facts */ @media (max-width: 768px) { .fun-facts-section { margin-top: 25px; margin-left: 15px; margin-right: 15px; padding: 15px; border-radius: 15px; transform: none; } .fun-facts-title { font-size: 1.4em; margin-bottom: 15px; } .fun-fact-card { padding: 15px; min-height: 60px; border-radius: 12px; } .fun-fact-text { font-size: 1em; } } /* Inline Alert System */ .inline-alert { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s ease-in-out; pointer-events: none; max-width: 90vw; } .inline-alert.show { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(-50%) translateY(0); } .alert-content { background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%); color: #FFF; padding: 18px 24px; border-radius: 16px; border: none; box-shadow: 0 6px 0 #D84315, 0 8px 20px rgba(233, 69, 25, 0.4), 0 4px 12px rgba(233, 69, 25, 0.3); display: flex; align-items: center; gap: 15px; min-width: 320px; max-width: 100%; font-family: 'DarkerGrotesque', 'Arial Black', sans-serif; font-weight: 700; font-size: 1.1em; position: relative; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; } .alert-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%); border-radius: 16px 16px 0 0; pointer-events: none; } .alert-message { flex: 1; text-align: center; font-weight: 900; } .alert-close { background: rgba(255, 255, 255, 0.2); border: none; color: #FFF; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; transition: all 0.3s ease; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .alert-close:hover { background: rgba(255, 255, 255, 0.3); transform: scale(1.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } /* Success Alert Variant */ .alert-content.success { background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%); box-shadow: 0 6px 0 #2E7D2E, 0 8px 20px rgba(76, 175, 80, 0.4), 0 4px 12px rgba(76, 175, 80, 0.3); } /* Warning Alert Variant */ .alert-content.warning { background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%); box-shadow: 0 6px 0 #E65100, 0 8px 20px rgba(255, 152, 0, 0.4), 0 4px 12px rgba(255, 152, 0, 0.3); } /* Info Alert Variant */ .alert-content.info { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); box-shadow: 0 6px 0 #1565C0, 0 8px 20px rgba(33, 150, 243, 0.4), 0 4px 12px rgba(33, 150, 243, 0.3); } /* Mobile Responsive */ @media (max-width: 768px) { .inline-alert { top: 10px; left: 50%; right: auto; transform: translateX(-50%); width: auto; max-width: calc(100vw - 20px); } .inline-alert.show { transform: translateX(-50%) translateY(0); } .alert-content { min-width: auto; font-size: 1rem; padding: 15px 18px; max-width: 100%; } } /* Field Marking Styles */ .input-card.field-required { animation: shake 0.5s ease-in-out; } .input-card.field-required::before { content: "Wajib diisi"; position: absolute; top: 15px; left: 15px; background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%); color: #FFF; padding: 6px 12px; font-size: 0.8em; font-weight: 900; border: none; border-radius: 8px; z-index: 20; box-shadow: 0 3px 6px rgba(244, 67, 54, 0.3), 0 1px 3px rgba(244, 67, 54, 0.2); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); white-space: nowrap; } .field-empty { border-color: #F44336 !important; background: rgba(244, 67, 54, 0.1) !important; } .gender-selection.field-required { position: relative; } .gender-selection.field-required::before { content: "❗ Pilih jenis kelamin"; position: absolute; top: -25px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #F44336 0%, #D32F2F 100%); color: #FFF; padding: 8px 16px; font-size: 0.9em; font-weight: 900; border: none; border-radius: 8px; z-index: 20; white-space: nowrap; box-shadow: 0 3px 6px rgba(244, 67, 54, 0.3), 0 1px 3px rgba(244, 67, 54, 0.2); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .gender-option.field-empty { border-color: #F44336 !important; background: rgba(244, 67, 54, 0.1) !important; animation: pulse 1s infinite; } /* Shake animation for required fields */ @keyframes shake { 0%, 100% { transform: translateX(0); } 10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); } 20%, 40%, 60%, 80% { transform: translateX(3px); } } /* Pulse animation for gender options */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } /* Mobile responsive for field markings */ @media (max-width: 768px) { .input-card.field-required::before { font-size: 0.7em; padding: 3px 6px; top: 25px; } .gender-selection.field-required::before { font-size: 0.8em; padding: 4px 8px; top: -12px; } .recommendations-header { margin-bottom: 12px; } .recommendations-header h4 { font-size: 0.95em; } .recommendations-header p { font-size: 0.7em; } .food-cards-container { flex-direction: row; gap: 8px; justify-content: space-between; } .food-card { flex-direction: column; text-align: center; padding: 8px; border-radius: 10px; flex: 1; min-width: 0; } .food-card.chicken-card { border-top: 3px solid #ff6b6b; border-left: none; } .food-card.milk-card { border-top: 3px solid #4ecdc4; border-left: none; } .food-card.egg-card { border-top: 3px solid #ffd93d; border-left: none; } .food-icon { font-size: 2em; margin-bottom: 6px; margin-right: 0; } .food-info h5 { font-size: 0.8em; margin-bottom: 4px; } .food-amount { font-size: 0.75em; } .food-protein { font-size: 0.6em; padding: 1px 4px; } } /* Tablet Optimization for 705px x 1280px viewport */ @media (min-width: 700px) and (max-width: 720px) { .food-recommendations-container { padding: 16px; } .recommendations-header h4 { font-size: 1.0em; } .recommendations-header p { font-size: 0.75em; } .food-cards-container { gap: 12px; justify-content: space-between; } .food-card { padding: 12px; flex: 1; min-width: 0; } .food-icon { font-size: 2.5em; margin-bottom: 8px; } .food-info h5 { font-size: 0.9em; margin-bottom: 6px; } .food-amount { font-size: 0.85em; } .food-protein { font-size: 0.7em; } body { padding: 25px 20px; font-size: 18px; } .container { max-width: 650px; border-radius: 40px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); } .header-logo { padding: 20px; } .logo-image { max-height: 130px; max-width: 550px; } .calculator-section { padding: 35px 40px; } .gender-selection { gap: 1px; margin-bottom: 15px; } .gender-option { width: auto; height: 200px; border-radius: 20px; } .gender-icon-img { width: auto; height: 200px; } .form-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; margin-bottom: 5px; } .input-card { padding: 5px; border-radius: 20px; } .input-card label { font-size: 1em; margin-bottom: 12px; } .input-card input, .input-card select { padding: 5px; font-size: 1.4em; border-radius: 12px; } .button-container { gap: 20px; margin-top: 35px; } .calculate-btn, .reset-btn { padding: 10px; font-size: 1.5em; border-radius: 10px; max-width: 300px; margin-bottom: 35px; } /* Results Layout Optimization */ .results-layout { padding: 15px; } .result-card { padding: 10px; border-radius: 25px; } .body-section { flex-direction: row; gap: 40px; padding: 10px; text-align: left; align-items: center; justify-content: center; } .body-icon-img { /* width: 180px; height: 180px; */ object-fit: contain; flex-shrink: 0; } .results-data { gap: 0px; flex: 1; text-align: left; } .bmi-section, .protein-section { text-align: left; } .result-label { font-size: 2em; color: #363c96; font-weight: 700; } .result-value { font-size: 3.2em; margin-top: -10px; color: #363c96; font-weight: 900; line-height: 1; } .user-info { margin-top: 20px; text-align: left; } #user-details { font-size: 0.7em; line-height: 0.8; color: #363c96; font-weight: 600; } .result-actions { align-items: center; justify-content: center; padding: 0px; } .action-btn { padding: 18px 40px; font-size: 1.4em; border-radius: 20px; min-width: 200px; } /* Fun Facts Section */ .fun-facts-section { margin-top: 5px; /* padding: 30px; */ } .fun-facts-title { font-size: 1.4em; margin-bottom: 20px; } .fun-fact-card { /* padding: 25px; */ border-radius: 20px; } .fun-fact-text { font-size: 1em; line-height: 1.2; } .game-card { padding: 10px; border-radius: 25px; } .game-header { padding: 15px; } .game-header h1 { font-size: 1.5em; } .game-actions { flex-direction: column; gap: 10px; padding: 15px 20px; } .game-actions .action-btn { max-width: none; width: 100%; } /* Formula Button */ .formula-button-container { margin-top: 10px; /* padding: 25px 0; */ } .formula-toggle-btn { padding: 18px 35px; font-size: 1.3em; border-radius: 20px; max-width: 400px; } /* Popup Modal Optimization */ .popup-modal { max-width: 600px; margin: 30px; border-radius: 25px; } .popup-header { padding: 30px 35px; } .popup-title { font-size: 1.6em; } .popup-content { padding: 35px; max-height: 65vh; } .popup-content .source-item { padding: 35px; margin-bottom: 25px; border-radius: 20px; } .popup-content .source-item h4 { font-size: 1.5em; margin-bottom: 20px; } .popup-content .source-item p, .popup-content .source-item ul { font-size: 1.1em; line-height: 1.7; } .popup-footer { padding: 30px 35px; } .popup-btn { padding: 20px 35px; font-size: 1.2em; border-radius: 15px; min-width: 150px; } /* Mobile Keyboard Optimization */ .mobile-keyboard { max-width: 550px; border-radius: 25px; } .keyboard-header { padding: 25px; } .keyboard-title { font-size: 1.4em; } .keyboard-close { padding: 12px 16px; font-size: 1.4em; border-radius: 12px; min-width: 50px; min-height: 50px; } .keyboard-display { padding: 30px; } #keyboard-display-input { padding: 25px; font-size: 2.2em; border-radius: 15px; } .keyboard-grid { padding: 30px; gap: 18px; } .keyboard-grid .key-btn { padding: 25px; font-size: 1.7em; border-radius: 15px; min-height: 70px; } .keyboard-actions { padding: 30px; gap: 18px; } .keyboard-actions .action-btn { padding: 18px 30px; font-size: 1.3em; border-radius: 20px; } /* Alert System */ .inline-alert { top: 30px; bottom: auto; left: 30px; right: 30px; transform: none; max-width: none; } .inline-alert.show { transform: none; } .alert-content { padding: 20px 25px; border-radius: 15px; font-size: 1.2em; min-width: auto; } .alert-message { font-size: 1.2em; } .alert-close { width: 35px; height: 35px; font-size: 18px; } .alert-close { padding: 8px 12px; font-size: 1.1em; border-radius: 8px; } .game-card { padding: 20px; padding-top: 0px; padding-bottom: 0px; border-radius: 25px; } .game-header { padding: 0px; border-radius: 20px; } .game-header h1 { font-size: 1.8em; letter-spacing: 1.5px; } .game-section { padding: 20px; } .title-game { font-size: 1.4em; margin-bottom: 0px; text-align: center; } .food-panel { padding: 20px; gap: 15px; margin-bottom: 10px; } .basket-container { padding: 20px; margin-bottom: 20px; } #counter-panel { padding: 20px; font-size: 1.1em; margin-bottom: 20px; border-radius: 15px; } .profile-panel { padding: 20px; font-size: 1.1em; border-radius: 15px; } .game-actions { flex-direction: row; gap: 15px; padding: 10px; align-items: center; justify-content: center; } .game-actions .action-btn { padding: 18px 40px; font-size: 1.4em; border-radius: 20px; min-width: 200px; max-width: 250px; } /* Game-specific element optimizations */ .title-game span { font-size: 35px !important; } .food-panel { min-height: 100px !important; } .food { width: auto; height: 100px !important; } .basket-container { min-height: 100px !important; margin-top: 2% !important; } #basket { width: auto; height: 150px !important; } #counter-panel { width: 100% !important; padding: 15px 20px !important; } #counter-panel span { font-size: 28px !important; } .profile-panel { width: 80% !important; padding: 15px 20px !important; } .profile-panel span { font-size: 20px !important; } } /* Protein Limit Modal Styles */ .protein-analysis-text { font-size: 18px; line-height: 1.6; margin-bottom: 20px; background: #f8f9fa; padding: 15px; border-radius: 8px; border-left: 4px solid #28a745; } .protein-summary { background: #ffffff; padding: 20px; border-radius: 10px; border: 2px solid #e9ecef; margin: 15px 0; } .protein-summary ul { list-style: none; padding: 0; margin: 10px 0; } .protein-summary li { padding: 8px 0; font-size: 16px; border-bottom: 1px solid #f1f3f4; } .protein-summary li:last-child { border-bottom: none; } .protein-summary .total-protein { font-weight: bold; font-size: 18px; color: #28a745; background: #f8f9fa; padding: 12px; border-radius: 6px; margin-top: 10px; } .congratulation-text { text-align: center; font-size: 16px; color: #28a745; font-weight: 600; background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); padding: 15px; border-radius: 8px; margin-top: 20px; } #protein-limit-overlay .popup-title { color: #fff; text-shadow: 2px 2px 4px rgba(40, 167, 69, 0.3); }