@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    /* --color-white: white; */
    --color-white: #f2f7f7;
    --color-black: #0B2436;
    --color-code: #272a37;
    --color-grey: #99a5b4;
    --color-blue: #5247c8;
    --color-gold: #d3a46f;
}

* {
    margin: 0;
    border: 0;
    box-sizing: border-box;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: var(--color-white);
}

body>div {
    display: flex;
    flex-direction: column;
    padding: 4rem 4rem;
}

hr {
    border-top: 2px solid var(--color-white);
    margin-top: 2rem;
}


/***********************/
/* General font styles */

h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.08rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    text-transform: capitalize;
}

p {
    font-size: 1.2rem;
    line-height: 1.6rem;
    margin-top: 2rem;
}

b {
    display: block;
    font-size: 1.2rem;
    line-height: 1.6rem;
    margin-top: 1rem;
    letter-spacing: 0.1rem;
}

ul:not(.footer ul, .nav ul) {
    margin-top: 2rem;
}

li {
    font-size: 1.2rem;
    line-height: 2rem;
    font-weight: 700;
}

a {
    display: block;
    font-size: 1.2rem;
    line-height: 1.6rem;
    margin-top: 2rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    position: relative;
}


/**************************/
/* Hover effect for links */

a:not(.logo):after {
    content: '';
    width: 0;
    height: 2px;
    display: block;
    background: var(--color-white);
    transition: width .2s ease-in-out;
    -webkit-transition: width .2s ease-in-out;
}

a:hover:after {
    width: 2rem;
}


/*****************************/
/* Nav bar and footer styles */

.nav,
.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 7rem;
}

.nav li,
.footer li {
    float: left;
    padding-left: 1.2rem;
    list-style: none;
}

.nav img {
    height: 4rem;
    width: auto;
}

.nav .menu-btn {
    visibility: hidden;
}


/********************************/
/* Things for light backgrounds */

.light h1,
.light h2,
.light p,
.light b,
.light li,
.light a {
    color: var(--color-black);
}

.light a:after {
    background: var(--color-black);
}

.light hr {
    border-top: 2px solid var(--color-black);
}


/**************************/
/* Changes for 4k screens */

@media (min-width: 2000px) {
    body>div {
        padding: 4rem 24rem;
    }
}


/***************************/
/* Changes for mobile view */

@media (max-width: 960px) {

    body>div {
        padding: 2rem 2rem;
    }

    /*****************/
    /* Smaller fonts */

    h1,
    h2 {
        font-size: 2.5rem;
    }

    p,
    b,
    li,
    a {
        font-size: 1rem;
    }

    a.logo {
        margin-top: 0rem;
    }

    /*******************************************/
    /* Nav bar and footer are smaller/centered */

    .footer {
        flex-direction: column-reverse !important;
        justify-content: flex-start !important;
        align-items: flex-end !important;
    }

    .footer li,
    .footer p {
        text-align: right !important;
        float: none;
        padding: 0;
        line-height: 1;
    }

    .nav img {
        height: 3rem;
    }

    .nav li {
        float: none;
        padding: 0.5rem;
        text-align: right;
    }


    /*****************************/
    /* Navigation hamburger menu */

    .nav .hamburger {
        position: absolute;
        top: 2rem;
        right: 2rem;
        width: 3rem;
        height: 3rem;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        visibility: visible;
        z-index: 2;
    }

    .nav .hamburger .bar {
        background: white;
        height: 4px;
        width: 2rem;
    }

    .nav .menu-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
        z-index: 3;
        opacity: 0;
        visibility: visible;
        width: 3rem;
        height: 3rem;
        cursor: pointer;
    }

    .nav .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        opacity: 0;
        padding: 5rem 2rem 0 0;
        transition: ease-in-out 0.2s;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        background: var(--color-grey);
        visibility: hidden;
    }

    .nav .menu-btn:checked~.menu {
        visibility: visible;
        opacity: 1;
    }
}