@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --font: "Ubuntu",  sans-serif;
    --font-size: 16px;
    --textcolor: #313131;
    --white: #ffffff;
    --background: #ffffff;
    --fontHeaders: "Ubuntu",  sans-serif;
    --headers: #EC2127;
    --MenuTextColor: #313131;
    --MenuTextColorHover: #313131;
    --topbar: #ffffff;
    --topbariconen: #313131;
    --topbariconen-hover: #008AB7;
    --logo: url(images/logo.svg);
    --banner: transparent;
    --bannerOpacity: 0.0;
    --bannertext: #ffffff;
    --enrollments: #81A6AB70;
    --enrollmentsOpacity: 0.7;
    --grey: #EEF1F4;
    --primary: #81A6AB;
    --secondary: #EC2127;
    --tertiary: #223A3C;
    --quaternary: #008AB7;
    --link: #008AB7;
    --linkhover: #006F9C;
    --button: #008AB7;
    --buttonhover: #006F9C;
    --buttonText: #fff;
    --buttonTextHover: #fff;
    --tableHeaderText: #223A3C;
    --tableheaders: #EEF1F4;
    --bordercolor: #CED1D4;
    --lightgrey: #F0F3F6;
    --borderradius: 4px;

    --popup-width:500px;
}

html {
    overflow-y: scroll; /*Make vertical scrollbar always visible, makes for a smoother transition between Eduko and search page*/
}

html, body {
    color: var(--textcolor);
    font-family: var(--font);
    font-size: var(--font-size);
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0px;
    overflow-x: hidden;
}

h1:focus {
    outline: none;
}

ul > li {
    list-style-type: none
}

ul {
    padding: 0px;
}


button {
    border: none;
}

.button {
    background: var(--button);
    border: 0 !important;
    border-radius: var(--borderradius);
    box-shadow: none;
    box-sizing: border-box;
    color: var(--buttonText) !important;
    cursor: pointer;
    display: inline-block;
    font-weight: 400 !important;
    height: 48px;
    letter-spacing: 0;
    line-height: 48px;
    outline: none !important;
    padding: 0 24px;
    padding-bottom: 0;
    padding-top: 1px;
    text-align: center;
    text-decoration: none !important;
    text-shadow: none;
    text-transform: inherit;
}

    .button:hover {
        background: var(--buttonhover);
        color: var(--buttonTextHover);
    }

a.link, a.link:active, a.link:visited {
    box-sizing: border-box;
    color: var(--link);
    cursor: pointer;
    font-size: 1em;
    line-height: 24px;
    list-style: disc;
    outline: none;
    text-align: -webkit-match-parent;
    text-decoration: none;
}

    a.link:hover {
        color: var(--linkhover);
    }

h2 {
    box-sizing: border-box;
    color: var(--headers);
    display: block;
    font-family: var(--fontHeaders);
    font-size: 35px !important;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 32px;
    margin: 0 0 20px 0;
    text-align: left;
    text-shadow: none;
    text-transform: initial;
    word-wrap: break-word;
}

input, select {
    background: #fff;
    border: 1px solid transparent;
    border-color: var(--bordercolor);
    border-radius: var(--borderradius);
    box-shadow: none;
    box-sizing: border-box;
    color: var(--textcolor);
    font-family: var(--font);
    font-size: var(--font-size);
    font-weight: normal;
    height: 48px;
    line-height: 48px;
    margin: 0 1px 0 0;
    padding: 0px 12px;
}

    input[type="date"] {
        padding-right: 0; /* For calendar icon */
    }

        input[type="date"]::-webkit-calendar-picker-indicator { /* For calendar icon */
            color: rgba(0, 0, 0, 0);
            opacity: 1;
            display: block;
            background: url("../src/font-awesome-calendar-icon-f073.png") no-repeat;
            width: 20px;
            height: 20px;
            border-width: thin;
            margin-top: 6px;
        }

option {
    display: block;
    font-weight: normal;
    line-height: 48px;
    min-height: 1.2em;
    padding: 0px 2px 1px;
    white-space: nowrap;
}

