html,
body {
  margin: 0;
  padding: 0;

  overflow: hidden;
  /* cursor: none; */
}

/* only define size and weight of text */
H1 {
  font-family: CabinetGrotesk-Medium;
  font-size: 42pt;
  margin: 0;
}

H2 {
  font-family: CabinetGrotesk-Medium;
  font-size: 18pt;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1pt;
}

H3 {
  font-family: CabinetGrotesk-Medium;
  margin: 0;
}

H4 {
  margin: 0;
}

H5 {
  font-family: FranklinGothic-book;
  margin: 0;
}

/* Used exclusively for testing fonts!! */
H6 {
  font-size: 60pt;
  line-height: 60px;
  padding: 0px;
  margin: 0;
  white-space: nowrap;
}

p {
  font-family: CabinetGrotesk-Regular;
  font-size: 10pt;
}

div {
  font-family: CabinetGrotesk-Light;
  font-size: large;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

a {
  text-decoration: none;
  color: black;
  background-color: none;
  outline: solid 0px none;
  transition: 200ms;
}

a:hover {
  /* font-family: CabinetGrotesk-Bold; */
  color: white;
  background-color: black;
  outline: solid 4px black;
  transition: 600ms;
  /* cursor: none; */
}

span.phone-number span#o {
  display: inline;
}

span.phone-number:hover span.a {
  display: none;
}

span.phone-number span.b {
  display: none;
}

span.phone-number:hover span.b {
  display: inline;
}

span {
  position: relative;
}

span[title]:hover::after {
  content: attr(title);
  font-family: CabinetGrotesk-Bold;
  position: absolute;
  top: -500%;
  left: -200%;
}

/* All font declarations have 900 weight because files are jank idk man*/

@font-face {
  font-family: CabinetGrotesk-Black;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Black.woff2);
  font-weight: 900;
}

@font-face {
  font-family: CabinetGrotesk-Bold;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Bold.woff2);
  font-weight: 900;
}

@font-face {
  font-family: CabinetGrotesk-Extrabold;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Extrabold.woff2);
  font-weight: 900;
}

@font-face {
  font-family: CabinetGrotesk-Extralight;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Extralight.woff2);
  font-weight: 900;
}

@font-face {
  font-family: CabinetGrotesk-Light;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Light.woff2);
  font-weight: 900;
}

@font-face {
  font-family: CabinetGrotesk-Medium;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Medium.woff2);
  font-weight: 900;
}

/* the weight declaration is becuase apparently fonts are broken here tf */
@font-face {
  font-family: CabinetGrotesk-Regular;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Regular.woff2);
  font-weight: 900;
}

@font-face {
  font-family: CabinetGrotesk-Thin;
  src: url(/portfolio/fonts/cabinet_grotesk/CabinetGrotesk-Thin.woff2);
  font-weight: 900;
}

@font-face {
  font-family: FranklinGothic-Book;
  src: url(/portfolio/fonts/franklin_gothic/FranklinGothic-Book.woff2);
  font-weight: 400;
}

@font-face {
  font-family: FranklinGothic-Bookitalic;
  src: url(/portfolio/fonts/cabinet_grotesk/FranklinGothic-Bookitalic.woff2);
  font-weight: 400;
}

@font-face {
  font-family: SourceSerif4-Regular;
  src: url(/portfolio/fonts/source_serif_4/SourceSerif4_18pt-Regular.woff2);
  font-weight: 900;
}

@font-face {
  font-family: SourceSerif4-Italic;
  src: url(/portfolio/fonts/source_serif_4/SourceSerif4_18pt-Italic.woff2);
  font-weight: 900;
}

@font-face {
  font-family: SourceSerif4-Light;
  src: url(/portfolio/fonts/source_serif_4/SourceSerif4_18pt-Light.woff2);
}

/* parent grid container */
.grid-container {
  /* viewport height, width, calculated from vh, vw, subtract gap value (below) */
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  display: grid;
  grid-template-columns: minmax(300px, 400px) auto;
  grid-template-rows: 150px auto;

  gap: 3px;
  background-color: black;
  background-clip: content-box;
  padding: 10px;
  transition: 1000ms;
}

/* for content, in case of a project page */
.content-wrapper {
  position: relative;
  top: 0px;
  left: 0px;
  z-index: 10;
  height: 100%;
  width: 100%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 600px;
  grid-gap: 10px;
  background-color: #fff;
  color: #555;
  pointer-events: all;
}

