Enhance responsive UI across components with CSS adjustments and new styles

This commit is contained in:
Bangara Raju Kottedi 2026-01-28 14:07:57 +05:30
parent 5b02a13cb4
commit c41b9cb76a
17 changed files with 771 additions and 114 deletions

View File

@ -1,20 +1,82 @@
.winnerContainer { .winnerContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 40px; padding: 30px 20px;
width: 300px; width: 90vw;
height: 250px; max-width: 320px;
background: radial-gradient(circle, rgba(0, 138, 255, 1) 5%, rgba(9, 9, 121, 1) 81%); background: radial-gradient(circle, rgba(0, 138, 255, 1) 5%, rgba(9, 9, 121, 1) 81%);
color: white; color: white;
border: 1px solid white; border: 1px solid white;
border-radius: 8px; border-radius: 8px;
margin: 20px; margin: 20px auto;
z-index: 2; z-index: 2;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
cursor: default; cursor: default;
gap: 15px;
} }
.winnerContainer > img {
max-width: 80px;
height: auto;
margin: 0 auto;
}
.winnerContainer > h1 {
font-size: 24px;
margin: 10px 0;
word-break: break-word;
}
.winnerContainer > button { .winnerContainer > button {
align-self: center; align-self: center;
width: 200px; width: 100%;
max-width: 180px;
padding: 10px 20px;
font-size: 16px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.winnerContainer > button:hover {
background-color: #0056b3;
}
.winnerContainer > button:active {
transform: scale(0.98);
}
/* Tablet */
@media (max-width: 1024px) {
.winnerContainer {
padding: 25px 15px;
max-width: 280px;
}
.winnerContainer > h1 {
font-size: 20px;
}
}
/* Mobile */
@media (max-width: 767px) {
.winnerContainer {
width: 85vw;
padding: 20px 15px;
max-width: 100%;
}
.winnerContainer > h1 {
font-size: 18px;
}
.winnerContainer > button {
max-width: 150px;
font-size: 14px;
padding: 8px 16px;
}
} }

View File

@ -6,6 +6,7 @@ import positionMapCoords from '../positions';
import pawnImages from '../../../constants/pawnImages'; import pawnImages from '../../../constants/pawnImages';
import canPawnMove from './canPawnMove'; import canPawnMove from './canPawnMove';
import getPositionAfterMove from './getPositionAfterMove'; import getPositionAfterMove from './getPositionAfterMove';
import styles from './Map.module.css';
const Map = ({ pawns, nowMoving, rolledNumber }) => { const Map = ({ pawns, nowMoving, rolledNumber }) => {
const player = useContext(PlayerDataContext); const player = useContext(PlayerDataContext);
@ -86,14 +87,16 @@ const Map = ({ pawns, nowMoving, rolledNumber }) => {
}, [hintPawn, pawns]); }, [hintPawn, pawns]);
return ( return (
<div className={styles.canvasContainer}>
<canvas <canvas
className='canvas-container' className={styles.canvas}
width={460} width={460}
height={460} height={460}
ref={canvasRef} ref={canvasRef}
onClick={handleCanvasClick} onClick={handleCanvasClick}
onMouseMove={handleMouseMove} onMouseMove={handleMouseMove}
/> />
</div>
); );
}; };
export default Map; export default Map;

View File

@ -0,0 +1,4 @@
.canvasContainer {
display: flex;
justify-content: center;
align-items: center;\n width: 100%;\n height: 100%;\n padding: 10px;\n box-sizing: border-box;\n}\n\ncanvas.canvas {\n border-radius: 15px;\n border: 2px solid black;\n width: 460px;\n height: 460px;\n max-width: 100%;\n height: auto;\n aspect-ratio: 1 / 1;\n touch-action: none;\n}\n\n/* Tablet (768px - 1024px) */\n@media (max-width: 1024px) {\n .canvasContainer {\n padding: 8px;\n }\n\n canvas.canvas {\n width: 400px;\n max-width: 90vw;\n }\n}\n\n/* Mobile (less than 768px) */\n@media (max-width: 767px) {\n .canvasContainer {\n padding: 5px;\n }\n\n canvas.canvas {\n width: 90vw;\n max-width: 460px;\n }\n}\n\n/* Small Mobile (less than 480px) */\n@media (max-width: 479px) {\n canvas.canvas {\n width: 95vw;\n max-width: 100%;\n }\n}\n

View File

