158 lines
2.5 KiB
CSS
158 lines
2.5 KiB
CSS
body {
|
|
font-family: sans-serif;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 🎨 Theme Styles */
|
|
body.playground {
|
|
background: #fef9e7;
|
|
color: #333;
|
|
font-family: 'Comic Sans MS', cursive, sans-serif;
|
|
}
|
|
|
|
body.chalkboard {
|
|
background: #222;
|
|
color: #f0f0f0;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
body.galaxy {
|
|
background: radial-gradient(circle at center, #0d0d2b, #1a1a3f);
|
|
color: #b3e5fc;
|
|
font-family: 'Orbitron', sans-serif;
|
|
}
|
|
|
|
body.nature {
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
font-family: 'Georgia', serif;
|
|
}
|
|
|
|
/* 🔘 UI Controls */
|
|
button {
|
|
background-color: #4caf50;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 8px;
|
|
padding: 0.6rem 1rem;
|
|
font-size: 1rem;
|
|
margin: 0.4rem;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
button:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
input, textarea, select {
|
|
font-size: 1rem;
|
|
padding: 0.5rem;
|
|
margin: 0.5rem;
|
|
border: 2px solid #ccc;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/* 🔳 Panels */
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
#wordBox {
|
|
margin-top: 5rem;
|
|
}
|
|
.word-box {
|
|
font-size: 3rem;
|
|
font-weight: bold;
|
|
margin-bottom: 2rem;
|
|
color: #2196f3;
|
|
text-shadow: 1px 1px #ccc;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
li {
|
|
margin: 0.25rem 0;
|
|
}
|
|
|
|
/* 🎭 Theme-specific button colors */
|
|
body.chalkboard button {
|
|
background-color: #555;
|
|
}
|
|
body.galaxy button {
|
|
background-color: #6200ea;
|
|
}
|
|
body.nature button {
|
|
background-color: #81c784;
|
|
}
|
|
.banner {
|
|
padding: 0.5em;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
color: white;
|
|
}
|
|
|
|
.banner.admin {
|
|
background-color: #b22222; /* Firebrick red */
|
|
}
|
|
|
|
.banner.student {
|
|
background-color: #1e90ff; /* Dodger blue */
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
background: #333;
|
|
color: #fff;
|
|
padding: 0.75em 1.25em;
|
|
border-radius: 5px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.4s ease;
|
|
z-index: 999;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
#adminTabs {
|
|
margin: 1em 0;
|
|
}
|
|
#adminTabs button {
|
|
margin-right: 8px;
|
|
padding: 10px 16px;
|
|
background-color: #f0f0f0;
|
|
border: 1px solid #ccc;
|
|
border-bottom: none;
|
|
border-radius: 6px 6px 0 0;
|
|
font-weight: 600;
|
|
color: #333;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
}
|
|
|
|
#adminTabs button:hover {
|
|
background-color: #e0f2ff;
|
|
color: #000;
|
|
}
|
|
|
|
#adminTabs button.active {
|
|
background-color: #ffffff;
|
|
color: #000;
|
|
border-bottom: 2px solid #fff;
|
|
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
.adminTab {
|
|
display: none;
|
|
}
|
|
.adminTab:not(.hidden) {
|
|
display: block;
|
|
} |