.pp-header * {
  box-sizing: border-box;
}

.pp-header {
  position: fixed;
  display: flex;
  justify-content: center;
  width: 100%;
  background: linear-gradient(180deg, rgba(7, 61, 65, 0.75) 0%, rgba(7, 61, 65, 0) 100%);
  z-index: 100;
}

.pp-header.scrolled {
  background: linear-gradient(180deg, rgba(2, 50, 65, 0.90) 0%, rgba(2, 50, 65, 0.85) 60%, rgba(2, 50, 65, 0.80) 100%);
  backdrop-filter: blur(6px);
}

/* Maybe try to use shared container here later */
.pp-header-container {
  display: flex;
  align-items: center;
  position: relative;
  height: 96px;
  width: 100%;

  @media only screen and (max-width: 1200px) {
    flex-wrap: wrap;
    justify-content: right;
    padding-block: 12px;
    height: auto;
  }

  @media only screen and (max-width: 640px) {
    justify-content: center;
  }
}

.pp-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pp-header-logo {
  display: block;
  height: 48px;
}

.pp-header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin: 0 auto;

  @media only screen and (max-width: 1200px) {
    margin-right: 0;
  }

  @media only screen and (max-width: 970px) {
    padding-right: 0;
  }
}

.pp-header-menu-list {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
  gap: 4px;

  @media only screen and (max-width: 970px) {
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 340px;
    top: 0;
    left: -100%;
    background: #023241b3;
    backdrop-filter: blur(8px);
    display: block;
    padding: 50px 10px;
    overflow-y: auto;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.18);
    transition: left 0.3s ease;

    &.opened {
      left: 0;
    }
  }
}

.pp-header-mobile-open-menu {
  display: none;
  outline: none;
  border: none;
  background-color: transparent;
  cursor: pointer;

  @media only screen and (max-width: 970px) {
    display: block;
  }
}

.pp-header-mobile-close-menu {
  display: none;
  position: absolute;
  right: 30px;
  top: 12px;
  outline: none;
  border: none;
  background-color: transparent;
  cursor: pointer;

  @media only screen and (max-width: 970px) {
    display: block;
  }
}

.pp-header-list-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.pp-header-list-item:hover .pp-header-dropmenu {
  transition: all 0.3s ease;
  top: 100%;
  opacity: 1;
  visibility: visible;
}

/* Drop menu styles */
.pp-header-dropmenu {
  padding: 0;
  margin: 0;
  list-style-type: none;
  white-space: nowrap;
  display: block;
  border-radius: 8px;
  position: absolute;
  background: #023241bf;
  backdrop-filter: blur(8px);
  top: calc(100% + 20px);
  left: 0;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);

  @media only screen and (max-width: 970px) {
    position: static;
    width: 100%;
    display: none;

    &.opened {
      display: block;
      opacity: 1;
      visibility: visible;
    }
  }
}

.pp-header-dropmenu-link {
  display: block;
  padding: 10px 12px;
  color: #f2f2f2;

  @media only screen and (max-width: 970px) {
    padding-left: 20px;
  }
}

.pp-header-dropmenu-link:hover {
  background: #ffffff33;
  border-radius: 8px;
  text-decoration: none;
  color: #f2f2f2;
}
/* End of drop menu styles */

.pp-header-list-item-link {
  color: #f2f2f2;
  font-size: 16px;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;

  @media only screen and (max-width: 970px) {
    width: 100%;
    padding: 8px 0 12px 20px;
    font-size: 20px;
    margin-top: 10px;
  }
  
}

.pp-header-list-item-link:hover {
  color: #f2f2f2;
  background: #ffffff33;
  border-radius: 8px;
  text-decoration: none;
}

.pp-header-links {
  display: flex;
  flex-shrink: 0;
  margin-left: 32px;
  gap: 20px;

  @media only screen and (max-width: 1200px) {
    margin-top: 18px;
  }

  @media only screen and (max-width: 640px) {
    margin-left: 0;
  }
}

.pp-header-link {
  display: inline-block;
  color: #fff;
  border: 2px solid #fff ;
  padding: 8px 20px;
  width: 140px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  transition: transform 150ms linear;
}

.pp-header-link:hover {
  color: #fff;
  text-decoration: none;
  background-color: #ffffff66;
  transform: translateY(-3px);
}
