:root {
  --main-bg-color: #f5f3f5;
  --hyperlink-color: #007bff;
  --otherpurpleish: #283891;
  --gradient1: #283891;
  --gradient2: #262364;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--main-bg-color);
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}
.header-title {
  text-align: center;
  margin: 0;
}
.bigtext {
  font-size: 1.25rem;
}
.boldtext {
  font-weight: bold;
}
.noselect {
  user-select: none;
}
.center-column {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
}
.center-row {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
}
.center-left {
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
}
.center-right {
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-end;
}
.text-center {
  text-align: center;
}
.flex-center {
  display: flex;
  align-items: center;
}
.center-text {
  text-align: center;
}
.flex {
  display: flex;
  flex-direction: row;
}
.padding {
  padding: 1rem;
}
.margin {
  margin: 1rem;
}
.box-shadow {
  box-shadow: 0 4px 20px rgb(0 0 0 / 40%);
  transition: 0.3s;
}
.box-shadow:hover {
  box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
}
.hidden {
  display: none;
}
.link-no-deco {
  text-decoration: none;
  color: inherit;
}
a {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  filter: brightness(0.75);
}
.overflow {
  overflow-y: auto;
}

.header {
  background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  border-radius: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  color: white;
}
.header img {
  width: 4rem;
}
.header a {
  color: #f5f3f5;
  font-weight: 500;
}
.header-nav a {
  margin: 0 0.5rem;
  font-size: 1.25rem;
}
.header #lg-txt {
  width: 6rem;
  vertical-align: super;
  margin-left: 0.5rem;
}
#smallNav {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}
.bottom {
  bottom: 0;
  position: fixed;
}
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 90vh;
  border-radius: 1rem;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 40%);
  z-index: 1000;
}
.input-style-1 {
  border: none;
  width: 65%;
  height: 2rem;
  color: black;
}
.wideInput {
  width: 16rem;
}
.text-input-style-2 {
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 0.2rem solid var(--gradient1);
  border-radius: 0.25rem;
}
.text-area-style-1 {
  width: 27rem;
  height: 3rem;
  padding: 1rem;
  resize: none;
  border: 0.25rem solid var(--gradient1);
  border-radius: 0.6rem;
  /* background:linear-gradient(179deg, var(--gradient1)cc, var(--gradient2)cc); */
}
.text-area-style-2 {
  resize: none;
  border-radius: 0.6rem;
  border: 0.2rem solid #333333;
  height: 5rem;
  width: 90%;
}
.text-area-style-2::placeholder {
  font-size: 1.25rem;
  text-align: center;
  font-weight: bold;
}
.fileInput-style-1::-webkit-file-upload-button {
  visibility: hidden;
}
.fileInput-style-1::before {
  display: inline-block;
  background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  color: white;
  width: 100%;
  height: 3.5rem;
  border-radius: 0.6rem;
  text-align: center;
  line-height: 3.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
}
.fileInput-style-1:hover::before {
  filter: brightness(0.75);
  transition: 200ms;
}
.fileInput-style-1:active::before {
  background: linear-gradient(179deg, var(--gradient2), var(--gradient1));
  transition: 200ms;
}

.button-style-1 {
  background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  background-color: var(--gradient1);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}
.button-style-1:hover {
  filter: brightness(0.75);
  transition: 200ms;
}
.button-wide {
  width: 16rem;
  height: 3.5rem;
  font-size: 1.25rem;
  border-radius: 0.6rem;
  font-weight: bold;
}

.h1button {
  width: 9rem;
  height: 3.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}
button:hover {
  transition: 200ms;
  filter: brightness(0.75);
}
.biggerButton {
  height: 3.8rem;
  font-size: 1.5rem;
  border-radius: 0.6rem;
}
.textButton {
  background: none;
  color: black;
  font-weight: bold;
}
.a-button-style-1 {
  background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  background-color: var(--gradient1);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}
