﻿/* Main styles and resets */

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
}

/* Bootstrap changes */

.btn-primary {
    border-color: #2b3f82;
    background-color: #2b3f82;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn.btn-primary:focus,
.btn.btn-primary.focus {
    background-color: #1e2e5e;
    border-color: #1e2e5e;
    color: #ffffff;
}

.btn.btn-primary:focus, .btn.btn-primary.focus,
.btn.btn-outline-primary:focus, .btn.btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(43, 63, 130, 0.5);
}

.btn-outline-primary {
    border-color: #2b3f82;
    color: #2b3f82;
}

.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle,
.btn.btn-outline-primary:focus,
.btn.btn-outline-primary.focus {
    background-color: #2b3f82;
    border-color: #2b3f82;
    color: #ffffff;
}

.btn-outline-secondary {
    border-color: #405ebf;
    color: #405ebf;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle,
.btn.btn-outline-secondary:focus,
.btn.btn-outline-secondary.focus {
    background-color: #405ebf;
    border-color: #405ebf;
    color: #ffffff;
}

.btn.btn-outline-secondary:focus, .btn.btn-outline-secondary.focus {
    box-shadow: 0 0 0 0.2rem rgba(64, 94, 191, 0.5);
}

.jumbotron {
    background-color: #f2f2f2;
}

h2 {
    padding: 1.5rem 0;
}

h3 {
    padding: 1rem 0;
}

h4 {
    padding: 0.75rem 0;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
}

.tab-content > .tab-pane {
    min-height: 100px;
}

/* Header / footer styles */

#header .navbar, #footer footer {
    background-color: #2b3f82;
}

#header .navbar-nav .nav-link, .list-white-links a {
    color: rgba(255, 255, 255, 0.7);
}

#header .navbar-nav .nav-link:hover, .list-white-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.125rem 0.5rem;
    text-decoration: none;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.btn-close {
    box-shadow: none !important;
}

/* Content styles */

.bg-primary-blue {
    background-color: #2b3f82;
}

.main-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.space-line {
    background-color: #2b3f82;
    width: 5rem;
    height: 3px;
    margin: 1rem 0 2rem;
}

.bg-dark-blue {
    background-color: rgba(0, 2, 52, 0.85);
}

.bg-gold-brown {
    background-color: rgba(131, 99, 40, 0.91);
}

.bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.rounded-blue-border {
    border: 2px solid #2b3f82;
    border-radius: 0.5rem;
}

.rounded-white-border {
    border: 2px solid #fff;
    border-radius: 0.5rem;
}

.display-ps {
    font-size: 1.125rem;
    line-height: 1.4;
}

.display-p {
    font-size: 1.25rem;
    line-height: 1.6;
}

.display-title {
    font-weight: 300;
    font-size: 2rem;
}

.bg-blue-gradient {
    background: rgb(204,211,236);
    background: linear-gradient(45deg, rgba(204,211,236,0.2) 0%, rgba(204,211,236,0.2) 50%, rgba(204,211,236,1) 100%);
}

.display-list {
    list-style-type: circle;
    margin-left: 1.5rem;
}

.display-list li {
    padding-bottom: 0.5rem;
}

.quote-marks {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.blockquote > p {
    text-indent: 3rem;
}

.faded-img {
    opacity: 0.3;
}

/* Anchor link offset for fixed navbar */
.anchor-link {
    display: block;
    height: 64px;
    margin-top: -64px;
    pointer-events: none;
    visibility: hidden;
}

.support-img {
    padding-left: 2rem;
    border-left: 4px solid #2b3f82;
    margin: 1rem 0;
    width: auto;
    max-width: 90%;
    height: auto;
}

.support-vid {
    padding: 2rem 0;
    width: 80vw;
    height: 45vw;
    max-width: 600px;
    max-height: 337.46px;
    border: 0;
}

.alert.support-note {
    background-color: transparent;
    border-width: 2px;
}

.alert.support-note p {
    padding: 0;
    margin: 0;
}

.styled-list {
    margin-left: 1.5rem;
}

.styled-list > li:before {
    content: "";
    display: inline-block;
    background-color: #2b3f82;
    width: 12px;
    height: 2px;
    margin: 0 0.5rem 0.3rem -1.5rem;
}

.styled-list > li {
    padding: 0.25rem 0;
}

.media-img {
    max-width: 128px;
    width: 100%;
    height: auto;
}

.logos-container > div {
    max-width: 300px;
    text-align: center;
}

.list-white-links {
    border-top: 2px solid #ffffff;
    font-size: 1.25rem;
}


/* Menus */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu a::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 7px;
    top: 0.9rem;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
    margin-right: 0;
}

.accordion > .card, .accordion > .card:not(:last-of-type) {
    border: 0;
    border-bottom: 6px solid #ffffff;
}

.accordion h2 {
    padding: 0;
}

.accordion h2 > .btn:focus {
    box-shadow: none;
}

