Template:Main page/header/styles.css
Template page
More actions
.home-header {
position: relative;
padding-top: 3.2rem;
padding-bottom: 3.2rem;
line-height: 1.1;
text-align: center;
}
.home-header__pretitle {
color: #888;
font-size: 0.9em;
letter-spacing: 0.05em;
margin: -0.8rem;
}
.home-header__title {
margin: 0;
font-size: 4.5rem;
text-transform: uppercase;
line-height: 0.9;
font-weight: 600;
}
.home-header__subtitle {
margin-top: -0.6rem;
color: #888;
font-size: 0.9em;
}
/*
* 1. STYLES FOR THE BUTTON ITSELF
* (Now with Flexbox for icon alignment)
*/
.citizen-search-trigger {
/* --- Core Setup --- */
position: relative;
z-index: 1;
/* CHANGED: Use flex to align icon and text */
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
/* ----------------- */
overflow: hidden;
padding: 12px 24px;
margin-top: 32px;
margin-left: auto;
margin-right: auto;
max-width: 600px;
/* --- Appearance --- */
background-color: #2a2a2a;
color: #eee;
border: 1px solid #555;
border-radius: 9999px;
/* --- Text --- */
font-size: 14px;
font-weight: 500;
/* text-align is no longer needed */
/* --- Other --- */
cursor: pointer;
transition: background-color 0.3s ease;
}
.citizen-search-trigger::before {
content: "";
position: absolute;
z-index: -2;
left: -50%;
top: -50%;
width: 200%;
height: 200%;
background-color: #000;
background-repeat: no-repeat;
background-size: 100%100%, 50%50%;
background-position: 0 0, 100% 0, 100% 100%, 0 100%;
background-image: linear-gradient(#070707, #687aff);
animation: bgRotate 4s linear infinite;
}
.citizen-search-trigger::after {
content: "";
position: absolute;
z-index: -1;
left: 1px;
top: 1px;
width: calc(100% - 2px);
height: calc(100% - 2px);
background: linear-gradient(#06021d, #06021d);
border-radius: 12px;
}
@keyframes bgRotate {
100% {
transform: rotate(1turn);
}
}