@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,500i&display=swap');

:root {
  --tbf-album-300: #1cafa7b3;
  --tbf-album-500: #448ca4b3;
  --tbf-album-500-footer: #448ca4f6;
}

html,
body {
  margin: 0;
  /* background: url(../img/album-cover-bg.jpg); */
  /* background: url(../img/album-bg.jpg); */
  background: radial-gradient(#1c5666, #061c22);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Rubik', sans-serif;
  overflow: hidden;
  height: 100vh;
}

p {
  color: white;
  margin: 0;
}

button {
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

.space {
  height: 50vh;
}

.album-container {
  max-width: 600px;
  height: 100vh;
  margin: 0 auto;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/*  */
header,
footer {
  padding: 10px 30px;
  background-color: var(--tbf-album-500);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  gap: 40px;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
}

header ul li {
  cursor: pointer;
}

header ul p.active {
  color: #0d3c49;
}

footer {
  background-color: var(--tbf-album-500-footer);
  position: fixed;
  width: -moz-available;
  width: -webkit-fill-available;
  width: fill-available;
  max-width: 540px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
}

footer p {
  font-size: 20px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

footer div button {
  color: white;
  cursor: pointer;
  font-size: 20px;
}

footer div button:first-of-type {
  transform: rotate(-90deg);
}

footer div button:last-of-type {
  transform: rotate(90deg);
}

/*  */
.logo {
  width: 200px;
}

.avatar {
  width: 40px;
}

.ship-door {
  width: 30px;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0px;
}

*::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

.album-title,
.index-title {
  white-space: nowrap;
  background-color: var(--tbf-album-500);
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  padding: 5px 20px;
  /* width: 400px; */
  width: 270px;
  border-radius: 0 0 0 0;
  margin-bottom: 30px;
}

.badges-container {
  padding: 20px 0;
}

.pins-container {
  padding: 20px 0;
}

.cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.cover-header img {
  width: 100px;
}

.cover-data {
  display: flex;
  gap: 30px;
  margin-left: 30px;
  font-size: 25px;
}

.cover-data p {
  text-align: center;
}

.cover-title {
  text-align: center;
  align-self: flex-end;
  position: relative;
  right: -30px;
}

.cover-footer {
  position: sticky;
  bottom: 40px;
  padding: 0 30px;
  font-size: 25px;
}

.cover-footer .album-text {
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 10rem;
  font-weight: 800;
}

.cover-footer .username {
  text-transform: uppercase;
}

/* Index */
.all-pins.mobile {
  display: none;
}

.all-pins {
  /* column-count: 2; */
  display: flex;
  font-size: 18px;
  font-weight: 500;
  padding: 41px 40px;
  margin: 0 20px;
  position: relative;
  background: #318ba7cc;
  /* max-height: 50vh; */
  overflow-y: overlay;
  overflow-x: hidden;
  scrollbar-color: #0ff #055;
  scrollbar-width: thin;
}

.all-pins .separator {
  width: 4px;
  background: #00d5f1;
  border-radius: 50px;
  height: 120px;
  top: 50px;
  position: relative;
}

.all-pins .thead-separator {
  width: 4px;
  background: #00d5f1;
  border-radius: 0;
  height: 37px;
  /* top: 41px;
  position: absolute;
  left: 279px; */
  z-index: 30;
  right: -2px;
  position: relative;
}

.all-pins .table-detail {
  position: absolute;
  background: #318ba7;
  width: 100%;
  height: 37px;
  top: 41px;
  right: 0;
  z-index: 1;
}

.all-pins table {
  color: white;
  padding: 10px;
  border-collapse: collapse;
  width: 100%;
  height: min-content;
  z-index: 2;
  font-size: 14px;
}

.all-pins thead,
.all-pins th {
  background: #318ba7;
  /* height: 37px; */
}

.all-pins th {
  font-weight: normal;
}

.all-pins tbody tr {
  cursor: pointer;
}

.all-pins th,
.all-pins td {
  padding: 10px 5px;
  text-align: center;
}

.all-pins tr:first-child td {
  padding-top: 20px;
}

.all-pins td.completed {
  color: #00ffff;
  font-style: italic;
}

.all-pins .t1 {
  margin-right: 40px;
}
/* Pins */  
.pins {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.pin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-direction: column;
}

.pin-info img {
  width: 100px;
}

.pin-text {
  background-color: var(--tbf-album-300);
  /* text-transform: uppercase; */
  text-align: center;
  padding: 5px 20px;
  width: 50px;
  font-size: 16px;
}

.pin-image-text-overlay {
  position: relative;
}

.pin-name-overlay {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  z-index: 2;
  border-radius: 100px;
  text-align: center;
}

.pin-name-overlay span {
  background: #4591b0;
  padding: 5px 10px;
  border-radius: 50px;
  color: #fff;
  opacity: 0;
  transition: 100ms;
}

.pin-name-overlay:hover span {
  opacity: 1;
}

.pin-name-overlay.not-completed span {
  opacity: 1;
  background: none;
}

.pins-list.four {
  height: 100vh;
}

.four .pins {
  position: absolute;
  width: 100%;
}

.four .pins,
.four .left-pins,
.four .right-pins {
  height: 100%;
}

.four .left-pins,
.four .right-pins {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
}

.four .pin-info {
  flex-direction: column-reverse;
}

.four .left-pins .pin-text {
  align-self: flex-start;
}

.four .left-pins .pin-image-text-overlay {
  margin-left: 60px;
}

.four .right-pins .pin-text {
  align-self: flex-end;
}

.four .right-pins .pin-image-text-overlay {
  margin-right: 60px;
}

.four .left-pins .pin-info:last-child,
.four .right-pins .pin-info:last-child {
  margin-bottom: 250px;
}

.four .pin-info img {
  width: 150px;
}

.four .pin-text {
  width: 50px;
  font-size: 16px;
}

.pins-list:not(.four) .left-pins .pin-info {
  flex-direction: row;
}

.pins-list:not(.four) .right-pins .pin-info {
  flex-direction: row-reverse;
}

.left-pins .pin-text {
  border-radius: 0 35px 35px 0;
}

.right-pins .pin-text {
  border-radius: 35px 0 0 35px;
}

span.pin-img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 500px;
  box-shadow: 0px 0px 10px #24799133;
  background-color: #00000040;
}

.four span.pin-img {
  width: 150px;
  height: 150px;
}

.pin-text.transparent {
  opacity: 0;
  visibility: hidden;
  user-select: none;
  cursor: default;
  display: none;
}

div.pin-information {
  width: 200px;
  height: 130px;
  display: block;
  border-radius: 15px;
  background: #448ca4ab;
  padding: 13px;
  margin-right: 20px;
  overflow-y: hidden;
  color: white;
}

div.pin-information p {
  height: 100%;
  overflow-y: scroll;
  font-size: 13px;
  text-align: justify;
}
/* Badges */
.title {
  display: flex;
  justify-content: flex-end;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.badge-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-direction: column;
}

.badge-info img {
  width: 100px;
}

.badge-text {
  background-color: var(--tbf-album-300);
  /* text-transform: uppercase; */
  text-align: center;
  padding: 5px 20px;
  width: 50px;
  font-size: 16px;
}

.badge-image-text-overlay {
  position: relative;
}

.badge-name-overlay {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  z-index: 2;
  border-radius: 100px;
  text-align: center;
}

.badge-name-overlay span {
  background: #4591b0;
  padding: 5px 10px;
  border-radius: 50px;
  color: #fff;
  opacity: 0;
  transition: 100ms;
}

.badge-name-overlay:hover span {
  opacity: 1;
}

.badge-name-overlay.not-completed span {
  opacity: 1;
  background: none;
}

.badges-list.four {
  height: 100vh;
}

.four .badges {
  position: absolute;
  width: 100%;
}

.four .badges,
.four .left-badges,
.four .right-badges {
  height: 100%;
}

.four .left-badges,
.four .right-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
}

.four .badge-info {
  flex-direction: column-reverse;
}

.four .left-badges .badge-text {
  align-self: flex-start;
}

.four .left-badges .badge-image-text-overlay {
  margin-left: 60px;
}

.four .right-badges .badge-text {
  align-self: flex-end;
}

.four .right-badges .badge-image-text-overlay {
  margin-right: 60px;
}

.four .left-badges .badge-info:last-child,
.four .right-badges .badge-info:last-child {
  margin-bottom: 250px;
}

.four .badge-info img {
  width: 150px;
}

.four .badge-text {
  width: 50px;
  font-size: 16px;
}

.badges-list:not(.four) .left-badges .badge-info {
  flex-direction: row;
}

.badges-list:not(.four) .right-badges .badge-info {
  flex-direction: row-reverse;
}

.left-badges .badge-text {
  border-radius: 0 35px 35px 0;
}

.right-badges .badge-text {
  border-radius: 35px 0 0 35px;
}

span.badge-img {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 500px;
  box-shadow: 0px 0px 10px #24799133;
  background-color: #00000040;
}

.four span.badge-img {
  width: 150px;
  height: 150px;
}

.badge-text.transparent {
  opacity: 0;
  visibility: hidden;
  user-select: none;
  cursor: default;
  display: none;
}

div.badge-information {
  width: 200px;
  height: 130px;
  display: block;
  border-radius: 15px;
  background: #448ca4ab;
  padding: 13px;
  margin-right: 20px;
  overflow-y: hidden;
  color: white;
}

div.badge-information p {
  height: 100%;
  overflow-y: scroll;
  font-size: 13px;
  text-align: justify;
}

/* .mobile-four-badges {
  display: none;
} */

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tbf-album-500);
  padding: 20px;
  border-radius: 15px;
  width: fit-content;
  color: white;
  margin: 0 auto;
}

