/*.....................*/
* {
  box-sizing: border-box;
  margin:0;
  padding-top: 0px;
}

body {
  height: 100%;
  margin: 0px;
  font-family: 'Overpass', sans-serif;
  font-weight: 100;
}

footer {
  white-space: pre;
  padding:0;
}
/*.....................*/


/*MAIN PAGE STRUCTURES*/
.head {
  max-width: 95%;
  margin: auto;
}

.haupt {
  max-width: 100%;
  margin: auto;
}
/*.....................*/


/*NAV BAR constist of a left (my name) and right component (the actual menu) */
/*...POSITION and colour*/
.topnav {
  margin-top: 36px;
  overflow: hidden;
  background-color: none;
}

.topnav-right {
  float: right;
}

/*...LINKS INSIDE NAVBAR*/
.topnav a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 0px 12px;
  text-decoration: none;
  /*.FONT*/
  font-size: 24px;
}

/*...Change the color of links on hover */
.topnav a:hover {
  color: black;
  text-transform: uppercase;
}

.topnav-right a:hover {
  color: black;
  text-transform: uppercase;
}

/*...Add a color to the active/current link */
.topnav a.active {
  color: black;
  text-transform: uppercase;
}

.topnav-right a.active {
  color: black;
  text-transform: uppercase;
}

/*...
.subnav {
  float: left;
  overflow: hidden;
  display: block;
  color: black;
  text-align: center;
  padding: 0px 12px;
  text-decoration: none;
  font-size: 18px;
}

.subnav .subnavbtn {
  font-size: 18px;
  border: none;
  outline: none;
  color: black; 
  padding: 0px 12px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}
*/

 /* Pagination links */
 .pagination a {
  color: black;
  float: right;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
}

/* Style the active/current link */
.pagination a.active {
  background-color: dodgerblue;
  color: white;
}

/* Add a grey background color on mouse-over */
.pagination a:hover:not(.active) {background-color: #ddd;} 

/* Add a red background color to navigation links on hover */
.navbar a:hover, .subnav:hover .subnavbtn {
  background-color: red;
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: red;
  width: 100%;
  z-index: 1;
}

/* Style the subnav links */
.subnav-content a {
  float: left;
  color: white;
  text-decoration: none;
}

/* Add a grey background color on hover */
.subnav-content a:hover {
  background-color: #eee;
  color: black;
}

/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
}

/*.......................................*/

.bgi {
  /* The image used */
  background-image: url("./images/worlds_together.gif");
  /* Full height */
  width: 100%;
  height: 100%;
  /* Center and scale the image nicely */
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

/*.....................*/

/* IMAGE PORTFOLIO IN WORKS */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 25px;
  justify-content: space-around; /*displays the flex items with space before, between, and after the lines*/
  align-items: flex-start; /* aligns items to the top of the container:*/
  align-content: flex-start;
  /*border: 1px solid blue;*/
}

/*...defines nr of images per line */
/*...Create three equal columns that sit next to each other */
.column {
  flex: 15%;
  object-fit: cover;
  vertical-align: top;
  padding: 12px 12px 18px 12px;
  /*border: 1px solid red;*/
}

.column img {
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  /*border: 1px solid red;*/
}

/*...Change image colour when hovering on it */
.column img:hover {
  filter: none;
  -webkit-filter: grayscale(0);
}

.projectname {
   text-align: left;
   font-size: 14px;
   font-weight: 100;
}
/*.....................*/


/* SUBPAGE */
/* Position the image container (needed to position the left and right arrows) */
.textsub {
  width:66%; 
  float:right;
  margin: 12px;
  padding-top: 24px;
}

.textsub h1 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}

.textsub p {
    font-size: 18px;
    font-weight: 100;
    line-height: 1.3;
}

.textsub h2 {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.3;
}
/*.....................*/


/* COLLAPSIBLE TEXT */
/*text button that reveals collapsible text*/
.collapsible {
  padding-left: 0px;
  padding-top: 12px;
  width: 100%;
  cursor: pointer;
  border: none;
  background-color: white;
  text-align: left;
  outline: none;
  font-family: "Overpass";
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: blue;
}

.collapsible:active, .collapsible:hover {
  color: black;
  background-color: white;
}

/*collapsible text*/
.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

/*collapsible text, properties of font*/
.content p {
  padding-top: 0px;
}

.content img {
  margin: auto;
  width: 100%;
}
/*..................................*/

/*TAB GALLERY*/
/* The grid: Four equal columns that floats next to each other */
.tabcolumn {
 float: left;
 width: 25%;
 padding: 12px 0px 0px 12px;
}