.item {
  background-color: white;
  /* background-color: #4d9edf; */
  text-align: left;
  padding: 20px;
}

.subitem {
  text-align: left;
}

#top-left {
  grid-column: 1 / 2;
  grid-row: 1 / 2;

  display: flex;
  justify-content: space-between;
  align-items: center;
  /* height: calc(100% - 40px); */
  /* takes up all vertical height excluding padding */
  /* display: grid;
    grid-template-columns: auto 80px;
    grid-template-rows: auto;
    align-items: center;
    gap: 10px; */

  font-family: CabinetGrotesk-Light;
  font-size: 1em;
  background-color: white;
}

#top-left-name {
  color: black;
}

#header {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: grid;
  align-items: center;
}

#project-title {
  font-size: 3em;
}

#project-subtitle {
  font-size: 1em;
}

#menu {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  /* height: calc(100% - 40px); */
  /* takes up all vertical height excluding padding */
  /* Line 277 and 278 may be irrelevant with new flex display  */

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#menu-list {
  font-family: CabinetGrotesk-Light;
  /* font-size: 26pt; */
  font-size: 1em;
}

/* #menu-list:hover>div {
    background-color: black;
} */

#contact-info {
  /* align-content: end; */
  font-size: 1em;
}

.contact-info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#content {
  width: 100%;

  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: baseline;
  overflow: hidden;
}

#index-content {
  width: 100%;
  height: 100%;
}

.left-Column::-webkit-scrollbar {
  display: none;
}

.left-Column {
  /* display: flex;
    flex-direction: column; */
  overflow: scroll;
  height: calc(100% - 20px);
}

.left-Column > img {
  /* 99% because otherwise the border is cut off */
  max-width: 99%;
  border: 1px solid;
}

.right-Column {
  /* display: flex;
    flex-direction: column;
    justify-content: space-between; */
  display: grid;
  padding: 20px;
  padding-top: 0px;

  top: 0;
  position: sticky;
  align-self: start;
  height: calc(100% - 20px);
  overflow-y: hidden;
  /* height: 100vh; */
}

.content-Footer {
  align-content: end;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px;
  background-color: white;
}

#mobile-logo {
  all: unset;
  cursor: pointer;
  height: 10vh;
  width: 10vh;
  background-color: transparent;
  color: transparent;
  outline: transparent;
}

#mobile-menu-button {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 3vh;
}

