html, body {
   height: 100%;
   padding: 0;
   margin: 0;
   -webkit-text-size-adjust: 100%;
}

body {
   overflow-x: hidden;
   background-color: #f0f0f0;
   background-image: url(../images/background.jpg);
   background-size: cover;
   background-attachment: fixed;
}

body[class*="cke"] {
   background-image: none;
}

.DocumentEditor, .NewsEditor {
   background-color: #f0f0f0;
   padding: 10px;
}

body, td, th, input, select, button {
   font-family: "myriad-pro-1","myriad-pro-2", Corbel, sans-serif;
   font-size: 11pt;
   line-height: 17pt;
   color: #333;
}

input[type="text"], input[type="password"], textarea, div.fakefile {
   border: 1px dotted #ef7f1a;
   border-radius: 4px;
   padding: 2px;
   width: 100%;
   -webkit-appearance: none;
}

div.fakefile input {
   width: 100%;
   padding: none;
   border: none;
}

label {
   margin-top: 10px;
}

ul {
   padding-left: 20px;
}

input[type="text"]:focus, textarea:focus {
   border: 1px solid #ef7f1a;
   outline: none;
}

#wrapper {
   border: 10px solid #fff;
   min-height: 100%;
   box-sizing: border-box;
}

#container {
   height: auto !important;
   height: 100%;
   min-height: 100%;
   position: relative;
}

b, strong {
   font-weight: 600;
}

.tagcloud {
   font-family: "atrament-web-1","atrament-web-2";
   vertical-align: bottom;
   color: #009bda;
   margin: 10px;
   line-height: 24pt;

   background-image: url(../images/nhg-keur-zw.png);
   background-repeat: no-repeat;
   background-position: bottom right;
   background-size: 75px;

   display: flex;
   flex-wrap: wrap;
   align-items: baseline;
}

.tagcloud > div {
   display: inline-block;
   margin: 0;
   order: 2;
}

.tagcloud a {
   font-weight: 400;
   display: inline-block;
   margin-right: 20px;
   color: inherit;
}

.tagcloud .selected a {
   color: black;
}

.tag[tag="home"] {
    background-image: url('../images/home.svg');
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    position: relative;
    top: -5px;
    margin-right: 10px;
    order: 1;
}

.tag[tag="contact"] {
    order: 3;
}

.tag[tag="home"] a {
    color: transparent;
}

h1 {
   color: #ef7f1a;
   font-weight: 300;
   font-size: 22pt;
   line-height: 28pt;
   padding: 0;
   margin: 0px;
}

h2 {
   color: #70AB0F;
   font-size: 18pt;
   line-height: 22pt;
   font-weight: 300;
   border-bottom: 1px dashed #ef7f1a;
   padding-bottom: 10px;
   margin: 5px 0 10px 0;
}

h3, .document h1 {
   color: #009bda;
   font-size: 12pt;
   padding: 0;
   margin: 0px;
}

.document h1 {
   line-height: 14pt;
}

h1 + p, h2 + p, h3 + p {
   margin-top: 0;
}

p + h3 {
   margin-top: 1em;
}

p + ul {
   margin-top: -12px;
}

.date {
   text-align: right;
   font-style: italic;
   font-size: 10pt;
   position: relative;
   padding-right: 10px;
}

#circles {
   width: 900px;
   height: 300px;
   position: absolute;
   display: none;
   top: -500px;
   left: -10px;
   z-index: 1000;

   -webkit-transition-property: top;
   -webkit-transition-duration: 500ms;
   -webkit-transition-delay: 500ms;
   -moz-transition-property: top;
   -moz-transition-duration: 500ms;
   -moz-transition-delay: 500ms;
   transition-property: top;
   transition-duration: 500ms;
   transition-delay: 500ms;
}

#circles div {
   float: left;
   position: relative;
   width: 33%;
   height: 100%;
   top: -10px;
   left: 0;
}

.circle {
   display: block;
   width: 100%;
   height: 100%;
   position: absolute;
   top: 0;
   left: 0;
}

.second {
   left: -5%;
   z-index: 2;
}

.third {
   left: -10%;
}

.filled {
   -webkit-border-radius: 50%;
   -moz-border-radius: 50%;
   border-radius: 50%;

   opacity: 0.5;
   width: 101%;
   height: 101%;
   top: 3px;
   left: 3px;
}

.outline {
    background-color: transparent !important;
    border: 4px solid;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
 }

.blue {
   background-color: #009bda;
   border-color: #009bda;
}

