This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
138 lines (128 loc) · 2.77 KB
/
styles.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
@import url("https://fonts.googleapis.com/css2?family=Luxurious+Roman&display=swap");
:root {
--light-gray: rgba(255, 255, 255, 0.342);
--black: rgb(0, 0, 0);
--white: rgb(255, 255, 255);
--light-black: rgba(0, 0, 0, 0.253);
--box-shadow: -2px 10px 24px -11px rgba(0, 0, 0, 0.62);
--body-font: "Luxurious Roman", cursive;
}
* {
margin: 0;
padding: 0;
}
html,
body {
overflow-x: hidden;
}
body {
min-height: 100vh;
background-image: url("./images//galllery-bg.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
font-family: var(--body-font);
box-sizing: border-box;
}
.hidden {
display: none;
}
/** Modal Box **/
.banner {
position: static;
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
background-color: var(--light-gray);
backdrop-filter: blur(5px);
width: 100%;
max-width: 35rem;
height: auto;
margin: 0 auto;
margin-top: 15%;
padding: 3rem;
}
h1,
h2 {
text-transform: uppercase;
}
/** Modal Button **/
.modal-btn {
cursor: pointer;
padding: 1rem 2rem;
background-color: transparent;
letter-spacing: 1px;
color: var(--black);
border: 1px solid var(--black);
border-radius: 10px;
box-shadow: var(--box-shadow);
-webkit-box-shadow: var(--box-shadow);
-moz-box-shadow: var(--box-shadow);
transition: all ease-in-out 0.3s;
}
.modal-overlay {
position: fixed;
background-color: var(--light-gray);
backdrop-filter: blur(5px);
width: 100%;
height: 100%;
top: 0;
left: 0;
place-items: center;
transition: var(--transition);
visibility: hidden;
}
.open-modal {
visibility: visible;
}
.modal-container {
position: relative;
justify-content: center;
align-content: center;
background-color: var(--light-gray);
backdrop-filter: blur(5px);
width: 60%;
height: 35rem;
margin: 0 auto;
margin-top: 5%;
overflow: scroll;
text-align: center;
padding: 2rem;
}
/** Close Button **/
.close-btn {
position: absolute;
background-color: transparent;
border-color: transparent;
top: 0;
right: 0;
transition: all ease-in-out 0.3s;
}
.fa-times {
color: var(--light-black);
font-size: 1.5rem;
padding: 1rem;
top: 10px;
right: 10px;
}
p {
text-align: left;
padding: 3rem;
overflow: scroll;
line-height: 2rem;
}
@media (hover: hover) {
.close-btn:hover {
-ms-transform: rotate(90deg); /* IE 9 */
-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
transform: rotate(90deg);
transition: all ease-in-out 0.3s;
cursor: pointer;
}
.modal-btn:hover {
color: var(--white);
background-color: var(--black);
transition: all ease-in-out 0.3s;
}
}