@ -4,12 +4,91 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
gap: 10px;
}
.formContainer > input,
.formContainer > button {
width: 90%;
max-width: 350px;
padding: 8px 12px;
font-size: 14px;
border: 1px solid white;
border-radius: 4px;
color: white;
background-color: rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
}
.formContainer > input::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.formContainer > input:focus,
.formContainer > button:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.formContainer > button {
background-color: #007bff;
cursor: pointer;
font-weight: 600;
margin-top: 5px;
}
.formContainer > button:hover {
background-color: #0056b3;
}
.formContainer > button:active {
transform: scale(0.98);
} }
.privateContainer { .privateContainer {
margin-left: 10px; width: 90%;
max-width: 350px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
width: 100%; justify-content: space-between;
padding: 5px 10px;
background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.3);
}
.privateContainer > label {
color: white;
font-weight: 500;
font-size: 14px;
}
/* Tablet */
@media (max-width: 1024px) {
.formContainer > input,
.formContainer > button,
.privateContainer {
max-width: 300px;
}
}
/* Mobile */
@media (max-width: 767px) {
.formContainer {
gap: 8px;
}
.formContainer > input,
.formContainer > button,
.privateContainer {
max-width: 100%;
font-size: 13px;
}
.formContainer > input,
.formContainer > button {
padding: 6px 10px;
}
} }

View File

@ -1,20 +1,50 @@
.serversTableContainer { .serversTableContainer {
display: flex; display: flex;
overflow: scroll; overflow: auto;
height: 500px; max-height: 500px;
width: 100%; width: 100%;
-webkit-overflow-scrolling: touch;
} }
.refresh { .refresh {
display: flex; display: flex;
margin-left: auto; margin-left: auto;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-width: 40px;
width: 40px; width: 40px;
height: 100%; height: 100%;
border: 1px solid white; border: 1px solid white;
padding: 0 5px;
cursor: pointer;
} }
.refresh > img { .refresh > img {
width: 20px; width: 20px;
height: 20px; height: 20px;
cursor: pointer; cursor: pointer;
transition: transform 0.2s ease;
}
.refresh > img:hover {
transform: rotate(180deg);
}
.refresh > img:active {
transform: rotate(180deg) scale(0.9);
}
/* Tablet */
@media (max-width: 1024px) {
.serversTableContainer {
max-height: 400px;
}
}
/* Mobile */
@media (max-width: 767px) {
.serversTableContainer {
max-height: 300px;
width: 100%;
}
} }

View File

