FumbleAround/styles.css

445 lines
No EOL
7.9 KiB
CSS

* {
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;
}
#contentFrame {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
#githubButton {
padding: 8px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
#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 {
padding: 8px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
font-size: 20px;
}
#donateButton:hover {
transform: scale(1.1);
}
#donateButton:active {
transform: scale(0.95);
}
#helpButton {
padding: 8px;
background-color: transparent;
border: none;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
font-size: 20px;
}
#helpButton:hover {
transform: scale(1.1);
}
#helpButton:active {
transform: scale(0.95);
}
/* 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;
}
@media (max-width: 768px) {
body {
flex-direction: column-reverse;
/* 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);
}
header {
padding: 0.75rem 1rem;
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;
}
.header-buttons {
width: 100%;
justify-content: space-between;
margin: 0;
}
main {
height: 100vh;
}
#contentFrame {
height: calc(100% - 60px - env(safe-area-inset-bottom));
}
.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 */
.modal-content {
width: 90%;
margin: -300px auto 0;
padding: 15px;
margin-bottom: 80px; /* Add space for bottom header */
}
.modal.show .modal-content {
margin-top: 60px;
}
.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;
}
}