body{
  margin: 0;
  color: #FFF9C2;
  background-color: black;
  font-family: "Tenor Sans", sans-serif;
  overflow-x: clip;
  position: absolute;
}

html{
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: "Inknut Antiqua", serif;
  font-weight: 400;
}

a{
  color: #FFF9C2;
  text-decoration: underline;
}

.menu{
  position: sticky;
  float: left;
  margin-top: calc(-100svh - 75px);
  top: 0px;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
}

.menu h1{
  font-size: 5vw;
  flex-grow: 2;
  margin: 0;
  text-align: center;
  line-height: 75px;
}

.menu p{
  width: 70px;
  cursor: pointer;
  text-align: center;
  flex-grow: 1;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity 0.5s ease;
  -moz-transition: opacity 0.5s ease;
  -ms-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}

.isSticky p{
  visibility: visible;
  opacity: 1;
}

@media only screen and (min-width : 1500px){
  #menu h1{
    font-size: 75px;
  }
  #menu p{
    font-size: 1vw;
  }
}

#main-content:after{
  content:"";
  position:fixed; /* stretch a fixed position to the whole screen */
  top:0;
  height:100vh; /* fix for mobile browser address bar appearing disappearing */
  left:0;
  right:0;
  z-index:-1; /* needed to keep in the background */
  background-image: var(--after-bg-image, url('resources/cover.gif'));
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: auto 100%;
  -moz-background-size: auto 100%;
  -o-background-size: auto 100%;
  background-size: auto 100%;
}

@media only screen and (max-width : 1000px){
  #main-content:after{
    background-position: 80% center;
  }
}

#about{
  z-index: 101;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.exit{
  position: absolute;
  top: 0px;
  right: 20px;
  font-size: 25px;
  cursor: pointer;
}

#about-container{
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  row-gap: 20px;
  align-content: center;
}

#about-container img, #about-container div{
  width: 300px;
}

#contact{
  z-index: 101;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

#contact div{
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project{
  z-index: 101;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.project-container{
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  align-content: center;
  overflow-y: scroll;
}

.project-image{
  width: 90%;
  text-align: left;
  overflow: auto;
  white-space: nowrap;
}

.project-image::-webkit-scrollbar:horizontal {
  height: 12px;
}

.project-image::-webkit-scrollbar-thumb {
  border-radius: 6px;
  /* should match background, can't be transparent */
  background-color: rgba(255, 0, 0, 1);
}

.project-image::-webkit-scrollbar {
  -webkit-appearance: none;
}


.project-image img{
  max-width: 100%;
  max-height: 400px;
  margin-right: 20px;
}

.project-image img:last-child{
  margin-right: 0px;
}

.project-description{
  width: 90%;
  text-align: left;
}

.project-description h1{
  margin: 0px;
  line-height: 32px;
  margin-top: 16px;
}

.project-description :nth-child(3){
  margin: 0px;
}

#top{
  width: 100vw;
  height: 200vh;
}

#bottom{
  width: 100vw;
  height: 100vh;
}

#main{
  width: 100%;
  background-color: red;
  position: relative;
  z-index: 5;
}

#fill{
  height: 80px;
  width: 100%;
  background-color: red;
  position: sticky;
  top: 0px;
  z-index: 1;
}

#reddot1{
  transform: scale(0);
}

#reddot2{
  transform: scale(15);
}

#buffer{
  height: 100vh;
  width: 100%;
  /*background: linear-gradient(to bottom, transparent, red);*/
  background: url('resources/dissolve.png') no-repeat center center;
  background-size: 100% 100%;
}

#buffer2{
  height: 100vh;
  width: 100%;
  /*background: linear-gradient(to bottom, transparent, red);*/
  background: url('resources/dissolve2.png') no-repeat center center;
  background-size: 100% 100%;
}

#cols{
  padding: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 20px;
}

#col1, #col2, #col3{
  width: 200px;
  flex-grow: 1;
}

@media only screen and (max-width : 768px){
  #col1, #col2, #col3{
    width: 100%;
  }
}

.grid-container{
  position: relative;
}

.grid-container:hover{
  cursor: pointer;
}

#cols img{
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 10px 5px 10px darkred;
  opacity: 0.5;
  -webkit-transition: opacity 0.5s ease;
  -moz-transition: opacity 0.5s ease;
  -ms-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
  transition: opacity 0.5s ease;
}

#cols img.in{
  opacity: 1;
}

#cols img:hover{
  cursor: pointer;
  opacity: 1;
}

.grid-overlay{
  position: absolute;
  top: 0;
  width: 100%;
  height: calc(100% - 24px);
  background: rgba(0, 0, 0, 0.8); /* Black see-through */
  color: #FFF9C2;
  -webkit-transition: opacity 0.5s ease;
  -moz-transition: opacity 0.5s ease;
  -ms-transition: opacity 0.5s ease;
  -o-transition: opacity 0.5s ease;
  transition: .5s ease;
  opacity: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  vertical-align: middle;
  justify-content: center;
  pointer-events: none;
}

.grid-container:hover .grid-overlay{
  opacity: 1;
}