.orange {
    background-color: #ef7f1a;
    border-color: #ef7f1a;
}

.green {
   background-color: #b0cb1f;
   border-color: #b0cb1f;
}

.news, #login, .tagcloud {
   -webkit-border-radius: 8px;
   -moz-border-radius: 8px;
   border-radius: 8px;

   border: 1px solid #ccc;

   -webkit-transform-origin: 0 0;
   -moz-transform-origin: 0 0;
   transform-origin: 0 0;

   background-color: #fff;
   padding: 10px;

   -webkit-column-break-inside: avoid;
   page-break-inside: avoid;
   break-inside: avoid-column;

   margin-bottom: 10px;
   position: relative;
   clear: both;
   box-sizing: border-box;
}

.news, #login {
   display: table;
   width: 100%;
}

#portal {
   width: calc(100% - 20px);
   height: 45px;
}

#portal.loaded {
   height: auto;
}

.tagcloud a[href*=collapsed] {
   display: none;
}

.news h2 {
   cursor: default;
}

.news[tags~="collapsed"] {
   cursor: pointer;
   padding-bottom: 20px;
}

.news[tags~="collapsed"]:hover:after {
   opacity: 1;
}

.news[tags~="collapsed"]:after {
   content: "lees meer ↓";
   position: absolute;
   bottom: 0;
   background: #009bda;
   width: 100px;
   left: calc(50% - 50px);
   z-index: 1;
   text-align: center;
   color: #fff;
   font-size: 10px;
   border-top-left-radius: 4px;
   border-top-right-radius: 4px;
   opacity: 0.5;
}

.expanded.news[tags~="collapsed"]:after {
   content: "inklappen ↑";
}

.news[tags~="collapsed"] > *,  .news[tags~="collapsed"] br {
   display: none;
}

.news[tags~="collapsed"] h3 {
   margin-top: 4px;
}

.news[tags~="collapsed"] h2, .news[tags~="collapsed"] h3, .edit.news[tags~="collapsed"] > *, .edit.news[tags~="collapsed"] br {
   display: block;
}

.expanded.news[tags~="collapsed"] > *,  .expanded.news[tags~="collapsed"] br {
   display: block;
}

.news[tags~="collapsed"] img.edit, .news[tags~="collapsed"] img.delete {
   float: right;
   position: relative;
   top: 10px;
}

.news .date {
   display: none !important;
}

.edit.news .date, [tag="nieuws"] .date {
   display: block !important;
   float: right;
   position: relative;
   top: 7px;
}

[tag="nieuws"] h2 {
   margin-top: 0;
}

iframe.map {
   width: 100% !important;
}

#wall {
   margin: 10px;

   -webkit-column-count: 3;
   -moz-column-count: 3;
   column-count: 3;
}

.news img {
   max-width: 100%;
   height: auto !important;
   margin: 0 auto;
   display: block;
}

.news img:hover {
    max-width: none;
    position: relative;
    z-index: 1;
}

img.edit, img.delete {
   float: left;
}

img.rond {
   float: right;
   width: 150px;
   border-radius: 50%;
}

/* iPad [portrait + landscape] */
@media only screen and (max-width: 1200px) {
   #wall {
      -webkit-column-count: 2;
      -moz-column-count: 2;
      column-count: 2;
   }
}

/* iPhone [portrait + landscape] */
@media only screen and (max-width: 700px) {
   #wrapper {
      border: 2px solid #fff;
   }

   #wall {
      -webkit-column-count: 1;
      -moz-column-count: 1;
      column-count: 1;
   }

   .tag {
      margin: 10px;
   }

   .news tr {
      display: block;
   }

   .news th {
      margin-top: 8px;
   }

   .news th:first-of-type {
      margin-top: 0;
   }

   .news th, .news td {
      display: block;
   }

   .news th p {
      margin: 0;
   }

   .tagcloud {
      margin: 5px !important;
   }

   #portal {
      width: calc(100% - 10px);
   }

   #circles {
      pointer-events: none;
   }
}

th {
   white-space: nowrap;
   color: #009bda;
   vertical-align: top;
   text-align: left;
}

iframe {
   -webkit-border-radius: 8px;
   -moz-border-radius: 8px;
   border-radius: 8px;
   padding: 0;
}

a {
   font-weight: 300;
   display: inline-block;
   color: #009bda;
   text-underline: none;
}

a:hover {
   text-decoration: underline;
}

.masoned, .masoned .news {
  -webkit-transition: all .7s ease-out;
  -moz-transition: all .7s ease-out;
  transition: all .7s ease-out;
}

