-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
125 lines (116 loc) · 2.11 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
/* ROBOT.GIF from Giphy - https://giphy.com/gifs/robot-cinema-4d-eyedesyn-3o7abtn7DuREEpsyWY */
html {
box-sizing: border-box;
}
body{
margin:0;
background-color: rgb(85, 58, 234);
}
.container{
height: 100vh;
width: 105vw;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: url('./robot.gif');
background-size: contain;
background-position: left center;
background-repeat: no-repeat;
}
#btn{
cursor: pointer;
outline: none;
width: 200px;
height: 50px;
font-family: 'Times New Roman', Times, serif;
font-size: 20px;
color: whitesmoke;
background-color: rgb(117, 117, 248);
border: none;
border-radius: 5px;
box-shadow: 7px 7px 20px 10px rgba(0,0,0,0.5);
}
#btn:hover{
filter: brightness(75%)
}
#btn:active{
transform: scale(0.9);
}
#btn:disabled{
cursor: default;
filter: brightness(20%);
}
#audio{
margin-top: 50px;
}
.modal{
display: none;
position: fixed;
z-index: 1;
top:0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.5);
}
.goodJokesModalButton{
background-color: coral;
color: white;
}
.goodJokesModalButton:hover{
background-color: gray;
}
.modalContent{
text-align: center;
background-color: white;
margin:10% auto;
padding: 20px;
width:70%;
box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.2);
animation-name: modalOpen;
animation-duration: 2s;
}
.modal-body{
/* align-items: center; */
justify-content: center;
}
.closeBtn{
color: #ccc;
}
.closeBtn:hover, .closeBtn:focus{
cursor: pointer;
color: black;
}
.counter{
margin: 5px 0;
color:black;
}
.total{
margin-top: 0;
margin-left: 48%;
font-size: 20px;
font: bold;
color: whitesmoke;
border: 1px solid white;
background-color: red;
height: 30px;
width: 30px;
}
.counter-minus, .counter-plus {
height: 40px;
width: 40px;
font-size: 20px;
}
/* Medea query tab or smaller */
@keyframes modalOpen{
from {opacity: 0;}
to {opacity: 1;}
}
@media screen and (max-width:1000px){
.container{
background-position: center center;
background-size: cover;
}
}