.tabcolumnS {
 float: left;
 width: 20%;
 padding: 12px 0px 0px 12px;
}

/* Style the images inside the grid for tabcolumn*/
.tabcolumn img {
 opacity: 0.6;
 cursor: pointer;
 width:100%;
}

.tabcolumn img:hover {
 opacity: 1;
}

/* Style the images inside the grid or tabcolumnS*/
.tabcolumnS img {
 opacity: 0.6;
 cursor: pointer;
 width:100%;
}

.tabcolumnS img:hover {
 opacity: 1;
}

/* Clear floats after the columns */
.tabrow:after {
 content: "";
 display: table;
 clear: both;
}

/* The expanding image container (positioning is needed to position the close button and the text) */
.tabcontainer {
  position: relative;
  display: block;
}

.flex-container {
  margin-left: 10%;
  margin-left: 10%;
  padding: 0px 0px 0px 12px;
  display: flex;
  align-items: stretch;
  /* background-color: #f1f1f1; */
}

.flex-container > div {
  color: black;
  margin: 12px;
  text-align: left;
  /* background-color: DodgerBlue; */
}

.flex-container h1 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin:12px;
    text-align:right;
}

.flex-container p {
    font-size: 15px;
    font-weight: 100;
    line-height: 1.3;
    margin:12px;
    text-align:right;
}

.flex-container h2 {
    font-size: 12px;
    line-height: 1.3;
}
/*.....................*/

/*.....................*/
.flex-container-about {
  display: flex;
  margin: 12px;
  padding-top: 12px;
}

.flex-container-about p {
  text-align:left;
  font-size: 18px;
  line-height: 1.3;
  padding-right: 36px;
}
/*.....................*/

/*.....................*/
.flex-container-research {
  display: flex;
  margin: 12px;
  padding-top: 12px;
}

.flex-container-research p {
  text-align:left;
  font-size: 16px;
  line-height: 1.3;
  padding-right: 36px;
}

.flex-container-research-V1 h1 {
  text-align:left;
  font-style: italic;
  font-size: 14px;
  font-weight: 200;
}

.flex-container-research-V1 p {
  text-align:left;
  font-size: 12px;
  line-height: 1.3;
  padding-right: 36px;
}
/*.....................*/


/* Responsive layout - makes a two column-layout instead of four columns */
@media only screen and (max-width: 600px) {
  .column                     {-ms-flex: 50%; flex: 50%; max-width: 50%;}
  .topnav                     {width: 100%; height: auto; position: relative;}
  .topnav-right               {float: left; margin-top: 30px; margin-bottom: 6px;}
  .responsive                 {width: 49.99999%; margin: 6px 0;}
  .flex-container             {margin: 0px; padding: 0px; flex-direction:column;}
  .flex-container h1          {text-align:left; font-size: 24px; }
  .flex-container p           {text-align: left; font-size: 16px;}
  .flex-container-about       {flex-direction:column}
  .flex-container-about p     {font-size: 16px;}
  .flex-container-research-V1 {width: 100%; height: auto; position: relative;}
  .flex-container-research-V1 p{font-size: 16px;}
  .project                    {width: 100%;}
  .tabcolumn                  {width: 30%;}
  .textsub                    {width: 90%;}
  .textsub h1                 {font-size: 16px;}
  .textsub p                  {font-size: 16px;}
  .collapsible                {font-size: 16px;}
  .content p                  {font-size: 16px;}

}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media only screen and (max-width: 400px) {
  .column                 {-ms-flex: 100%; flex: 100%; max-width: 100%;}
  .column img             {margin-top: 6px;}
  .topnav a               {text-align: center; float: none;}
  .topnav-right           {text-align: left; float: none; display: block; margin-top: 20px;}
  .responsive             {width: 100%;}
  .flex-container         {margin: 0px; padding: 0px; flex-direction:column;}
  .flex-container h1      {text-align:left; font-size: 18px;}
  .flex-container p       {text-align: left; font-size: 14px;}
  .flex-container-about p {font-size: 14px;}
  .flex-container-research-V1 {width: 90%; height: auto; position: relative;}
  .flex-container-research-V1 p{font-size: 16px;}
  .project                    {width: 90%;}
  .tabcolumn                  {width: 30%;}
  .textsub                {width: 90%;}
  .textsub h1             {font-size: 14px;}
  .textsub p              {font-size: 14px;}
  .collapsible            {font-size: 14px;}
  .content p              {font-size: 14px;}
}

/*SUBPAGE SLIDESHOW*/
@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}