/** All css pertaining to the content section will be placed here, separately. For readability! **/
#item1 {
  grid-area: one;
  background-image: url(/portfolio/projects/project_thumbnails/export/tpus.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item2 {
  grid-area: two;
  background-image: url(/portfolio/projects/project_thumbnails/export/poster_design.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item3 {
  grid-area: three;
  background-image: url(/portfolio/projects/project_thumbnails/export/social_motorola.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item4 {
  grid-area: four;
  background-image: url(/portfolio/projects/project_thumbnails/export/crm_motorola.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item5 {
  grid-area: five;
  background-image: url(/portfolio/projects/project_thumbnails/export/moitie_plein.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item6 {
  grid-area: six;
  background-image: url(/portfolio/projects/project_thumbnails/export/publication.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item7 {
  grid-area: seven;
  background-image: url(/portfolio/projects/project_thumbnails/export/annual_report.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item8 {
  grid-area: eight;
  background-image: url(/portfolio/projects/project_thumbnails/export/research.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item9 {
  grid-area: nine;
  background-image: url(/portfolio/projects/project_thumbnails/export/web_design.jpg);
  background-position: 50%;
  background-size: 100%;
}

#item10 {
  grid-area: ten;
}

.content-grid-container {
  color: white;

  height: calc(100% - 40px);
  width: calc(100% - 40px);
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-template-areas:
    "one  one    two    two    two"
    "one  one    three  three  four"
    "five six    three  three  seven"
    "five eight  eight  nine   ten";
  gap: 10px;
}

.content-grid-container > div {
  color: white;

  text-align: center;
  font-size: 30px;
  justify-content: center;
  align-content: center;
  background-color: grey;
}

.content-grid-container > a {
  all: unset;
  color: black;
  cursor: pointer;
  background-color: gray;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  line-height: 20px;
}

.content-grid-container > a:hover {
  background-color: lightgray;
  filter: blur(30px);
  color: black;
}

.text-description {
  color: white;
  position: absolute;
  width: 300px;
  margin-left: calc(100vw - 200);
  top: calc(100vh - 100);
  z-index: 2;
  text-align: left;
}

/* HTML: <div class="loader"></div> */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(255, 255, 255);
  transition: opacity 0.75s, visibility 0.75s;
}

.loader-icon {
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
  border: 10px solid #0000;
  padding: 5px;
  box-sizing: border-box;
  background: radial-gradient(farthest-side, #000000 98%, #0000) 0 0/20px 20px
      no-repeat,
    conic-gradient(from 90deg at 10px 10px, #ffffff00 90deg, #000000 0)
      content-box,
    conic-gradient(from -90deg at 40px 40px, #0000 90deg, #000000 0) content-box,
    #ffffff;
  filter: blur(4px) contrast(10);
  animation: loading 5s infinite;
  transition: opacity 0.75s, visibility 0.75s;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes loading {
  0% {
    background-position: 0 0;
  }

  25% {
    background-position: 100% 0;
  }

  50% {
    background-position: 100% 100%;
  }

  75% {
    background-position: 0% 100%;
  }

  100% {
    background-position: 0% 0;
  }
}

/* FOR SMALLER SCREEN --- TABLET AND MOBILE */
@media (max-width: 600px) {
  html,
  body {
    overflow: auto;
  }

  /* should be like this:
        logo --- menu
        ---header ---
        -------------
        content (1 column)
        -------------
        footer 
    */
  /* change the size of the parent grid on the screen */
  .grid-container {
    /* viewport height, width, calculated from vh, vw, subtract gap value (below) */
    all: unset;
    width: 100vw;
    height: 100vh;
    /* height: calc(100vh - 0px); */
    /* display: grid;
        grid-template-columns: 0 100vw;
        grid-template-rows: 20% auto;
        column-gap: 0px;
        row-gap: 3px; */

    display: flex;
    flex-direction: column;

    background-clip: border-box;
    padding: 0px;
    overflow: auto;
  }

  /* specifically for index.php*/
  #item1,#item2,#item3,#item4,#item5,#item6,#item7,#item8,#item9{
    grid-area: unset;
    /* background-image: unset; */
    /* background-color: gray; */
    height: calc(100vw / 2);
  }

  .content-grid-container{
    all: unset;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    overflow: scroll;
  }

  .content-wrapper {
    all: unset;
    height: 100%;
    display: grid;
    grid-template-columns: auto;
    grid-auto-rows: 1fr;
    /* grid-template-rows: 100px 100px 100px 100px; */
  }

  .item {
    all: unset;
    text-align: left;
    /* padding: 5px; */
    font-size: 2em;
  }

  #top-left {
    display: none;
  }

  #menu {
    display: none;
  }

  #menu-list {
    position: absolute;
    top: 75px;
    right: 0;
  }

  #mobile-header {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;

    width: 100%;
    height: 75px;
  }

  .nothing {
    position: absolute; /* Removes it from the normal flow */
    top: 50%; /* Adjust position */
    left: 50%;
    transform: translate(-50%, -50%); /* Centers it */
    z-index: 10; /* Higher value means it appears on top */
    background: rgba(0, 0, 0, 0.5); /* Example: semi-transparent background */
    color: white;
    padding: 10px;
    border-radius: 5px;
  }

  #header {
    /* grid-column: 2 / 3;
        grid-row: 1 / 2; */
    top: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #project-title {
    font-size: 1.3em;
    text-align: center;
    line-height: 1em;
    padding-left: 5%;
    padding-right: 5%;
  }

  #project-subtitle {
    font-size: 1em;
    text-align: center;
  }

  #index-content {
    
    width: 100%;
    height: 100%;
    
  }

  #content {
    display: flex;
    flex-direction: column;
    overflow: scroll;
  }

  .left-Column {
    all: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 101%;
  }

  .left-Column > img {
    margin-bottom: 20px;
    width: 100%;
  }

  .right-Column {
    all: unset;
    padding-left: 20px;
    padding-right: 20px;
  }

  #mobile-menu-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* align-items: center; */
    justify-content: flex-start;
    padding: 5px;
    padding-top: 8px;
  }

  #mobile-menu-list > a {
    font-size: 1em;
    font-weight: 900;
    font-family: CabinetGrotesk-Bold;
    color: black;
    border: solid 3px black;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 2em;
    height: fit-content;
    width: fit-content;
    text-align: center;
  }

  #contact-info {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }
}
