File size: 2,049 Bytes
7c2c194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: var(--Neutral-10);
  color: var(--text);
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-stroke);
}

.popup-content h2 {
  margin-top: 0;
  color: var(--accent-blue-headers);
  font-size: 24px;
  margin-bottom: 20px;
}

.popup-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.popup-content ol {
  padding-left: 20px;
  margin-bottom: 30px;
}

.popup-content li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.popup-content .icon {
  margin-right: 15px;
  font-size: 24px;
  color: var(--accent-blue);
}

.popup-content button {
  background-color: var(--Blue-500);
  color: var(--Neutral-5);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  float: right;
  font-weight: bold;
  transition: background-color 0.2s;
}

.popup-content button:hover {
  background-color: var(--Blue-400);
}

@media (max-width: 768px) {
  .popup-content {
    padding: 20px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* The main container doesn't scroll */
  }

  .popup-scrollable-content {
    overflow-y: auto; /* This part scrolls if content is too tall */
    flex-grow: 1; /* It takes up the available vertical space */
  }

  .popup-content h2 {
    font-size: 20px;
    flex-shrink: 0; /* Prevent the header from shrinking */
  }

  .popup-content p,
  .popup-content li {
    font-size: 14px;
  }

  .popup-content li {
    margin-bottom: 12px;
  }

  .popup-content .icon {
    font-size: 20px;
    margin-right: 10px;
  }

  .popup-content button {
    width: 100%;
    float: none;
    margin-top: 10px;
    padding: 14px 20px;
    flex-shrink: 0; /* Prevent the button from shrinking */
  }
}