* {
  box-sizing: border-box;
}

/* *{font-family: 'Fira', sans-serif;}
.bold{font-weight:bold;}
.italic{font-style: italic;}
.oblique{font-style: oblique;} */

/* For mobile phones: */
[class*="col-"] {
  width: 100%;
  padding: 0px;
  float: left;
}

@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {width: 4.16%;}
  .col-2 {width: 8.33%;}
  .col-3 {width: 12.50%;}
  .col-4 {width: 16.66%;}
  .col-5 {width: 20.83%;}
  .col-6 {width: 25%;}
  .col-7 {width: 29.16%;}
  .col-8 {width: 33.33%;}
  .col-9 {width: 37.50%;}
  .col-10 {width: 41.66%;}
  .col-11 {width: 45.83%;}
  .col-12 {width: 50%;}
  .col-13 {width: 54.16%;}
  .col-14 {width: 58.33%;}
  .col-15 {width: 62.50%;}
  .col-16 {width: 66.66%;}
  .col-17 {width: 70.83%;}
  .col-18 {width: 75%;}
  .col-19 {width: 79.16%;}
  .col-20 {width: 83.33%;}
  .col-21 {width: 87.50%;}
  .col-22 {width: 91.66%;}
  .col-23 {width: 95.83%;}
  .col-24 {width: 100%;}
}

pre {
            overflow-x: auto;
            white-space: pre-wrap;
            white-space: -moz-pre-wrap;
            white-space: -pre-wrap;
            white-space: -o-pre-wrap;
            word-wrap: break-word;
         }

/* add padding to news item */
.col-22.newsitem {
  padding-bottom: 0.3em;
}
.col-2.newsdate {
  padding-bottom: 0.3em;
  padding-right: 0.4em;
  max-width: 4.6em;
}
.col-12.projitem {
  padding: 1.5em;
}
.imgprojimg {
  width: auto;
  height: auto;
  max-height: 200px;
  max-width: 100%;
}
.projphoto{
  min-height: 220px;
}


/* add maximal size of photo */
.photopehersto {
  max-width: 230px;
}

.photorow {
  display: flex;
  flex-wrap: wrap;
}
.photocol {
  flex: 100%;
  padding: 0.3em;
}

.photocol img {
  vertical-align: middle;
  width: 100%;
}
.centeredsubmenu {
  width: 95%;
  margin: auto;
}

@media only screen and (min-width: 768px) {
  /* For desktop: */
  .header {
    width: 90%;
    max-width: 1280px;
    margin: auto;
  }
  .block {
    width: 90%;
    max-width: 1280px;
    margin: auto;
  }

  .centeredmenu {
    width: 80%;
    max-width: 1137px;
    margin: auto;
  }
  .centeredsubmenu {
    width: 75%;
    max-width: 1065px;
  }
  .col-2.newsdate {
    text-align-last: justify;
  }
  .photocol {
    flex: 33%;
    max-width: 180px;
  }
}

body {
  background-color: white; /*rgb(220, 220, 220);*/
  font-size: 105%;
  /* font-family: "Fira", sans-serif; */
}

h1 {
  font-size: 1.5em;
}

a:link, a:visited {
  color: black;
  text-decoration: underline;
}

a:hover {
  color: rgb(50, 50, 50);
}

.header {
  border: 2px solid black;
  font-size: 1.4em;
  vertical-align: middle;
  background-color: rgb(255, 255, 255);
  text-align: center;
  padding: 0.6em;
  margin-top: 2px;
  margin-bottom: 2px;
}

.centeredmenu {
   border-radius: 10px;
   border: 2px solid black;
   background-color: rgb(255, 255, 255);
   font-size: 1.2em;
   margin-bottom: 2px;
   text-align: center;
   padding-top: 0.2em;
   padding-bottom: 0.2em;
}

.centeredmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.centeredmenu ul li {
   display: inline-block;
   padding-left: 0.65em;
   padding-right: 0.65em;
   padding-top: 0.4em;
   padding-bottom: 0.4em;
   margin: 0;
}
.centeredmenu ul li a {
   text-decoration:none;
}
.centeredmenu ul li a:hover {
  text-decoration: underline;
}
.centeredmenu ul li a.active,
.centeredmenu ul li a.active:hover {
   font-weight:bold;
   text-decoration: underline;
}
.block {
  background-color: rgb(255, 255, 255);
  /* border: 2px solid black; */
  margin-bottom: 2px;
  padding: 0.5em;
}
.block::after {
  content: "";
  clear: both;
  display: table;
}
.newsline::after {
  content: "";
  clear: both;
  display: table;
}
.researchline {
  padding-bottom: 2.2em;
}
.researchline::after{
  content: "";
  clear: both;
  display: table;
}

.projline {
  padding-bottom: 2.2em;
}
.projline::after{
  content: "";
  clear: both;
  display: table;
}


/* toggle box */
.toggle-box {
  visibility: hidden;
  position: absolute;
}
.toggle-box ~ label {
	text-decoration: underline;
	cursor: pointer;
}

.toggle-box ~ label ~ div {
  display: none;
}

.toggle-box:checked ~ label ~ div {
  display: block;
}

.toggle-box:checked ~ label {
  display: none;
}
/* end toggle box */
