html, body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 5px;
  background-color: #d4d69f;
  z-index: 2;
}

.l-header, .r-header {
  font-family: sans-serif;
  font-weight: bold;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex: 1;
  text-align: center;
  gap: 3px;
}

.header-btn {
  cursor: pointer;
  font-size: 18px;
  white-space: nowrap;
  font-family: sans-serif;
  color: rgb(255, 255, 255);
  padding: 5px;
  padding-left: 20px;
  padding-right: 20px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .l-header, .r-header {
    justify-content: center;
    width: 100%;
  }
  .r-header {
    margin-top: 10px;
  }
}

.container {
  margin-top: 5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main-container {
  margin: 100px auto 0 auto; /* midtstill uten absolute posisjonering */
  margin-bottom: 20px;
  width: 100%;
  max-width: 1000px; /* valgfritt for store skjermer */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.027);
  padding: 20px;
  border-radius: 10px;
}

.hello-container {
  margin-top: 0px;
}

.img-kenneth {
  width: 200px;
  max-width: 80%;
  border-radius: 50%;
  margin-top: 50px;
  margin-bottom: 25px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.p-skills {
  width: 100%;
  padding: 1px;
  max-width: 500px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1px;
}

.p-skills p {
  padding: 1px;
  margin: 1px;
}
@media (max-width: 600px) {
  .p-skills {
    flex-direction: column;
    justify-content: center;
    gap: 1px;
  }
}

/* h2 med linje under */
h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0px;
  padding-bottom: 5px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.521);
  border-radius: 2px;
}
