html
{
    scroll-behavior: smooth;
}


body 
{
  display: flex;
  margin: 0;
  background-color: #1b1b1b;
  color: #e0e0e0;
  min-height: 100vh;
  font-size: x-large;
}


nav /* Categories to the left */
{
  width: 200px;
  padding: 20px;
  box-sizing: border-box;
  position: -webkit-sticky; /* for Safari */
  position: sticky;
  top: 0;
  align-self: flex-start; /* Sticky with flex box */
}

nav ul 
{
  list-style-type: disc;
  padding: 20px;
}

nav li 
{
  margin-bottom: 30px;
}

nav a 
{
  color: #e0e0e0;
}

nav a:hover 
{
  background-color: #333;
}

main 
{
  flex-grow: 1;
  width: 800px;
  padding: 20px;
}

section 
{
  margin-bottom: 20px;
  border: 1px solid #333;
  padding: 20px;

}

.flex-projects /* Projects, 2 each on mobile, 3 else */
{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 100px;
  column-gap: 20px;
  margin-left: 20px;
  
}

@media (max-width: 1000px) /* Enlarge stuff on mobile */
{
  .flex-projects
  {
    grid-template-columns: 1fr 1fr;
  }
  nav
  {
    width: 300px;
    margin-left: 20px;
  }
  body
  {
    font-size: xx-large;
  }
  .inviting
  {
    width: 40%;
  }
}


.im-brd /* Project image */
{
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  width: 300px;
  opacity: 0.75;
}

.im-brd:hover /* Emphasize image on hover */
{
    opacity: 1;
    filter: drop-shadow(0px 0px 5px #e0e0e0);
}

.image-container:hover .overlay /* Hide overlay on hover */
{
  opacity: 0;
}

.image-container /* Has 1. Project Image 2. Overlay */
{
  position: relative;
  width: 300px;
}


.overlay /* Text box, at the bottom of project image */
{
  opacity: 1;
  transition: opacity 0.3s ease;
  position: absolute;
  bottom: 5%;
  color: #e0e0e0;
  width: 100%; /* Fit parent (sounds weird) */
  padding: 5px;
  text-align: center;
  background-image: linear-gradient(
    -100deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 10%,
    rgb(64, 64, 64) 50%,
    rgba(0, 0, 0, 0) 90%,
    rgba(0, 0, 0, 0) 100%
);
}


.im-brd-small /* Icon below project */
{
  border: 2px solid #333;
  border-radius: 25px;
  margin-top: 10px;
  width: 30%;
  opacity: 0.9;
}

.im-skill /* Skills icon in section 1 */
{
  border: 2px solid #333;
  border-radius: 25px;
}

.im-app /* Apps icon in section 1 */
{
  border: 2px outset #666;
  border-radius: 20px;
}

.im-app:hover /* Emphasize image's border on hover & a little pop */
{
  border-color: #ccc;
  animation: pop 0.25s ease-in-out;
}

@keyframes pop 
{
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


.inviting /* Icons with animation to draw attention */
{
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.inviting:hover
{
    opacity: 1;
    filter: drop-shadow(0px 0px 5px #e0e0e0);
}

@keyframes pulse 
{
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


.remark
{
  font-size: small;
  color: gray;
}

.animated-text /* Text which glows sometimes */
{
  display: inline-block;
  animation: glow 3s infinite;
}

@keyframes glow 
{
  40% {
    text-shadow: 0 0 16px #e0e0e0;
  }
}
