@font-face {
  font-family: "Stormfaze Regular";
  src: url(fonts/Stormfaze.otf) format("opentype");
}

body {
  /* background-image: url('Pictures/background.png'); */
  background: rgb(255, 255, 255);
  background-size: 250px 250px;
  background-repeat: repeat;
  background-position: top left;
  margin: 0;
  padding: 0;
}

/* Navigation styles */

.site-header {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgb(143, 143, 143);
}

.name {
  text-decoration: none;
  font-weight: 700;
  color: 111;
  white-space: nowrap;
  font-family: 'Stormfaze Regular', sans-serif;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
}

.nav a {
  text-decoration: none;
  font-family: 'Segoe UI bold', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: uppercase;
  color: #000000;
  padding: 8px 12px;
  border-radius: 5px;
}

.nav a:hover {
  background: #f2f2f2;
}

.nav-swipe-in {
  opacity: 0;
  transform: translateY(-250px);
  animation: navSwipeIn 0.6s ease-out forwards;
  animation-fill-mode: forwards;
}

@keyframes navSwipeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.swipe-in {
  opacity: 0;
  transform: translateX(-100px);
  animation: swipeIn 0.8s ease-out forwards;
  animation-delay: 3s;
}

@keyframes swipeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Index.html specific styles */
.main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 28px;
  padding: 20px;
}

/*
.rbox {
  grid-column: 1;
  background-color: #af4f4f80;
  box-shadow: black 0px 0px 10px;
  display: flexbox;
  justify-content: end;
  max-width: 300px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
}
*/

.resume {
  grid-column: 2;
  grid-row: ;
  display: flex;
  justify-content: center;
}

.resume button {
  background-color: white;
  margin: 10px;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 21px;
  font-family: 'Stormfaze Regular', sans-serif;
  cursor: pointer;
  border-radius: 5px;
  border: none;
}

.resume button:hover {
  background-color: #a3a3a380;
  padding: 15px 33px;
}

.goal {
  grid-column: 2;
  max-width: 950px;
  margin-top: 95px;
  justify-self: center;
  border-radius: 5px;
  font-family: 'Stormfaze Regular', sans-serif;
  text-transform: uppercase;
  text-align: center;
}

.typing {
  width: 15ch;
  /* number of characters */
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid black;
  animation:
    typing 3s steps(23),
    blink 0.6s step-end infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 15ch
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

.typing-about {
  width: 8ch;
  /* number of characters */
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid black;
  animation:
    typing-about 3s steps(23),
    blink 0.6s step-end infinite;
}

@keyframes typing-about {
  from {
    width: 0
  }

  to {
    width: 8ch
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}


.goal:hover {
  background-color: #a3a3a380;
}

.goal h1 {
  margin: 12px auto;
  padding: 12px 16px;
  font-size: 36px;
}

.goal p {
  margin: 12px auto;
  padding: 12px 16px;
  font-size: 28px;
}

/* About.html specific styles */

.about-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
  font-family: 'Stormfaze Regular', sans-serif;
}

.about-section {
  text-align: center;
  margin-top: 95px;
  grid-column: 2;
  max-width: 1100px;
  font-size: 28px;
}

.about-section:hover {
  background-color: #a3a3a380;
  border-radius: 5px;
}

.about-section h2 {
  margin: 12px auto;
  padding: 12px 16px;
  font-size: 36px;
}

.about-section p {
  stroke: white;
  stroke-width: 5px;
}

.skills {
  grid-column: 1;
  grid-row: 1;
  margin-top: 95px;
  max-width: 250px;
}

.skills h2 {
  text-align: center;
}

/* Project.html specific styles */

.projects-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
  margin-top: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.projects-main h1 {
  grid-column: 2;
  text-align: center;
  color: red;
}

/* Tablet / small screens: stack logo + nav neatly */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }
}

/* Very small screens: make links easier to tap */
@media (max-width: 420px) {
  .nav a {
    flex: 1;
    /* makes links take equal width */
    text-align: center;
    border: 1px solid #e5e5e5;
    background: #fafafa;
  }
}