/*
======
GENERAL
======
*/

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

a {
    color: #000;
    text-decoration: none;
    transition: all 500ms ease;
}

button:focus,
input:focus,
select:focus {
    outline: none;
}

button,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type=text],
input[type=password] {
    box-sizing: border-box;
}

button {
    cursor: pointer;
}

input {
    outline: none;
}

img {
    max-width: 100%;
}

.padding-top-bottom {
    padding: 130px 0;
}

.wrapped-content {
    width: 40%;
    max-width: 400px;
    margin: 0 auto;
}

.right-side-background {
    background-image: url(../images/right-side-background.svg);
    background-repeat: no-repeat;
    background-position: right;
}

.red {
    color: #d53629;
}

.gray-bkg {
    background-color: #f2f2f2;
}

.center {
    text-align: center;
}

.overlay {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/*
======
MAIN HEADER
======
*/

.header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.header .logo img {
    width: 60px;
    margin-left: 60px;
    cursor: pointer;
}

.header nav {
    flex: 1;
    text-align: right;
    align-self: flex-start;
    margin-top: 25px;
}

.header nav a {
    font-size: 16px;
    padding: 0 25px;
}

/*
======
MOBILE MENU
======
*/

.header .mobile-menu {
    display: none;
}

.hamburger {
    padding: 15px 15px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger.is-active:hover {
    opacity: 0.7;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #d53629;
}

.hamburger-box {
    width: 40px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #d53629;
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

.hamburger--spin .hamburger-inner {
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin .hamburger-inner::before {
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner::after {
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--spin.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger--spin.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/*
======
MAIN PAGE
======
*/

main {
    text-align: center;
}

.brand-section {
    padding: 100px 0;
    background-image: url(../images/background-main.svg);
    background-repeat: no-repeat;
    background-size: 115%;
    background-position: -125px 50px;
}

.brand-section .search {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.brand-section .search .input-container {
    position: relative;
}

.brand-section .search .input-container input {
    background-image: url(../images/magnifying-glass.svg);
    background-repeat: no-repeat;
    background-position: right 10px top 10px;
    background-size: 20px;
    box-shadow: 0px 1px 20px 10px rgba(0, 0, 0, .2);
    width: 100%;
    padding: 10px 10px 10px 15px;
    border-radius: 25px;
    border: none;
}

.brand-section .search .input-container::after {
    content: '';
    width: 3px;
    height: 40px;
    position: absolute;
    right: 40px;
    top: 0;
    background-color: #ededed;
}


.brand-section .search .input-container input::placeholder {
    opacity: 0.4;
}

.brand-section .brand-tags {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.brand-section .brand-tags .tag {
    display: inline-block;
    color: #d53629;
    font-weight: 500;
    background-color: white;
    border-radius: 25px;
    padding: 10px 35px 10px 15px;
    margin-right: 5px;
    position: relative;
}

.brand-section .brand-tags .tag .close-container {
    position: absolute;
    right: 6px;
    top: 10px;
    width: 16px;
    height: 16px;
}

.brand-section .brand-tags .tag .close {
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #d53629;
    border-radius: 50%;
}

.brand-section .brand-tags .tag .close::after,
.brand-section .brand-tags .tag .close::before {
    position: absolute;
    top: 7px;
    left: 3px;
    width: 10px;
    height: 1px;
    content: "";
    background-color: #eef5df;
}

.brand-section .brand-tags .tag .close::after {
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.brand-section .brand-tags .tag .close::before {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.brand-section .brand-picker {
    padding-top: 50px;
    padding-bottom: 20px;
}

.brand-section .brand-picker h2 {
    font-size: 23.49px;
    font-weight: 700;
    padding: 0 20px;
    line-height: 1.4;
    color: #000;
}

.brand-section .brand-picker .select-container {
    display: flex;
    width: 80%;
    margin: 0 auto 50px auto;
    max-width: 900px;
}

.brand-section .brand-picker .select-container .select {
    width: 33.33%;
    padding: 0 0px;
}

.brand-section .brand-picker .select-container .select h3 {
    color: #000;
}

.brand-section .brand-picker .select-container .select select {
    background-color: white;
    background-image: url('../images/arrow-down.png');
    background-repeat: no-repeat;
    background-position: right 7px top 5px;
    background-size: 20px;
    box-shadow: 0px 1px 20px 10px rgba(0, 0, 0, .2);
    color: #d53629;
    border-radius: 25px;
    padding: 5px 20px 5px 15px;
    border: none;
    width: 100%;
    max-width: 200px;
    cursor: pointer;
}

.brand-section .brand-picker .selected-brand {
    width: 40%;
    margin: 20px auto;
    max-width: 500px;
    display: flex;
}

.brand-section .brand-picker .selected-brand .logo {
    flex: 1;
    justify-content: center;
    align-items: center;
}

.brand-section .brand-picker .selected-brand .logo img {
    width: 150px;
    margin-top: 50px;
}

.brand-section .brand-picker .selected-brand .social {
    flex: 1;
    color: #000;
}

.brand-section .brand-picker .selected-brand .social .icons {
    margin: 20px 0;
}

.brand-section .brand-picker .selected-brand .social .icons img {
    width: 40px;
}

.brand-section .brand-picker .selected-brand .social .mail {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-section .brand-picker .selected-brand .social .mail img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.updates-section {
    padding: 40px 0;
}

.updates-section header {
    margin-bottom: 40px;
}

.updates-section header button {
    color: #d53629;
    padding: 8px;
    border: none;
    background-color: transparent;
}

.updates-section header button.active {
    color: white;
    background-color: #d53629;
    border-radius: 20px;
}

.updates-section > .updates {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: 0 5%;
}

.updates-section .updates .item {
    width: calc(25% - 20px);
    padding: 10px;
    margin: 0;
}

.updates-section .updates .item .content {
    border: 2px solid #ededed;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.updates-section .updates .item .img-container {
    height: 200px;
    background-color: #ededed;
    border: 1px solid #ededed;
    border-radius: 6px;
    flex-grow: 0;
    overflow: hidden;
}

.updates-section .updates .item .img-container img {
    object-fit: fill;
    height: 100%;
}

.updates-section .updates .item .title-container {
    flex-grow: 1;
    padding: 0 20px;
}

.updates-section .updates .item .title {
    background-color: #d53629;
    color: white;
    padding: 8px;
    letter-spacing: 1px;
    display: inline-block;
    line-height: 1.4;
    flex-grow: 1;
}

.updates-section .updates .item .description {
    color: #7f7f7f;
    font-size: 10.96px;
    margin: 10px auto;
    padding: 0 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.updates-section .updates .item .icons-container {
    display: flex;
    flex-grow: 0;
    padding: 0 20px;
}

.updates-section .updates .item .icons-container .icon {
    width: 33.33%;
    padding: 0 10px;
    flex: 1;
}

.updates-section .updates .item .icons-container .icon p {
    font-size: 12px;
    color: #7f7f7f;
}

.updates-section .updates .item .icons-container .icon img.inactive {
    display: none;
}

.updates-section .updates .item .icons-container .icon img {
    width: 30px;
}

.updates-section .updates .item .status {
    color: #d53629;
    font-weight: 700;
    flex-grow: 0;
}

.updates-section .updates .item.inactive {
    opacity: 0.4;
}

.updates-section .updates .item.inactive .img-container a {
    pointer-events: none;
}

.updates-section .updates .item.inactive .img-container img {
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
}

.updates-section .updates .item.inactive .title {
    background-color: #7f7f7f;
}

.updates-section .updates .item.inactive .status {
    color: #7f7f7f;
}

.updates-section .updates .item.inactive .icons-container .icon img {
    display: none;
}

.updates-section .updates .item.inactive .icons-container .icon img.inactive {
    display: inline-block;
}

/*
======
OVERLAY
======
*/
.overlay .pop-up {
    background-color: white;
    border-radius: 25px;
    padding: 20px;
    position: relative;
}

.overlay .pop-up .close-button {
    cursor: pointer;
    position: absolute;
    right: 32px;
    top: 32px;
    width: 32px;
    height: 32px;
    opacity: 0.3;
    transition: all 500ms ease;
}

.overlay .pop-up .close-button:hover {
    opacity: 1;
}

.overlay .pop-up .close-button::after,
.overlay .pop-up .close-button::before {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #333;
}

.overlay .pop-up .close-button::after {
    transform: rotate(-45deg);
}

.overlay .pop-up .close-button::before {
    transform: rotate(45deg);
}

.overlay .pop-up img {
    max-height: 90vh;
    cursor: pointer;
}

/*
======
FORMS
======
*/

.form-container {
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 20px 20px;
    background-color: #f4f4f4;
    border-radius: 25px;
    text-align: left;
    box-shadow: 0 -8px #d53629;
    padding-bottom: 5px;
}

.form-container h2 {
    font-size: 18px;
    color: #4d4d4f;
    margin: 0;
    font-weight: 500;
}

.form-container p {
    font-size: 14px;
    color: #4d4d4f;
    margin: 10px 0;
}

.form-container form {
    margin: 30px 0;
}

.form-container .form-element {
    margin-bottom: 20px;
}

.form-container .form-element.centered {
    text-align: center;
}

.form-container .form-element.checkbox {
    display: flex;
    align-items: center;
}

.form-container .form-element.checkbox input {
    order: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    background-color: white;
}

.form-container .form-element.checkbox label {
    order: 2;
    margin-left: 12px;
}

.form-container .form-element label {
    display: block;
    color: #2d2d2d;
}

.form-container input {
    display: block;
    width: 100%;
    border: none;
    margin: 15px 0;
    height: 35px;
    padding: 0 10px;
}

.form-container input::placeholder {
    font-size: 14px;
}

.form-container form .button {
    color: white;
    background-color: #d53629;
    border-radius: 20px;
    padding: 10px 30px;
    border-radius: 15px;
    border: none;
    margin: 20px 0;
}

.error-container .error p {
    color: #d53629;
    font-weight: 700;
}

.success-message {
    padding: 20px 0;
    text-align: left;
}

.success-message img {
    width: 20px;
    vertical-align: bottom;
}

.success-message p {
    display: inline-block;
    color: #d53629;
    margin: 0;
}

/*
======
FOOTER
======
*/

footer {
    height: 25px;
    background-color: #d53629;
}

/*
======
TABLET
======
*/
@media (max-width: 991px) {
    .header .logo img {
        margin-left: 30px;
    }

    .header nav a {
        padding:  0 10px;
    }

    .wrapped-content {
        width: calc(60% - 40px);
    }

    .updates-section > .updates {
        flex-wrap: wrap;
    }

    .updates-section .updates .item {
        width: calc(50% - 40px);
        display: inline-block;
    }

    .updates-section .updates .item .title {
        max-width: 80%;
    }
}

/*
======
MOBILE
======
*/
@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }

    .main-container.mobile-flex {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .main-container.mobile-flex main {
        display: flex;
        flex: 1;
        align-items: center;
    }

    .padding-top-bottom {
        padding: 40px 0;
    }

    .wrapped-content {
        width: calc(100% - 40px);
    }

    .right-side-background {
        background-image: none;
    }

    .overlay .pop-up {
        width: calc(100% - 40px);
        margin: 0 20px;
        padding: 0;
    }

    .header {
        padding: 10px;
    }

    .header .logo img {
        margin-top: 10px;
        width: 60px;
    }

    .header .mobile-menu {
        display: block;
        flex: 1;
        text-align: right;
    }

    nav {
        display: none;
        background-color: #d53629;
        padding: 20px;
    }

    nav a {
        display: inline-block;
        width: 80%;
        color: #f7f7f7;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    nav a:last-of-type {
        border: none;
    }

    nav a .mobile-white {
        color: #f7f7f7;
    }

    .brand-section {
        padding: 35px 20px;
        background-image: none;
    }

    .brand-section .seach {
        max-width: 100%;
    }

    .brand-section .search .input-container::after {
        right: 50px;
    }

    .brand-section .brand-tags .tag {
        padding: 8px 30px 8px 10px;
    }

    .brand-section .brand-tags .tag::after {
        top: 8px;
    }

    .brand-section .search .input-container input {
        width: calc(100% - 20px);
    }

    .brand-section .search .input-container input::placeholder {
        font-size: 14px;
    }

    .brand-section .brand-picker {
        padding: 30px 0 0 0;
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        margin: 40px auto 0 auto;
    }

    .brand-section .brand-picker h2 {
        display: none;
    }

    .brand-section .brand-picker .select-container {
        width: 220px;
        margin: 0 auto;
        display: block;
    }

    .brand-section .brand-picker .select-container .select {
        width: 100%;
        position: relative;
    }

    .brand-section .brand-picker .select-container .select::after {
        position: absolute;
        right: 10px;
        bottom: 10px;
        left: initial;
    }

    .brand-section .brand-picker .select-container .select h3 {
        margin: 10px 0;
    }

    .brand-section .brand-picker .select-container .select select {
        width: 100%;
    }

    .brand-section .brand-picker .selected-brand {
        width: 100%;
        display: block;
    }

    .brand-section .brand-picker .selected-brand .logo img {
        margin-top: 25px;
        width: 80px;
    }

    .brand-section .brand-picker .selected-brand .social {
        padding: 10px;
        font-size: 12px;
    }

    .brand-section .brand-picker .selected-brand .social .icons {
        margin: 10px 0;
    }

    .updates-section {
        padding: 30px 20px;
    }

    .updates-section header button {
        font-size: 11px;
    }

    .updates-section > .updates {
        display: block;
        width: 100%;
        margin: 0;
    }

    .updates-section .updates .item {
        width: 100%;
        max-width: 360px;
        padding: 0;
        margin-bottom: 20px;
    }

    .updates-section .updates .item .img-container {
        height: 200px;
    }

    .updates-section .updates .item .title {
        max-width: 100%;
    }

    .success-message p {
        vertical-align: inherit;
        font-size: 14px;
        margin-left: 15px;
        width: calc(100% - 40px);
    }
}


.invalid-feedback {
    color: red;
}
