File size: 3,120 Bytes
1bc19ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Reset + Base */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Background with blur and dim */
.background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../static/background.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(9px) brightness(0.6);
    z-index: -1;
}

/* Overlay (glass effect) */
.overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    color: #fff;
    text-align: center;
}

/* Upload box */
.upload-box {
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 30px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    margin: 30px 0;
    animation: fadeIn 1s ease-in-out;
}

.upload-box input[type="file"] {
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 8px;
    width: 100%;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.8);
}

.upload-box button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #ff7f50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.upload-box button:hover {
    background: #ff5722;
    transform: scale(1.05);
}

/* Prediction Result Image */
.predicted-image {
    max-width: 80%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.predicted-image:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    background-color: #1e90ff;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #1c86ee;
    transform: scale(1.05);
}

.btn.secondary {
    background-color: #6c757d;
}

.btn.secondary:hover {
    background-color: #495057;
}

/* Headings & text */
h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

p {
    font-size: 1.2em;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Fade-in effect */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 { font-size: 1.8em; }
    p { font-size: 1em; }
    .upload-box { width: 90%; padding: 20px; }
    .predicted-image { max-width: 95%; }
}