﻿html {
    max-width: 1700px;
    text-align: center;
    margin: auto;
    background: url(/images/BG_pattern.svg);
}

body {
    font-family: 'Ubuntu', sans-serif;
}

.btn, input.form-control {
    -ms-border-radius: 20px;
    border-radius: 20px;
    padding-right: 1.5em;
    padding-left: 1.5em;
}

.btn-success {
    background-color: #00B354;
}

.btn-white {
    background-color: white;
    color: #00B354;
}

a.navbar-brand {
    margin-right: 4rem;
}

#shareKnowledgeSection img {
    max-height: 25em;
}

#interestsSection {
    background-color: #f2f2f2;
}

#interestsSection .rowBody .interestItem {
    padding: .5rem 1rem;
    -ms-border-radius: 20px;
    border-radius: 20px;
    box-shadow: 0 0.5rem 1rem #000000 !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
}

/* https://stackoverflow.com/a/46382643/6094676 */
#loginModal {
    padding: 0 !important; /* override inline padding-right added from js */
}

#loginModal .modal-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
}

#loginModal .modal-content {
    height: 100%;
    border: 0;
    -ms-border-radius: 0;
    border-radius: 0;
}

#loginModal .modal-body {
    overflow-y: auto;
    padding: 0;
}

#loginContainer img, #signUpContainer img {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 5rem;
}

#loginModal button.close {
    position: absolute;
    top: .25em;
    right: .25em;
    width: 1em;
    font-size: 3.5em;
    color: #00b354;
    -ms-opacity: 1;
    opacity: 1;
    background-color: #ffffff;
    -ms-border-radius: 50%;
    border-radius: 50%;
    z-index: 1;
}

#loginContainer, #signUpContainer {
    background: url(/images/Wisdome_icon.svg);
    -ms-background-size: cover;
    background-size: cover;
    -ms-background-position: center;
    background-position: center;
    -ms-background-repeat: no-repeat;
    background-repeat: no-repeat;
}

#loginModal .leftSideContent {
    margin-top: 5rem;
}

#loginModal .leftSideContent > div {
    text-decoration: underline;
}

#functionalitySection .rowBody .functionalityItem img {
    max-height: 15em;
}

#headSection {
    background: url(/images/bg_hero_new.svg);
    -ms-background-size: cover;
    background-size: cover;
    background-position-y: bottom;
    background-position-x: center;
}

#interestsSection {
    background: url(/images/cloud.svg);
    -ms-background-size: cover;
    background-size: cover;
    -ms-background-position: center;
    background-position: center;
}

.passwordError {
    display: none;
    position: absolute;
    padding: 0 1em;
}

@media screen and (min-width: 576px) {
    .container-fluid > div {
        padding-right: 5%;
        padding-left: 5%;
    }

    #interestsSection .rowBody .interestItem {
        padding: .5rem 2rem;
        -ms-border-radius: 20px;
        border-radius: 20px;
    }

    #loginContainer img, #signUpContainer img {
        top: 1.5rem;
        left: 2.25rem;
        width: 10rem;
    }

    #loginModal .leftSideContent {
        width: 70%;
        max-width: 25em;
    }

    #loginModal button.close {
        position: absolute;
        top: .25em;
        right: .25em;
        width: 1em;
        font-size: 3.5em;
        color: #ffffff;
        -ms-opacity: 1;
        opacity: 1;
        background-color: #00b354;
        -ms-border-radius: 50%;
        border-radius: 50%;
        z-index: 1;
    }

    #headSection {
        -ms-background-size: auto;
        background-size: auto;
    }
}

@media screen and (min-width: 768px) {
    .container-fluid > div {
        padding-right: 10%;
        padding-left: 10%;
    }

    #loginContainer, #signUpContainer {
        -ms-background-size: contain;
        background-size: contain;
    }

    #loginContainer img, #signUpContainer img {
        -ms-background-size: contain;
        background-size: contain;
    }

    #interestsSection {
        padding-top: 6em;
        padding-bottom: 4em;
    }
}


@media screen and (min-width: 1200px) {
    .container-fluid > div {
        padding-right: 17%;
        padding-left: 17%;
    }

    #loginContainer, #signUpContainer {
        padding: 7em 0;
    }

    #loginModal .modal-dialog {
        max-width: 70vw;
        height: auto;
        margin: 1.75rem auto;
    }

    #loginModal .modal-content, #loginModal .modal-body {
        -ms-border-radius: 5px;
        border-radius: 5px;
    }

    #interestsSection {
        padding-top: 14em;
        padding-bottom: 15em;
    }
}

/* ABOUT WISDOME MODAL TAKEN DIRECTLY FROM SITE.CSS */

.aboutModalContainer {
    padding: 10px 20px 20px 20px;
}

.info-modal-content h3 {
    font-size: 18px;
    color: var(--color-secondary);
    font-weight: bold;
}


.imgCloseButton {
    -ms-border-radius: 50%;
    border-radius: 50%;
    position: absolute;
    right: 1em;
}

/*
 * Footer layout
 */

footer .footerContent {
    background: url(/images/footer_bg_new.svg);
    background-position-x: center;
    padding-top: 2em;
}

footer .footerSecondaryBackground {
    height: 21em;
    margin-bottom: -5em;
    background: url(/images/BG_pattern.svg);
    -ms-background-size: cover;
    background-size: cover;
    -ms-background-position: center;
    background-position: center;
}

footer ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: smaller;
    color: white;
    margin: 0;
    list-style: none;
    -o-justify-content: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 5em 0;
}

footer ul li {
    margin: .5em;
}

footer ul li a {
    color: white;
    text-decoration: underline;
}

@media screen and (min-width: 576px) {
    footer ul {
        flex-direction: row;
    }

    footer .footerSecondaryBackground {
        height: 30em;
        margin-bottom: -8em;
    }
}

@media screen and (min-width: 768px) {
    footer .footerSecondaryBackground {
        height: 24em;
        margin-bottom: -7em;
    }
}

@media screen and (min-width: 1200px) {
    footer .footerSecondaryBackground {
        height: 30em;
        margin-bottom: -9em;
        -ms-background-size: auto;
        background-size: auto;
    }
}

/* Bootstrap overwrites */
.bg-success {
    background-color: #00b354 !important;
}
