Skip to content

Commit

Permalink
Update maze_solution.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh54 authored Nov 15, 2024
1 parent 45a5e97 commit 8a031e0
Showing 1 changed file with 60 additions and 38 deletions.
98 changes: 60 additions & 38 deletions templates/maze_solution.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maze Solver</title>
<style>
body {
background-color: #121212;
color: #ffffff;
font-family: 'Arial', sans-serif;
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background: linear-gradient(to bottom right, #1e1e2f, #121212);
color: #ffffff;
font-family: 'Roboto', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
Expand All @@ -19,28 +24,38 @@
}

h1 {
font-size: 2.5em;
margin-bottom: 20px;
color: #00e5ff;
text-shadow: 0 4px 10px rgba(0, 229, 255, 0.6);
text-transform: uppercase;
letter-spacing: 2px;
text-align: center;
font-size: 2em;
margin-top: 20px;
color: #e0e0e0;
font-weight: bold;
}

canvas {
border: 2px solid #00bcd4;
border-radius: 12px;
display: block;
margin: 20px auto;
box-shadow: 0px 8px 15px rgba(0, 188, 212, 0.3);
transition: transform 0.3s ease;
border: 4px solid #00e5ff;
border-radius: 16px;
margin: 20px 0;
box-shadow: 0px 10px 20px rgba(0, 229, 255, 0.4);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

canvas:hover {
transform: scale(1.05);
box-shadow: 0px 15px 30px rgba(0, 229, 255, 0.6);
}

#status, #timer {
text-align: center;
margin-top: 10px;
font-size: 1.2em;
color: #b0bec5;
transition: color 0.3s ease;
margin-top: 15px;
text-align: center;
padding: 10px 20px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
color: #b3e5fc;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
}

#status {
Expand All @@ -51,43 +66,50 @@
animation: fadeInTimer 1.5s ease-in-out 0.5s;
}

button {
background: linear-gradient(to bottom, #00e5ff, #0099cc);
color: #ffffff;
border: none;
border-radius: 25px;
padding: 12px 24px;
font-size: 1.1em;
font-weight: bold;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
background: linear-gradient(to bottom, #0099cc, #0066aa);
transform: translateY(-2px);
box-shadow: 0px 8px 15px rgba(0, 153, 204, 0.5);
}

button:active {
transform: translateY(0);
box-shadow: 0px 4px 8px rgba(0, 153, 204, 0.3);
}

@keyframes fadeInStatus {
0% {
opacity: 0;
color: #546e7a;
transform: translateY(10px);
}
100% {
opacity: 1;
color: #b0bec5;
transform: translateY(0);
}
}

@keyframes fadeInTimer {
0% {
opacity: 0;
color: #546e7a;
transform: translateY(10px);
}
100% {
opacity: 1;
color: #b0bec5;
transform: translateY(0);
}
}

button {
background-color: #00bcd4;
color: #ffffff;
border: none;
border-radius: 25px;
padding: 10px 20px;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
background-color: #008ba3;
box-shadow: 0px 6px 12px rgba(0, 188, 212, 0.4);
}
</style>
</head>
<body>
Expand Down

0 comments on commit 8a031e0

Please sign in to comment.