.inactive.news {
   opacity: 0.5;
   filter: alpha(opacity = 50);
   zoom: 1;
}

.button, input.button, input[type=submit] {
   -webkit-border-radius: 4px;
   -moz-border-radius: 4px;
   border-radius: 4px;

   background-color: #b0cb1f;
   padding: 2px 20px;
   border: none;
   color: white;
   cursor: pointer;

   -webkit-appearance: none;
}

#menu {
   display: none;
}

#footer {
   text-align: center;
   font-size: 10px;
   color: #666;
}

.NewsEditor input[type=text] {
   width: 400px;
}

.document h1 {
   white-space: nowrap;
}

.filter {
   display: none;
}

.document img {
   width: 16px;
   margin-right: 5px;
   float: left;
   border: none;
}

.document > p {
   margin-top: 0px;
   margin-left: 21px;
}

td p, th p {
   margin: 0;
}

.ui-autocomplete {
   position: absolute;
   background-color: #ef7f1a;
   box-shadow: 1px 3px 5px rgba(0,0,0,0.3);
   border-radius: 4px;
   padding: 5px;
   min-width: 200px;
   z-index: 9999;
}

.ui-autocomplete li {
   cursor: pointer;
   white-space: nowrap;
   margin: 4px 0;
   display: block;
   padding-left: 5px;
   font-weight: 300;
   text-align: left;
   color: #fff;
   padding: 1px 5px 1px 0px;
}

.ui-autocomplete li:hover, a.ui-state-focus {
   background-color: #fff;
   color: #ef7f1a;
}

#ta_input {
   width: 200px;
   margin-right: 10px;
}

#ta_submit {
   width: auto !important;
}

.cke_show_blocks #thuisarts {
   border: 1px solid red;
}

.cke_show_blocks #thuisarts:before {
   content: "Dit blok niet verwijderen! Container voor thuisarts-functionaliteit";
}

#thuisarts ul {
   margin: 0;
   padding: 0;
   position: relative;
}

#thuisarts li {
   display: inline-block;
   list-style: none;
   cursor: pointer;
   margin: 0 5px;
}

#thuisarts > div div {
   display: none;
   -webkit-columns: 3;
   -moz-columns: 3;
   columns: 3;
}

@media only screen and (min-width: 700px) and (max-width: 900px) {
   #thuisarts > div div {
      -webkit-columns: 1;
      -moz-columns: 1;
      columns: 1;
   }
}

@media only screen and (min-width: 900px) and (max-width: 1500px) {
   #thuisarts > div div {
      -webkit-columns: 2;
      -moz-columns: 2;
      columns: 2;
   }
}

#thuisarts a {
   display: block;
}

.wrapper {
   display: inline-block;
}

#inschrijven {
   display: none;
}

span.spinner {
   position: relative;
   top: 2px;
   width: 18px;
   height: 18px;
   display: inline-block;
   background-image: url(../images/spinner-small.png);
   -webkit-animation-name: spin;
   -webkit-animation-duration: 2.5s;
   -webkit-animation-iteration-count: infinite;
   -webkit-animation-timing-function: linear;
   animation-name: spin;
   animation-duration: 2.5s;
   animation-iteration-count: infinite;
   animation-timing-function: linear;
}

@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.edit.news[oid]:before {
    content: "https://www.jonkerkoetsier.nl/?news=" attr(oid);
    pointer-events: none;
    font-size: 10pt;
    font-style: italic;
    text-align: center;
    display: block;
    position: absolute;
    width: calc(100% - 42px);
    top: 0;
}

.edit.news[oid="0"]:before {
    content: "";
}

.news[tags~="collapsed"] > h2 + p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news[tags~="collapsed"] > h2 + p img {
    display: none;
}

.expanded.news[tags~="collapsed"] > h2 + p img {
    display: block;
}

.news-subscribe {
   padding-bottom: 20px;
}

.news-subscribe table {
   width: 100%;
}

.news-subscribe input[name="email"] {
   width: 90%;
}

#news-optin {
   position: relative;
   top: 5px;
}

.news-subscribe .button {
   float: right;
   margin-right: 5px;
   margin-top: 10px;
}

.popup {
   position: absolute;
   left: 0;
   right: 0;
   top: 0;
   bottom: 0;
   background: rgba(0,0,0,0.7);
   z-index: 100000;
   cursor: pointer;
}

.popup img {
   width: 80%;
   max-height: 70%;
   object-fit: contain;
   left: 10%;
   position: absolute;
   margin: 0;
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
}
