@import url('./icons.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-display: swap;
    font-family: 'Caveat';
    font-weight: 400 800;
    src: url('../fonts/Caveat-VariableFont_wght.ttf');
}

@font-face {
    font-display: swap;
    font-family: 'Caveat Brush';
    font-weight: 400 800;
    src: url('../fonts/CaveatBrush-Regular.ttf');
}

body {
    font-family: 'Caveat', sans-serif;
    font-variant-ligatures: common-ligatures;
    font-kerning: normal;
}

body {
    font-family: 'Caveat', cursive;
    background-color: #f7f7fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

#top, #content, #footer {
    width: 640px;
}

#top {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 1rem 0.5rem;


    #logo {
        font-size: 4.25rem;
        font-weight: 600;
        color : #1212dd;
        display: flex;
        align-items: center;

        a, a:visited, a:active {
            text-decoration: none;
            color : #1212dd;
            display: block;
        }
    }


    ul#menu {
        font-family: 'Caveat Brush', cursive;
        list-style: none;
        font-size: 1.25em;
        margin-right: .5em;
        margin-bottom: .25em;

        li {
            margin-bottom: 0.35em;
            text-align: right;
        }

        li.active {
            text-decoration: underline;
        }
    }
}

#footer {

    font-size: 1.25rem;
    padding: 0.5em;

    div {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
    }
}

#footer a, #menu a {
    color: black;
    text-decoration: none;
    font-size: 1.25rem;
}

#content {
    padding: 30px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 25px;

    p {
        margin-bottom: 28px;
        line-height: 28px;
    }

    background: linear-gradient(white 26px, #dfdfdf 26px) repeat-y;
    background-size: 100% 28px;


    a {
        color: #000099;
        text-decoration: none;
    }

    a.cta {
        display: block;
        font-size: 32px;
        font-weight: 400;
        line-height: 28px;
        margin: 28px 0 24px 0;
        text-decoration: underline;
    }

}

/* Heading styling */

h1, h2, h3, h4 {
    font-family: 'Caveat', cursive;
    font-weight: 700; /* Bold */
    display: inline-block;
}

h1 {
    color: #110099;
    font-size: 38px;
    position: relative;
    top: 8px;
    line-height: 56px;
    #background-color: red;
    margin: 0 0 28px 0;
}

i.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 0.15em;
    vertical-align: middle;
    background-color: transparent;
    stroke: #2EAE9B;
}

@media (max-width: 768px) {
    body {
        font-size: 1.5rem;
    }

    #top, #content, #footer {
        width: 100%;
        max-width: 90%;
        padding: 2em;
    }

    #footer {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;

        div, a {
            flex-wrap: wrap;
            min-width: 100%;
            font-size: 1.5rem;
            justify-content: left;
            margin-bottom: .5em;
        }
    }

    #top {
        padding: 1em 0;

        ul {
            margin-right: 0;
            margin-bottom: 0;
            font-size: 1em;
        }
    }

    #content {
        padding: 28px;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    h4 { font-size: 1.5rem; }
}
