monseg's picture
ссылки при наведении не меняют цвет исправь
6ed5c12 verified
Raw
History Blame Contribute Delete
3.75 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
}
.logo {
font-family: 'Inter', sans-serif;
font-weight: 700;
letter-spacing: -0.05em;
color: #111827;
}
nav a {
font-weight: 500;
position: relative;
color: #6b7280;
transition: color 0.3s ease;
text-decoration: underline;
text-decoration-style: dashed;
text-decoration-color: #6b7280;
text-underline-offset: 4px;
}
nav a:hover {
color: #111827 !important;
text-decoration-color: #111827 !important;
}
nav a::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 2px;
background-color: #111827;
transition: width 0.3s ease;
}
nav a:hover::after {
width: 100%;
}
.header-icons a,
.footer a {
text-decoration: underline;
text-decoration-style: dashed;
text-decoration-color: #6b7280;
text-underline-offset: 4px;
transition: color 0.3s ease;
color: #6b7280;
}
.header-icons a:hover,
.footer a:hover {
color: #111827 !important;
text-decoration-color: #111827 !important;
}
.news-article {
transition: transform 0.3s ease;
}
.news-article:hover {
transform: translateY(-4px);
}
.news-article a {
text-decoration: underline;
text-decoration-style: dashed;
text-decoration-color: #6b7280;
text-underline-offset: 4px;
transition: color 0.3s ease;
color: #6b7280;
}
.news-article a:hover {
color: #111827 !important;
text-decoration-color: #111827 !important;
}
/* News section margins */
.absolute.bottom-20 {
margin-left: 2rem;
margin-right: 2rem;
border-radius: 0.5rem;
}
/* Smooth hover transitions */
a, button {
transition: all 0.2s ease-in-out;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
header {
padding: 1rem;
flex-direction: column;
align-items: flex-start;
}
nav {
display: none;
width: 100%;
margin-top: 1rem;
}
nav.show {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
nav a:hover {
color: #111827 !important;
text-decoration-color: #111827 !important;
}
.logo {
font-size: 1.5rem;
}
.absolute.bottom-20 {
position: static;
margin: 1rem;
padding: 1rem;
}
.absolute.inset-0.flex {
padding: 0 1rem;
}
h1 {
font-size: 2.5rem !important;
margin-bottom: 1rem !important;
}
p {
font-size: 1rem !important;
margin-bottom: 1.5rem !important;
}
}
@media (max-width: 640px) {
.grid {
grid-template-columns: 1fr !important;
}
.absolute.inset-0.flex h1 {
font-size: 2rem !important;
}
footer p {
font-size: 0.75rem;
}
}
/* Overlay animations */
.search-overlay, .auth-overlay {
transition: opacity 0.3s ease;
}
.search-overlay input {
transition: border-color 0.3s ease;
}
.auth-overlay form {
animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Mobile menu toggle */
.mobile-menu-btn {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
}
@media (max-width: 1024px) {
.mobile-menu-btn {
display: block;
}
.header-icons {
display: flex;
gap: 0.5rem;
}
}