.waiting {
  margin-right: 6px;
}

.waiting {
  width: 30px;
  height: 30px;
  animation: rotate 1.5s infinite linear;
  display: block;
}

.waiting i {
  font-size: 30px;
}

.mobile-users {
  display: none;
}

@media screen and (max-width: 420px) {
  .ship-door {
    /* display: none; */
    width: 15px;
  }
}

@media screen and (max-width: 500px) {
  .badge-img,
  span.badge-img {
    width: 75px !important;
    height: 75px !important;
  }

  div.badge-name-overlay {
    width: 75px !important;
    height: 75px !important;
  }

  .four .left-badges .badge-image-text-overlay {
    margin-left: 60px !important;
  }

  .four .right-badges .badge-image-text-overlay {
    margin-right: 60px !important;
  }

  header ul {
    font-size: 13px;
  }

  footer {
    height: 25px;
  }

  .badges {
    flex-wrap: nowrap;
  }

  .pins {
    flex-wrap: nowrap;
  }

  .pin-img,
  span.pin-img {
    width: 75px !important;
    height: 75px !important;
  }

  div.pin-name-overlay {
    width: 75px !important;
    height: 75px !important;
  }

  .four .left-pins .pin-image-text-overlay {
    margin-left: 60px !important;
  }

  .four .right-pins .pin-image-text-overlay {
    margin-right: 60px !important;
  }

  .all-pins:not(.mobile) {
    display: none;
  }

  .all-pins.mobile {
    display: block;
  }

  .pin-text {
    padding: 5px 0;
    /* font-size: 16px;
    width: 50px; */
  }

  .pin-information {
    margin: 0 !important;
    width: 150px !important;
    height: 100px !important;
  }

  /* .left-badges .badge-info,
  .right-badges .badge-info {
    flex-direction: column !important;
    margin-bottom: 30px !important;
  } */

  .badge-text {
    padding: 5px 0;
    /* font-size: 16px;
    width: 50px; */
  }

  .badge-information {
    margin: 0 !important;
    width: 150px !important;
    height: 100px !important;
  }

  /* .mobile-four-badges {
    column-gap: 10px;
  } */

  /* .four .badge-text {
    width: 50px;
    font-size: 16px;
  } */

  .logo {
    width: 100px;
  }

  .cover-footer {
    position: fixed;
    width: calc(100vw - 60px);
  }
}

