122 lines
2.9 KiB
CSS
122 lines
2.9 KiB
CSS
/* src/components/InterestInventory.css */
|
|
|
|
/* Container Styling */
|
|
.interest-inventory-container {
|
|
max-width: 600px;
|
|
margin: 40px auto; /* Center the container */
|
|
padding: 20px;
|
|
background-color: #f0f8ff; /* Sky-white background */
|
|
border-radius: 12px; /* Rounded borders */
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Subtle shadow effect */
|
|
border: 4px solid #87ceeb; /* Sky-blue trim */
|
|
}
|
|
|
|
/* Header Styling */
|
|
.interest-inventory-container h2 {
|
|
color: #0056b3; /* Dark blue header */
|
|
text-align: center;
|
|
font-size: 28px; /* Larger font size for emphasis */
|
|
margin-bottom: 20px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Question Container */
|
|
.question {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* Label Styling */
|
|
.question label {
|
|
display: block;
|
|
font-size: 18px; /* Slightly larger text for questions */
|
|
font-weight: 600; /* Semi-bold text */
|
|
margin-bottom: 8px;
|
|
color: #333; /* Darker text for readability */
|
|
}
|
|
|
|
/* Dropdown Styling */
|
|
.question select {
|
|
width: 80%; /* Use percentage for responsiveness */
|
|
max-width: 400px; /* Limit maximum size */
|
|
padding: 10px;
|
|
border: 1px solid #87ceeb; /* Sky-blue border */
|
|
border-radius: 8px; /* Rounded edges */
|
|
font-size: 16px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
|
|
transition: border-color 0.3s ease;
|
|
display: block;
|
|
margin: 0 auto; /* Center the dropdown */
|
|
}
|
|
|
|
/* Dropdown Hover Effect */
|
|
.question select:hover {
|
|
border-color: #007bff; /* Brighter blue on hover */
|
|
}
|
|
|
|
/* Dropdown Focus Effect */
|
|
.question select:focus {
|
|
border-color: #0056b3;
|
|
outline: none;
|
|
}
|
|
|
|
/* Buttons */
|
|
button {
|
|
margin: 10px 5px; /* Add spacing between buttons */
|
|
padding: 10px 20px;
|
|
background-color: #007bff; /* Blue button */
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px; /* Rounded edges */
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
/* Hover Effect for Buttons */
|
|
button:hover {
|
|
background-color: #0056b3; /* Darker blue */
|
|
}
|
|
|
|
/* Submit Button Styling */
|
|
button:disabled {
|
|
background-color: #a0aec0;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Submission Message Styling */
|
|
.submit-message {
|
|
color: #28a745; /* Green success text */
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Validation Error Message */
|
|
.validation-error {
|
|
color: red;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Highlight Unanswered Questions */
|
|
.unanswered {
|
|
border: 2px solid #b22222; /* Darker red (Firebrick) */
|
|
background-color: #ffe6e6; /* Light red background */
|
|
}
|
|
|
|
/* Pagination Buttons Styling */
|
|
.pagination-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Randomize Answers Button */
|
|
.randomize-button {
|
|
background-color: #17a2b8; /* Teal button */
|
|
color: #fff;
|
|
}
|
|
|
|
.randomize-button:hover {
|
|
background-color: #138496; /* Darker teal */
|
|
}
|