
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  display: block;
  background-color: #0F0216;
  overscroll-behavior: none;
}

.fullscreen {
	height: 100%;
  width: 100%;
  margin: 0;
}

body {
  background-image: url("./Stellar Stones.png");
  background-size: cover;
  background-repeat: no-repeat;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
}

form {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  max-width: 350px;
  width: 90%;
  margin: 10px;
}

form > * {
  margin-bottom: 8px;
}

h1 {
  font-weight: normal;
  margin: 0;
  text-align: center;
  width: 100%;

  color: #4A0793;

  font-weight:bold;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  h1 {
	background: url('StellarVeryLight.png') 50% 0 no-repeat;
	-webkit-background-clip: text;
	background-size: cover;
	background-clip: text;
	color: transparent;
  }
}

.center {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
}

a > img {
  width: 100%;
  height: 100%;
}

template {
  display: none;
}

button, input[type=button], input[type=submit] {
  background-color: rgb(65, 29, 100);
  color: white;
  border: none;
  font-size: 18px;
  padding: 8px 15px 8px 13px;
  width: fit-content;
  align-self: end;
  user-select: none;

  box-shadow: 0 5px 0 rgb(50, 22, 83);
  transition: transform 50ms, box-shadow 50ms;

  margin-bottom: 5px;

  text-wrap: nowrap
}

button:active, input[type=button]:active, input[type=submit]:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 rgb(50, 22, 83);
}

ul, ol {
  list-style-type: none;
  overflow-x: auto;
}

input {
  background-color: rgba(128, 128, 128, 0.438);
  border: 1px solid rgba(211, 211, 211, 0.171);
  padding: 5px;
}

span, input, button {
  color: white;
  /* margin-top: auto; */
  /* align-self: end; */
}

main {
  height: 100%;
  width : 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  background: rgb(10 10 10 / 50%);
  padding: 5px;
  box-sizing: border-box;
  overflow-x: auto;
}

li {
  padding: 5px;
  margin: 2px;
  flex: 1;
}

li > img {
	margin: auto;
}

.uploader {
    text-align: left;
    width: 100%;
  display: flex;
  flex-direction: row;
  vertical-align: top;
  
  max-height: 100px;
  width: 100%;
  /* background-color: rgba(255, 255, 255, 0.233); */
}


a, li, .uploader, .profile-card {
	background-color: rgba(255, 255, 255, 0.233);
	padding: 5px;
	box-shadow: 0 5px 0 rgba(175, 175, 175, 0.25);
	margin: 2px;
	margin-bottom: 7px;
    vertical-align: top;
}
.uploader-text p {
    margin: 0;
    padding: 0;
    line-height: 1;
    top: 0px;
    font-size: 16px;
    padding-top: 0;
}
.uploader-text h3,
.uploader-text h2 {
    margin: 0;
    padding: 0;
    font-size: 18px;
}

.uploader img {
    width: 4rem !important;
    height: 4rem !important;
    object-fit: cover;
    flex-shrink: 0;
}



.uploader-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 4px;
    width: 100%;
}


h3, h2 {
    margin: 0;
    padding: 0;
}


img {
  display: block;
  width: auto;
  height: auto;
}
.uploader img {
    width: 4rem !important;
    height: 4rem !important;
    object-fit: cover;
}


header > iframe {
  width: 100%;
}

#header {
  background: none;
}

nav {
  display: flex;
}
#profile > a {
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-decoration: none;

    justify-content: center;
    box-shadow: none;
}
header nav a {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-decoration: none;
  justify-content: center;
  box-shadow: none;
}
    header nav a img,
    header nav a svg {
        width: 1.5rem;
        height: 1.5rem;
    }
header a:hover {
  box-shadow: 0px 0px 0px 3px #ffffff45 inset;
}

header h1 {
	display: flex;
  align-self: center;
  justify-content: space-around;
}

li > section {
	display: flex;
	flex-direction: row;
	align-content: flex-start;
	justify-content: space-evenly;
	flex-wrap: nowrap;
	gap: 5px;
}

#profile {
	display: flex;
}

