-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
122 lines (107 loc) · 2.22 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
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i&display=swap');
* {
margin: 0;
padding: 0;
}
body {
background-image: url('https://source.unsplash.com/1600x900/?landscape');
background-repeat: no-repeat;
background-size: cover;
font-family: 'Playfair Display', serif;
}
h1 {
font-size: 3em;
font-weight: bold;
text-align: center;
padding-top: 2em;
color: whitesmoke;
text-decoration: underline;
}
#container {
width: 70em;
height: 22em;
background-color: rgba(230, 230, 230, 0.6);
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 10px;
border: 2px solid black;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
@media (max-width: 1200px) {
#container {
top: 50%;
width: 60em;
height: 30em;
}
}
@media (max-width: 992px) {
#container {
top: 50%;
width: 50em;
height: 33em;
}
}
@media (max-width: 768px) {
#container {
top: 50%;
width: 80%;
/* Increased size for smaller screens */
height: auto;
margin-left: 5%;
/* Further reduced margin from left */
}
#container p {
margin-top: 1em;
padding: 1em;
}
#container button {
width: 80%;
margin-top: 1em;
font-size: 1.2em;
}
}
@media (max-width: 600px) {
#container {
width: 90%;
height: auto;
top: 80%;
transform: translate(-50%, -50%);
margin-left: 2%;
/* Further reduced margin from left */
}
#container p {
margin-top: 1em;
padding: 1em;
}
#container button {
width: 80%;
margin-top: 1em;
font-size: 1.2em;
}
}
#container p {
font-size: 2em;
font-weight: bold;
text-align: center;
}
#container button {
width: 50%;
height: 3em;
background-color: #404040;
border: none;
border-radius: 8px;
color: white;
font-size: 1.5em;
font-weight: bold;
margin-top: 1em;
}
#container button:hover {
background-color: #737373;
color: #0A0A0A;
cursor: pointer;
}