File size: 3,281 Bytes
7e19f9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
body {
  font-family: 'Helvetica';
  margin-top: 100px;
  margin-left: 100px;
  margin-right: 100px;
  padding: 0;
}

.header {
  margin-top: 40px;
  margin-bottom: 20px;
  background-color: #ffffff;
  color: #000000;
  position: absolute;
  text-align: center;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.container {
  margin-top: 120px;
  height: auto;
  top: 100px;
  display: flex;
  justify-content: space-around;
  padding: 20px;
  position: relative;
  align-items: stretch;
}

.left-container {
  width: 52%;
  padding: 20px;
  text-align: center;
  align-items: center;
  align-content: center;
}

.right-container {
  margin-left:-2px;
  width: 48%;
  padding: 20px;
  border: 2px solid #000000;
  text-align: left;
}

.dropzone {
  width: 52%;
  min-height: 500px;
  border: 2px solid #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#uploaded-image {
  max-width: 100%;
  max-height: 200px;
  display: none;
  align-items: center;
}

.github-container {
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

.github-container a {
  display: flex;
  color:#000000;
  align-items: center;
}

.feature-select {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* The container for the predicted images */
#predicted-images {
  display: grid;
  row-gap: 1%;
  column-gap: 1%;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, fr);
  position: relative; /* Set the container as a relative positioning context */
}

/* The predicted image */
#predicted-images img {
  width: 100%; 
  height: auto;
  display: block; 
  align-items: center;
}

/* The tooltip */
.image-tooltip {
  position: absolute;
  bottom: 100%; /* Position the tooltip above the image */
  left: 50%; /* Center the tooltip horizontally */
  transform: translate(0%, -60%); /* Center both horizontally and vertically */
  background-color: rgba(0, 0, 0, 0.6);
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 20px;
  color: white;
  font-size: 12px;
  pointer-events: none;
  opacity: 0; /* Initially set the tooltip to be transparent */
}

/* Apply the hover effect */
#predicted-images img {
  /* Set initial transition properties */
  transition: all 0.3s ease-in-out;
  transform: scale(1); /* Set the initial scale to 1 (normal size) */
}

#predicted-images img:hover {
  filter: brightness(70%);
  transform: scale(1.07); /* Scale the image up to 1.1 times its original size on hover */
}

/* Show the tooltip on image hover */
#predicted-images .image-container:hover .image-tooltip {
opacity: 1; /* Make the tooltip visible on image hover */
visibility: visible; /* Show the tooltip on image hover */
}

/* The caption */
.image-caption {
  bottom: 0;
  left: 0;
  width: auto;
  gap: 0%;
  padding: 10px;
  align-items: center;
  text-decoration: none; 
  font-size: 14px;
  text-align: center;
  font-weight: normal;
  pointer-events: none; /* Prevent caption from blocking clicks */
}

.image-species {
  opacity: 0;
}

#predicted-images a {
  color: #4e4e4e;
  text-decoration: none; 
  font-weight: normal;
}

#predicted-images > div > a:hover .image-caption{
  color: #000000;
  font-size:  14px;
  transition: 0.5s;
}