@ -3,25 +3,26 @@ import styles from './ServersTable.module.css';
const ServerListTable = ({ rooms, handleJoinClick }) => { const ServerListTable = ({ rooms, handleJoinClick }) => {
return ( return (
<div className={styles.tableContainer}>
<table className={styles.rooms}> <table className={styles.rooms}>
<thead> <thead>
<tr> <tr>
<th className={styles.firstColumn}></th> <th className={styles.firstColumn} aria-label="Private"></th>
<th>Server</th> <th>Server</th>
<th>#/#</th> <th>Players</th>
<th>Status</th> <th>Status</th>
<th className={styles.lastColumn}></th> <th className={styles.lastColumn} aria-label="Action"></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{rooms.map((room, index) => { {rooms.map((room, index) => {
return room.started ? null : ( return room.started ? null : (
<tr key={index}> <tr key={index}>
<td>{room.private ? <img src={lock} alt='private' /> : null}</td> <td data-label="Private">{room.private ? <img src={lock} alt='private' /> : null}</td>
<td className={styles.roomName}>{room.name}</td> <td className={styles.roomName} data-label="Server">{room.name}</td>
<td>{`${room.players.length}/4`}</td> <td data-label="Players">{`${room.players.length}/4`}</td>
<td>{room.isStarted ? 'started' : 'waiting'}</td> <td data-label="Status">{room.isStarted ? 'started' : 'waiting'}</td>
<td className={styles.lastColumn}> <td className={styles.lastColumn} data-label="Action">
<button onClick={() => handleJoinClick(room)}>Join</button> <button onClick={() => handleJoinClick(room)}>Join</button>
</td> </td>
</tr> </tr>
@ -29,6 +30,7 @@ const ServerListTable = ({ rooms, handleJoinClick }) => {
})} })}
</tbody> </tbody>
</table> </table>
</div>
); );
}; };

View File

@ -1,3 +1,48 @@
.tableContainer {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: 4px;
}
.rooms {
border-collapse: collapse;
width: 100%;
height: fit-content;
background-color: #fff;
}
.rooms > thead > tr {
background-color: #f5f5f5;
}
.rooms > th {
padding: 10px 8px;
text-align: center;
height: auto;
font-weight: 600;
font-size: 13px;
border-bottom: 2px solid #ddd;
color: #333;
}
.rooms > thead > tr :nth-child(2) {
text-align: left;
}
.rooms > tbody > tr > td {
padding: 10px 8px;
text-align: center;
height: auto;
border-bottom: 1px solid #e9e9e9;
font-size: 13px;
color: #333;
}
.rooms > tbody > tr:hover {
background-color: #fafafa;
}
.roomName { .roomName {
max-width: 150px; max-width: 150px;
overflow: hidden; overflow: hidden;
@ -5,39 +50,162 @@
white-space: nowrap; white-space: nowrap;
text-align: left !important; text-align: left !important;
} }
.rooms > thead > tr :nth-child(2) {
text-align: left;
}
.rooms > tbody > tr > td > img { .rooms > tbody > tr > td > img {
margin-right: 5px; margin-right: 5px;
width: 20px; width: 18px;
height: 20px; height: 18px;
}
.rooms > th {
padding: 8px;
text-align: center;
height: 50px;
}
.rooms > tbody > tr > td {
padding: 4px;
text-align: center;
height: 50px;
}
.rooms > tbody > tr > td {
max-height: 50px;
height: 10px;
}
.rooms {
border-collapse: collapse;
width: 100%;
height: fit-content;
} }
.lastColumn { .lastColumn {
width: 70px; width: 70px;
} }
.firstColumn { .firstColumn {
width: 40px; width: 40px;
} }
.rooms button {
padding: 6px 12px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
font-weight: 600;
transition: background-color 0.3s ease;
}
.rooms button:hover {
background-color: #0056b3;
}
.rooms button:active {
transform: scale(0.98);
}
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
.rooms > th,
.rooms > tbody > tr > td {
padding: 8px 6px;
font-size: 12px;
}
.lastColumn {
width: 60px;
}
.roomName {
max-width: 120px;
}
.rooms button {
padding: 5px 10px;
font-size: 11px;
}
}
/* Mobile (less than 768px) */
@media (max-width: 767px) {
.tableContainer {
margin: 0 -5px;
border-radius: 0;
}
.rooms {
display: block;
width: 100%;
}
.rooms > thead {
display: none;
}
.rooms > tbody {
display: block;
width: 100%;
}
.rooms > tbody > tr {
display: block;
border: 1px solid #ddd;
border-radius: 6px;
margin-bottom: 10px;
padding: 12px;
background-color: #fff;
}
.rooms > tbody > tr:hover {
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.rooms > tbody > tr > td {
display: grid;
grid-template-columns: 90px 1fr;
align-items: center;
padding: 8px 0;
text-align: right;
border-bottom: 1px solid #f0f0f0;
gap: 10px;
}
.rooms > tbody > tr > td:last-child {
border-bottom: none;
padding-top: 12px;
padding-bottom: 0;
}
.rooms > tbody > tr > td:first-child {
display: flex;
align-items: center;
justify-content: flex-start;
padding-bottom: 8px;
grid-template-columns: none;
}
.rooms > tbody > tr > td:before {
content: attr(data-label);
font-weight: 600;
color: #666;
min-width: 85px;
text-align: left;
font-size: 12px;
}
.roomName {
max-width: 100%;
text-align: right !important;
white-space: normal;
word-break: break-word;
}
.roomName:before {
display: none;
}
.rooms > tbody > tr > td:first-child:before {
display: none;
}
.lastColumn {
width: 100%;
grid-column: 1 / -1;
}
.lastColumn button {
width: 100%;
padding: 10px 12px;
font-size: 13px;
}
.firstColumn {
width: auto;
}
.rooms > tbody > tr > td > img {
margin-right: 0;
}
}

View File

@ -3,6 +3,27 @@
flex-direction: row; flex-direction: row;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
height: 50%; height: 100%;
width: 100%; width: 100%;
gap: 20px;
padding: 20px 10px;
overflow: auto;
}
/* Tablet */
@media (max-width: 1024px) {
.container {
gap: 15px;
padding: 15px 10px;
}
}
/* Mobile */
@media (max-width: 767px) {
.container {
flex-direction: column;
gap: 10px;
padding: 10px 5px;
align-items: center;
}
} }

View File

@ -1,20 +1,90 @@
.container { .container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 10px 20px 60px 20px; padding: 20px 15px;
width: 300px; width: 90vw;
max-width: 340px;
background: radial-gradient(circle, rgba(0, 138, 255, 1) 5%, rgba(9, 9, 121, 1) 81%); background: radial-gradient(circle, rgba(0, 138, 255, 1) 5%, rgba(9, 9, 121, 1) 81%);
border: 1px solid white; border: 1px solid white;
border-radius: 8px; border-radius: 8px;
margin: 20px; margin: 20px auto;
z-index: 2; z-index: 2;
gap: 10px;
} }
.container > input {
padding: 10px 12px;
margin-top: 5px;
font-size: 14px;
border: 1px solid white;
border-radius: 4px;
background-color: rgba(0, 0, 0, 0.3);
color: white;
transition: all 0.3s ease;
}
.container > input::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.container > input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.container > button { .container > button {
margin-top: 5px; margin-top: 5px;
padding: 10px 16px;
text-align: center; text-align: center;
width: 100px; width: 100px;
align-self: center; align-self: center;
font-size: 14px;
font-weight: 600;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
} }
.container > input {
margin-top: 10px; .container > button:hover {
background-color: #0056b3;
}
.container > button:active {
transform: scale(0.98);
}
/* Tablet */
@media (max-width: 1024px) {
.container {
max-width: 300px;
padding: 18px 12px;
}
.container > input {
font-size: 13px;
}
.container > button {
font-size: 13px;
padding: 8px 14px;
}
}
/* Mobile */
@media (max-width: 767px) {
.container {
width: 85vw;
max-width: 100%;
padding: 15px 12px;
}
.container > button {
width: 90px;
padding: 8px 12px;
font-size: 12px;
}
} }