.accordion .card-header {
    background-color: #eeeeee;
    padding: 0;
    border-bottom: 0;
}

.accordion .card-header .btn {
    color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    padding: 1rem;
    text-align: left;
    text-decoration: none;
}

.accordion .card-header .btn:hover, .accordion .card-header .btn:focus {
    color: #000000;
}

.accordion .card-body {
    text-align: justify;
}

/* Accordion open indicator */

.accordion .btn.btn-link:after {
    content: "";
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    float: right;
    margin-right: auto;
    border-width: 0.125rem;
    border-color: transparent rgba(0, 0, 0, 0.7) rgba(0, 0, 0, 0.7) transparent;
    border-style: solid;
    transform: rotate(225deg);
    transition: transform 0.5s;
}

.accordion .btn.btn-link.collapsed:after {
    transform: rotate(45deg);
    transition: transform 0.5s;
}

#vendor-modules-list .list-group-item:last-of-type,
#erp-systems-list .list-group-item:last-of-type {
    border-bottom-width: 1px;
}

#vendor-modules-list .list-group-item.list-group-item-action,
#erp-systems-list .list-group-item.list-group-item-action {
    padding: 0.75rem 1.25rem;
    color: rgb(73, 80, 87);
}

.link-cards-container a:hover {
    text-decoration: none;
    background-color: #fafafa;
}

/* Video player container */

.video-player-container {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-previews .card:hover {
    cursor: pointer;
}

/* Search box on error pages */

.error-search-container .searchBox {
    width: 100%;
    max-width: 500px;
    border: 2px solid #2b3f82 !important;
}

.error-search-container .searchButton {
    border: 2px solid #2b3f82 !important;
}

/* Partner Offer page */

.partners-plus {
    width: 100px;
    min-height: 50px;
}

.partners-plus div {
    background-color: #2b3f82;
    position: relative;
    height: 100%;
}

.partners-plus div:first-of-type {
    height: 4px;
    width: 40px;
    position: absolute;
    top: calc(50% - 2px);
    left: calc(50% - 20px);
}

.partners-plus div:last-of-type {
    height: 40px;
    width: 4px;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 2px);
}

.vertical-separator {
    display: inline-block;
    width: 2px;
    height: 3rem;
    margin: 0 1.5rem;
    background-color: #333333;
}

.partnership-logo {
    max-height: 3rem;
    width: auto;
}

.partnership-bg-pattern {
    background-image: url('../Images/Others/bg-pattern.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.partnership-bg-pattern .partnership-bg-banner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
}

.partner-img-ratio {
    display: flex;
    align-items: center;
    justify-items: center;
    aspect-ratio: 2 / 1;
    max-width: 100%;
}

.partner-img-ratio img {
    max-width: 100%;
    margin: 0 auto;
}

/* Vendor list */

.vendor-list a, .vendor-list p {
    text-align: center;
    display: block;
    background-color: #f2f2f2;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    color: #000000;
}

/* Border hover effect */

.border-effect-box {
    border: 2px solid rgba(0, 0, 0, 0.125);
    border-radius: 0;
    position: relative;
    transition: border-color 0.4s;
}

.border-effect-box:before, .border-effect-box:after,
.border-effect-box-inner:before, .border-effect-box-inner:after {
    position: absolute;
    content: "";
    background: #2b3f82;
}

.border-effect-box:before {
    width: 0;
    height: 2px;
    top: -2px;
    left: -2px;
    transition: width 0.1s ease 0.3s;
}

.border-effect-box:after {
    width: 2px;
    height: 0;
    top: -2px;
    right: -2px;
    transition: height 0.1s ease 0.2s;
}

.border-effect-box:hover:before {
    width: calc(100% + 4px);
    transition: width 0.1s ease;
}

.border-effect-box:hover:after {
    height: calc(100% + 4px);
    transition: height 0.1s ease 0.1s;
}

.border-effect-box-inner:before {
    width: 0;
    height: 2px;
    bottom: -2px;
    right: -2px;
    transition: width 0.1s ease 0.1s;
}

.border-effect-box-inner:after {
    width: 2px;
    height: 0;
    bottom: -2px;
    left: -2px;
    transition: height 0.1s ease;
}

.border-effect-box:hover .border-effect-box-inner:before {
    width: calc(100% + 4px);
    transition: width 0.1s ease 0.2s;
}

.border-effect-box:hover .border-effect-box-inner:after {
    height: calc(100% + 4px);
    transition: height 0.1s ease 0.3s;
}

.max-w-600 {
    max-width: 600px;
}

.min-h-500 {
    min-height: 500px;
}


/* Responsiveness */
@media only screen and (min-width: 768px) {
    .space-line {
        margin: 1rem 0 3rem;
    }

    .support-img {
        margin: 2rem;
    }
}

@media only screen and (min-width: 1024px) {

    .display-title {
        font-size: 3.5rem;
    }
}
