/* -- Set fonts to Open Sans -- */
body, html, code {
    font-family: "Open Sans", "Arial", sans-serif;
}

header.top section.actions input.search::placeholder {
    font-family: "Open Sans", Arial, sans-serif;
}

div.magazine-inner select, div.magazine-inner input::placeholder {
    font-family: "Open Sans", Arial, sans-serif;
}

div.magazines select:invalid {
    font-family: "Open Sans", Arial, sans-serif;
}


/* -- Set slightly different colors -- */
:root {
    --c1: #006e64;
    --main-color: #006e64;
    --light-main-color: #e2f7ef;
    --date-color: #006e64;

    --support-color: #66dcae;
    --light-support-color: #e2f7ef;
    --support-color-grey: #e4e6e7;

    --content-type-color: #006e64;
}


/* -- Main menu -- */
section.main-menu nav a:last-child {
    filter: grayscale(1);
    font-weight: 500;
}

section.main-menu nav a.active:last-child, section.main-menu nav a:last-child:hover {
    filter: none;
}

/* -- Home page -- */
header.home-poa {
    background-color: var(--support-color-grey);
}

header.home-poa h1 {
    margin-top: 30px;
    margin-left: 30px;
    margin-bottom: 30px;
    line-height: 150%;
    grid-column: 1 / 3;
}

header.home-poa h2 {
    font-weight: bold;
}

header.home-poa div.home-right b, header.home-poa div.home-right a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: bold;
}

header.home-poa span.green {
    color: var(--main-color);
    font-weight: bold;
    font-size: 3rem;
}

header.home-poa span.grey {
    color: #3c4751;
    font-weight: 300;
    font-size: 3rem;
    letter-spacing: 5px;
}

header.home-poa div.home-left {
    padding-left: 20px;
}

div.home-right div.button-grid {
    display: grid;
    grid-template-columns: 22% 22% 22% 34%;
    margin-bottom: 20px;
}

div.home-right div.button-grid span.icon-webinar-circle {
    margin-right: 31%;
}

div.home-right div.button-grid a:last-child span.title {
    text-align: left;
}

div.home-right [class^="icon-"],
div.home-right [class*=" icon-"] {
    width: 40px;
    height: 40px;
}

div.home-right div.button-grid a {
    text-align: center;
}

div.home-right div.button-grid a:hover {
    text-decoration: none;
}

div.home-right h2 {
    padding: 20px;
}

div.home-right p {
    padding: 20px;
    color: var(--main-color);
    margin-top: 0;
}

div.home-right video {
    width: 100%;
    height: auto;
}

div.home-right span.title {
    display: block;
    font-size: 0.9rem;
    color: black;
    margin-top: 10px;
}

div.home-right div.button-grid {
    display: grid;
    grid-template-columns: 22% 22% 22% 34%;
    margin-bottom: 20px;
}

div.home-right div.button-grid span.icon-webinar-circle {
    margin-right: 31%;
}

div.home-right div.button-grid a:last-child span.title {
    text-align: left;
}

div.home-right [class^="icon-"],
div.home-right [class*=" icon-"] {
    width: 40px;
    height: 40px;
}

div.home-right div.button-grid a {
    text-align: center;
    font-weight: normal;
}

div.home-right div.button-grid a:hover {
    text-decoration: none;
}

div.home-right span.title {
    display: block;
    font-size: 0.8rem;
    color: black;
    margin-top: 10px;
}

/* -- Footer -- */
footer a.circle {
    background-color: var(--support-color);
}

footer.boxed div.icons {
    position: relative;
}

footer.boxed a.logo img {
    position: relative;
    top: -5px;
    max-width: 120px;
    margin-bottom: 20px;
}

/* -- Sponsors footer -- */

/* This is a quick fix */
section.podcast-footer-grid div.podcast-grid-wrapper {
    grid-template-columns: 33% 33% 33%;
}

/* -- Account -- */
div.no-account-yet ul {
    list-style-image: url('../images/icons/check.png');
}

form.account div.poa-kmbp {
    display: none;
}

form.account input#id_big_number {
    display: none;
    margin-top: 5px;
    margin-bottom: 20px;
}

form.account table.my-account-profile input#id_big_number {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
}

header.top section.actions span.my-account.has-menu:hover span[class^="icon-"] {
    background-image: url(../images/icons/user-logged-in-purple.svg);
}


/* -- Icons -- */
span.icon-account {
    background-image: url(../images/icons/account.svg);
}

span.icon-login {
  background-image: url(../images/icons/user-logged-out-white.svg);
}

span.icon-logout {
    background-image: url(../images/icons/user-logged-in-white.svg);
}

span.icon-logged-in-hover {
    background-image: url(../images/icons/user-logged-in-purple.svg);
}

span.icon-article {
    background-image: url(../images/icons/article.svg);
}

span.icon-calendar {
    background-image: url(../images/icons/calendar.svg);
}

span.icon-info {
    background-image: url(../images/icons/info.svg);
}

span.icon-magazine {
    background-image: url(../images/icons/magazine.svg);
}

span.icon-menu {
    background-image: url(../images/icons/menu.svg);
}

span.icon-podcast {
    background-image: url(../images/icons/podcast.svg);
}

span.icon-search {
    background-image: url(../images/icons/search.svg);
}

span.icon-video {
    background-image: url(../images/icons/video.svg);
}

span.icon-waypoint {
    background-image: url(../images/icons/waypoint.svg);
}

span.icon-webinar-circle {
    background-image: url(../images/icons/webinar-circle.svg);
}

header.top section.actions form input[type=submit],
section.agenda-overview input[type=submit] {
    background-image: url(../images/icons/search.svg);
}

@media(max-width: 900px) {
    header.home-poa h1 {
        grid-column: auto;
    }

    header.home-poa span.green, header.home-poa span.grey {
        font-size: 2.5rem;
    }
}

@media(max-width: 850px) {
    header.top a.logo img.big {
        display: block;
    }

    header.top a.logo img.small {
        display: none;
    }
}

@media(max-width: 800px) {
    header.home-poa span.green, header.home-poa span.grey {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}


@media(max-width: 700px) {
    header.home-poa span.green, header.home-poa span.grey {
        font-size: 1.8rem;
    }
}

@media(max-width: 650px) {
    header.top a.logo img.big {
        display: none;
    }

    header.top a.logo img.small {
        display: block;
        max-height: 60px;
        width: auto;
    }
}
