-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
138 lines (110 loc) · 2.2 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
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
body { /*webpage background*/
background-color: rgb(9, 10, 56);
text-align: center;
margin:40px;
font-family: 'Goldman', cursive;
}
h1 { /*"Timed Code Quiz" title*/
padding: 10px;
color: white;
font-family: 'Goldman', cursive;
}
#timer {/* and Countdown Timer*/
text-align: center;
color: white;
font-family: 'Goldman', cursive;
font-size: 30px;
margin-right: 40px;
padding: 20px;
}
#score {
text-align: center;
color: white;
font-family: 'Goldman', cursive;
font-size: 30px;
margin-left: 40px;
padding: 20px;
}
.container { /*box that surrounds question and choices*/
padding:20px;
}
.question { /*question text*/
display: inline-block;
text-align: center;
position:relative;
font-size: 25px;
color: white;
font-family: monospace;
padding:50px;
margin:20px;
height:20px;
width: auto;
}
.answers { /*question # heading h3*/
display: inline-block;
position:relative;
font-size: 20px;
font-family: monospace;
text-align: left;
color: white;
margin-top:20px;
border: solid;
height: 10%;
width: 80%;
}
/*answer choices*/
.answers label{
display: block;
margin-bottom: 10px;
padding:15px;
}
.slide{ /* hides next slides - question answer areas combo*/
position: absolute;
left: 0px;
top: 300px;
width: 100%;
z-index: 1;
opacity: 0;
transition: opacity 0.5s;
}
.current-slide{ /* current slide's visibility*/
opacity: 1;
z-index: 2;
}
.btn { /*buttons: next, previous, submit*/
display: inline-block;
align-items: center;
text-align: center;
font-family: 'Goldman', cursive;
font-size: 30px;
background-color:rgb(34, 173, 16);
color: rgb(3, 3, 3);
border: 0px;
border-radius: 4px;
padding: 25px;
cursor: pointer;
margin-top:30px;
width: 30%;
margin-left: 10px;
}
.btn:hover { /*button display when mouse over*/
background-color: rgb(119, 112, 219);
}
#submit {
width: 23%;
}
/*Media Queries*/
/*When viewport reaches 690px*/
@media (max-width: 690px) {
/*reduce button size*/
.btn {
font-size: 1.5rem;
}
}
/*When viewport reaches 500px*/
@media (max-width: 500px) {
/*reduce button size*/
.btn {
font-size: 1rem;
}
}