@import url('https://fonts.googleapis.com/css2?family=WDXL+Lubrifont+TC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=WDXL+Lubrifont+TC&family=Zalando+Sans:ital,wght@0,200..900;1,200..900&display=swap');

body {
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
  background-color: black;
}

#header-container {
  width: calc(100vw - 4vh);
  height: 70px;
  margin-right: 2vh;
  position: fixed;
  top: 0;
  margin-left: 2vh;
  margin-top: 2vh;
  margin-bottom: 2vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 80;
}

#header-sub-container {
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 85;
}

#player-container {
  height: 100%;
  width: 420px;
  max-width: calc(100vw - 4vh);
  box-sizing: border-box;
  background-color: black;
  border-radius: 20px;
  border: 1px solid white;
  overflow: hidden;
  display: flex;
  position: relative;
}

.player-container-full {
  width: 520px;
}

#main-logo-container {
  background-image: url("elements/splash.webp");
  width: 50vh;
  aspect-ratio: 1/1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#main-container {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#artwork-container {
  height: 100%;
  aspect-ratio: 1/1;
  border-right: 1px solid white;
  background-color: rgb(38, 38, 38);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: none;
}

#title-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  width: 100%;
}

#artist-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: rgba(255, 255, 255, 0.749);
  width: 100%;
}

#metadata-container {
  height: 100%;
  margin-right: 20px;
  margin-left: 20px;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

#controls-container {
  height: 80%;
  gap: 10px;
  display: flex;
  align-items: center;
  aspect-ratio: 1;
  padding-right: 10px;
}

#player-sub-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.control-button {
  aspect-ratio: 1/1;
  height: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: invert(100%);
}

#play-button {
  background-image: url("icons/play.png");
}

#stop-button {
  background-image: url("icons/stop.png");
  display: none;
}

#share-button {
  background-image: url("icons/share.png");
}

#scrollable-container {
  display: flex;
  align-items: center;
  gap: 3vw;
  padding: 3vh;
  scroll-snap-type: x mandatory;
  scroll-padding: 3vw;
  padding-bottom: 3vw;
  overflow-x: scroll;
}

#articles-container {
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

#posters-container {
  width: 30vw;
  box-sizing: border-box;
  position: sticky;
  bottom: 0;
  align-self: flex-end;
  height: min-content;
}

.poster {
  width: calc(100% - 6vw);
  aspect-ratio: 9/12;
  background-color: rgb(43, 43, 43);
  border-radius: 2vw;
  margin-left: 3vw;
  margin-right: 3vw;
  margin-bottom: 3vw;
  border: 1px solid white;
  box-sizing: border-box;
}

#articles-sub-container {
  width: 70vw;
  box-sizing: border-box;
  padding-right: 3vw;
}

#main-subtitle-container {
  font-family: "WDXL Lubrifont TC", sans-serif;
  font-weight: 100;
  font-style: normal;
  color: rgb(161, 161, 161);
  font-size: min(3vw, 3vh);
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-page-container {
  max-height: calc(100vh - (70px + 4vh));
  width: 100vw;
  display: none;
  margin-top: calc(70px + 4vh);
}

#video-page-left-container {
  width: 70%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}

#video-page-right-container {
  width: 30%;
  height: calc(100vh - 12.5vh);
  box-sizing: border-box;
  border-left: 1px solid transparent;
  border-image: linear-gradient(0deg,rgba(122, 122, 122, 1) 0%,rgba(122, 122, 122, 1) 50%, rgba(0, 0, 0, 0) 100%) 1;
}

.video-carousel-title {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: white;
  cursor: pointer;
  text-wrap: nowrap;
  max-width: 90%;
  display: flex;
  align-items: center;
}

.video-carousel-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: rgba(34, 34, 34, 0.96);
  border: 1px solid #4a4a4a;
  box-sizing: border-box;
  border-radius: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.video-sub-container {
  height: max(24vw, 20vh);
  aspect-ratio: 16/9;
  background-color: rgb(43, 43, 43);
  border-radius: 2vw;
  cursor: pointer;
  box-sizing: border-box;
}

.video-sub-container:hover {
  border: 1px solid white;
}

@media (max-width: 850px) {
  #video-page-right-container {
      display: none;
  }

  #video-page-left-container {
      width: 100%;
  }

  #posters-container {
      display: none;
  }

  #articles-sub-container {
      width: 100vw;
      padding-right: 3vw;
      padding-left: 3vw;
      max-width: 100%;
  }
}

#video-page-left-content-container {
  display: flex;
  justify-content: center;
}

#video-page-left-description-container {
  height: 30%;
  width: 100%;
}

#video-page-left-description-sub-container {
  width: calc(100% - (5vh + 3em));
  margin: 2.5vh;
  background-color: rgb(43, 43, 43);
  border-radius: 20px;
  padding: 1.5em;
}

#video-page-title {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  width: 100%;
  font-size: 1.2em;
  width: 100%;
}

#video-page-description {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: rgba(255, 255, 255, 0.749);
  width: 100%;
  margin-top: 0.8em;
}

#video-player {
  width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

