1- /* Debug Start
2- * { outline: 1px solid red; }
3- @media (min-width: 100vw) {
4- * {
5- background- color: rgba(255, 0, 0, 0.1) ;
6- }
1+ : root {
2+ --primary-color : # 007bff ;
3+ --warning-color : # ffff99 ;
4+ --background-color : # ffffff ;
5+ --btn-primary- color: # 28a745 ;
6+ --btn-hover-color : # 218838 ;
77}
8- Debug End */
98
109body {
1110 font-family : Arial, sans-serif;
@@ -21,42 +20,43 @@ main {
2120 justify-content : center;
2221 text-align : center;
2322 max-width : 93% ;
24- background-color : # ffffff ;
23+ background-color : var ( --background-color ) ;
2524 border-radius : 10px ;
26- margin : 5 % auto 0 ;
25+ margin : 1 rem auto;
2726 padding : 2rem ;
2827 box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
2928 transition : background-color 0.3s ease;
3029}
3130footer {
3231 display : flex;
32+ flex-wrap : wrap;
3333 justify-content : center;
3434 align-items : center;
3535 text-align : center;
36- margin : 0 auto;
37- padding : 5px ;
36+ margin : 1 rem auto;
37+ padding : 25 px 5 px 5px ;
3838}
3939# time-container {
4040 text-align : center;
4141 margin-bottom : 20px ;
4242}
4343.timer-item .warning {
44- background-color : # ffff99 ; /* Light yellow for warning state */
44+ background-color : var ( -- warning-color );
4545}
4646h2 {
4747 font-size : 2.5rem ;
4848 margin-bottom : 1rem ;
49- color : # 333 ;
49+ color : var ( --primary-color ) ;
5050}
5151.time-display {
5252 font-size : 4rem ;
5353 font-weight : bold;
54- color : # 007bff ;
54+ color : var ( --primary-color ) ;
5555}
5656.next-button , footer a {
5757 font-size : 1.2rem ;
5858 padding : 10px 20px ;
59- background-color : # 28a745 ;
59+ background-color : var ( --btn-primary-color ) ;
6060 color : white;
6161 border : none;
6262 border-radius : 5px ;
6767}
6868footer a {
6969 text-decoration : none;
70- margin : 0 10px
70+ margin : 0 10px ;
71+ flex : 1 ;
72+ min-width : 100px ;
73+ max-width : 200px ;
7174}
72- .next-button : hover {
73- background-color : # 218838 ;
75+ footer a : hover , .next-button : hover {
76+ background-color : var ( --btn-hover-color ) ;
7477}
7578.next-button : disabled {
7679 background-color : # 6c757d ;
@@ -86,6 +89,14 @@ footer a {
8689 # next-item {
8790 padding : 1rem ;
8891 }
92+ footer {
93+ flex-direction : column;
94+ }
95+ footer a {
96+ min-width : 100% ;
97+ margin : 4px 0 ;
98+ padding : 5px 0 ;
99+ }
89100}
90101/* Tablet-specific styles */
91102@media (min-width : 601px ) and (max-width : 1024px ) {
@@ -96,4 +107,5 @@ footer a {
96107 # next-item {
97108 padding : 1rem ;
98109 }
110+
99111}
0 commit comments