body {
  margin-bottom: 30px;
}

main {
  margin: 0 20px;
  color: white;
}

.page-title {
    color: white;
    margin-bottom: 0;
    line-height: 1;
}
  
.centered-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 25px;
}

.project-box {
  display: flex;
  align-items: center;
  border: 3px solid white;
  width: 75%;
  min-height: 230px;
  max-height: fit-content;
  max-width: 460px;
  border-radius: 10px;
  background-color: rgba(16, 16, 16, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.project-box .left, .project-box .right {
  min-width: 50%;
  max-width: 50%;
  width: 50%;
  min-height: 230px;
  padding: 10px;
}

.project-box .left {
  display: flex;
  align-items: center;
}

.project-box .project-icon {
  width: 100%;
  height: 100%;
  max-height: 210px;
  max-width: 210px;
  aspect-ratio: 1/1;
}

.project-box .project-title {
  font-size: 40px;
  margin: 20px 0 32px 0;
  line-height: 1;
}

.project-box .project-description {
  font-size: 22px;
  line-height: 1;
}

.project-box .project-link {
  color: white;
  font-size: 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s, scale 0.2s, gap 0.4s;
}

.project-box .project-link:hover {
  background-color: var(--honolulu-blue);
  gap: 12px;
}

.project-box .project-link:focus-visible {
  outline: 2px solid var(--honolulu-blue);
}

.project-box .project-link:active {
  scale: 0.9;
}

.project-box .stores-available-on {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 5px;
}

.project-box .stores {
  display: flex;
  gap: 3px;
}

.project-box .stores .store-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 3px;
  text-decoration: none;
  width: fit-content;
}

.project-box .stores .store-link.coming-soon {
  filter: brightness(50%);
}

.project-box .stores .store-icon {
  height: 25px;
  width: 25px;
}

.project-box .stores .store-name {
  color: white;
  margin: 0;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.3s;
  white-space: nowrap;
  display: inline-block;
}

.project-box .stores .store-link:hover .store-name,
.project-box .stores .store-link:focus-visible .store-name {
  max-width: 200px;
  transition: max-width 0.5s;
}

.project-box .stores:has(.store-link:hover) .store-link:not(:hover) .store-name,
.project-box .stores:has(.store-link:focus-visible) .store-link:not(:focus-visible) .store-name {
  max-width: 0;
  transition: max-width 0s;
}

.project-box .tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 10px 15px;
  background-color: var(--duke-blue);
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-weight: bold;
  line-height: 1;
}

.project-box .tag:empty {
  display: none;
}

/*display scaling*/
@media screen and (max-width: 600px) {
  .project-box {
    flex-direction: column;
    align-items: flex-start;
    min-width: 100%;
  }

  .project-box .left, .project-box .right {
    min-height: fit-content;
    min-width: 100%;
    width: 100%;
  }

  .project-box .project-icon {
    width: 120px;
    height: 120px;
  }

  .project-box .project-title {
    margin: 0;
  }

  .project-box .tag {
    left: auto;
    right: 0;
    top: 0;
    padding: 10px 15px;
    background-color: var(--duke-blue);
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .project-box .stores {
    gap: 15px;
  }
}