File size: 1,020 Bytes
1a11305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    /* padding: 20px; */
    background-color: #f2f2f2;
}


#error-message {
    color: white;
    background-color: red;
    padding: 30px;
    border-radius: 5px;
    font-size: 14px;
    display: none;


    font: size 32px;
    font-weight: bold;

    position: fixed;

    top: 90%;
    left: 81%;
    transform: translate(-50%, -50%);

    /* Center the message horizontally and vertically */
    width: 400px;
    /* Specify desired width */
    text-align: center;
    z-index: 999;
    /* Ensure the message is on top of other elements */
    animation: fade-in 0.5s ease-in-out;
    /* Add a smooth fade-in animation */
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#error-message.fade-out {
    animation: fade-out 0.5s ease-in-out backwards;
    /* Add a smooth fade-out animation */
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}