body {
	background: #000000;
	margin: 0;
	padding: 0;
}

#main {
	top: 0;
	left: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	
	display: flex;
	flex-direction: column;
}

p {	
	color: #E5E9F0;
}

a {
	color: white;
	text-decoration: none;
	display: block;
}

* {
	font-family: "sans";
}

#top {
	background: #444444;
	width: 100%;
	height: 3em;
	display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas:
    "site-name link something";
	align-items: center;
	grid-area: top;
}

#viewer {
	position: relative;
	background: #222222;
	width: 100%;
	height: calc(100% - 3em - 4em);
	grid-area: viewer;
}

img, video, audio {
	object-fit: contain;
	width: 100%;
	height: 100%;
	min-height: 0;
}

#notifications {
	right: 0;
	z-index: 5;
	width: 14rem;
	overflow: visible;
}

.notification {
	overflow: hidden;
	position: relative;
	right: -300%;
	padding: 16px 16px;
	background: rgba(117, 86, 255, 0.7);
	box-shadow: 2px 2px 10px 5px #00000033;
	min-width: 150px;
	width: fit-content;
	max-width: 11rem;
	min-height: 0;
	height: fit-content;
	margin: 20px 0;
	backdrop-filter: blur(10px);
	border-radius: 10px;
	transition-duration: 750ms;
	text-align: center;
	cursor: pointer;
}

.top7_5 {
	top: 7.5%;
}

.fixed {
	position: fixed;
}

#bottom {
	position: relative;
	background: #333333;
	width: 100%;
	height: 4em;
	display: flex;
	flex-direction: row;
	align-items: center;
	grid-area: bottom;
}

#back-button {
	margin-left: 1em;
}

#upload {
	width: 5em;
	margin-left: auto;
	margin-right: 1em;
	padding: 0.25em;
}

#uploader {
	z-index: 5;
	background: #555555;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50%;
	height: 50%;
	transform: translate(-50%, -50%);
}

button {
	all: unset;
	padding: 0.5em;
	background: gray;
	margin: 0.5em;
	appearance: none;
	cursor: pointer;
	color: #E5E9F0;
	text-align: center;
}

button:hover {
  outline: solid 2px white;
}

#site-name {
	grid-area: site-name;
	font-size: 1.25em;
	font-weight: bold;
	margin: 0 1em;
	height: auto;
}

#link {
	grid-area: link;
	height: auto;
	text-align: center;
}

#count {
	right: 0;
	position: absolute;
	margin-right: 1em;
	display: flex;
	flex-direction: row;
	font-weight: bold;
}

#total-count {
	margin-left: 0.5em;
}
