html { 
	height: 100%; 
}

body {
  	background-color: white;
	color: black;
  	display: grid;
	min-height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Arial', sans-serif;
	font-size: 20px;
	line-height: 135%;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: 
	"header" 
	"main"
	"footer";
}

#processing {
	z-index: 3000;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.5);
	display: block;
}

#processing img {
	margin-left: calc(50vw - 100px);
	margin-top: calc(50vh - 100px);
	width: 200px;
	height: 200px;
}

header {
	grid-area: header;
}

#main {
	grid-area: main;
}

footer {
	grid-area: footer;
}


#totop {
	display: none;
}

header {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: auto;
	position: relative;
	margin: 0 auto;
	background-color: rgb(128, 178, 35);
}

header h1 {
	color: lightgoldenrodyellow;
	font-size: 200%;
	font-weight: bold;
}

header h2 {
	color: lightgoldenrodyellow;
	font-size: 160%;
	font-weight: bold;
}

small {
	font-size: 70%;
}

span.button,
button,
input[type='button'],
input[type='submit'],
input[type='file'] {
	background-color: darkolivegreen;
	color: white;
	border-radius: 4px;
	padding: 5px;
	cursor: pointer;
	font-size: 20px;
	transition: all 0.3s ease-in-out;
}

span.button:hover,
button:hover,
input[type='button']:hover,
input[type='submit']:hover,
input[type='file']:hover {
	background-color: orangered;
}

span.button {
	display: inline-block;
}

#startUpload {
	display: none;
}

label {
	display: block;
	width: 100%;
	position: relative;
}

.clearfix {
	clear:both;
	width: 100%;
	height: 0;
	overflow: hidden;
	position: relative;
	padding: 0;
	margin: 0;
}

.flexbox {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 20px;
}

figure {
	flex: 1;
	min-width: 200px;
	max-width: 200px;
	background-color: lightgrey;
	min-height: 230px;
	max-height: 230px;
	margin: 0;
	padding: 0;
	position: relative;
}

figure img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	cursor: pointer;
	background-color: lightgoldenrodyellow;
	transition: all 0.3s ease-in-out;
}

figure img:hover {
	background-color: darkgray;
}

figure figcaption {
	font-size: 11px;
	text-align: center;
	background-color: gray;
	color: white;
}

figure figcaption.owner {
	background-image: url('/img/del.png');
	background-position: right center;
	background-size: auto 90%;
	background-repeat: no-repeat;
	cursor: pointer;
	transition: all 0.3s ease-in-out;
}

figure figcaption.owner:hover {
	background-color: orangered;
}

figure .download {
	position: absolute;
	right: 0;
	top: 0;
	width: 30px;
	height: 30px;
	background-image: url("/img/download.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 100;
	display: block;
}

h1 {
	font-size: 180%;
	color: darkolivegreen;
	margin: 10px 0 20px 0;
	line-height: 100%; 
	font-weight: 400;
}

h2 {
	font-size: 140%;
	color: darkgoldenrod;
	margin: 20px 0;
	padding: 0;
	font-weight: 600;
}

h3 {
	font-size: 120%;
	margin: 10px 0;
	font-weight: 300;
	line-height: 130%;
}

#main {
	box-sizing: border-box;
	width: 100%;
	position: relative;
	display: block;
	margin: 0 auto;
	padding: 30px 20px 20px 20px;
}

#files-area{
	width: 100%;
	margin: 0 auto;
}

.file-block{
	border-radius: 10px;
	background-color: rgba(144, 163, 203, 0.2);
	margin: 5px;
	color: initial;
	display: inline-flex;
	& > span.name{
		padding-right: 10px;
		width: max-content;
		display: inline-flex;
	}
}

.file-delete{
	display: flex;
	width: 24px;
	color: initial;
	background-color: #6eb4ff00;
	font-size: large;
	justify-content: center;
	margin-right: 3px;
	cursor: pointer;
	&:hover{
		background-color: rgba(144, 163, 203, 0.2);
		border-radius: 10px;
	}
	& > span{
		transform: rotate(45deg);
	}
}

#progress-wrp {
    border: 1px solid #0099CC;
    padding: 1px;
    position: relative;
    border-radius: 3px;
    margin: 10px;
    text-align: left;
    background: #fff;
    box-shadow: inset 1px 3px 6px rgba(0, 0, 0, 0.12);
	display: none;
}

#progress-wrp .progress-bar{
	height: 30px;
    border-radius: 3px;
    background-color: #79f763;
    width: 0;
    box-shadow: inset 1px 1px 10px rgba(0, 0, 0, 0.11);
}

#progress-wrp .status {
	top:3px;
	left:50%;
	position:absolute;
	display:inline-block;
	color: #000000;
}

.goback {
	position: absolute;
	right: 0;
}

footer {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	background-color: darkolivegreen;
	color: white;
	margin: 0;
	padding: 20px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 20px;
	z-index: 1001;
	position: relative;
}

footer article {
	min-width: 300px;
}

footer a,
footer a:visited {
	color: lightgreen;
	text-decoration: none;
}

@media only screen and (min-width: 1200px) {

	#main {
		max-width: 1200px;
		margin-left: calc(50% - 600px);
		margin-right: calc(50% - 600px);
	}

	header,
	footer {
		padding-left: calc(50% - 600px);
		padding-right: calc(50% - 600px);
	}

}