File size: 2,876 Bytes
97a49f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* --- Fonts and Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* --- Subtle dark overlay --- */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 0;
}

/* --- Main Container --- */
.container {
  position: relative;
  z-index: 2;
  background: rgba(20, 20, 20, 0.6);
  border-radius: 20px;
  padding: 3rem 2rem;
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  animation: fadeIn 1.2s ease forwards;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  letter-spacing: 1px;
}

/* --- Upload Section --- */
.upload-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.upload-section label {
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="file"] {
  padding: 0.6rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="file"]:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Magic Button --- */
.magic-btn {
  position: relative;
  background: linear-gradient(135deg, #00d4ff, #0061ff);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
}

.magic-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.5s;
}

.magic-btn:hover::before {
  left: 125%;
}

.magic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 208, 255, 0.6);
}

/* --- Result Page --- */
.result-img {
  width: 100%;
  border-radius: 15px;
  margin-top: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.analysis-text {
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f1f1;
}

/* --- Animation --- */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  .magic-btn { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
}