-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss2.css
155 lines (135 loc) · 2.51 KB
/
css2.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
* {
box-sizing: border-box;
margin: auto;
}
body {
justify-content: center;
align-items: center;
min-height: 100vh;
}
body,
.quote-input {
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
font-size: 1.5rem;
}
body,
#quote-Display {
font-size: 1.6rem;
}
h1 {
text-align: center;
margin-top: 3.5rem;
margin-bottom: 2.8rem;
}
.container {
background-color: lightblue;
padding: 1rem;
border-radius: 0.5rem;
width: 700px;
max-width: 90%;
border-radius: 3%;
}
.timer {
top: 2rem;
font-size: 3rem;
color: lightblue;
display: block;
margin-bottom: 0.5rem;
text-align: center;
}
#myBtn {
margin-left: 20%;
margin-bottom: 2%;
background-color: lightsteelblue;
height: 3rem;
width: 6.7rem;
border-radius: 7%;
font-size: 1.1rem;
}
/* The Modal (background) from W3 schools */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
background-color: rgb(221, 233, 239);
border-radius: 4%;
font-size: 1.3rem;
padding: 2.5rem;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
#carDiv {
width: 3rem;
height: 1rem;
position: absolute;
z-index: 2;
margin-top: 11rem;
margin-left: 0.4rem;
}
.container1 {
overflow: hidden;
margin-bottom: 2rem;
}
.infinite-scrolling {
background: url("AshleyRoad.png") repeat-x;
height: 305px;
width: 5760px; /* The image width times 3 */
/* got this scroll from Eleftheria Batsou's medium article */
animation: slide 60s linear infinite;
}
@keyframes slide {
0% {
transform: translate3d(0, 0, 0);
}
100% {
transform: translate3d(-1920px, 0, 0); /* The image width */
}
}
.quote-display {
margin-bottom: 1rem;
margin-left: calc(1rem + 2px);
margin-right: calc(1rem + 2px);
}
.quote-input {
background-color: transparent;
border: 2px solid rgb(136, 171, 182);
outline: none;
width: 100%;
height: 8rem;
resize: none;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 0.5rem;
}
.quote-input:focus {
border: inset black;
}
.correct {
color: green;
}
.incorrect {
color: red;
text-decoration: underline;
}