:root {
    font-size: 62.5%;
    --theme-blue: #3A53A4;
    --page-margin: 1.8rem;
}

* {
    box-sizing: border-box;
    /* box-shadow: 0 0 0 1px plum; */
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Graphik', sans-serif;
}

/** General element styles */
h1 {
    font-size: 4rem;
    font-weight: 300;
    color: var(--theme-blue);
}
h2 {
    font-size: 3.8rem;
    font-weight: 300;
    color: var(--theme-blue);
}
p {
    font-size: 1.6rem;
    /* font-weight: 300; */
    color: var(--theme-blue);
}

/** Header container that holds nav */
#header-container {
    position: sticky;
    top: -1px;
    z-index: 100;
    margin: var(--page-margin);
    margin-bottom: 0;
    color: white;
    height: 15rem;
}

/** Navigation bar */
#nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5.5rem;
    padding: 1.5rem;
    padding-left: 2rem;
    padding-right: 7rem;
    height: 15rem;
    background-color: var(--theme-blue);
    box-shadow: 0px 4px 5px grey;
    transition: height, 0.1s;
}
#nav-container.is-pinned {
    height: 10rem;
}
#header-container.home #nav-container {
    box-shadow: 0 0 0;
}


/* Text Links */
#nav-container span > a {
    padding: 2rem 0;
    font-size: 2.2rem;
    font-weight: 300;
    color: white;
    text-decoration: none;
}

/* Logo */
#nav-container :first-child {
    margin-right: auto;
    height: 100%;
}
#nav-container :first-child img {
    display: block;
    height: 100%;
}

/* Active page */
#nav-container .active {
    font-weight: 600;
}

/* White button */
#nav-container .white-btn {
    padding-left: 2.8rem;
    padding-right: 2.8rem;
    background-color: white;
    border-radius: 0.8rem;
    color: var(--theme-blue);
}

/** Footer */
#footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
    padding-left: 5rem;
    background-color: var(--theme-blue);
}
#footer-container img {
    height: 17.5rem;
}

#footer-links {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 0.8rem;
}
#footer-links a {
    font-size: 1.6rem;
    text-decoration: none;
    color: white;
}
#footer-links a.bold {
    font-weight: 600;
}
#footer-links a.btn {
    text-align: center;
    padding: 1.2rem;
    background-color: white;
    border-radius: 0.8rem;
    color: var(--theme-blue);
}

@media (max-width: 600px) {
    :root {
        font-size: 20%;
    }
    #nav-container span:nth-of-type(2) {
        display: none;
    }
    #nav-container span:nth-of-type(3) {
        display: none;
    }
}

@media (max-width: 930px) {
    :root {
        font-size: 35%;
    }
}