/* =============================================== */ /* General */ /* =============================================== */ body { text-align: center!important; } /* =============================================== */ /* Instructions */ /* =============================================== */ .instructions { width:100%; height:100%; background:rgba(255,255,225,0.05); text-align: left; margin:20px auto; padding: 20px 20px 10px 20px; position:relative; -webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.05) inset; -moz-box-shadow:0 1px 5px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.05) inset; box-shadow:0 1px 5px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.05) inset; -moz-border-radius: 8px/8px; border-radius: 8px/8px; } .instructions:before, .instructions:after { content:""; position:absolute; z-index:-1; top: 0; left: 0; bottom: 0; right: 0; -webkit-box-shadow:2px 4px 16px rgba(0,0,0,0.2); -moz-box-shadow:2px 4px 16px rgba(0,0,0,0.2); box-shadow:2px 4px 16px rgba(0,0,0,0.2); -moz-border-radius: 8px/8px; border-radius: 8px/8px; } /* =============================================== */ /* Results */ /* =============================================== */ .table { width: 100%; margin-bottom: 0; } th, td { text-align: center; } .card-info { padding: 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); margin-top: 15px; margin-bottom: 15px; } .paying-round { background-color: #ffe066; font-weight: bold; } /* Flipping Scene (Rotating) */ .coin-scene { width: 400px; height: 400px; margin: 40px auto; perspective: 1000px; } .coin { width: 400px; height: 400px; position: relative; transform-style: preserve-3d; transition: transform 1.6s ease-out; } .coin-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 50%; } .coin-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; } /* Heads = front */ .heads { transform: rotateY(0deg); } /* Tails = back */ .tails { transform: rotateY(180deg); } .hidden { opacity: 0; visibility: hidden; } .show { opacity: 1; visibility: visible; transition: opacity 0.6s ease-in; } .game-wrapper { text-align: center; max-width: 700px; margin: auto; padding: 30px; background: linear-gradient(135deg, #1e3c72, #2a5298); border-radius: 20px; box-shadow: 0 0 30px rgba(0,0,0,0.3); color: white; } .game-header h2 { font-size: 32px; margin-bottom: 10px; } /* RESULT PANEL */ .result-panel { margin-top: 30px; animation: resultFade 0.6s ease; } .result-card { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 25px; backdrop-filter: blur(10px); } .result-text { font-size: 22px; } .result-win { color: #7CFF7C; font-size: 24px; font-weight: bold; } .result-lose { color: #ff6b6b; font-size: 24px; font-weight: bold; } .balance-box { margin-top: 20px; font-size: 18px; } .balance-amount { font-size: 32px; font-weight: bold; color: #FFD700; text-shadow: 0 0 10px rgba(255,215,0,0.6); } .next-btn { margin-top: 20px; } @keyframes resultFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } .form-panel .form-group { background: rgba(255,255,255,0.12); padding: 14px; border-radius: 10px; margin-bottom: 15px; } /* Improve visibility of oTree form labels */ .game-wrapper label { color: #ffffff; font-weight: 600; } /* Question text above inputs */ .game-wrapper .form-group label { color: #ffffff; font-size: 16px; } /* Radio / checkbox text */ .game-wrapper .form-check-label { color: #f1f1f1; } /* Input fields */ .game-wrapper input, .game-wrapper select { background: rgba(255,255,255,0.95); color: #222; border-radius: 8px; border: none; padding: 8px 10px; } /* When user focuses input */ .game-wrapper input:focus { outline: none; box-shadow: 0 0 8px rgba(255,255,255,0.6); } /* Help text / validation text */ .game-wrapper .help-block { color: #ffe082; } /* Error messages */ .game-wrapper .text-danger { color: #ffb3b3; } .next-btn-center button { text-align: center; margin-top: 25px; background: linear-gradient(135deg, #28a745, #3ddc84); border: none; color: white; font-weight: bold; font-size: 18px; padding: 12px 36px; border-radius: 12px; box-shadow: 0 6px 14px rgba(0,0,0,0.25); transition: transform 0.15s ease, box-shadow 0.15s ease; } .next-btn-center button:hover { display: flex; justify-content: center; margin-top: 30px; transform: translateY(-2px); box-shadow: 0 10px 18px rgba(0,0,0,0.35); }