-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
100 lines (72 loc) · 1.34 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
*{
box-sizing: border-box;
}
body{
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
width: 100vw;
align-items: center;
background-color: burlywood;
overflow: hidden;
}
nav{
background-color: cadetblue;
position: relative;
width: 80vw;
height: 50px;
}
.car1{
background-color: black;
color: white;
text-align: center;
padding: 10px 10px;
position: absolute;
right: 0px;
border: rgb(255, 0, 170) 1px solid;
width: 50px;
height: 50px;
transition-duration: 10000ms linear;
}
.car2{
background-color: yellow;
padding: 10px 10px;
position: absolute;
left: 0px ;
border: chartreuse 1px solid;
width: 50px;
height: 50px;
transition-duration: 10000ms linear;
}
.road.active .car1{
transform: translateX(-1044px);
}
.road.active .car2{
transform: translateX(1044px); /* 1044px */
}
button{
margin-top: 10px;
}
.label1,.label2{
font-size: 1em;
font-family: "Verdana";
font-weight: bold;
color: rgb(53, 73, 31);
}
input:focus{
background-color: lightblue;
}
.aftercrash{
font-size: 32px;
color: white;
}
@media( max-width:600px){
.h1{
font-size: 1em;
text-align: center;
}
.label1,.label2{
font-size: 12px;
}
}