/* Variables */

:root {
    --white: #FFFFFF;
    --lGrey: #F0F0F0;
    --dGrey: #0F0F0F;
    --black: #000000;
    --accent1: #FFFF55;
    --accent2: #070707;
    --fonts: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --center: center;
    --underline: underline;
    --pointer: pointer;
    --none: none;
}

/* General CSS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    color: var(--black);
    background-color: var(--white);
    width: 100%;
    height: 100%;
}

html {
    font-size: 16px;
}

::selection {
    color: var(--black);
    background-color: var(--accent1);
}

.wrapper {
    flex: 1;
}

/* Backgrounds */

.dark-bg {
    color: var(--white);
    background-color: var(--dGrey);
}

.white-bg, .grey-bg, .hero-bg {
    color: var(--black);
    background-color: var(--white);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 24px,
        #BBBBBB 25px
    );
}

.white-bg, .grey-bg, .dark-bg {
    padding: 80px 25px;
}

.hero-bg {
    position: relative;
    padding: 200px 100px;
}

/* Fonts */

@font-face {
    font-family: 'Bold';
    src: url('../fonts/PermanentMarker-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'SemiBold';
    src: url('../fonts/PermanentMarker-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Medium';
    src: url('../fonts/Caveat-Medium.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Regular';
    src: url('../fonts/Caveat-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Dyslexic';
    src: url('../fonts/OpenDyslexic-Regular.woff2') format('woff2');
    font-display: swap;
}

h1, h2 {
    font-family: 'Bold', var(--fonts);
}

h1, .icon {
    font-size: 3rem;
}

h1 {
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3, .button1, .button2, label, .footer-heading, .footer-subheading, .footer-link, .navbar-button {
    font-family: 'SemiBold', var(--fonts);
}

h3, .button1, .button2, label, .footer-heading, .footer-subheading, .footer-link, .nav-link, .navbar-button, .navbar-brand {
    font-weight: 500;
}

h3, .footer-heading {
    font-size: 2rem;
}

.footer-subheading {
    font-size: 1.5rem;
}

.button1, .button2, label, .footer-link {
    font-size: 1.25rem;
}

.nav-link, .navbar-brand {
    font-family: 'Medium', var(--fonts);
}

strong {
    font-weight: 600;
}

h1, h2, h3, .button1, .button2, label, .footer-heading, .footer-subheading, .footer-link, .navbar-button {
    line-height: 1.2;
    letter-spacing: 0.01em;
}

p, li, input, textarea, input::placeholder, textarea::placeholder {
    font-family: 'Regular', var(--fonts);
    font-weight: 400;
}

p, li, input, textarea, input::placeholder, textarea::placeholder, .navbar-button, .nav-link, .navbar-brand {
    font-size: 1.5rem;
}

p, li, input, textarea, input::placeholder, textarea::placeholder, .nav-link, .navbar-brand {
    line-height: 1.4;
    letter-spacing: 0.005em;
}

abbr {
    text-decoration: var(--underline);
    text-decoration-style: dashed !important;
}

abbr:hover {
    text-decoration: var(--none);
    cursor: help;
}

.icon, .blue {
    color: var(--accent2);
}

/* Buttons */

.button1 {
    color: var(--black);
    background-color: var(--accent1);
}

.button2 {
    color: var(--black);
    background: transparent;
    border: 2px solid var(--accent1);
}

.navbar-button {
    color: var(--white);
    background-color: var(--accent2);
    border: var(--none);
    padding: 10px 20px;
}

.button1, .navbar-button {
    border: var(--none);
    transition: color 0.25s ease-out, background-color 0.25s ease-out;
}

.button1, .button2, .navbar-button {
    text-align: var(--center);
    text-decoration: var(--none);
    text-wrap: nowrap;
    border-radius: 5px;
}

.button1, .button2 {
    padding: 20px 40px;
}

.button1:hover, .button1:focus {
    color: var(--white);
    background-color: var(--accent2);
}

.button2:hover, .button2:focus {
    border: 2px solid var(--white);
}

.navbar-button:hover, .navbar-button:focus {
    color: var(--black);
    background-color: var(--accent1);
}

.button1:active, .button2:active, .navbar-button:active {
    transform: translateY(2px);
}

.button1:hover, .button2:hover, .button1:active, .button2:active, .navbar-button:hover, .navbar-button:active, .button1:focus, .button2:focus, .navbar-button:focus {
    text-decoration: var(--underline);
}

/* Images */

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.about-img {
    width: 100%;
}

.img-1200 {
    display: var(--none);
}

/* Forms */

input, textarea {
    color: var(--white);
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 0;
}

input, textarea, .button2 {
    transition: border-color 0.25s ease-out;
}

input:focus, textarea:focus {
    border: 2px solid var(--accent1);
    outline: var(--none);
}

/* Navbar */

nav {
    color: var(--black);
    background-color: var(--white);
    padding: 15px;
}

.navbar-toggler {
    color: var(--black);
    border: 2px solid var(--black);
}

.nav-link, .navbar-brand {
    color: var(--black) !important;
}

.nav-link:hover, .active, .nav-link:focus, .navbar-brand:hover, .navbar-brand:focus {
    color: var(--accent2) !important;
    text-decoration: var(--underline);
}

.nav-link:active, .navbar-brand:active {
    text-decoration: var(--none);
}

/* Footer */

footer {
    color: var(--white);
    background-color: var(--black);
    padding: 40px 20px;
}

.footer-heading {
    border-bottom: var(--none);
}

.footer-link {
    color: var(--white);
    text-decoration: var(--none);
}

.footer-link:hover, .footer-link:focus {
    color: var(--accent1);
}

.footer-link:active {
    text-decoration: var(--underline);
}

.footer-link, .nav-link, .btn h3, .navbar-brand {
    transition: color 0.25s ease-out;
}

/* Cards */

.service-card, .question-card {
    color: var(--black);
    border-radius: 10px;
}

.service-card {
    background-color: var(--white);
    border: 5px solid var(--accent2);
}

.question-card {
    background-color: var(--lGrey);
    border: 2px solid var(--black);
}

.service-card {
    padding: 0;
}

.service-body {
    padding: 25px;
}

/* Other */

.center {
    text-align: var(--center);
}

.left {
    text-align: left;
}

ul {
    list-style-type: square;
}

.btn:hover, .btn:focus {
    color: var(--accent2);
}

.btn:active {
    text-decoration: var(--underline);
}

.button1:hover, .button2:hover, .button1:active, .button2:active, .navbar-button:hover, .navbar-button:active, .button1:focus, .button2:focus, .navbar-button:focus, .text-link:hover, .text-link:active, .nav-link:hover, .nav-link:active, .footer-link:hover, .footer-link:active, .btn:hover, .btn:active, .navbar-brand:hover, .navbar-brand:active {
    cursor: var(--pointer);
}

/* Media Queries */

@media screen and (max-width: 1199px) {
    .img-1200 {
        display: block;
    }
}

@media screen and (max-width: 991px) {
    .hide-img {
        display: var(--none);
    }
    .navbar-button {
        padding: 15px 30px;
    }
    .nav-link {
        border-bottom: 1px solid var(--black);
    }
}

@media screen and (max-width: 767px) {
    h1, .icon {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3, .footer-heading {
        font-size: 1.5rem;
    }
    .footer-subheading {
        font-size: 1.25rem;
    }
    .button1, .button2, label, .footer-link {
        font-size: 1.125rem;
    }
    .hero-bg {
        padding: 100px 25px;
    }
    .white-bg, .grey-bg, .dark-bg {
        padding: 50px 25px;
    }
    .button1, .button2 {
        padding: 15px 30px;
    }
    .service-body {
        padding: 15px;
    }
    nav {
        padding: 10px;
    }
    footer {
        padding: 25px;
    }
}