.a-button-style-2 {
  color: var(--hyperlink-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
  cursor: pointer;
}
.close-button {
  color: #000000;
  font-weight: bold;
  border: none;
  background: #ff3f3f;
  border-radius: 1rem;
  width: 4rem;
  height: 2rem;
  float: right;
  cursor: pointer;
}
.error {
  color: red;
  font-weight: bold;
}
.redGradient {
  background: linear-gradient(179deg, #a00000, #ff0000);
}
.clickable {
  cursor: pointer;
  transition: 200ms;
}
.simpleBorder {
  border: 0.2rem solid black;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.post-post {
  width: 25rem;
  border-radius: 0.5rem;
  background: #f5f3f5;
  margin-bottom: 3rem;
}
.post-actions {
  width: 95%;
  margin: 0.5rem 0rem 0.5rem 0rem;
}
.post-actions .icon {
  margin-left: 1.25rem;
  width: 2.5rem;
  cursor: pointer;
}
.post-audio {
  width: 100%;
  height: 4rem;
}
.post-audio > audio {
  width: 90%;
  height: 3rem;
}
.black {
  filter: brightness(0%);
}
.black:hover {
  filter: brightness(20%);
}
.loader {
  width: 45px;
  aspect-ratio: 0.75;
  --c: no-repeat linear-gradient(#161616 0 0);
  background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%;
  animation: l7 1s infinite linear alternate;
}
@keyframes l7 {
  0% {
    background-size: 20% 50%, 20% 50%, 20% 50%;
  }
  20% {
    background-size: 20% 20%, 20% 50%, 20% 50%;
  }
  40% {
    background-size: 20% 100%, 20% 20%, 20% 50%;
  }
  60% {
    background-size: 20% 50%, 20% 100%, 20% 20%;
  }
  80% {
    background-size: 20% 50%, 20% 50%, 20% 100%;
  }
  100% {
    background-size: 20% 50%, 20% 50%, 20% 50%;
  }
}
/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.uploadingLoader {
  width: fit-content;
  font-weight: bold;
  font-family: monospace;
  clip-path: inset(0 3ch 0 0);
  animation: l4 2s steps(4) infinite;
}
.uploadingLoader:before {
  content: "Uploading...";
}
@keyframes l4 {
  to {
    clip-path: inset(0 -1ch 0 0);
  }
}

/* posts */
#commentsBar-container {
  height: 90%;
  width: 85%;
  overflow-y: auto;
}
@keyframes zoomin {
  0% {
    left: -45rem;
  }
  100% {
    left: 50rem;
  }
}
@keyframes zoomout {
  0% {
    left: 50rem;
  }
  100% {
    left: 145rem;
  }
}
.comment {
  margin-top: 2rem;
}
.comment div {
  color: #616161;
  font-weight: bold;
}

/* artist page */

.artist-info {
  margin-top: 2rem;
}
.artist-pfp {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-right: 1rem;
}
.artist-actions button {
  font-size: 1.25rem;
  width: 7rem;
  height: 3rem;
  padding: 0.25rem;
  margin: 0.5rem;
}
.artist-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  grid-template-rows: 10rem;
  gap: 2rem;
  max-width: 62.5rem;
  margin: 0 auto;
}
.post-item {
  color: black;
  background-color: var(--main-bg-color);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgb(0 0 0 / 28%);
  width: 20rem;
  transition: 300ms;
}
.post-item:hover {
  background-color: var(--main-bg-color);
  transform: scale(1.05);
  cursor: pointer;
}
.post-item img {
  border-radius: 0.5rem;
  width: 20rem;
}
.post-item #post-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0.5rem;
}
.post-item #post-info div {
  margin-right: 1rem;
}
.artist-links {
  display: flex;
}
.artist-links a {
  margin: 0.5rem;
}
.artist-stats {
  display: flex;
  flex-direction: row;
  margin-top: 1rem;
}
.stat-item {
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-right: 1rem;
}
.stat-item span {
  font-size: 1.25rem;
}

.footer-content {
  background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  color: white;
  border-radius: 0.6rem;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
.footer-content #footer-icon {
  width: 6rem;
}
.footer-content div {
  margin: 1rem;
}
.footer-socials a {
  margin-left: 1rem;
}
.footer-socials a img {
  width: 3rem;
  filter: brightness(0) invert(1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.footer-socials a img:hover {
  filter: brightness(1);
}

/* creation */
.checkbox-slider {
  display: none;
}

.toggleSwitch {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 50px;
  height: 30px;
  background-color: rgb(82, 82, 82);
  border-radius: 20px;
  cursor: pointer;
  transition-duration: 0.3s;
}

.toggleSwitch::after {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: 5px;
  background-color: transparent;
  border-radius: 50%;
  transition-duration: 0.3s;
  box-shadow: 5px 2px 7px rgba(8, 8, 8, 0.26);
  border: 5px solid white;
}

.checkbox-slider:checked + .toggleSwitch::after {
  transform: translateX(100%);
  transition-duration: 0.3s;
  background-color: white;
}
/* Switch background change */
.checkbox-slider:checked + .toggleSwitch {
  background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  transition-duration: 0.3s;
}
/* flyer stuff */
.flyer {
  margin: 1rem;
}
.flyer a {
  margin: 1rem;
  transform: scale(1.2);
}
.flyer .center-row img {
  width: 2rem;
  cursor: pointer;
}
.flyer img {
  --w: 30rem;
  --l: 6rem;
  --s: 2rem;

  width: 30rem;
  padding-top: calc(var(--l) / 2);
  object-fit: cover;
  --_d: calc((var(--w) / 2 + var(--l)) * 0.707), #000 0;
  --_g: calc((var(--w) / 2 + var(--l)) * 0.707 - var(--s) * 1.414),
    #0005 0 var(--_d);
  background: linear-gradient(135deg, #0000 var(--_g), #0000 0);
  -webkit-mask: linear-gradient(-135deg, #0000 var(--_d)),
    linear-gradient(135deg, #000 var(--_g));
  clip-path: polygon(
    0 0,
    calc(50% + var(--l) - 3 * var(--s)) 0,
    calc(50% + var(--l) - var(--s)) var(--s),
    calc(50% + var(--l)) 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.searchform {
  justify-content: flex-start;
  height: 100vh;
}
.searchform > input {
  width: 20rem;
  height: 2rem;
  box-shadow: 0 0 20px 0px #3947c1;
  border: 0.15rem solid #3947c196;
  border-radius: 0.5rem;
}

/* media queries */
@media (max-width: 770px) {
  .artist-posts {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .header-logo {
    display: none;
  }
}
@media (max-width: 650px) {
  .text-area-style-1 {
    width: 15rem;
  }
}
@media (max-width: 600px) {
  .link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  .link-item > * {
    width: 15rem;
  }
}
@media (max-width: 530px) {
  #smallNav {
    display: block;
  }
  .header-nav {
    display: none;
    position: absolute;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 5rem;
    top: 4rem;
    left: 0;
    background: linear-gradient(179deg, var(--gradient1), var(--gradient2));
  }
  .header {
    font-size: 1.25rem;
  }
  .flyer img {
    --w: 58%;
  }
}
@media (max-width: 500px) {
  .post-post {
    width: 90%;
  }
  body {
    margin: 0.25rem;
    padding: 0;
  }
  .flyer img {
    width: 98%;
  }
}
@media (max-width: 450px) {
  .biggerButton {
    font-size: 1rem;
  }
}