img {
    width: 93px;
    height: 120px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWd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Dg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.hidden {
    display: none !important;
}

.accessible-hidden {
    left: -10000px;
    top: -10000px;
    position: absolute;
    width: 0;
}

.session-full {
    color: red;
}

.clickable {
    cursor: pointer;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.index-logo {
    max-width: 250px;
}

div.header {
    align-items: center;
    background: url(../src/header.jpg) bottom no-repeat;
    background-position-y: 10%;
    background-size: cover;
    content: "";
    display: block;
    height: 320px;
    justify-content: center;
    left: 50%;
    max-width: 1600px;
    position: absolute;
    top: 148px;
    transform: translateX(-50%);
    width: 100%;
    z-index: -1;
}

.logo-container, .search, .search-results {
    background: #FFF
}

.logo-container {
    max-width: 1280px;
    width: 100%;
}

.main-content {
    align-items: center;
    justify-content: center;
}

    .main-content > div {
        width: 100%;
        max-width: 1280px;
    }

.search {
    padding: 30px 24px 0;
    width: 100%;
    gap: 30px;
}

.search-options {
    background: var(--lightgrey);
    border: 1px solid transparent;
    border-color: var(--bordercolor);
    border-top: solid 30px var(--button);
    padding: 16px;
    gap:16px;
}

.search-options-criteria {
    align-items: start;
    background: var(--lightgrey);
    justify-content: start;
    gap:16px;
}

.criteria {
    width: 195px;
}

.criteria.subject {
    width: 100%;
    max-width: 354px;
}

    .criteria > * {
        width: 100%;
    }

.criteria > label {
    display: block;
    float: none;
    font-size: 1em;
    line-height: 2;
    margin: 0 0 2px 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.need-help > a {
    text-decoration: none;
    color: rgb(49, 49, 49);
}

.need-help img {
    width: 25px;
    height: 25px;
}

/*Responsive search criteria header*/

@media (max-width: 900px) {
    .criteria.startdate, 
    .criteria.enddate {
        width: calc(25% - 8px); 
        max-width: 195px;
    }
    
    .criteria.distance{
        width: 185px; 
        max-width: 195px;
    }

    .criteria.zipcode{
        width: 75px;
    }

    .criteria.subject {
        width: calc(45% - 8px); 
    }

    .search-options-criteria {
        display: flex;
        flex-wrap: wrap;
        align-items: start;
        background: var(--lightgrey);
        justify-content: start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .criteria.zipcode,
    .criteria.distance, 
    .criteria.startdate, 
    .criteria.enddate {
        width: calc(50% - 8px); 
        max-width: 195px;
    }

    .criteria.subject {
        width: 100%;
    }
}



.searchresults {
    gap: 30px;
}

.searchresults-info {
    align-items: center;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: 100%;
}

.searchresults-results {
    justify-content: space-between;
    gap: 10px;
}

.searchresults-results-filters {
    width: 20%;
}

@media (max-width: 768px) {
    .searchresults-results-filters {
        width: 100% !important;
    }

    .searchresults-results-grid {
        display: flex; 
        width: 100%;
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .show-filters-button {
        display: none;
    }

    .offcanvas-md .offcanvas-header {
        display: flex !important;
    }

    .offcanvas-md .offcanvas-body {
        display: block !important;
    }

    .searchresults-results-grid {
        display: flex;
        width: 80%;
        flex-direction: column;
    }
}

.searchresults-results-filters-title {
    height: 35px;
    background: var(--tableheaders);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 5px;
    text-transform: uppercase;
}

.searchresults-results-filters-lists {
    padding: 5px;
}

.filter-name{
    font-weight:600;
}

.searchresults-results-grid-header {
    background: var(--tableheaders);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    text-transform: uppercase;
}
.searchresults-item {
   
    flex-direction: column;
    display: flex;
}

.searchresults-item .imagecontainer {
    width: 8%
}

.searchresults-item .details {
    width: 78%;
}

.searchresults-item .details .zipcode {
    flex-grow: 1;
    margin: 0 0 0 10px;
}

.searchresults-item .details .startdate {
    min-width: 105px;
    width: 15%;
}

.searchresults-item .details .spots {
    min-width: 100px;
    width: 25%;
}

.searchresults-item .buttons {
    min-width: 125px;
}

/*Hide "Beschikbare plaatsen" and make the button smaller*/
/*Stack results and sort order picker vertically*/
@media (max-width: 500px) {
    .searchresults-item .details .spots {
        display: none;
    }

    .searchresults-item .buttons .button {
        padding: 2px;
    }

    .searchresults-item .buttons {
        min-width: 81px;
    }

    .searchresults-info {
        align-items: center;
        display: grid;
        grid-template-columns: 100%;
        justify-content: space-between;
        width: 100%;
    }
}


.searchresults-results-grid-results {
    padding: 2px 0 0 10px;
    width: 100%;
    border-bottom: 1px solid var(--bordercolor);
}

    .searchresults-results-grid-results:hover {
        background: var(--lightgrey);
        transition: background 0.3s;
    }
    .searchresults-results-grid-results .imagecontainer {
        padding-left: 20px;
    }

        .searchresults-results-grid-results .imagecontainer img {
            width: 50px;
            height: 50px;
            display: inline-block;
            overflow: hidden;
        }
    .searchresults-results-grid-results .buttons button:disabled {
        color: var(--textcolor);
        background: var(--primary);
        cursor: not-allowed;
    }

.filter-item {
    justify-content: space-between;
    align-items: center;
    width: 95%;
}

.filter-item-name {
    align-items: center;
}

    .filter-item-name input {
        margin-right: 10px;
        height: 24px;
    }

    
.catalog-container {
    border: 1px solid transparent;
    border-color: var(--bordercolor);
    box-sizing: border-box;
    display: block;
    line-height: 1.5;
    margin: 10px auto;
    max-width: 800px;
    padding: 30px 10px 20px 10px;
    text-align: left;
    width: 100%;
}

.catalog-container div {
    display: table;
    min-height: 24px
}

.catalog-picture img {
    aspect-ratio: auto 150 / 150;
    border: 0;
    box-sizing: border-box;
    font-weight: bold;
    height: 150px;
    line-height: 1.5;
    max-height: 1024px;
    max-width: 1024px;
    outline: none;
    overflow: clip;
    overflow-clip-margin: content-box;
    text-align: right;
    width: 150px;
}

.catalog-info {
    box-sizing: border-box;
    display: block;
    line-height: 1.5;
    text-align: left;
    width: 100%;
    margin: 0 0 15px 0;
}

.catalog-left {
    float: left;
    font-weight: bold;
    padding: 0;
    text-align: right;
    width: 180px;
}

.catalog-right, .catalog-clear {
    margin: 0 20px 0 190px;
}

.break-word {
    word-break: break-all;
}

ul.instructors {
    min-height: 24px;
    margin: 0 0 10px 0;
}

/*Center align the catalog info on smaller screens*/
@media (max-width: 800px) {
    .catalog-left {
        float: left;
        font-weight: bold;
        text-align: right;
        width: calc(50% - 10px);
        padding: 0 5px 0 0;
        margin: 0;
    }

    .catalog-right, .catalog-clear {
        float: right;
        text-align: left;
        width: calc(50% - 10px);
        padding: 0 0 0 5px;
        margin: 0;
    }
    
    .catalog-row {
        width: 100%;
        display: flex !important;
        justify-content: space-around;
    }
    
    .catalog-container {
        border: 0px solid transparent;
        border-color: var(--bordercolor);
        box-sizing: border-box;
        display: block;
        line-height: 1.5;
        margin: 10px auto;
        padding: 30px 0 20px 0;
        text-align: left;
        width: 100%;
    }
    
    .catalog-info  {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        margin: 0 0 15px 0;
    }

    .catalog-info .catalog-left {
        display: none;
    }

    .catalog-info .catalog-right {
        width: 75%;
        margin: 0;
        padding: 10px;
    }

    .catalog-info .catalog-right div{
        text-align: center;
        display: block;
    }

    .catalog-info .catalog-right h1 {
        text-align: center;
    }
}


.catalog-title {
    box-sizing: border-box;
    display: block;
    font-size: 1.538em;
    line-height: 28px;
}

.catalog-title h1 {
    box-sizing: border-box;
    color: var(--headers);
    display: block;
    font-family: var(--fontHeaders);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 32px;
    margin: 12px 0;
    margin-block-end: 0.67em;
    margin-block-start: 0.67em;
    margin-inline-end: 0px;
    margin-inline-start: 0px;
    text-align: left;
    text-shadow: none;
    text-transform: initial;
    word-wrap: break-word;
}

.catalog-vendor {
    box-sizing: border-box;
    display: block;
}

.catalog-description {
    box-sizing: border-box;
    display: block;
    padding-top: 5px;
}

div.popup-content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: var(--lightgrey);
    border-radius: var(--borderradius);
    width: 90%; 
    max-width: 600px; 
    min-width: 350px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    z-index: 11;
}

div.popup-back-drop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    opacity: 0.5;
    z-index: 10;
}

.subscribePopup {
    justify-content: space-evenly;
    padding: 0 5px 10px;
}

.subscribePopup-content {
    width: 45%;
    padding: 5px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    align-items: center;
    justify-content: space-evenly;
    background: white;
    border-radius: var(--borderradius);
    max-width: 250px;
    min-width: 150px;
    margin: 0 5px;
}

.popup-content-header {
    margin: 2px 0 10px 0;
}

.subscribePopup-content-description {
    text-align: center;
}

.searchresults-results-filters {
    max-width: 350px;
}