html {
  /* font-family: "Segoe UI", Arial,sans-serif; */
  font-family: sans-serif, monospace;
}

body {
  max-width: 600px;
  margin: 20px auto;
}

p {
  margin-top: 25px;
}

.orange-link {
  color: #ff8717;
  text-decoration: none;
}

.orange-link:hover {
  text-decoration: underline;
}

p {
  /* text-align: justify; */
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
  margin: 8px 0;
}

header {
  text-align: center;
}

nav {
  width: 400px;
  display: grid;
  margin: 15px auto 35px auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

#portrait {
  height: 200px;
  border: 1px solid #ff8717;
  border-radius: 50%;
  margin: 16px 0 0 0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#portrait:hover {
  cursor: pointer;
}

.nav-link {
  text-decoration: none;
  border-bottom: 1px solid #ff8717;
  background-color: Transparent;
  color: black;
  padding: 4px 10px;
  text-align: center;
  /* overflow: hidden; */
}

.nav-link:hover,
.nav-active {
  background-color: #ff8717;
  color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.spin {
  animation: spin 1s ease 1;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.img-block {
  display: block;
  width: 300px;
  margin: 10px 0;
}

#matrix-div {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
}

.invert {
  filter: invert(100%);
}

.matrix-text {
  color: #ff8717;
}

.matrix-background {
  background-color: black;
}

.matrix-nav {
  color: #ff8717;
  border: 1px solid #ff8717;
}

.matrix-nav-active {
  color: black;
}

.center-text {
  text-align: center;
}

#project-list > div {
  display: grid;
  align-items: center;
  gap: 5px;
  grid-template-areas:
    "image title title"
    "image description description"
    "image live code";
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.image {
  grid-area: image;
}
.title {
  grid-area: title;
}
.description {
  grid-area: description;
}
.live {
  grid-area: live;
  text-align: center;
}
.code {
  grid-area: code;
  text-align: center;
}

.image > img {
  width: 100%;
  max-height: 100%;
}
.live > a,
.code > a {
  display: block;
  width: 80%;
  padding: 10px 0;
  margin: 5px auto;
  background-color: transparent;
  color: #ff8717;
  border: 1px solid #ff8717;
  align-self: center;
  cursor: pointer;
  text-decoration: none;
}

.live > a:hover,
.code > a:hover {
  background-color: #ff8717;
  color: white;
  border: 1px solid #ff8717;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.live > .inactive,
.code > .inactive {
  background-color: rgba(211, 211, 211, 0.315);
  pointer-events: none;
  border-color: rgb(221, 221, 221);
  color: rgba(153, 153, 153, 0.938);
  text-decoration: line-through;
}

.smaller-nav-link {
  padding-bottom: 2px;
}

#language-switcher {
  color: #ff8717;
  background-color: transparent;
  border: 1px solid #ff8717;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px;
  box-sizing: border-box;
  font-size: 16px;
}

#language-switcher:hover {
  border: solid 1px #ff8717;
  background-color: #ff8717;
  color: white;
}

#language-switcher:focus {
  outline: none;
}

@media only screen and (max-width: 600px) {
  body {
    width: auto;
  }

  nav {
    width: auto;
    grid-template-columns: 1fr;
    justify-content: center;
    margin: 15px auto 5px auto;
  }

  main {
    padding: 3px;
  }

  .nav-link {
    border: 1px solid white;
    background-color: #ff8717f2;
    color: white;
    padding: 10px 10px;
  }

  .smaller-nav-link {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .nav-link:hover {
    background-color: #fffffff2;
    color: #ff8717;
    border: 1px solid #ff8717;
  }

  #portrait {
    height: 130px;
    margin: 2px 0 0 0;
  }

  #project-list > div {
    display: grid;
    gap: 2px;
    grid-template-areas:
      "title"
      "image"
      "description"
      "live"
      "code";
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-columns: 1fr;
    margin-top: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

  /* .live>a, .code>a {
        width: 100%;
        padding: 10px 0;
        margin: 0;
        background-color: transparent;
        color: #FF8717;
        border: 1px solid #FF8717;
        align-self: center;
        cursor: pointer;
    } */

  .image > img {
    max-height: 200px;
  }
}

iframe {
  min-height: 500px;
  display: block;
  /* max-width: 600px; */
  width: 100%;
}
