@font-face {
  font-family: "CustomFont";
  src: url("../public/fonts/SuisseIntlMono-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --numCols: 2;
}

@media (min-width: 768px) {
  :root {
    --numCols: 8;
  }
}

html,
body {
  overscroll-behavior: none;
  scrollbar-width: none;
  font-family: "CustomFont", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 18px;
  font-weight: 400;
  font-style: normal;
  min-height:100svh;   

}

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



.pointer:hover {
  cursor: pointer;
  color: black;
}

#home-project-selector {
  width: calc( (100vw * 3 / 8));
  background-color: #bec8be;
  position: fixed;
  z-index: -1;
  right: 0;
  top: 0;
  height: 0svh;
  overflow: hidden;
  transition-duration: 1s;
  display: flex;
  margin-left: 1vw;
  flex-direction: column;
  justify-content: top;
  border: none;
}

#home-project-selector h1 {
  translate: 1vw 10svh;
  
  padding-bottom: 2svh;
}

#home-project-selector table {
  translate: 1vw 10svh;
}

#home-project-selector td {
  padding-top: 1svh;
  border-bottom: 1px solid rgb(0, 0, 0);
  padding-bottom: 1svh;
  width: 80%;
}

.show {
  height: 100svh;
  padding-top: 10svh;
}

#home-project-selector-exit {
  position: relative;
  top: 5svh;
  right: 0svh;
  border-bottom: none;
}

/* #home-project-selector-exit:active {
  color: rgb(0, 0, 0);
} */

#home-project-selector-exit:hover {
  cursor: pointer;
  color: rgb(133, 133, 133);
}

.home-project-selector-button {
  padding-left: 1vw;
  padding-top: 1vw;
  translate: 0 5svh;
}

.home-project-selector-cell {
  cursor: pointer;
  user-select: none;
}

.project-list {
  padding-top: 1svh;
}

@media (min-width: 768px) {
  #main {
    top: 8svh;
    
  }
  #background {
    top: 8svh;
  }
}

@media (max-width: 768px) {
  #main {
    position: fixed;
    top: 10svh;
    z-index: 1;
  }
  
  

}



#main {
  left: 0vw;
  height: fit-content;
  position: absolute;
  display: flex;
  flex-direction: row;
  width: 100vw;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  border-right: 1px solid rgb(0, 0, 0);
  min-height: 100svh;
  height: fit-content;
}

.project-image {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-image:hover {
  cursor: pointer;
}

.project {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.actu {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 10px;
  margin-right: 10px;
  padding: 5px;
  font-size: 12px;
  line-height: 15px;
}

.project-title {
  width: 100%;
  height: fit-content;
  font-family: "CustomFont", Arial, Helvetica, sans-serif;
  padding: 10%;
  padding-top: 10%;
  user-select: none;
}

.actu-title {
  width: 100%;
  height: fit-content;
  font-family: "CustomFont", Arial, Helvetica, sans-serif;
  padding-top: 20px;
  user-select: none;
  font-weight: normal;
  word-break: break-word;
}

.actu-description {
	width: 100%;
	height: fit-content;
	font-family: "CustomFont", Arial, Helvetica, sans-serif;
	padding: 1%;
	padding-top: 10px;
	user-select: none;
	word-break: break-word;
  white-space: wrap;
}

.project-title:hover {
  cursor: pointer;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 2%;
  width: 97%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  opacity: 0;
  transition: opacity 0.5s;
  cursor: auto;
  z-index: 1;
  font-size: 12px;
  line-height: 15px;
}

.project:hover .project-overlay {
  opacity: 1;
  cursor: pointer;
}
