Webdev-Bench / tasks /c20 /repo /src /styles.css
Roy-DOU's picture
Add files using upload-large-folder tool
148f3c7 verified
Raw History Blame Contribute Delete
18.8 kB
:root {
--red: #fe3c3c;
--ink: #111;
--gray-bg: #f4f5f7;
--slate: #5d6568;
--pink-stroke: #ee8f8a;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: var(--ink);
background: #fff;
}
.page {
max-width: 1920px;
margin: 0 auto;
overflow-x: clip;
position: relative;
background: #fff;
}
img {
display: block;
}
a {
color: inherit;
}
/* ---------- shared ---------- */
.outline {
color: transparent;
-webkit-text-stroke: 2.5px var(--ink);
}
.btn-box {
display: inline-block;
background: #fff;
color: #000;
border: 3px solid #000;
text-decoration: none;
font-weight: 600;
line-height: 1;
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-box:hover {
transform: translate(3px, 3px);
}
.ghost-label {
position: absolute;
font-weight: 800;
font-size: 38px;
letter-spacing: 1px;
white-space: nowrap;
color: transparent;
pointer-events: none;
}
.ghost-label.pink {
-webkit-text-stroke: 1.5px var(--pink-stroke);
}
.ghost-label.dark {
-webkit-text-stroke: 1.5px #3a3a3a;
}
.more-link {
display: inline-block;
font-size: 20px;
font-weight: 500;
color: var(--ink);
text-decoration: underline;
text-underline-offset: 4px;
}
.more-link:hover {
text-decoration-thickness: 2px;
}
.big-heading {
font-size: 64px;
font-weight: 700;
line-height: 1.07;
letter-spacing: -0.5px;
color: #0f0f0f;
}
/* ---------- header ---------- */
.site-header {
position: relative;
display: flex;
align-items: center;
height: 104px;
padding: 0 35px 0 27px;
background: #fff;
}
.logo {
display: flex;
flex-direction: column;
text-decoration: none;
font-size: 17px;
font-weight: 800;
line-height: 15px;
letter-spacing: 0.5px;
}
.logo .logo-line.outline,
.footer-logo .logo-line.outline {
-webkit-text-stroke: 1px var(--ink);
}
.logo .solid {
color: var(--ink);
}
.main-nav {
display: flex;
align-items: center;
gap: 46px;
margin-left: 258px;
}
.nav-link {
font-size: 24px;
font-weight: 600;
letter-spacing: 0.2px;
text-decoration: none;
color: var(--ink);
}
.nav-link:hover {
text-decoration: underline;
text-decoration-thickness: 2.5px;
text-underline-offset: 6px;
}
.lang-btn {
width: 35px;
height: 35px;
border: 2px solid var(--ink);
background: #fff;
font: inherit;
font-size: 15px;
font-weight: 600;
color: var(--ink);
cursor: pointer;
}
.lang-btn:hover {
background: var(--ink);
color: #fff;
}
.header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 37px;
}
.donate-btn {
font-size: 22px;
letter-spacing: 0.5px;
padding: 12px 19px;
box-shadow: 6px 6px 0 0 #000;
}
.donate-btn:hover {
box-shadow: 3px 3px 0 0 #000;
}
.burger {
width: 31px;
height: 22px;
display: flex;
flex-direction: column;
justify-content: space-between;
background: none;
border: none;
cursor: pointer;
padding: 0;
}
.burger span {
display: block;
height: 4px;
background: #000;
}
.burger:hover span {
background: var(--red);
}
.mobile-menu {
position: absolute;
top: 104px;
right: 0;
z-index: 40;
min-width: 320px;
background: #fff;
border: 3px solid #000;
padding: 20px 28px;
display: flex;
flex-direction: column;
gap: 14px;
}
.mobile-menu a {
font-size: 22px;
font-weight: 600;
text-decoration: none;
}
.mobile-menu a:hover {
color: var(--red);
}
/* ---------- hero ---------- */
.hero {
position: relative;
height: 1070px;
}
.hero-red {
position: absolute;
top: 0;
left: 0;
width: 46.875%;
height: 608px;
background: var(--red);
}
.hero-photo {
position: absolute;
top: 29px;
left: 31.25%;
width: 68.75%;
height: 1041px;
object-fit: cover;
}
.hero-title {
position: absolute;
top: 96px;
left: 105px;
font-size: 108px;
font-weight: 800;
line-height: 96px;
letter-spacing: -1px;
color: var(--ink);
}
.hero-title span {
display: block;
}
.hero-intro {
position: absolute;
top: 628px;
left: 81px;
width: 430px;
}
.hero-intro h2 {
font-size: 38px;
font-weight: 700;
line-height: 44px;
letter-spacing: -0.3px;
}
.hero-intro .u {
color: inherit;
text-decoration: underline;
text-decoration-thickness: 2.5px;
text-underline-offset: 5px;
}
.hero-intro .u:hover {
color: var(--red);
}
.hero-update-text {
margin-top: 66px;
font-size: 23px;
font-style: italic;
font-weight: 500;
line-height: 28px;
width: 475px;
}
.lees-meer {
display: inline-block;
margin-top: 21px;
font-size: 24px;
font-weight: 500;
color: var(--ink);
text-underline-offset: 4px;
}
.lees-meer:hover {
color: var(--red);
}
.hero-ghost {
top: 792px;
left: -30px;
}
/* ---------- counter ---------- */
.counter-section {
background: var(--gray-bg);
text-align: center;
padding: 88px 20px 78px;
}
.counter-heading {
font-size: 29px;
font-weight: 600;
letter-spacing: 0.2px;
}
.flip-row {
margin-top: 34px;
display: flex;
justify-content: center;
gap: 22px;
}
.flip-card {
position: relative;
width: 137px;
height: 199px;
background: #0b0b0b;
border-radius: 10px;
box-shadow: 0 14px 22px rgba(0, 0, 0, 0.25);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.flip-digit {
font-size: 170px;
font-weight: 700;
color: #fff;
line-height: 1;
}
.flip-card::after {
content: '';
position: absolute;
left: 0;
right: 0;
top: calc(50% - 2px);
height: 5px;
background: #0b0b0b;
}
.counter-btn {
margin-top: 46px;
font-size: 28px;
letter-spacing: 1px;
padding: 14px 33px;
border-width: 3px;
box-shadow: 8px 8px 0 0 #000;
}
.counter-btn:hover {
box-shadow: 4px 4px 0 0 #000;
}
/* ---------- recent actions ---------- */
.recent-actions {
background: var(--red);
text-align: center;
padding: 74px 0 84px;
}
.recent-heading {
display: flex;
flex-direction: column;
align-items: center;
}
.recent-kicker {
font-size: 44px;
font-weight: 800;
letter-spacing: 2px;
color: transparent;
-webkit-text-stroke: 2px #131313;
}
.recent-title {
margin-top: 4px;
font-size: 52px;
font-weight: 800;
letter-spacing: 1px;
color: #131313;
}
.actions-grid {
margin-top: 94px;
display: flex;
justify-content: center;
gap: 80px;
padding: 0 40px;
}
.actions-grid.single {
margin-top: 48px;
}
.action-card {
width: 501px;
}
.action-card h3 {
font-size: 26px;
font-weight: 600;
line-height: 32px;
color: #131313;
margin-bottom: 11px;
}
.action-card h3 a {
text-decoration: none;
}
.action-card h3 a:hover {
text-decoration: underline;
}
.action-card img {
width: 100%;
aspect-ratio: 2 / 1;
object-fit: cover;
}
.tag-row {
margin-top: 15px;
display: flex;
flex-wrap: wrap;
justify-content: center;
column-gap: 18px;
row-gap: 6px;
}
.tag {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.5px;
text-transform: uppercase;
color: #131313;
text-underline-offset: 3px;
}
.tag:hover {
background: #131313;
color: var(--red);
}
.more-link.on-red {
margin-top: 78px;
color: #131313;
}
/* ---------- themes ---------- */
.themes {
background: #fff;
text-align: center;
padding: 100px 20px 0;
}
.themes-intro {
margin: 46px auto 0;
max-width: 660px;
font-size: 19px;
line-height: 1.45;
color: #1a1a1a;
}
.themes-grid {
margin-top: 72px;
display: grid;
grid-template-columns: repeat(3, 240px);
column-gap: 62px;
row-gap: 44px;
justify-content: center;
}
.theme-item {
display: block;
text-decoration: none;
color: var(--ink);
justify-self: center;
width: 240px;
}
.theme-item img {
width: 240px;
height: 120px;
object-fit: cover;
}
.theme-label {
display: block;
margin-top: 17px;
font-size: 24px;
font-weight: 600;
line-height: 1.26;
}
.theme-item:hover .theme-label {
text-decoration: underline;
text-underline-offset: 4px;
}
/* ---------- world map ---------- */
.world-map {
position: relative;
background: #fff;
padding-top: 190px;
text-align: center;
}
.map-img {
width: 1022px;
max-width: 94vw;
margin: 0 auto;
}
.map-ghost {
top: 754px;
left: -28px;
}
.map-heading {
margin: 34px auto 0;
max-width: 1600px;
}
.section-divider {
margin: 86px auto 0;
width: 960px;
max-width: 84vw;
border: none;
border-top: 1px solid #9a9a9a;
}
/* ---------- updates ---------- */
.updates {
position: relative;
background: #fff;
text-align: center;
padding: 176px 20px 66px;
}
.updates-heading {
font-size: 25px;
font-weight: 600;
}
.updates-grid {
margin-top: 64px;
display: grid;
grid-template-columns: repeat(2, 390px);
column-gap: 70px;
row-gap: 45px;
justify-content: center;
text-align: left;
}
.update-item {
display: flex;
gap: 20px;
align-items: flex-start;
text-decoration: none;
color: var(--ink);
}
.update-item img {
width: 102px;
height: 102px;
object-fit: cover;
flex: none;
}
.update-title {
display: block;
font-size: 19px;
font-weight: 600;
line-height: 1.34;
}
.update-item:hover .update-title {
text-decoration: underline;
text-underline-offset: 3px;
}
.update-date {
display: block;
margin-top: 9px;
font-size: 13px;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
color: #8f8f8f;
}
.updates .more-link {
margin-top: 130px;
}
.updates-ghost {
top: 498px;
left: -8px;
}
/* ---------- subscribe bar ---------- */
.subscribe-bar {
background: var(--slate);
color: #fff;
padding: 48px 20px 46px;
}
.subscribe-bar h2 {
text-align: center;
font-size: 32px;
font-weight: 600;
letter-spacing: 0.3px;
}
.subscribe-cols {
margin-top: 38px;
display: grid;
grid-template-columns: 300px 390px;
column-gap: 100px;
justify-content: center;
}
.col-label {
font-size: 13px;
font-weight: 600;
letter-spacing: 1px;
color: rgba(255, 255, 255, 0.65);
margin-bottom: 26px;
}
.subscribe-social ul {
list-style: none;
}
.subscribe-social li {
margin-bottom: 24px;
}
.subscribe-social a {
font-size: 26px;
font-weight: 400;
color: #fff;
text-decoration: none;
}
.subscribe-social a:hover {
text-decoration: underline;
text-underline-offset: 4px;
}
/* ---------- newsletter form ---------- */
.newsletter-form {
width: 390px;
max-width: 100%;
}
.accept-row {
display: block;
text-align: center;
margin-bottom: 10px;
}
.accept-row input {
appearance: none;
width: 13px;
height: 13px;
border: 1.5px solid currentColor;
background: transparent;
cursor: pointer;
vertical-align: middle;
}
.accept-row input:checked {
background: currentColor;
}
.newsletter-form .accept-text {
font-size: 17px;
margin-bottom: 21px;
}
.accept-text a {
color: inherit;
text-underline-offset: 3px;
}
.text-input {
display: block;
width: 100%;
height: 27px;
margin-bottom: 8px;
background: transparent;
border-radius: 0;
font-family: inherit;
font-size: 17px;
padding: 2px 10px;
}
.newsletter-form.on-dark {
color: #fff;
}
.newsletter-form.on-dark .text-input {
border: 1px solid rgba(255, 255, 255, 0.55);
color: #fff;
}
.newsletter-form.on-dark .text-input::placeholder {
color: rgba(255, 255, 255, 0.6);
}
.subscribe-btn {
display: inline-block;
margin-top: 7px;
background: transparent;
font-family: inherit;
font-size: 20px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 8px 17px;
cursor: pointer;
line-height: 1;
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.newsletter-form.on-dark .subscribe-btn {
color: #fff;
border: 2px solid #fff;
box-shadow: 4px 4px 0 0 rgba(255, 255, 255, 0.9);
}
.newsletter-form.on-dark .subscribe-btn:hover {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0 0 rgba(255, 255, 255, 0.9);
}
.recaptcha {
margin-top: 15px;
width: 302px;
}
.form-feedback {
margin-top: 10px;
font-size: 15px;
font-weight: 600;
}
/* ---------- about ---------- */
.about {
position: relative;
background: #fff;
padding: 82px 0 0;
}
.about h2 {
text-align: center;
font-size: 66px;
font-weight: 700;
letter-spacing: -0.5px;
color: var(--red);
}
.about-body {
width: 650px;
margin: 44px 0 0 520px;
}
.about-body p {
font-size: 26px;
line-height: 1.41;
color: var(--red);
}
.about-link {
display: inline-block;
margin-top: 27px;
font-size: 26px;
color: var(--red);
text-underline-offset: 5px;
}
.about-link:hover {
text-decoration-thickness: 2.5px;
}
.about-ghost {
top: 316px;
left: -30px;
}
/* ---------- donate banner ---------- */
.donate-banner {
margin-top: 124px;
padding-bottom: 54px;
background: #fff;
}
.banner-stage {
position: relative;
height: 516px;
}
.banner-red {
position: absolute;
left: 53.125%;
right: 0;
top: 26px;
bottom: 0;
background: var(--red);
}
.banner-photo {
position: absolute;
top: 0;
left: 0;
width: 68.75%;
height: 460px;
object-fit: cover;
}
.banner-content {
position: absolute;
left: 72.9%;
top: 86px;
width: 300px;
}
.banner-content p {
font-size: 29px;
font-weight: 500;
line-height: 38px;
color: #131313;
}
.banner-btn {
display: inline-block;
margin-top: 74px;
font-size: 30px;
font-weight: 800;
letter-spacing: 0.5px;
color: #0d0d0d;
border: 3px solid #0d0d0d;
padding: 13px 23px;
text-decoration: none;
line-height: 1;
box-shadow: 7px 7px 0 0 #0d0d0d;
transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.banner-btn:hover {
transform: translate(3px, 3px);
box-shadow: 3px 3px 0 0 #0d0d0d;
}
.banner-btn .outline {
-webkit-text-stroke: 1.6px #0d0d0d;
}
.banner-caption {
position: absolute;
left: 27px;
top: 479px;
font-size: 13px;
font-weight: 500;
letter-spacing: 1px;
text-transform: uppercase;
color: #9b9b9b;
}
.banner-stage .banner-caption {
position: absolute;
}
/* ---------- footer ---------- */
.site-footer {
background: #000;
color: #fff;
padding: 93px 40px 73px;
}
.footer-cols {
display: grid;
grid-template-columns: 310px 323px 320px 310px;
justify-content: start;
padding-left: 287px;
}
.footer-logo {
display: flex;
flex-direction: column;
align-self: start;
text-decoration: none;
font-size: 47px;
font-weight: 800;
line-height: 41px;
letter-spacing: 0.5px;
color: #fff;
}
.footer-logo .logo-line.outline {
-webkit-text-stroke: 1.3px #fff;
color: transparent;
}
.footer-list {
list-style: none;
}
.footer-list a {
font-size: 18px;
line-height: 27px;
font-weight: 400;
color: #fff;
text-decoration: none;
}
.footer-list a:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.footer-news {
width: 310px;
}
.footer-news-label {
font-size: 18px;
margin-bottom: 25px;
}
.newsletter-form.on-black {
color: #fff;
}
.newsletter-form.on-black .text-input {
border: 1px solid #6f6f6f;
color: #fff;
}
.newsletter-form.on-black .text-input::placeholder {
color: #8e8e8e;
}
.newsletter-form.on-black .subscribe-btn {
color: #fff;
border: 2px solid var(--red);
box-shadow: 4px 4px 0 0 var(--red);
}
.newsletter-form.on-black .subscribe-btn:hover {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0 0 var(--red);
}
.newsletter-form.on-black .form-feedback {
color: var(--red);
}
/* ---------- responsive ---------- */
@media (max-width: 1540px) {
.main-nav {
margin-left: 60px;
gap: 30px;
}
.footer-cols {
padding-left: 4%;
grid-template-columns: 1fr 1.2fr 1.2fr 1.1fr;
column-gap: 30px;
}
.about-body {
margin-left: 27%;
}
.actions-grid {
gap: 44px;
}
.action-card {
width: min(501px, 30vw);
}
}
@media (max-width: 1280px) {
.main-nav .nav-link {
display: none;
}
.hero-title {
font-size: 84px;
line-height: 78px;
left: 60px;
}
.hero-intro {
left: 48px;
}
.actions-grid {
flex-wrap: wrap;
}
.action-card {
width: min(501px, 44vw);
}
.themes-grid {
column-gap: 40px;
}
.updates-grid {
grid-template-columns: repeat(2, minmax(300px, 390px));
column-gap: 40px;
}
.big-heading {
font-size: 48px;
}
.about h2 {
font-size: 48px;
}
.banner-content {
left: auto;
right: 4%;
width: 300px;
}
}
@media (max-width: 900px) {
.hero {
height: auto;
display: flex;
flex-direction: column;
}
.hero-red {
position: static;
width: 100%;
height: auto;
padding: 60px 24px;
order: 1;
}
.hero-title {
position: static;
order: 0;
background: var(--red);
padding: 60px 24px 0;
font-size: 72px;
line-height: 68px;
}
.hero-red {
display: none;
}
.hero-photo {
position: static;
order: 2;
width: 100%;
height: auto;
}
.hero-intro {
position: static;
order: 3;
width: auto;
padding: 48px 24px 56px;
}
.hero-update-text {
margin-top: 32px;
width: auto;
}
.ghost-label {
display: none;
}
.actions-grid,
.actions-grid.single {
flex-direction: column;
align-items: center;
gap: 48px;
}
.action-card {
width: min(501px, 92vw);
}
.themes-grid {
grid-template-columns: repeat(2, minmax(140px, 240px));
}
.map-heading {
padding: 0 24px;
}
.updates-grid {
grid-template-columns: minmax(280px, 440px);
}
.updates {
padding-top: 90px;
}
.updates .more-link {
margin-top: 60px;
}
.subscribe-cols {
grid-template-columns: minmax(260px, 390px);
row-gap: 44px;
}
.about-body {
width: auto;
max-width: 640px;
margin: 30px auto 0;
padding: 0 24px;
}
.banner-stage {
height: auto;
display: flex;
flex-direction: column;
}
.banner-red {
display: none;
}
.banner-photo {
position: static;
width: 100%;
height: auto;
}
.banner-content {
position: static;
width: 100%;
background: var(--red);
padding: 48px 24px 56px;
}
.banner-caption {
position: static;
margin: 14px 24px 0;
}
.banner-stage .banner-caption {
position: static;
order: 3;
}
.footer-cols {
grid-template-columns: 1fr;
row-gap: 44px;
padding-left: 0;
}
.site-footer {
padding: 56px 24px;
}
.flip-card {
width: 96px;
height: 140px;
}
.flip-digit {
font-size: 118px;
}
.counter-btn {
font-size: 20px;
padding: 12px 20px;
}
.donate-btn {
display: none;
}
}
@media (max-width: 560px) {
.themes-grid {
grid-template-columns: minmax(200px, 240px);
}
.big-heading,
.about h2 {
font-size: 34px;
}
.hero-title {
font-size: 56px;
line-height: 52px;
}
}