@font-face {
    font-family: VHC;
    src: url(resources/VCR_OSD_MONO.ttf);
  }
h1 {
    text-align: center;
}
html, body {
  height: 100%;
  width: 100%;
  background-color: white;
  margin: 0;
  padding: 0;
}

img {
  position: relative;
  z-index: 2;
}
video {
  position: relative;
  z-index: 1;
}
.video-background {
    position: relative;
    width: 100%;
    height: 100%; /* Full page height */
    overflow: hidden;
    top: 0;
    left: 0;
}

.video-background video {
    
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.home-button {
    position: absolute;
    top: 50%; /* Vertically center the text */
    left: 50%; /* Horizontally center the text */
    transform: translate(-50%, -50%); 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    white-space: nowrap;
    z-index: 3;
  }

.back-button {
  position: absolute;
  top: 5%;
  left: 3%;
  justify-content: center;
  align-items: center;
  transform: translate(-5%, -5%);
  font-size: 0.65em;
  white-space: nowrap;
  z-index: 3;

}

.glitchy-button {
    background:none;
    border:none;
    margin:0;
    padding:2px;
    cursor: pointer;
    font-size: 4em;
    font-family: VHC;
    text-align: center;
    color: rgb(227, 227, 227);
}

.glitchy-button-black {
  background:none;
  border:none;
  margin:0;
  padding:0;
  cursor: pointer;
  font-size: 4em;
  font-family: VHC;
  text-align: center;
  color: rgb(227, 227, 227);
}

.glitchy-button-black:hover {
  animation: flashColorsBlack .5s steps(1, end) infinite;
}
@keyframes flashColorsBlack {
  0% { color: rgb(59, 59, 59); }
  10% { color: rgb(223, 219, 219); }
  20% { color: rgb(0, 0, 0); }
  45% { color: rgb(255, 255, 255); }
  54% { color: rgb(0, 138, 5); }
  60% { color: rgb(0, 0, 0); }
  63% { color: rgb(255, 249, 249); }
  71% { color: rgb(247, 247, 247); }
  90% { color: rgb(133, 90, 90); }
  95% { color: rgb(247, 247, 247); }
  100% { color: rgb(190, 191, 191); }
}
.glitchy-button:hover {
    animation: flashColors .5s steps(1, end) infinite;
  }

@keyframes flashColors {
    0% { color: rgb(59, 59, 59); }
    10% { color: rgb(223, 219, 219); }
    20% { color: rgb(26, 38, 171); }
    45% { color: rgb(255, 255, 255); }
    54% { color: rgb(0, 138, 5); }
    60% { color: rgb(18, 32, 151); }
    63% { color: rgb(255, 249, 249); }
    71% { color: rgb(247, 247, 247); }
    90% { color: rgb(174, 117, 117); }
    95% { color: rgb(247, 247, 247); }
    100% { color: rgb(190, 191, 191); }
}

#transition-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
  }
  
  #transition-screen.show {
    opacity: 1;
    pointer-events: all;
  }
  
  #transition-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .skills-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    row-gap: 1rem; /* spacing between images */
    margin-left: 8rem;
    margin-right: 8rem;
    margin-top: 6.5rem;
    margin-bottom: 8rem;
  }
  
  .skills-images img {
    width: 100%;
    height: 7rem;
    object-fit: contain;
    border-radius: 8px;
  }

  .rating {
    text-align: center;  /* Center the image and stars */
    z-index: 3;

  }
  
  .rating img {
    object-fit: contain;
    height: 7rem;
    width: 100%;
  }
  
  .stars {
    font-size: 1rem;  /* Adjust size of stars */
    margin-top: 5px;
    color: rgb(255, 255, 255);  /* Set star color */
  }
  
  .star {
    margin: 0 0px;  /* Space between stars */

  }

  .resume {
    z-index: 3;
    position: absolute;
    width: 60%;
    height: 70vh;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .about-me-text{
    z-index:3;
    position: absolute;
    top: 50%; 
    margin-left: 3.3em;
    left: 50%;
    transform: translate(-100%, -50%);
    font-family: VHC;
    text-align: center;
    color: rgb(227, 227, 227);
  }

  .about-me-text p{
    font-size: 1.4em;
    margin-top: 8px;
    line-height: 1.2;
    margin-bottom: 10px
  }
  .about-me-text h1{
    font-size: 3.4em;
    margin-bottom: 14px;
  }

  .profile-pic{
    z-index:3;
    position: absolute;
    width: 27rem;
    height: 27rem;
    top: 50%; 
    left: 50%;
    transform: translate(40%, -50%);
  }

  .profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-left: 5rem;
    margin-right: 2rem;
    margin-top: 10rem;
    margin-bottom: 8rem;
  }
  .project-images img {
    width: 100%;
    object-fit: contain;
    border-radius: 0px;

  }
  .description {
    z-index: 3;
    font-family: VHC;
    color: rgb(227, 227, 227);

  }
  .description h1{
    font-size: 1.4em;
    z-index: 3;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 14px;

  }
  .description p{
    font-size: .9em;
    z-index: 3;
    text-align: left;
    margin-top: 4px;
    margin-bottom: 6px;
  }
  .project-figure{
    display: flex; /* required to enable flex properties */
  align-items: center; /* vertically center content within this container */
  justify-content: center; /* horizontally center content */
  flex-direction: column; /* optional: stacks children vertically */
  z-index: 3;
  height: 27rem;
  width: 80%;
  }