#video-page-left-content-sub-container {
  background-color: black;
  overflow: hidden;
  padding-left: 1.5em;
  padding-right: 1.5em;
  aspect-ratio: 16/9;
  max-height: calc(70% - 1.5em);
}

.article-entry-title {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  text-shadow: 5px 5px 15px black;
}

.article-entry {
  min-height: 4em;
  width: 100%;
  max-width: calc(100vw - 4vh);
  box-sizing: border-box;
  background-color: rgba(34, 34, 34, 0.96);
  border-radius: 20px;
  margin-bottom: 2vh;
  display: flex;
  align-items: center;
  padding-left: 2em;
  cursor: pointer;
  justify-content: space-between;
  border: 1px solid #4a4a4a;
}

#article-page-container {
  width: 100vw;
  display: none;
  margin-top: calc(70px + 4vh);
  display: flex;
  justify-content: center;
}

#article-container {
  width: min(700px, 100%);
  padding-left: 2vh;
  padding-right: 2vh;
}

#article-title-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  width: 100%;
  font-size: 1.5em;
  width: 100%;
  align-items: center;
  display: flex;
  margin-bottom: 1vh;
}

#article-subtitle-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: rgba(255, 255, 255, 0.749);
  width: 100%;
  align-items: center;
  display: flex;
  margin-bottom: 2vh;
}

#article-image-container {
  width: 100%;
  margin-bottom: 3vh;
  border-radius: 20px;
  border: 1px solid white;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

#article-content-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: rgba(255, 255, 255, 0.749);
  width: 100%;
  padding-bottom: 5vh;
  white-space: pre-wrap;
}

#article-details-container {
  width: min-content;
  background-color: #131313;
  border: 1px solid #424242;
  white-space: nowrap;
  padding-left: 2vh;
  padding-right: 2vh;
  padding-top: 1vh;
  padding-bottom: 1vh;
  margin-bottom: 2vh;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  display: none;
}

#article-author-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  width: 100%;
}

#article-date-container {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: rgba(255, 255, 255, 0.749);
  width: 100%;
  font-size: 0.8em;
}

#article-author-photo {
  height: 30px;
  width: 30px;
  border-radius: 30px;
  background-color: black;
  border: 1px solid white;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
}

#article-image {
  width: 100%;
}

.video-container {
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  gap: 1vh;
}

#article-entries-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 100px;
}

#search-container {
  height: 60%;
  box-sizing: border-box;
  border-radius: 2em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-left: 1px;
  padding-right: 1px;
  border: 1px solid #ffffff42;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease-in-out;
  position: relative;
  width: 470px;
}

#search-input {
  width: 100%;
  height: calc(100% - 4px);
  border: none;
  border-radius: 2em;
  background: rgba(0, 0, 0, 0);
  color: white;
  padding-left: 1em;
  padding-right: 1em;
}

#search-input:focus {
  outline: none;
}

#search-confirm-button {
  background-image: url("icons/search.png");
  margin-right: 1em;
  margin-left: 0.7em;
}

.scroll-hidden {
  transform: translateY(0px);
}

@media (max-width: 1050px) {
  #header-container {
    display: block;
    overflow: visible;
  }
  
  #search-container {
    width: 520px;
    max-width: calc(100vw - 4vh);
    margin-top: 0.5em;
  }

  #search-input {
    width: 100%;
  }

  #article-page-container {
    margin-top: calc(70px + 4vh + (4vh * 0.7) + 1em + 2px);
  }

  #video-page-container {
    margin-top: calc(70px + 4vh + (4vh * 0.7) + 1em + 2px);
  }

  .scroll-hidden {
    transform: translateY(-10em);
  }
}

#search-sub-container {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
}

#search-content-container {
  width: 100%;
  margin-top: calc(((70px * 0.6) / 2) * -1);
  padding-top: calc(((70px * 0.6) / 2) + 0.5em);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.search-content {
  height: calc(70px * 0.6);
  width: 100%;
  border: 1px solid white;
  background-color: rgb(0, 0, 0);
  border-radius: 2em;
  margin-bottom: 0.3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.search-content:hover {
 background-color: #1a1a1a;
}

.search-title {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  width: 100%;
}

.search-date {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: rgba(255, 255, 255, 0.749);
  width: 100%;
  font-size: 0.8em;
}

.search-arrow {
  height: 100%;
  aspect-ratio: 1/1;
  height: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: invert(100%);
  background-image: url("icons/arrow-right.png");
}

@media (max-width: 480px) {
  #search-input {
    font-size: 16px;
  }
}

#mini-logo-container {
  background-image: url("elements/porch-head.webp");
  height: 100%;
  width: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

#metadata-sub-container {
  width: 100%;
}

.article-entry-thumbnail {
  height: 4em;
  position: relative;
  border-radius: 0px 20px 20px 0px;
  border-left: 1px solid #4a4a4a;
}

#articles-title-container {
  width: 100%;
}

#articles-title {
  font-family: "Zalando Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: white;
  font-size: 40px;
  padding-left: 20px;
  padding-bottom: 10px;
}