View File

@ -1,11 +1,12 @@
.container { .container {
margin: 50px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 500px; width: 90vw;
max-width: 500px;
color: white; color: white;
margin: 10px auto;
} }
.title { .title {
@ -14,19 +15,22 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100%; width: 100%;
height: 40px; min-height: 40px;
border: 1px solid white; border: 1px solid white;
border-radius: 2px; border-radius: 2px;
transform: scaleX(1.02); transform: scaleX(1.02);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
padding-left: 10px; padding: 0 10px;
text-align: center; text-align: center;
gap: 10px;
} }
.title > h1 { .title > h1 {
width: 100%; width: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-size: 20px;
word-break: break-word;
} }
.content { .content {
@ -35,12 +39,47 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 100%; width: 100%;
padding-left: 5px; padding: 10px;
padding-right: 5px;
padding-top: 10px;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-left: 1px solid black; border-left: 1px solid black;
border-right: 1px solid black; border-right: 1px solid black;
border-bottom: 1px solid black; border-bottom: 1px solid black;
border-radius: 0 0 2px 2px;
gap: 8px;
}
/* Tablet */
@media (max-width: 1024px) {
.container {
max-width: 450px;
margin: 8px auto;
}
.title > h1 {
font-size: 18px;
}
}
/* Mobile */
@media (max-width: 767px) {
.container {
width: 95vw;
max-width: 100%;
margin: 5px auto;
}
.title {
min-height: 35px;
padding: 0 8px;
}
.title > h1 {
font-size: 16px;
}
.content {
padding: 8px;
gap: 6px;
}
} }

View File

@ -1,11 +1,47 @@
.container { .container {
margin-left: 20px; display: flex;
margin-right: 20px; align-items: center;
justify-content: center;
margin: 5px 10px;
width: 50px; width: 50px;
min-width: 50px;
height: 50px; height: 50px;
min-height: 50px;
} }
.container > img { .container > img {
width: 100%; width: 100%;
height: 100%; height: 100%;
cursor: pointer; cursor: pointer;
transition: transform 0.1s ease;
}
.container > img:hover {
transform: scale(1.05);
}
.container > img:active {
transform: scale(0.95);
}
/* Tablet */
@media (max-width: 1024px) {
.container {
margin: 4px 8px;
width: 45px;
min-width: 45px;
height: 45px;
min-height: 45px;
}
}
/* Mobile */
@media (max-width: 767px) {
.container {
margin: 3px 6px;
width: 40px;
min-width: 40px;
height: 40px;
min-height: 40px;
}
} }

View File

