FumbleAround/styles.css

964 lines
16 KiB
CSS
Raw Permalink Normal View History

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
height: 100vh;
font-family: Arial, sans-serif;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background-color: #ffffff;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 1000;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.logo {
font-size: 24px;
font-weight: bold;
color: #ff4500;
transition: color 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.logo-icon {
width: 48px;
height: 48px;
object-fit: contain;
}
.header-buttons {
display: flex;
gap: 2rem;
align-items: center;
}
.social-buttons {
display: flex;
gap: 1rem;
align-items: center;
}
.app-controls {
display: flex;
align-items: center;
background: #f0f0f0;
padding: 4px;
border-radius: 25px;
gap: 8px;
}
.dark-mode .app-controls {
background: #2a2a2a;
}
#darkModeToggle {
padding: 8px;
background-color: transparent;
border: none;
font-size: 20px;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
#fumbleButton {
padding: 10px 25px;
background-color: #ff4500;
color: white;
border: none;
border-radius: 20px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: transform 0.2s ease, background-color 0.3s ease;
}
#fumbleButton:hover {
background-color: #ff5722;
transform: scale(1.05);
}
#fumbleButton:active {
transform: scale(0.95);
}
main {
flex: 1;
position: relative;
overflow: hidden;
}
#contentFrame {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
2025-01-19 19:30:51 -06:00
}
#githubButton {
padding: 8px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 50%;
2025-01-19 19:30:51 -06:00
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
2025-01-19 19:30:51 -06:00
}
#githubButton svg {
width: 24px;
height: 24px;
color: #333;
transition: color 0.3s ease;
}
.dark-mode #githubButton svg {
color: #fff;
}
#githubButton:hover {
transform: scale(1.1);
}
#githubButton:active {
transform: scale(0.95);
}
#donateButton {
2025-01-19 19:30:51 -06:00
padding: 8px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
2025-01-19 19:30:51 -06:00
font-size: 20px;
}
#donateButton:hover {
transform: scale(1.1);
}
#donateButton:active {
transform: scale(0.95);
}
#helpButton {
padding: 8px;
background-color: transparent;
border: none;
2025-01-19 19:30:51 -06:00
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
font-size: 20px;
2025-01-19 19:30:51 -06:00
}
#helpButton:hover {
2025-01-19 19:30:51 -06:00
transform: scale(1.1);
}
#helpButton:active {
transform: scale(0.95);
}
2025-01-19 19:30:51 -06:00
/* Dark mode styles - simplified to only affect header */
.dark-mode header {
background-color: #1a1a1a;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.dark-mode .logo {
color: #ff6b4a;
}
.dark-mode #fumbleButton {
background-color: #ff6b4a;
}
.dark-mode #fumbleButton:hover {
background-color: #ff7c5c;
}
/* Remove these styles */
body {
display: flex;
flex-direction: column;
height: 100vh;
font-family: Arial, sans-serif;
/* Remove transition since we're not changing body background */
}
/* Remove the general dark mode style that was affecting the whole body */
.dark-mode {
/* Remove these styles */
/* background-color: #1a1a1a; */
/* color: #ffffff; */
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0);
z-index: 2000;
transition: background-color 0.3s ease;
}
.modal-content {
background-color: #fff;
margin: -500px auto 0;
padding: 20px;
width: 80%;
max-width: 500px;
border-radius: 8px;
position: relative;
transition: margin 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform: perspective(1000px) rotateX(5deg);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.dark-mode .modal-content {
background-color: #1a1a1a;
color: #fff;
}
.modal.show {
display: block;
background-color: rgba(0, 0, 0, 0.5);
}
.modal.show .modal-content {
margin-top: 100px;
transform: perspective(1000px) rotateX(0);
}
.close-button {
position: absolute;
right: 20px;
top: 10px;
font-size: 24px;
cursor: pointer;
color: #666;
}
.dark-mode .close-button {
color: #999;
}
.modal-content h2 {
margin-bottom: 15px;
color: #ff4500;
}
.dark-mode .modal-content h2 {
color: #ff6b4a;
}
.modal-content p {
margin-bottom: 15px;
line-height: 1.5;
2025-01-19 23:21:32 -06:00
}
@media (max-width: 768px) {
body {
flex-direction: column-reverse;
2025-01-19 23:30:59 -06:00
/* Add padding for iOS safe areas */
padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
2025-01-19 23:21:32 -06:00
header {
padding: 0.75rem 1rem;
2025-01-19 23:30:59 -06:00
padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
}
.dark-mode header {
background-color: rgba(26, 26, 26, 0.95);
}
.logo {
display: none;
2025-01-19 23:21:32 -06:00
}
.header-buttons {
width: 100%;
justify-content: space-between;
margin: 0;
2025-01-19 23:21:32 -06:00
}
main {
height: 100vh;
2025-01-19 23:21:32 -06:00
}
#contentFrame {
2025-01-19 23:30:59 -06:00
height: calc(100% - 60px - env(safe-area-inset-bottom));
2025-01-19 23:21:32 -06:00
}
.social-buttons {
gap: 0.5rem;
}
#fumbleButton {
padding: 8px 20px;
font-size: 14px;
}
.app-controls {
padding: 3px;
}
#darkModeToggle, #helpButton, #donateButton, #githubButton {
padding: 6px;
font-size: 16px;
}
#githubButton svg {
width: 20px;
height: 20px;
}
/* Modal adjustments for bottom header */
2025-01-19 23:21:32 -06:00
.modal-content {
width: 90%;
margin: -300px auto 0;
padding: 15px;
margin-bottom: 80px; /* Add space for bottom header */
2025-01-19 23:21:32 -06:00
}
.modal.show .modal-content {
margin-top: 60px;
2025-01-19 23:21:32 -06:00
}
.modal-content h2 {
font-size: 1.5rem;
}
.modal-content p {
font-size: 0.9rem;
}
.close-button {
right: 15px;
top: 8px;
}
}
/* Add touch-specific improvements */
@media (hover: none) {
#fumbleButton:hover {
transform: none;
background-color: #ff4500;
}
.dark-mode #fumbleButton:hover {
background-color: #ff6b4a;
}
#darkModeToggle:hover,
#helpButton:hover,
#donateButton:hover,
#githubButton:hover {
transform: none;
}
/* Active states for touch devices */
#fumbleButton:active,
#darkModeToggle:active,
#helpButton:active,
#donateButton:active,
#githubButton:active {
transform: scale(0.95);
}
}
/* Prevent pull-to-refresh on mobile */
html, body {
overscroll-behavior-y: contain;
}
/* Improve tap target sizes */
button {
min-width: 44px;
min-height: 44px;
}
.permission-button {
display: block;
margin: 20px auto 0;
padding: 10px 20px;
background-color: #ff4500;
color: white;
border: none;
border-radius: 20px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.dark-mode .permission-button {
background-color: #ff6b4a;
}
.permission-button:hover {
background-color: #ff5722;
}
@media (hover: none) {
.permission-button:hover {
background-color: #ff4500;
}
.dark-mode .permission-button:hover {
background-color: #ff6b4a;
}
}
.warning-modal .modal-content {
max-width: 400px;
}
.warning-modal h2 {
color: #ff4500;
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
}
.cooldown-timer {
background: rgba(255, 69, 0, 0.1);
padding: 15px;
border-radius: 8px;
margin-top: 20px;
font-weight: bold;
color: #ff4500;
}
.dark-mode .cooldown-timer {
background: rgba(255, 107, 74, 0.1);
color: #ff6b4a;
}
@media (max-width: 768px) {
.warning-modal .modal-content {
width: 90%;
margin: -300px auto 0;
}
}
.warning-close-btn {
display: block;
width: 100%;
padding: 12px;
margin-top: 20px;
background-color: #ff4500;
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, opacity 0.3s ease;
}
.warning-close-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.dark-mode .warning-close-btn {
background-color: #ff6b4a;
}
.warning-close-btn:not(:disabled):hover {
background-color: #ff5722;
}
.dark-mode .warning-close-btn:not(:disabled):hover {
background-color: #ff7c5c;
}
.settings-panel {
position: fixed;
top: 0;
right: -400px;
width: 400px;
height: 100vh;
background-color: #ffffff;
box-shadow: -2px 0 10px rgba(0,0,0,0.1);
transition: right 0.3s ease;
z-index: 2000;
overflow-y: auto;
}
.dark-mode .settings-panel {
background-color: #1a1a1a;
color: #ffffff;
}
.settings-panel.show {
right: 0;
}
.settings-content {
padding: 20px;
}
.settings-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.dark-mode .settings-header {
border-bottom-color: #333;
}
.close-settings {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #666;
padding: 5px;
}
.dark-mode .close-settings {
color: #999;
}
.settings-section {
margin-bottom: 30px;
}
.settings-section h3 {
margin-bottom: 15px;
color: #ff4500;
}
.dark-mode .settings-section h3 {
color: #ff6b4a;
}
.setting-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding: 10px;
background: #f5f5f5;
border-radius: 8px;
}
.dark-mode .setting-item {
background: #2a2a2a;
}
.settings-button {
width: 100%;
padding: 10px;
background-color: #ff4500;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.dark-mode .settings-button {
background-color: #ff6b4a;
}
.settings-button:hover {
background-color: #ff5722;
}
@media (max-width: 768px) {
.settings-panel {
width: 100%;
right: -100%;
}
}
#settingsButton {
padding: 8px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
#settingsButton svg {
width: 24px;
height: 24px;
color: #333;
transition: color 0.3s ease, transform 0.3s ease;
}
.dark-mode #settingsButton svg {
color: #fff;
}
#settingsButton:hover svg {
transform: rotate(30deg);
}
#settingsButton:active svg {
transform: rotate(180deg);
}
@media (hover: none) {
#settingsButton:hover svg {
transform: none;
}
}
.about-section {
flex-direction: column;
padding: 20px;
}
.about-content {
width: 100%;
text-align: center;
}
.about-logo {
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.about-logo img {
width: 64px;
height: 64px;
border-radius: 12px;
}
.about-logo h4 {
font-size: 1.2em;
margin: 0;
color: #ff4500;
}
.dark-mode .about-logo h4 {
color: #ff6b4a;
}
.about-text {
display: flex;
flex-direction: column;
gap: 20px;
}
.about-text p {
margin: 0;
line-height: 1.5;
}
.disclaimer {
background: rgba(255, 69, 0, 0.1);
padding: 15px;
border-radius: 8px;
margin: 10px 0;
}
.dark-mode .disclaimer {
background: rgba(255, 107, 74, 0.1);
}
.disclaimer h5 {
color: #ff4500;
margin: 0 0 10px 0;
font-size: 1em;
}
.dark-mode .disclaimer h5 {
color: #ff6b4a;
}
.tribute {
font-style: italic;
opacity: 0.8;
padding-top: 10px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.dark-mode .tribute {
border-top-color: rgba(255, 255, 255, 0.1);
}
.floating-button {
position: fixed;
right: 20px;
top: 80px;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 69, 0, 0.9);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: scale(0.9);
transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
z-index: 1000;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
pointer-events: auto;
}
.floating-button svg {
width: 20px;
height: 20px;
color: white;
}
main:hover .floating-button {
opacity: 1;
transform: scale(1);
}
.floating-button:hover {
background: rgba(255, 69, 0, 1);
transform: scale(1.1);
}
.dark-mode .floating-button {
background: rgba(255, 107, 74, 0.9);
}
.dark-mode .floating-button:hover {
background: rgba(255, 107, 74, 1);
}
@media (hover: none) {
.floating-button {
opacity: 0.9;
transform: scale(1);
}
.floating-button:hover {
transform: scale(1);
}
}
@media (max-width: 768px) {
.floating-button {
top: auto;
bottom: 80px;
right: 20px;
}
}
.setting-item#darkModeToggleArea {
cursor: pointer;
transition: background-color 0.3s ease;
}
.setting-item#darkModeToggleArea:hover {
background: #eaeaea;
}
.dark-mode .setting-item#darkModeToggleArea:hover {
background: #333;
}
.interactions-list {
flex-direction: column;
gap: 15px;
padding: 15px;
}
.interaction-item {
display: flex;
align-items: flex-start;
gap: 15px;
}
.interaction-icon {
font-size: 24px;
min-width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 69, 0, 0.1);
border-radius: 8px;
}
.dark-mode .interaction-icon {
background: rgba(255, 107, 74, 0.1);
}
.interaction-details {
flex: 1;
}
.interaction-details h4 {
margin: 0 0 5px 0;
color: #ff4500;
font-size: 1em;
}
.dark-mode .interaction-details h4 {
color: #ff6b4a;
}
.interaction-details p {
margin: 0;
font-size: 0.9em;
line-height: 1.4;
opacity: 0.8;
}
.license-section {
flex-direction: column;
padding: 15px;
}
.license-content {
width: 100%;
}
.license-content p {
margin: 0 0 10px 0;
font-size: 0.9em;
line-height: 1.5;
}
.license-details {
margin-top: 15px;
}
.license-toggle {
background: none;
border: none;
color: #ff4500;
cursor: pointer;
padding: 0;
font-size: 0.9em;
text-decoration: underline;
}
.dark-mode .license-toggle {
color: #ff6b4a;
}
.full-license {
margin-top: 15px;
padding: 15px;
background: rgba(255, 69, 0, 0.1);
border-radius: 8px;
}
.dark-mode .full-license {
background: rgba(255, 107, 74, 0.1);
}
.full-license a {
color: #ff4500;
text-decoration: none;
}
.dark-mode .full-license a {
color: #ff6b4a;
}
.full-license a:hover {
text-decoration: underline;
2025-01-21 02:12:09 -06:00
}
2025-01-21 02:39:08 -06:00
.blocked-modal .modal-content {
2025-01-21 02:12:09 -06:00
max-width: 400px;
}
2025-01-21 02:39:08 -06:00
.blocked-modal-buttons {
2025-01-21 02:12:09 -06:00
display: flex;
gap: 10px;
margin-top: 20px;
}
2025-01-21 02:39:08 -06:00
.blocked-retry-btn, .blocked-open-btn {
2025-01-21 02:12:09 -06:00
flex: 1;
padding: 12px;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}
2025-01-21 02:39:08 -06:00
.blocked-retry-btn {
2025-01-21 02:12:09 -06:00
background-color: #ff4500;
color: white;
}
2025-01-21 02:39:08 -06:00
.dark-mode .blocked-retry-btn {
2025-01-21 02:12:09 -06:00
background-color: #ff6b4a;
}
2025-01-21 02:39:08 -06:00
.blocked-retry-btn:hover {
2025-01-21 02:12:09 -06:00
background-color: #ff5722;
}
2025-01-21 02:39:08 -06:00
.blocked-open-btn {
2025-01-21 02:12:09 -06:00
background-color: #f0f0f0;
color: #333;
}
2025-01-21 02:39:08 -06:00
.dark-mode .blocked-open-btn {
2025-01-21 02:12:09 -06:00
background-color: #2a2a2a;
color: #fff;
}
2025-01-21 02:39:08 -06:00
.blocked-open-btn:hover {
2025-01-21 02:12:09 -06:00
background-color: #e0e0e0;
2025-01-21 02:39:08 -06:00
}
.dark-mode .blocked-open-btn:hover {
background-color: #333;
}