My-First-Space / style.css
mendeld's picture
Update style.css
610f895 verified
Raw History Blame Contribute Delete
5.88 kB
body {
margin: 0;
padding: 30px;
font-family: Arial, sans-serif;
background: #f4f4f4;
text-align: center;
min-height: 100vh;
box-sizing: border-box;
}
main {
max-width: 650px;
margin: 50px auto;
padding: 40px;
background: transparent;
border-radius: 16px;
}
h1 {
font-family: "Fredoka", sans-serif;
font-size: 36px;
}
p {
font-family: "Nunito", sans-serif;
font-size: 20px;
}
button {
border: 2px solid transparent;
padding: 12px 22px;
font-family: "Poppins", sans-serif;
font-size: 18px;
border-radius: 8px;
cursor: grab;
user-select: none;
}
button:active {
cursor: grabbing;
border-color: black;
}
input {
width: 250px;
max-width: calc(100vw - 80px);
padding: 12px;
font-family: "Nunito", sans-serif;
font-size: 18px;
border: 2px solid #999;
border-radius: 10px;
background: white;
box-sizing: border-box;
}
input:focus {
border-color: blue;
outline: none;
}
input::placeholder {
color: gray;
}
#logoutButton {
position: fixed;
top: 38px;
right: 15px;
z-index: 1000;
padding: 7px 12px;
font-family: "Poppins", sans-serif;
font-size: 13px;
cursor: pointer;
}
#welcomeUser {
position: fixed;
top: 12px;
right: 15px;
z-index: 1000;
font-family: "Poppins", sans-serif;
font-size: 14px;
font-weight: 600;
}
.menuButtons,
.clickerButtons {
display: flex;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
}
#counter.flashing {
color: red;
font-weight: bold;
animation: flash 0.4s infinite;
}
@keyframes flash {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#pressButton {
cursor: grab;
touch-action: none;
}
#pressButton.dragging {
cursor: grabbing;
z-index: 2000;
}
#backButton {
position: fixed;
top: 12px;
left: 15px;
z-index: 1000;
margin: 0;
padding: 7px 12px;
font-family: "Poppins", sans-serif;
font-size: 13px;
cursor: pointer;
}
@media (max-width: 600px) {
body {
padding: 20px;
}
main {
margin: 55px auto 20px;
padding: 20px 10px;
}
h1 {
font-size: 30px;
}
#welcomeUser {
max-width: 55vw;
text-align: right;
}
.gameCardGrid {
grid-template-columns: 1fr;
}
.gameCard {
padding: 18px;
}
.gameCardText h2 {
font-size: 24px;
}
.gameCardText p {
font-size: 16px;
}
}
.menuSubtitle {
margin-top: -6px;
margin-bottom: 28px;
color: #5e6280;
}
.gameCardGrid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
align-items: stretch;
}
.gameCard {
text-align: left;
padding: 22px;
border-radius: 22px;
border: 2px solid rgba(255, 255, 255, 0.7);
box-shadow: 0 10px 26px rgba(35, 40, 80, 0.12);
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
cursor: pointer;
background: white;
}
.gameCard:hover {
transform: translateY(-3px);
box-shadow: 0 16px 36px rgba(35, 40, 80, 0.18);
}
.gameCard:active {
cursor: pointer;
transform: translateY(0);
}
.clickerCard {
background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
border-color: #b9ddff;
}
.rabbiCard {
background: linear-gradient(180deg, #fffdf8 0%, #fff1dc 100%);
border-color: #f1d39d;
}
.gameCardTop {
display: flex;
gap: 14px;
align-items: flex-start;
}
.gameCardIcon {
width: 58px;
height: 58px;
flex: 0 0 58px;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.65);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.gameCardText h2 {
margin: 2px 0 8px;
font-family: "Fredoka", sans-serif;
font-size: 28px;
}
.gameCardText p {
margin: 0;
font-size: 17px;
line-height: 1.45;
color: #41455e;
}
.gameCardTags {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 18px;
}
.gameCardTags span {
font-family: "Poppins", sans-serif;
font-size: 13px;
padding: 6px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.75);
color: #37405c;
border: 1px solid rgba(55, 64, 92, 0.12);
}
.gameCardFooter {
margin-top: 20px;
display: flex;
align-items: center;
justify-content: space-between;
font-family: "Poppins", sans-serif;
font-weight: 600;
color: #25345c;
}
.playLabel {
font-size: 16px;
}
.arrowLabel {
font-size: 24px;
line-height: 1;
}
/* CUSTOM RIGHT-CLICK MENU */
.customContextMenu {
position: fixed;
z-index: 5000;
display: none;
min-width: 220px;
padding: 8px;
background: rgba(255, 255, 255, 0.97);
border: 1px solid rgba(35, 40, 80, 0.16);
border-radius: 16px;
box-shadow: 0 16px 42px rgba(35, 40, 80, 0.22);
backdrop-filter: blur(10px);
text-align: left;
}
.customContextMenu.show {
display: block;
}
.customContextMenu button {
width: 100%;
display: flex;
align-items: center;
gap: 10px;
padding: 11px 12px;
border: 0;
border-radius: 10px;
background: transparent;
color: #2f344d;
font-family: "Poppins", sans-serif;
font-size: 15px;
text-align: left;
cursor: pointer;
}
.customContextMenu button:hover,
.customContextMenu button:focus-visible {
background: #eef3ff;
outline: none;
}
.customContextMenu button:active {
border-color: transparent;
cursor: pointer;
}
.contextIcon {
width: 24px;
text-align: center;
font-size: 17px;
}
.contextDivider {
height: 1px;
margin: 6px 4px;
background: rgba(35, 40, 80, 0.12);
}