codecraft-academy / style.css
saeidmp's picture
debug and improved
ba343fc verified
:root {
--primary: #f97316;
--secondary: #f59e0b;
--dark: #111827;
--darker: #0d1321;
--light: #f3f5f7;
--gray: #6b7280;
--dark-gray: #374151;
}
html {
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.6;
color: var(--light);
background-color: var(--dark);
min-height: 100vh;
}
a {
color: inherit;
text-decoration: none;
transition: all 0.2s ease;
}
img {
max-width: 100%;
height: auto;
}
button,
input,
textarea {
font-family: inherit;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--dark-gray);
}
::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}
/* Responsive typography */
@media (min-width: 768px) {
html {
font-size: 16px;
}
}
@media (max-width: 767px) {
html {
font-size: 14px;
}
}