@ -7,4 +7,17 @@
opacity: 0.9; opacity: 0.9;
animation: timerAnimation 15s linear infinite; animation: timerAnimation 15s linear infinite;
transition-duration: 15s; transition-duration: 15s;
border-radius: 5px;
}
@keyframes timerAnimation {
0% {
box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
50% {
box-shadow: 0 0 20px rgba(255, 215, 0, 1);
}
100% {
box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
} }

View File

@ -1,13 +1,46 @@
.container { .container {
position: relative; position: relative;
min-width: 100px;
min-height: 50px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-width: 80px;
min-height: 50px;
padding: 5px 10px;
border: 2px solid white; border: 2px solid white;
border-radius: 5px; border-radius: 5px;
color: white; color: white;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
font-size: 14px;
transition: all 0.2s ease;
word-break: break-word;
overflow: hidden;
}
.container > p {
margin: 0;
white-space: normal;
max-width: 100%;
}
/* Tablet */
@media (max-width: 1024px) {
.container {
min-width: 70px;
min-height: 45px;
font-size: 13px;
padding: 4px 8px;
border-width: 1.5px;
}
}
/* Mobile */
@media (max-width: 767px) {
.container {
min-width: 60px;
min-height: 40px;
font-size: 12px;
padding: 3px 6px;
border-width: 1px;
}
} }

View File

@ -1,28 +1,47 @@
.playerContainer { .playerContainer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
flex-direction: row; flex-direction: row;
flex-wrap: wrap;
width: 100%; width: 100%;
padding: 10px;
gap: 10px;
min-height: 70px;
} }
.red { .red {
margin-bottom: 50px; order: 1;
grid-column: 1;
grid-row: 1;
} }
.yellow { .yellow {
margin-bottom: 50px; order: 2;
flex-flow: row-reverse; flex-direction: row-reverse;
grid-column: 2;
grid-row: 1;
} }
.blue { .blue {
margin-top: 50px; order: 3;
grid-column: 1;
grid-row: 4;
} }
.green { .green {
margin-top: 50px; order: 4;
flex-flow: row-reverse; flex-direction: row-reverse;
grid-column: 2; }
grid-row: 4;
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
.playerContainer {
padding: 8px;
gap: 8px;
min-height: 60px;
}
}
/* Mobile (less than 768px) */
@media (max-width: 767px) {
.playerContainer {
padding: 6px;
gap: 6px;
min-height: 50px;
}
} }

View File

@ -2,16 +2,54 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin: 10px; margin: 8px 5px;
flex-direction: column; flex-direction: column;
flex-flow: row-reverse; flex-flow: row-reverse;
background-color: grey; background-color: #666;
border-radius: 10px; border-radius: 8px;
border: 2px solid white; border: 2px solid white;
padding: 6px 10px;
gap: 6px;
transition: all 0.3s ease;
} }
.container:hover {
background-color: #777;
}
.container > label { .container > label {
margin-left: 10px;
margin-right: 10px;
width: 100px;
color: white; color: white;
font-weight: 600;
font-size: 13px;
text-align: center;
min-width: 80px;
}
/* Tablet */
@media (max-width: 1024px) {
.container {
margin: 6px 4px;
padding: 5px 8px;
gap: 4px;
}
.container > label {
font-size: 12px;
min-width: 70px;
}
}
/* Mobile */
@media (max-width: 767px) {
.container {
margin: 4px 3px;
padding: 4px 6px;
gap: 3px;
border-width: 1px;
}
.container > label {
font-size: 11px;
min-width: 60px;
}
} }

View File

@ -1,5 +1,5 @@
.container { .container {
position: absolute; position: fixed;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -8,6 +8,14 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
z-index: 1; z-index: 100;
cursor: pointer; cursor: pointer;
padding: 20px;
overflow: auto;
}
@media (max-width: 767px) {
.container {
padding: 10px;
}
} }

View File

@ -1,3 +1,9 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body { body {
background: radial-gradient( background: radial-gradient(
circle, circle,
@ -7,36 +13,53 @@ body {
rgba(9, 9, 121, 1) 81% rgba(9, 9, 121, 1) 81%
); );
overflow: hidden; overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} }
#root { #root {
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-direction: column; flex-direction: column;
height: 100vh; height: 100vh;
width: 100vw; width: 100vw;
overflow: hidden;
} }
canvas { canvas {
border-radius: 15px; border-radius: 15px;
border: 2px solid black; border: 2px solid black;
max-width: 100%;
height: auto;
} }
.navbar-container { .navbar-container {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap;
gap: 10px;
justify-content: space-around;
width: 100%;
} }
.timer { .timer {
background-color: darkblue; background-color: darkblue;
color: white; color: white;
position: relative; position: relative;
bottom: 60px;
left: 82px;
border: 1px solid white; border: 1px solid white;
padding: 1px; padding: 4px 8px;
width: 30px; min-width: 40px;
height: 20px; min-height: 24px;
border-radius: 5px; border-radius: 5px;
font-size: 12px;
display: flex;
align-items: center;
justify-content: center;
} }
.overlay { .overlay {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -47,7 +70,16 @@ canvas {
animation: timerAnimation 15s linear infinite; animation: timerAnimation 15s linear infinite;
transition-duration: 15s; transition-duration: 15s;
} }
#root {
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
width: 100%;
height: 100%;
overflow: auto;
}
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;