h2 {
	margin: 0 4px;
}

li > section > button {
	width: 100%;
}

a {
  /* background-color: rgba(255, 255, 255, 0.233); */
  /* border: 1px solid rgba(211, 211, 211, 0.171); */
  margin: 2px;
  /* padding: 1rem; */
  /* display: table; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

a span {
  display: table-cell;
   text-align: center;
	vertical-align: middle;
}

p  {
  margin: 0px;
}

#search-form {
  flex-direction: row;
  height: auto;
  width: 100%;
}

#search-form > input {
  width: 100%;
}

#search-results {
  height: 100%;
}

#tag-list {
  background-color: rgba(126, 0, 131, 0.712);
}

#tag-list > li {
  display: flex;
  flex-direction: row;
}

ol {
  width: 100%;
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow-x: auto;
  flex-wrap: wrap;
}

.liked {
    background-color: rgb(84, 31, 138);
    box-shadow: 0 5px 0 rgb(69, 20, 108);
}

ul, ol {
  padding: 0;
  margin: 10px;
}

#upload-form {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

/* input[type="checkbox"] {
  margin: 10px;

  border: 3px solid grey;
  background-color: white;
  appearance: none;
}

input[type="checkbox"]::checkmark {

} */

#media-list {
  display: block;
  max-width: 346px;
  flex-wrap: nowrap;
  /* gap: 2px; */
}

#media-list > li {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  /* height: min-content; */
  justify-content: space-between;
}
    #media-list button img {
        width: 1rem;
        height: 1rem;
        object-fit: contain;
        margin-right: 2px;
        margin-bottom: 4px;
    }
    #media-list button {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

#media-list > li > article > img {
  display: block;
  width: 100%;
  /* max-height: 30%; */
  height: auto;
  margin: 8px 8px 4px 0px;
}

#media-list > li .description {
  width: 100%;
  max-width: 100%;
  margin: 10px 0;
}

#profile-page > article {
	flex: 1;
}

article img, section img {
	height: 100%;
}
.uploader img {
    height: 4rem !important;
    width: 4rem !important;
    object-fit: cover;
}


.profile-card {
	height: 8rem;
	display: flex;
}

h3 {
	margin: 0 4px;
}

#stats li {
	background-color: transparent;
}

ul {
	display: flex;
	justify-content: space-around;
}

.rain {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	pointer-events: none;
}

.rain > div > div {
	position: absolute;
	width: 5px;
	height: 50px;
	background-color: rgba(201, 230, 255, 0.13);
	transform: translate(0px, 0px);
}

.rain > div {
	transition: transform 1000ms; /* Rotation speed */
	background-color: transparent;
}

.falling {
 	transition: transform 700ms ease-in;
}

.rain .drop {
  transform: translate(100px, 1000px);
}

#profile-page {
  display: flex;
  flex-direction: row;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form > label,
form > input {
  display: block;
}

form label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 250px;
}

form input[type="checkbox"] {
  margin-left: 10px;
}

p {
	max-height: 30%;
    vertical-align: top;
}

@media (max-width: 600px) {
    #profile-page {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    header #username {
        display: none;
    }
}

@media (max-width: 420px) {
    header h1 {
        display: none;
    }
}
#media-list .uploader {
    align-items: flex-start;
    justify-content: flex-start;
}

.uploader img {
    width: 4rem !important;
    height: 4rem !important;
    object-fit: cover !important;
    flex-shrink: 0;
}


.uploader-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 4px;
    width: 100%;
}
.profile-post {
    width: 180px;
    height: 150px;
    margin: 3px;
    padding: 0;
}

.post-card {
    background: rgba(255,255,255,0.2);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    height: 80%;
    object-fit: cover; /* UniformToFill */
}

.post-title {
    height: 20%;
    text-align: center;
    margin: 0;
    padding: 4px;
    font-size: 16px;
}
#posts > li.profile-post {
    flex: 0 0 auto !important;
    width: 180px !important;
    height: 150px !important;
    padding: 0 !important;
    margin: 3px !important;
    background: none !important;
    box-shadow: none !important;
}


