Gen-Z Skill Evaluator
CSS Code (styles.css)
CSS
/* Basic Reset and Variables */
:root {
--primary-color: #5B21B6; /* Deep Purple */
--secondary-color: #ECFDF5; /* Very Light Mint/Teal */
--text-color: #1F2937; /* Dark Gray */
--light-gray: #D1D5DB; /* Light Gray for lines/borders */
--font-family: 'Montserrat', sans-serif;
--border-radius: 8px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background-color: var(--secondary-color);
color: var(--text-color);
line-height: 1.6;
padding: 20px;
}
/* Header Styling */
.header {
text-align: center;
padding: 40px 20px;
margin-bottom: 30px;
background: white;
border-radius: var(--border-radius);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.header h1 {
color: var(--primary-color);
font-size: 2.5rem;
margin-bottom: 10px;
}
.header p {
font-size: 1.1rem;
color: #4B5563;
}
/* Main Container */
.container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
/* Form and Skill Group Styling */
.skill-form {
display: flex;
flex-direction: column;
gap: 30px;
}
.skill-group {
background: white;
padding: 30px;
border-radius: var(--border-radius);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.skill-group h2 {
color: var(--primary-color);
border-bottom: 3px solid var(--light-gray);
padding-bottom: 10px;
margin-bottom: 20px;
font-size: 1.8rem;
}
.skill-item {
margin-bottom: 25px;
padding: 15px;
border-left: 5px solid var(--primary-color);
background: #F9FAFB; /* Off-white background for separation */
border-radius: 4px;
}
.skill-item label {
display: block;
font-weight: bold;
margin-bottom: 5px;
font-size: 1.1rem;
color: var(--text-color);
}
.skill-item .description {
font-size: 0.9rem;
color: #6B7280;
margin-bottom: 15px;
}
/* Range Slider Styling */
input[type="range"] {
width: calc(100% - 40px); /* Leave space for the output number */
height: 10px;
-webkit-appearance: none;
appearance: none;
background: var(--light-gray);
border-radius: 5px;
margin-right: 10px;
}
/* Slider Thumb (for WebKit/Blink browsers) */
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--primary-color);
cursor: pointer;
border: 3px solid white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
margin-top: -5px; /* Adjust to center vertically */
}
/* Slider Thumb (for Firefox) */
input[type="range"]::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: var(--primary-color);
cursor: pointer;
border: 3px solid white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
.skill-item output {
font-weight: bold;
color: var(--primary-color);
font-size: 1.2rem;
display: inline-block;
width: 20px;
text-align: right;
}
/* Button Styling */
.submit-button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 15px 30px;
font-size: 1.25rem;
font-weight: bold;
border-radius: var(--border-radius);
cursor: pointer;
transition: background-color 0.3s ease, transform 0.1s ease;
margin-top: 20px;
}
.submit-button:hover {
background-color: #4C1D95; /* Slightly darker purple on hover */
transform: translateY(-2px);
}
.submit-button:active {
transform: translateY(0);
}
/* Footer Styling */
.footer {
text-align: center;
padding: 20px 0;
margin-top: 50px;
font-size: 0.9rem;
color: #6B7280;
}
/* Responsiveness */
@media (max-width: 600px) {
.header h1 {
font-size: 2rem;
}
.skill-group {
padding: 20px;
}
.skill-group h2 {
font-size: 1.5rem;
}
.submit-button {
font-size: 1.1rem;
padding: 12px 25px;
}
}