@import "fonts"; $col-white: #fff; $col-bg: #0b1b2e; $col-accent: #845368; $size-mobile: 950px; /* Global */ *, *:before, *:after { box-sizing: border-box; } html { scroll-behavior: smooth } body { margin: 0; padding: 0; background-color: $col-bg; color: $col-white; line-height: 1.5; font-size: 16px; font-family: "moderat", sans-serif; } .wrap { max-width: 90rem; margin: 0 auto; padding: 0 1rem; } .narrow { max-width: 60rem; margin: 0 auto; } .text-center { text-align: center; } img { display: block; max-width: 100%; } h1, h2, h3, h4, h5, h6 { text-align: center; } h1 { font-size: 2.178rem; text-transform: uppercase; } .text-bold { font-weight: bold; } section { padding-top: 3rem; } /* Specific */ body.noscroll { overflow: hidden; } .intro { min-height: 100vh; header { position: relative; border-bottom: 1px solid #5D6E81; margin-bottom: 4em; height: 5rem; .wrap { height: 100%; } .border-container { width: 100%; height: 100%; display: flex; align-items: stretch; justify-content: space-between; gap: 2rem; border-width: 0 1px; border-style: solid; border-color: #5D6E81; padding-left: 2rem; } .logo { display: flex; align-items: center; flex-shrink: 0; height: 100%; img { height: 2rem; } } nav { display: flex; &.visible { display: flex; } a { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0 1.5em; overflow: hidden; font-weight: bold; text-decoration: none; text-align: center; color: #fff; border-left: 1px solid #5D6E81; &:hover { color: lighten($col-accent, 25%); } } } .menu-button { display: none; align-items: center; flex-shrink: 0; padding: 0 1.5em; cursor: pointer; border-left: 1px solid #5D6E81; .image { height: 2rem; width: 2rem; background-image: url("/static/menu-closed.svg"); background-size: cover; background-repeat: no-repeat; &.open { background-image: url("/static/menu-open.svg"); } } } } section { max-width: 65%; margin: 0 auto; text-align: center; .title { font-weight: bold; font-size: 1.953rem; } p { font-size: 1.25rem; } } } .checklist { display: flex; justify-content: center; gap: 1em; overflow: visible; margin-top: 3em; padding: 0 2em; .card { display: flex; flex-direction: column; flex-shrink: 0; width: 15em; border: .15em solid $col-accent; border-radius: 1em; padding: 2em; background-color: $col-bg; text-align: left; img { width: 100%; } .title { position: relative; font-weight: bold; font-size: 1.138rem; padding: 1em 0; &:after { content: ""; display: block; position: absolute; left: 0; bottom: 0; width: 25%; height: 1px; background-color: #fff; } } } } .partners { display: flex; justify-content: center; flex-wrap: wrap; img { width: clamp(20rem, 80vw, 0); padding: 1.5em; } } .faq-list { width: 100%; margin-top: 5em; .faq { position: relative; display: grid; grid-template-columns: auto auto; column-gap: 1em; width: 100%; padding: 2em; cursor: pointer; background-color: inherit; transition: all .5s ease; // Hide bottom border. // It is -2px to avoid float rounding errors // which cause the border to appear in some widths. margin-bottom: -2px; &:before, &:last-child:after { content: ""; position: absolute; left: 10%; width: 80%; border-width: 1px 0 0 0; border-style: solid; border-color: #8392a3; } &:before { top: 0 } &:last-child:after { bottom: 0 } &.active { background-color: $col-accent; z-index: 1; &:before { border: 0 } .answer { height: auto; margin-top: 1em; opacity: 1; } .mark:before { content: "\2212"; } } .mark:before { content: "\002B"; display: block; text-align: right; color: #fff; font-weight: bold; font-size: 1.138rem; } .question { font-size: 1.138rem; } .answer { height: 0; overflow: hidden; opacity: 0; transition: all .5s ease; } } } footer { $logo-radius: 4.5em; position: relative; text-align: center; font-size: 1.138rem; padding: $logo-radius+1 2em 2em 2em; margin-top: $logo-radius+6; border-top: 1px solid #5d6e81; &:before { content: ""; position: absolute; top: -$logo-radius; left: 50%; transform: translatex(-$logo-radius); height: $logo-radius*2; width: $logo-radius*2; border: 1px solid #5d6e81; border-radius: 50%; background-image: url("/static/pedf-logo-white.svg"); background-position: center; background-size: 75%; background-repeat: no-repeat; background-color: $col-bg; } } @media only screen and (max-width: $size-mobile) { .intro header { .menu-button { display: flex; } nav { display: none; border: none; flex-direction: column; position: absolute; left: 0; top: 100%; width: 100%; min-height: 100vh; margin-top: 1px; // Fix covering border of header background-color: $col-bg; a { padding: 3em 1rem; border: 0; font-weight: bold; font-size: 1.138rem; border-bottom: 1px solid #5D6E81; } } } }