body {
  height: 100dvh;
  width: 100%;
}

.main {
  height: 100%;
  min-height: 100dvh;

  &.penger-wallpaper {
    background-image: url("assets/all-the-pengers.gif");
  }
}

.content {
  padding: 40px;
  padding-top: 45px;
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  height: 100%;
  max-height: 1000px;
  width: 100%;
}

.experience {
  flex: 11;

  fieldset {
    height: 100%;
    overflow: auto;
  }
}

.tui-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 5;
  min-height: 0;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.company-details {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.past-job {
  .desc {
    font-style: italic;
  }

  img {
    image-rendering: pixelated;
  }

  ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    li::before {
      content: "\25A0";
      margin-right: 8px;
    }
  }
}

.tui-button-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  vertical-align: middle;
  padding: 6px 10px;
}

.tui-button svg {
  flex-shrink: 0;
  pointer-events: none;
}

.confirmation-modal {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
}

.left img {
  max-width: 100%;
  height: auto;
}

.short-date {
  display: none;
}

.full-date {
  display: inline-block;
}

.penger {
  flex: 1;
  min-height: 0;
  max-height: 300px;

  fieldset {
    display: flex;
    justify-content: center;
    height: 100%;
  }

  #penger_canvas {
    width: 100%;
    height: 100%:
  }
}

.company-details span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tui-sidenav-button {
  display: none !important;
}

.tui-sidenav {
  height: unset;
  min-width: 150px;
}

.section {
  display: none;
}

.section.active {
  display: flex;
  height: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 20px 0;
  padding-right: 15px;
  gap: 20px;
  overflow: hidden;
  grid-template-areas:
  "ex1 ex2 ex3"
  "ex4 penger ex5"
  "ex6 ex7 ex8";

  #penger {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
  }

  >.tui-window {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;

    a {
      display: inline;
      color: #0000FF;
    }

    &.focused {
      &::before {
        content: url("./assets/sitger.png");
        position: absolute;
        top: -16px;
        left: 10px;
      }

      legend {
        text-align: center;
      }

      fieldset {
        .tui-fieldset-button {
          display: block;
        }

        &:hover {
          cursor: unset;
        }
      }

      h2 {
        color: #FFFF00;
      }

      .project-info {
        display: block
      }
    }
  }

  fieldset {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;

    &:hover {
      cursor: pointer;
    }

    .tui-fieldset-button {
      display: none;
    }

    .project-info {
      display: none;
    }
  }

  img:not(#penger_img) {
    flex: 1;
    min-height: 0;
    object-fit: contain;
    max-width: 100%;

    &.focused {
      flex: unset;
      height: 250px;
      align-self: flex-start;
    }
  }

  canvas {
    flex: none;
    align-self: center;
    max-width: 100%;
  }
}
