/* Professional Coinflip Game Styling */ .coinflip-container { max-width: 900px; margin: 30px auto; padding: 30px; background: linear-gradient(145deg, rgba(15, 32, 56, 0.95) 0%, rgba(25, 55, 85, 0.95) 35%, rgba(35, 65, 95, 0.95) 65%, rgba(20, 45, 75, 0.95) 100%); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); position: relative; } .coinflip-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(145deg, transparent 0%, rgba(0, 194, 255, 0.03) 50%, transparent 100%); border-radius: 20px; pointer-events: none; } .coinflip-game { display: flex; flex-direction: column; gap: 30px; } /* Coin Display Section */ .coin-display { order: 1; flex: 1; display: flex; justify-content: center; align-items: center; min-height: 250px; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%); border-radius: 15px; position: relative; } .coin-display::before { content: ''; position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, rgba(0, 194, 255, 0.1) 0%, transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite; } @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.1); opacity: 0.1; } } /* Betting Controls Section */ .bet-controls { order: 2; flex: 1; display: flex; flex-direction: column; gap: 25px; padding: 20px; background: rgba(255, 255, 255, 0.02); border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); } /* Desktop Layout */ @media (min-width: 768px) { .coinflip-game { flex-direction: row; } .coin-display { order: 2; } .bet-controls { order: 1; } } /* Input Styling */ .bet-input { display: flex; flex-direction: column; gap: 15px; } .bet-input label { color: #e8f4f8; font-weight: 600; font-size: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); letter-spacing: 0.5px; } .input-group { display: flex; flex-direction: column; gap: 12px; } .input-group input, .input-group button { width: 100%; padding: 16px 20px; font-size: 16px; border-radius: 12px; box-sizing: border-box; transition: all 0.3s ease; font-weight: 500; } .input-group input { background: linear-gradient(145deg, rgba(20, 35, 55, 0.9), rgba(25, 45, 70, 0.9)); color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2); } .input-group input:focus { outline: none; border-color: rgba(0, 194, 255, 0.5); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(0, 194, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2); transform: translateY(-1px); } .input-group input::placeholder { color: rgba(255, 255, 255, 0.4); } .input-group button { background: linear-gradient(145deg, #00c2ff, #0099cc); color: white; border: none; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 6px 20px rgba(0, 194, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); } .input-group button:hover { background: linear-gradient(145deg, #0099cc, #007399); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 194, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); } .input-group button:active { transform: translateY(0px); box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2); } /* Coin Choice Buttons */ .coin-choices { display: flex; gap: 15px; justify-content: space-between; } .coin-choices button { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 20px 15px; background: linear-gradient(145deg, rgba(25, 45, 70, 0.6), rgba(35, 55, 85, 0.6)); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 15px; cursor: pointer; transition: all 0.3s ease; opacity: 0.6; position: relative; overflow: hidden; } .coin-choices button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.5s ease; } .coin-choices button.enabled { opacity: 1; border-color: rgba(0, 194, 255, 0.3); } .coin-choices button.enabled:hover { border-color: rgba(0, 194, 255, 0.8); background: linear-gradient(145deg, rgba(35, 55, 85, 0.8), rgba(45, 65, 95, 0.8)); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 194, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3); } .coin-choices button.enabled:hover::before { left: 100%; } .coin-choices button img { width: 60px; height: 60px; margin-bottom: 12px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)); } .coin-choices button span { color: #e8f4f8; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } /* Coin Animation */ .coin { position: relative; width: 180px; height: 180px; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4)); z-index: 10; } .coin .side { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: #00000000 ; top: 0; left: 0; overflow: hidden; } .coin .side img { width: 85%; height: 85%; object-fit: cover; border-radius: 50%; filter: contrast(1.1) brightness(1.1); } .coin .tail { transform: rotateY(180deg); } .coin .tail img { transform: scale(1.05); } /* Result Messages */ .result-message { margin-top: 25px; padding: 20px; border-radius: 15px; text-align: center; font-weight: 600; font-size: 18px; color: white; display: none; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .result-message.win { background: linear-gradient(145deg, rgba(76, 175, 80, 0.4), rgba(56, 155, 60, 0.4)); border: 2px solid rgba(76, 175, 80, 0.6); box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3); display: block; } .result-message.lose { background: linear-gradient(145deg, rgba(244, 67, 54, 0.4), rgba(224, 47, 34, 0.4)); border: 2px solid rgba(244, 67, 54, 0.6); box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3); display: block; } /* Multiplier Section */ .multiplier-container { margin-top: 35px; padding: 25px; background: linear-gradient(145deg, rgba(20, 35, 55, 0.4), rgba(25, 45, 70, 0.4)); border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(0, 194, 255, 0.6) rgba(255, 255, 255, 0.1); } .multiplier-container::-webkit-scrollbar { height: 10px; } .multiplier-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 5px; } .multiplier-container::-webkit-scrollbar-thumb { background: linear-gradient(90deg, rgba(0, 194, 255, 0.6), rgba(0, 150, 200, 0.8)); border-radius: 5px; } .multiplier-row { display: flex; gap: 18px; min-width: max-content; padding-bottom: 15px; } .multiplier-circle { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(145deg, rgba(25, 45, 70, 0.8), rgba(35, 55, 85, 0.8)); display: flex; align-items: center; justify-content: center; color: #e8f4f8; font-weight: 700; font-size: 16px; position: relative; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1); } .multiplier-circle::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); transform: rotate(0deg); transition: transform 0.6s ease; } .multiplier-circle:hover { transform: scale(1.15) translateY(-5px); background: linear-gradient(145deg, rgba(35, 55, 85, 0.9), rgba(45, 65, 95, 0.9)); border-color: rgba(0, 194, 255, 0.5); box-shadow: 0 8px 25px rgba(0, 194, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); } .multiplier-circle:hover::before { transform: rotate(180deg); } .multiplier-circle[data-result] { background-size: 70%; background-repeat: no-repeat; background-position: center; } .multiplier-circle[data-result="tail"] { background-image: url('tail.png'); background-color: rgba(212, 175, 55, 0.2); } .multiplier-circle[data-result="head"] { background-image: url('head.png'); background-color: rgba(212, 175, 55, 0.2); } /* Cash Out Button States */ #placeBetBtn.cash-out-active { background: linear-gradient(145deg, #ff6b35, #e85a2b); display: flex; align-items: center; justify-content: center; gap: 8px; } #placeBetBtn.cash-out-active:hover { background: linear-gradient(145deg, #e85a2b, #d4491f); } #placeBetBtn.cash-out-active img.dl-icon { width: 22px; height: 22px; filter: brightness(1.2); } #placeBetBtn:disabled { opacity: 0.5; cursor: not-allowed; background: linear-gradient(145deg, rgba(100, 100, 100, 0.6), rgba(80, 80, 80, 0.6)); box-shadow: none; transform: none; } /* Mobile Optimizations */ @media (max-width: 768px) { .coinflip-container { margin: 15px; padding: 20px; } .coin { width: 150px; height: 150px; } .multiplier-circle { width: 70px; height: 70px; font-size: 14px; } .bet-input label { font-size: 15px; } .input-group input, .input-group button { padding: 14px 16px; font-size: 15px; } } /* Subtle animations for enhanced UX */ @keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(0, 194, 255, 0.3); } 50% { box-shadow: 0 0 30px rgba(0, 194, 255, 0.5); } } .coin-choices button.enabled:focus { animation: glow 2s ease-in-out infinite; } /* Enhanced focus states for accessibility */ *:focus { outline: 2px solid rgba(0, 194, 255, 0.6); outline-offset: 2px; }