Added Suggestion page cooldown and design.

This commit is contained in:
IM23a-bachmannj2
2024-09-17 14:22:41 +02:00
parent b0d74ddf6a
commit 9fba57f1e6
4 changed files with 188 additions and 28 deletions
+87
View File
@@ -229,3 +229,90 @@ nav {
.button1 {
background-color: black;
}
/* Suggestion Form Enhancements */
main h1 {
font-size: 2.5em;
color: black;
text-align: center;
margin-bottom: 20px;
}
.suggestion-title {
font-size: 1.5em;
color: black;
text-align: center;
margin-bottom: 30px;
}
article label {
font-weight: bold;
font-size: 1.1em;
color: #333;
margin-bottom: 10px;
display: block;
}
input[type="text"], input[type="number"], textarea {
width: 95%;
padding: 12px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 8px;
margin-bottom: 20px;
background-color: #f9f9f9;
transition: border-color 0.3s, box-shadow 0.3s;
}
/* Focus effect to highlight the active input field */
input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
border-color: black;
box-shadow: 0 0 5px darkred;
background-color: #fff;
outline: none;
}
textarea {
resize: none;
height: 150px;
}
/* Submit button improvements */
.button1 {
background-color: darkred;
color: white;
font-size: 1.2em;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
display: block;
margin: 0 auto;
transition: background-color 0.3s ease, transform 0.3s ease;
}
/* Button hover effect */
.button1:hover {
background-color: #45a049;
transform: scale(1.05);
}
/* Success message styling */
#successMessage {
font-size: 1.1em;
color: green;
text-align: center;
margin-top: 20px;
}
/* Adjustments for mobile responsiveness */
@media screen and (max-width: 600px) {
input[type="text"], input[type="number"], textarea {
width: 80%;
font-size: 0.95em;
}
.suggestion-title {
font-size: 1.2em;
}
}