-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
139 lines (122 loc) · 3.7 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
body {
margin: 0;
padding: 0;
overflow-x: hidden; /* Verhindert horizontalen Overflow */
font-family: Arial, sans-serif; /* Einheitliche Schriftart */
background-color: #f9f9f9; /* Dezentes Hintergrundgrau */
}
#game-container {
width: 100vw;
height: 100vh;
}
.table {
width: 100%; /* Maximale Breite für bessere Anpassung */
max-width: 60vw; /* Begrenzte Breite für größere Bildschirme */
overflow-x: auto; /* Ermöglicht Scrollen bei kleinen Bildschirmen */
margin: 0 auto; /* Zentriert die Tabelle */
margin-bottom: '20px';
border-collapse: collapse;
}
.table input {
font-size: 0.9em;
padding: 5px;
width: 70px;
border: 1px solid #ccc; /* Leichter Rahmen */
border-radius: 4px;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Eingelassener Effekt */
}
.table input:focus {
border-color: #4CAF50; /* Grün bei Fokus */
outline: none; /* Entfernt den Standard-Fokus */
}
.table th {
border: 1px solid #ddd;
padding: 8px;
background-color: #f4f4f4;
text-align: left;
}
.table tr:hover {
background-color: #d9d9d9; /* Noch etwas dunkleres Grau */
transition: background-color 0.3s ease; /* Sanfter Übergang */
}
.table td {
text-align: center;
border: 1px solid #ddd;
}
/* Erfolgsmeldung */
.success-message {
font-size: 24px;
font-weight: bold;
color: #4CAF50;
text-align: center;
margin-top: 20px;
border: 2px solid #ccc; /* Grauer Rahmen */
background-color: #e8f5e9; /* Helles Grün als Hintergrund */
padding: 10px;
border-radius: 10px;
}
/* Fehlernachricht */
.error-message {
font-size: 24px;
font-weight: bold;
color: #F44336; /* Rot für Fehler */
text-align: center;
margin-top: 20px;
border: 2px solid #ccc; /* Grauer Rahmen */
background-color: #ffebee; /* Helles Rot als Hintergrund */
padding: 10px;
border-radius: 10px;
}
/* Buttons */
.btn-green {
margin-top: 3px; /* Mehr Abstand zur Tabelle */
margin-left: 1px;
margin-bottom: 1px;
padding: 4px 4px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
color: white;
background-color: #4CAF50; /* Grün für den Kaufen-Button */
transition: transform 0.2s ease-in-out, background-color 0.3s ease; /* Animation für Hover */
}
.btn-green:hover {
transform: scale(1.1); /* Vergrößern beim Hover */
background-color: #66bb6a; /* Helleres Grün beim Hover */
}
/* Deaktivierter Button */
.btn-green:disabled {
background-color: #cccccc; /* Helles Grau für deaktivierten Zustand */
color: #666666; /* Dunklerer Text für Kontrast */
cursor: not-allowed; /* Zeigt an, dass der Button nicht anklickbar ist */
box-shadow: none; /* Entfernt Schatten */
transform: none; /* Entfernt Animationen */
opacity: 0.7; /* Reduziert Sichtbarkeit für deaktivierten Look */
}
.btn-blue {
margin-top: 3px; /* Mehr Abstand zur Tabelle */
margin-left: 1px;
margin-bottom: 1px;
padding: 4px 4px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
color: white;
background-color: #2196F3; /* Blau für den Preise-Button */
transition: transform 0.2s ease-in-out, background-color 0.3s ease; /* Animation für Hover */
}
.btn-blue:hover {
transform: scale(1.1); /* Vergrößern beim Hover */
background-color: #64b5f6; /* Helleres Blau beim Hover */
}
/* Fallback für ältere Browser */
.btn-blue, .btn-green {
-webkit-transition: transform 0.2s ease-in-out, background-color 0.3s ease; /* Fallback */
}
/* Fokus sichtbar machen */
.btn-blue:focus, .btn-green:focus {
outline: 3px solid #2196F3; /* Fokusrahmen sichtbar machen */
outline-offset: 2px;
}