/* ------ style.css ------ */
/* -- Website Nina Hitz -- */

@import "_reset.css";

/* Local Reset */
*{
  padding: 0px;
  margin: 0px;
  color: inherit;
  
  box-sizing: border-box;
  
  list-style-type: none;
  text-decoration: none;
  decoration: none;
}


/* -- Variables -- */
:root {
  --nav1-width: 2;
  --nav2-width: 4;
  --nav3-width: 1;
  --width-ratio: calc(var(--nav1-width) / (var(--nav2-width) + var(--nav3-width)));

  --page-side-margin: 1.5rem;
}



/* -- Colors -- */
:root {
    --color-black:          black;
    --color-matblack-tp:    #1e1e1e1a;      /* (30, 30, 30, 0.1) */ 
    --color-matblack:       #282828;        /* (40, 40, 40) */
    --color-grey:           grey;
    --color-lightgrey-tp:   #80808040;      /* (128, 128, 128, 0.25) */
    --color-white:          white;
    --color-blue:           blue;
    
    --color-db-orange:      orange;
    --color-db-red:         red;
}



/* -- General formatting -- */
mark {
  color: var(--color-grey);
  background: none;
}

.grey {
  color: var(--color-grey);
}

.hidden {
  display: none !important;
}

.link {
  text-decoration: underline;
  color: inherit;
  transition: all 0.2s ease-in;
}

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

.link:active {
  color: var(--color-grey);
}

/* -- GENERAL ELEMENT SETTINGS -- */
html {
  font-size: 100%;
  
  scroll-behavior: smooth;
  scroll-padding: 4rem;   /* leaves space for the fixed titlebar */
  
  font-family:  'Times New Roman', Times, serif;
  font-weight: normal;
  text-transform: uppercase;
  
  font-size: 0.8rem; /*(1/16*pt)rem*/
  line-height: normal;
}

body {
  
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 24;
  color: var(--color-blue);
  
  padding: 1rem var(--page-side-margin) 1.5rem var(--page-side-margin);
  
  background-color: var(--color-white);
}

/* needed for footer positioning */
div.page-container {
  box-sizing: border-box;
  position: relative;
  min-height: 100vh;
  height: 100%;
  top: 0;
  
  /* set bottom padding to footer height */
  padding-bottom: 2rem;
}

main {
  width: 100%;
  height: 100%;
}

div.top-spacer {
  padding-top: 8rem;
}

div.sidemargin {
  padding: 0 var(--page-side-margin);
  height: 100%;
  width: 100%;
}

p {
  color: inherit;
  white-space: wrap;
}

img {
  object-fit: cover;
  
  max-height:100%;
  max-width:100%;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0 1.5rem 0.5rem 1.5rem;
  
  color: var(--color-grey);
  display: flex;  
  justify-content: space-between;
  font-weight: normal;
}

footer > div {
  color: inherit;
}

/* -- SPECIFIC SETTINGS -- */
/* Title bar flexbox container */
nav {
  width: 100%;
  
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
}


/* Title bar elements */
.title-bar > * > a {
  color: inherit;
  white-space: nowrap;
}

.nav-button-animated {
  max-width: fit-content;
  
  transition: all 0.1s ease-in;

  cursor: pointer;
  user-select: none;
}

.nav-button-animated:hover {
  transform: scale(1.05);
  /* color: var(--color-blue); */
}

.nav-button-animated:active {
  transform: scale(0.95);
  /* color: var(--color-blue); */
}

div#title-information.nav-button-animated {
  float: right;
}

#title-ninaizumihitz {
  flex: var(--nav1-width);
}

#title-projects {
  flex: var(--nav2-width);
}

#title-information {
  flex: var(--nav3-width);
}

/* Portfolio content */
.content {
  display: flex;
  
  width: 100%;
}

.project-overview {
  width: 40%;
}

.empty-row {
  line-height: 0.75rem;
}

.left-column {
  flex: var(--width-ratio);
  flex-wrap: wrap;
}

.right-column {
  flex: 1;
  flex-wrap: wrap;
}

/* Portfolio overview */
table {
  width: 100%;
}

tr {
  line-height: 1.2rem;
}

td {
  width: 33%;
  max-width: 0;
  overflow-x: visible;
  white-space: nowrap;
  
  color: inherit;
}


/* Information text */
#info-box {
  display: block;
  text-align: right;
}


/* -- HELPER ID SETTINGS -- */
#img-placeholder {
  text-align: center;
  line-height: 15rem;

  border-style: solid;
  border-width: 2px;
  border-color: var(--color-db-orange);
}



/* -- CSS GRID SETTINGS PROJECTS -- */
/* row start / column start / row end / column end */
div.project-grid-container {
  display: grid;
  width: 100%;

  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: minmax(min-content, max-content);

  border-radius: 0;
  background-color: none;
  margin-bottom: 2.5rem;
}