@media screen and (max-width: 900px) {
  header ul {
    gap: 15px;
  }

  .cover-header {
    flex-direction: column;
  }

  .cover-data {
    font-size: 16px;
    justify-content: center;
    margin: 0 auto 20px;
  }

  .cover-title {
    align-self: flex-end;
    position: relative;
    right: -30px;
  }

  .album-title.initial {
    padding-left: 0;
  }

  .album-title,
  .index-title {
    width: 260px;
  }

  .cover-footer .album-text {
    font-size: 4rem;
  }

  .badges-list.four {
    height: 100%;
  }

  .badges .album-title {
    width: 70%;
  }

  .pins-list.four {
    height: 100%;
  }

  .pins .album-title {
    width: 70%;
  }

  /* :not(.four) .right-badges .badge-info {
    flex-direction: row;
  }

  .badge-text {
    border-radius: 10px !important;
  }

  .badge-info:not(.four),
  :not(.four) .right-badges .badge-info {
    flex-direction: column;
    align-items: center;
  }

  .four .left-badges,
  .four .right-badges {
    display: none;
  } 

  .mobile-four-badges {
    display: grid;
    grid-template-areas:
      'div div'
      'div div';
    height: 100vh;
    width: 100%;
  }

  .mobile-four-badges .badge-info {
    position: relative;
    bottom: 130px;
  }

  .mobile-four-badges .badge-info:nth-child(3),
  .mobile-four-badges .badge-info:nth-child(4) {
    bottom: 150px;
  }  */
}

