:root {
    --learn-pink: #e60073;
    --learn-pink-dark: #661a3c;
}

html,
body {
    height: 100%;
    margin: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.left-nav {
    width: max-content;
    min-width: 200px;
    position: sticky;
    top: 56px; /* height of top navbar */
    height: calc(100vh - 56px);
    overflow-y: auto;
    border-right: 1px solid #000;
}

.content-pane {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.custom-footer {
    border-top: 1px solid #ddd;
    padding: 1rem;
}

    .custom-footer .footer-copy {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.875rem;
        text-align: center;
        color: var(--learn-pink);
    }

/* split copyright to two lines on small screens */
@media (max-width: 640px) {
    .footer-copy-rights {
        display: block;
        width: 100%;
    }
}

.uk-navbar-sticky {
    border-bottom: 1px solid #ddd;
}

.top-navbar {
    background-color: var(--learn-pink);
    color: white;
    border-bottom: 1px solid #000;
}

    .top-navbar h2 {
        color: white;
        font-size: 1.8rem;
    }

.custom-search {
    background-color: white !important;
    color: black;
    border: 1px solid black;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    height: 40px; /* make it nicely fit navbar height */
    font-size: 1rem;
}

/* shrink the width of the search bar */
.uk-search-navbar {
    max-width: 250px;
}

.no-uppercase {
    text-transform: none;
}

.uk-button {
    text-transform: none;
}

.uk-label {
    text-transform: none;
}

div.stars {
    display: inline-block;
}

input.star {
    display: none;
}

label.star {
    float: right;
    padding: 10px;
    font-size: 36px;
    color: #444;
    transition: all .2s;
}

input.star:checked ~ label.star:before {
    content: '';
    color: #FD4;
    transition: all .25s;
}

input.star-5:checked ~ label.star:before {
    color: #FE7;
    text-shadow: 0 0 20px #952;
}

input.star-1:checked ~ label.star:before {
    color: #F62;
}

input.star ~ label.star polygon {
    fill: white;
}

input.star:checked ~ label.star svg {
    color: black;
}

    input.star:checked ~ label.star svg polygon {
        fill: yellow;
    }

label.star:hover {
    transform: rotate(-15deg) scale(1.3);
}

    label.star:hover svg {
        color: black;
    }

        label.star:hover svg polygon {
            fill: yellow;
        }

.content-pane pre table,
.content-pane code table {
    all: unset;
}

/* for top right nav menu */
.white-dropdown-toggle {
    color: #fff;
    border: 1px solid #fff;
}

/* for landing page */
/* makes nav links white and bold */
.uk-navbar-nav > li > a {
    color: #ffffff;
    font-weight: 600;
    text-transform: capitalize;
}

    /* adds hover effect */
    .uk-navbar-nav > li > a:hover {
        color: #fff;
        text-decoration: underline;
    }

/* removes flex from navbar link */
.no-flex-link {
    display: inline !important;
}

/* override the background color of the success notification */
.uk-notification-bottom-right .uk-notification-message-success {
    background-color: #edfbf6 !important;
}

/* override the default height because my top navbar is only 60px high */
.uk-navbar-item,
.uk-navbar-nav > li > a,
.uk-navbar-toggle {
    min-height: 60px !important;
}

.hero-dark-text {
    color: #000;
}

#hero,
#features {
    background: transparent !important;
}

.shared-bg {
    background-image: url('../images/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

.uk-navbar-toggle-icon > svg {
    color: #fff;
}
