-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
139 lines (126 loc) · 2.93 KB
/
styles.css
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
/* Reset CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Styl dla body */
body {
font-family: 'Roboto', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
background: url('https://source.unsplash.com/1600x900/?space') no-repeat center center fixed;
background-size: cover;
color: #fff;
padding: 20px;
}
/* Kontener aplikacji */
#app {
display: flex;
flex-direction: column;
align-items: center;
width: 40%;
max-width: 100%;
padding: 20px;
background-color: rgba(255, 255, 255, 0.9); /* Przezroczyste tło */
border-radius: 16px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
margin-top: 20px;
}
/* Nagłówki */
h1, h2, h3 {
margin-bottom: 20px;
color: #222;
text-align: center;
font-weight: 500;
}
h1 {
font-size: 2em;
margin-bottom: 30px;
}
/* Styl dla formularza */
form {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
margin-bottom: 30px;
}
/* Styl dla etykiet i inputów */
label {
margin-bottom: 10px;
font-weight: bold;
font-size: 0.9em;
color: #444;
}
input[type="number"] {
width: 100%;
padding: 12px;
margin-bottom: 20px;
border: 1px solid #ddd;
border-radius: 8px;
font-size: 1em;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
transition: border-color 0.3s;
}
input[type="number"]:focus {
border-color: #007bff;
outline: none;
}
/* Styl dla przycisków */
button {
padding: 12px 24px;
border: none;
border-radius: 8px;
background: linear-gradient(135deg, #007bff, #0056d2);
color: #fff;
font-size: 1em;
cursor: pointer;
transition: background 0.3s, transform 0.1s;
margin-bottom: 20px;
box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}
button:hover {
background: linear-gradient(135deg, #0056d2, #0041b3);
transform: scale(1.02);
}
/* Styl dla wizualizacji */
#visualization {
width: 100%;
height: 600px;
margin-top: 20px;
border: 1px solid #ddd;
border-radius: 16px;
background-color: #f9f9f9;
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Dodatkowa warstwa dla nagłówka nad wizualizacją */
.header-overlay {
width: 100%;
padding: 20px;
box-sizing: border-box;
position: absolute;
top: -60px;
left: 0;
background-color: rgba(255, 255, 255, 0.9);
z-index: 10;
border-radius: 16px 16px 0 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
/* Styl dla kanwy */
canvas {
border-radius: 16px;
width: 100%;
height: 100%;
}