/* Base styles from :root and general elements */ :root { --color-primary: #f83a53; --color-primary-light: #f68888; --color-secondary: #667eea; --color-secondary-dark: #764ba2; --color-danger: #fe4353; --color-danger-dark: #c42817; --color-success: #38d39f; --color-warning: #fce627; --color-text: white; --color-text-dark: #333; --color-text-muted: #7f8c8d; --color-bg: rgba(255, 255, 255, 0.1); --color-bg-dark: #333; --color-bg-light: #f0f0f0; --color-bg-card: linear-gradient(145deg, #ffffff, #d6d6d6); --color-placeholder: #8b8b8f; --bg-gradient: linear-gradient(217deg, rgb(255 100 255 / 80%), rgb(255 0 0 / 0%) 70.71%), linear-gradient(15deg, rgb(100 255 255 / 80%), rgb(0 255 0 / 0%) 70.71%), linear-gradient(336deg, rgb(100 100 255 / 80%), rgb(0 0 255 / 0%) 70.71%), linear-gradient(185deg, rgb(2 2 230 / 80%), rgb(0 0 255 / 0%) 70.71%); --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-md: 0 5px 15px rgba(238, 90, 36, 0.4); --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3); --shadow-primary: 0 5px 15px rgba(238, 90, 36, 0.4); --border-radius-sm: 5px; --border-radius-md: 10px; --border-radius-lg: 20px; --border-color: rgba(255, 255, 255, 0.2); --animation-bounce: cubic-bezier(.7,-0.5,.3,1.7); --animation-smooth: cubic-bezier(.4,2.3,.3,1); --animation-duration: 0.3s; --font-family: "goldmanregular", sans-serif; --font-optical-sizing: auto; --font-size-base: 1rem; --font-size-lg: 1.2rem; --font-size-xl: 1.5rem; --font-size-xxl: 2rem; --font-size-xxxl: 2.5rem; --spacing-xs: 0.5rem; --spacing-sm: 1rem; --spacing-md: 1.5rem; --spacing-lg: 2rem; --spacing-xl: 3rem; --container-max-width: 500px; --container-padding: 2rem; --container-bg: rgba(255, 255, 255, 0.1); --container-blur: blur(20px); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-family) !important; } body { font-family: var(--font-family); color: var(--color-text); margin: 0; position: relative; } @media (max-width: 768px) { body { -webkit-overflow-scrolling: touch; } } body::before { content: ""; position: fixed; z-index: -1; inset: 0; height: 100%; background: var(--bg-gradient); } .container { background: var(--container-bg); backdrop-filter: var(--container-blur); border-radius: var(--border-radius-lg); padding: var(--container-padding); padding-bottom: calc(var(--container-padding) - 10px); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); max-width: var(--container-max-width); width: 90%; text-align: center; margin: var(--spacing-lg) auto; overflow: visible; margin-bottom: 0; } .hidden { opacity: 0.5; pointer-events: none; user-select: none; } h1 { font-size: var(--font-size-xxxl); margin-bottom: var(--spacing-lg); text-shadow: 0px 0px 6px rgba(255, 255, 255, 0.3); animation: bounceIn 0.9s var(--animation-bounce); } @keyframes bounceIn { 0% { transform: scale(0.7); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 80% { transform: scale(0.95);} 100% { transform: scale(1); } } .setup-screen, .game-screen, .question-screen { display: none; } .setup-screen.active, .game-screen.active, .question-screen.active { display: block; animation: fadeInUp 0.6s var(--animation-smooth); } @keyframes fadeInUp { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: translateY(0);} } .input-group { margin-bottom: var(--spacing-md); } label { display: block; margin-bottom: var(--spacing-xs); font-weight: bold; } input, select, button { width: 100%; padding: var(--spacing-sm); border-radius: var(--border-radius-md); border: none; font-size: var(--font-size-base); margin-bottom: var(--spacing-xs); box-shadow: var(--shadow-primary); } input, select { background: rgba(255, 255, 255, 1); color: rgba(0, 0, 0, 0.8); font-weight: normal; cursor: text; transition: all var(--animation-duration) ease; } button { background: linear-gradient(45deg, var(--color-primary-light), var(--color-primary)); color: var(--color-text); margin-bottom: 0px !important; font-weight: bold; cursor: pointer; transition: all var(--animation-duration) ease; position: relative; overflow: hidden; } button:hover, input:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(238, 90, 36, 0.6); } button:disabled { background: linear-gradient(135deg, #535353 0%, #A7A7A7 100%); cursor: not-allowed; transform: none; box-shadow: none; } button::after, input::after { content: ''; position: absolute; left: -75%; top: 0; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-25deg); transition: left 0.6s var(--animation-smooth); pointer-events: none; } button:hover::after, input:hover::after { left: 130%; } .player-list { text-align: left; background: rgba(255, 255, 255, 0.1); padding: var(--spacing-sm); border-radius: var(--border-radius-md); margin: var(--spacing-sm) 0; } .player-item { padding: var(--spacing-xs); margin: var(--spacing-xs) 0; background: rgba(255, 255, 255, 0.1); border-radius: var(--border-radius-sm); display: flex; justify-content: space-between; align-items: center; } .remove-btn { background: var(--color-danger); color: var(--color-text); border: none; padding: 0.3rem 0.8rem; border-radius: var(--border-radius-sm); cursor: pointer; width: auto; margin: 0; } .card { background: var(--color-bg-card); color: var(--color-text-dark); padding: var(--spacing-lg) var(--spacing-lg); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); margin: var(--spacing-lg) 0; min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; animation: cardFlip 0.6s ease-in-out; } .card h2 { font-size: var(--font-size-xxl); margin-bottom: var(--spacing-sm); color: var(--color-secondary); } .footer { position: fixed; bottom: 0; left: 0; width: 100%; padding: 5px 0px 5px 0px; font-size: 0.75rem; color: var(--color-text); text-align: center; background: transparent; border-top: 1px solid rgba(255 255 255 / 0.3); z-index: -1; } .footer a { color: var(--color-text); text-decoration: none; font-weight: normal; pointer-events: auto; } .footer a:hover { text-decoration: underline; } img { height: 1.2em; width: 1.2em; vertical-align: -0.25em; margin-left: 0.1em; margin-right: 0.1em; display: inline-block; } /* Dropdown Styles */ .dropdown-btn { color: var(--color-placeholder) !important; background: rgba(255 255 255 / 1); display: flex; justify-content: space-between; align-items: center; font-weight: normal; cursor: pointer; transition: all var(--animation-duration) ease; } .dropdown-btn:hover { background: rgba(255 255 255 / 1); transform: none; box-shadow: var(--shadow-sm); } .dropdown-content { position: static; top: 100%; left: 0; right: 0; background: rgba(255 255 255 / 1); backdrop-filter: blur(10px); border-radius: 0 0 var(--border-radius-md) var(--border-radius-md); box-shadow: var(--shadow-md); max-height: none; overflow-y: auto; z-index: 1000; max-height: 0; transition: all var(--animation-duration) ease; } .dropdown-content.open { border-radius: var(--border-radius-md); background: rgba(255 255 255 / 0.5); max-height: 300px; overflow-y: auto; border-top: none; } .checkbox-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; cursor: pointer; transition: background 0.2s ease; color: var(--color-text-dark); font-weight: normal; } input[type="checkbox"] { appearance: none; -webkit-appearance: none; background: var(--color-bg-light); border: 2px solid var(--color-secondary); border-radius: var(--border-radius-md); width: 1.4em; height: 1.4em; position: relative; cursor: pointer; vertical-align: middle; margin-right: 0.6em; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12); } input[type="checkbox"]:hover { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(238,90,36,0.13); } input[type="checkbox"]:focus { outline: none; border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(238,90,36,0.22); } input[type="checkbox"]::after { display: none !important; content: none !important; } input[type="checkbox"]:checked { background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%); border-color: var(--color-primary); box-shadow: 0 4px 12px rgba(238,90,36,0.15); } input[type="checkbox"]:checked + span { color: var(--color-primary); font-weight: bold; text-shadow: 0 1px 6px rgba(238,90,36,0.13); } .checkbox-item span { flex: 1 1 auto; text-align: left; margin: 0; transform-origin: left center; transition: color 0.2s; } .dropdown-arrow { transition: transform var(--animation-duration) ease; } .dropdown-arrow.rotated { transform: rotate(180deg); } /* Truth or Dare specific styles */ .current-player-info { text-align: center; margin-bottom: var(--spacing-xl); background: var(--color-bg-card); color: var(--color-text-dark); padding: var(--spacing-lg); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); } .current-player-info h2 { font-size: var(--font-size-xxl); margin: 0; color: var(--color-secondary); } .current-player { font-weight: bold; color: var(--color-primary); text-shadow: 0 0 10px rgba(248, 58, 83, 0.3); animation: glow 2s infinite alternate; } .choice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); margin-bottom: var(--spacing-lg); } .truth-btn, .dare-btn { background: var(--color-bg-card); color: var(--color-text-dark); padding: var(--spacing-lg); border-radius: var(--border-radius-lg); border: none; font-size: var(--font-size-lg); font-weight: bold; cursor: pointer; transition: all var(--animation-duration) var(--animation-smooth); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: var(--spacing-sm); min-height: 150px; justify-content: center; position: relative; overflow: hidden; } .choice-buttons img { width: 3rem; height: 3rem; filter: grayscale(0); transition: all var(--animation-duration) ease; } .truth-btn:hover, .dare-btn:hover { transform: translateY(-8px) scale(1.05); box-shadow: var(--shadow-lg); } .truth-btn:hover { background: linear-gradient(135deg, #3498db, #2980b9); color: var(--color-text); box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4); } .dare-btn:hover { background: linear-gradient(135deg, #e74c3c, #c0392b); color: var(--color-text); box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4); } .choice-buttons button:hover img { transform: scale(1.2); filter: brightness(1.2); } .question-card { background: var(--color-bg-card); color: var(--color-text-dark); padding: var(--spacing-lg); padding-bottom: var(--spacing-sm) !important; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); margin-bottom: var(--spacing-lg); animation: cardFlip 0.6s ease-in-out; min-height: 300px; display: flex; flex-direction: column; justify-content: center; } .question-type { display: inline-block; padding: var(--spacing-xs) var(--spacing-md); margin-bottom: var(--spacing-lg); border-radius: var(--border-radius-md); font-size: var(--font-size-base); font-weight: bold; width: auto; font-size: 3.5rem; text-transform: uppercase; letter-spacing: 1px; } .question-type.truth-type { background: linear-gradient(135deg, #3498db, #2980b9); color: var(--color-text); box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); } .question-type.dare-type { background: linear-gradient(135deg, #e74c3c, #c0392b); color: var(--color-text); box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); } .question-content { text-align: center; } #questionText { font-size: var(--font-size-xl); line-height: 1.6; margin-bottom: var(--spacing-md); font-weight: 500; color: var(--color-text-dark); word-break: break-word; padding: var(--spacing-md); background: rgba(255, 255, 255, 0.5); border-radius: var(--border-radius-md); border-left: 4px solid var(--color-primary); } .question-category { font-size: var(--font-size-base); color: var(--color-text-muted); font-style: italic; margin-top: var(--spacing-sm); } .game-controls { display: flex; gap: var(--spacing-sm); margin-top: var(--spacing-lg); flex-wrap: wrap; justify-content: center; } .game-controls button { flex: 1; min-width: 120px; } .secondary-btn { background: linear-gradient(45deg, var(--color-text-muted), #95a5a6) !important; } .secondary-btn:hover { box-shadow: 0 8px 25px rgba(149, 165, 166, 0.6) !important; } .next-btn { background: linear-gradient(45deg, var(--color-success), #27ae60) !important; color: var(--color-text) !important; } .next-btn:hover { box-shadow: 0 8px 25px rgba(56, 211, 159, 0.6) !important; } @keyframes cardFlip { 0% { transform: rotateY(-90deg) scale(0.8); opacity: 0; } 50% { transform: rotateY(0deg) scale(1.05); } 100% { transform: rotateY(0deg) scale(1); opacity: 1; } } @keyframes glow { from { text-shadow: 0 0 5px rgba(248, 58, 83, 0.3); } to { text-shadow: 0 0 25px rgba(248, 58, 83, 0.8), 0 0 35px rgba(248, 58, 83, 0.6); } }