/* all project backgrounds */
div.project-grid-container > div[class*="background"] {
  background-color: var(--color-matblack-transparent);

  margin: 0.1rem 0.1rem 0.1rem 0.1rem;
  border-radius: 0.8rem;
}

/* all project titles */
div.project-grid-container > div[class*="title"] {
  font-weight: normal;
  color: var(--color-blue);

  margin: 2.5rem 1rem 0rem 0rem;
}

/* all project main texts */
div.project-grid-container > div[class*="main-text"] {
  margin: 1rem 1rem 0.5rem 0rem;
  text-transform: none;
}

/* all project image sections */
div.project-grid-container > div[class*="image"] {
  margin: 1rem 0rem 0.5rem 0rem;
}

/* all project accordion sections */
div.project-grid-container > div[class*="accordion"] {
  color: var(--color-black); 
}


/* ---- */
div.print-background {
  grid-area: 1 / 1 / 5 / 5;
}

div.print-title-text {
  grid-area: 1 / 3 / 1 / 5;
}

div.print-main-text {
  grid-area: 2 / 1 / 2 / 3; 
}

div.print-image {
  grid-area: 2 / 3 / 2 / 5;
}

div.print-accordion {
  grid-area: 3 / 1 / 3 / 5;
}

div.type-background {
  grid-area: 1 / 2 / 5 / 6;
}

/* ---- */
div.type-title-text {
  grid-area: 1 / 4 / 1 / 6;
}

div.type-main-text {
  grid-area: 2 / 2 / 2 / 4;
}

div.type-image {
  grid-area: 2 / 4 / 2 / 6;
}

div.type-accordion {
  grid-area: 3 / 2 / 3 / 6;
}

/* ---- */
div.digital-background {
  grid-area: 1 / 3 / 5 / 7;
}

div.digital-title-text {
  grid-area: 1 / 5 / 1 / 7;  
}
div.digital-main-text {
  grid-area: 2 / 3 / 2 / 5;
}

div.digital-image {
  grid-area: 2 / 5 / 2 / 7;
}

div.digital-accordion {
  grid-area: 3 / 3 / 3 / 7;
}

/* ----- */
div.project-images {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

div.overview {
  max-width: 25%;
}

#Editorial-Cover {
  width: 12.5%;
}

div.p-spacer {
  margin-top: 2rem;
}


/* defines Breakpoint */ 
@media (max-width: 600px) {
  .left-column {
    flex: 0;
  }
  
  /* all project main texts */
  div.project-grid-container > div[class*="main-text"] {
    margin: 1rem 1rem 0.5rem 0rem;
    text-transform: none;
  }
  
  /* all project image sections */
  div.project-grid-container > div[class*="image"] {
    margin: 1rem 0rem 0.5rem 0rem;
  }
  
  /* all project accordion sections */
  div.project-grid-container > div[class*="accordion"] {
    color: var(--color-black); 
  }
  
  /* ---- */
  div.print-background {
    grid-area: 1 / 1 / 4 / 7;
  }
  
  div.print-title-text {
    grid-area: 1 / 1 / 1 / 3;
  }
  
  div.print-main-text {
    grid-area: 2 / 1 / 2 / 7; 
  }
  
  div.print-image {
    grid-area: 3 / 3 / 3 / 7;
  }


  
  div.print-accordion {
    grid-area: 4 / 1 / 4 / 7;
  }
  
  /* ---- */
  div.type-background {
    grid-area: 1 / 1 / 4 / 7;
  }
  
  div.type-title-text {
    grid-area: 1 / 3 / 1 / 7;
  }

  div.type-main-text {
    grid-area: 2 / 1 / 2 / 7;
  }
  
  div.type-image {
    grid-area: 3 / 3 / 3 / 7;
  }
  
  div.type-accordion {
    grid-area: 4 / 1 / 4 / 7;
  }

  /* ---- */
  div.digital-background {
    grid-area: 1 / 1 / 4 / 7;
  }
  
  div.digital-title-text {
    grid-area: 1 / 5 / 1 / 7;  
  }

  div.digital-main-text {
    grid-area: 2 / 1 / 2 / 7;
  }
  
  div.digital-image {
    grid-area: 3 / 3 / 3 / 7;
    max-height: 100%;
  }
  
  div.digital-accordion {
    grid-area: 4 / 1 / 4 / 7;
  }

} /* End of Breakpoint */ 



/* ------------ Helper Lines:) ------------ */

/* a, nav, div, tr, td {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: var(--color-dg-red) !important;
} */

/* ------------ -------------- ------------ */


/*
command in terminal to load images
echo *.png
*/