@media screen and (min-height: 730px) {
  .badge-img {
    width: 95px !important;
    height: 95px !important;
  }

  .badge-name-overlay {
    width: 95px !important;
    height: 95px !important;
  }

  .four .left-badges .badge-image-text-overlay {
    margin-left: 90px;
  }

  .four .right-badges .badge-image-text-overlay {
    margin-right: 90px;
  }
  .pin-img {
    width: 95px !important;
    height: 95px !important;
  }

  .pin-name-overlay {
    width: 95px !important;
    height: 95px !important;
  }

  .four .left-pins .pin-image-text-overlay {
    margin-left: 90px;
  }

  .four .right-pins .pin-image-text-overlay {
    margin-right: 90px;
  }
}

@media screen and (max-height: 700px) {
  .logo {
    width: 130px !important;
  }

  div.badge-information {
    height: 100px !important;
  }

  div.pin-information {
    height: 100px !important;
  }
}

@media screen and (min-width: 1000px) and (max-height: 767px) {
  .badge-img {
    width: 100px !important;
    height: 100px !important;
  }

  .badge-name-overlay {
    width: 100px !important;
    height: 100px !important;
  }

  .four .left-badges .badge-image-text-overlay {
    margin-left: 90px;
  }

  .four .right-badges .badge-image-text-overlay {
    margin-right: 90px;
  }

  .pin-img {
    width: 100px !important;
    height: 100px !important;
  }

  .pin-name-overlay {
    width: 100px !important;
    height: 100px !important;
  }

  .four .left-pins .pin-image-text-overlay {
    margin-left: 90px;
  }

  .four .right-pins .pin-image-text-overlay {
    margin-right: 90px;
  }
}

@media screen and (min-width: 1000px) and (min-height: 800px) {
  .badge-img {
    width: 175px !important;
    height: 175px !important;
  }

  .badge-name-overlay {
    width: 175px !important;
    height: 175px !important;
  }

  .pin-img {
    width: 175px !important;
    height: 175px !important;
  }

  .pin-name-overlay {
    width: 175px !important;
    height: 175px !important;
  }
}
