body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100vh;
	background-image: url('assets/bg2.png');
	background-repeat: no-repeat;
	background-size: cover;
}

.hidden {
	display: none !important;
}

.errorLogin {
	font-size: 1.2em;
	color: red;
}

.homeContainer {
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: 100%;
	height: 100vh;
	position: relative;
}

.loginContainer {
	position: absolute;
	min-width: 400px;
	min-height: 250px;
	width: 20%;
	height: 30%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.692);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1em;
	border-radius: 15px;
}

h1.loginTitle {
	font-size: 2em;
	width: 100%;
	color: white;
	text-align: center;
	margin-top: 0;
	margin-bottom: 0em;
}

#passwordInput {
	cursor : text;
	width: 70%;
	height: 2em;
}

.loginContainer button {
	all: unset;
	cursor : pointer;
	width: 70%;
	height: 2em;
	border-radius: 5px;
	background-color: #12bc00;
	color: white;
	font-size: 1.3rem;
	text-align: center;
	font-weight: bold;
	border: 2px solid #169907;
}

.loginContainer button:hover {
	background-color: #19990b;
}

.uploadButton,
.displayButton {
	width: 30%;
	height: 80%;
	background-color: rgba(0, 0, 0, 0.692);
	border: 2px solid #b94870;
	border-radius: 5px;
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 3rem;
	position: relative;
	overflow: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	cursor: pointer;
	text-shadow: 2px 2px 4px #000000;
}

.uploadButton p,
.displayButton p {
	width: 100%;
	text-align: center;
}

.uploadButton {
	background-image: url('assets/axel.png');
}

.displayButton {
	background-image: url('assets/nel.png');
}

.uploadButton:hover,
.displayButton:hover {
	transform: scale(1.1);
}

.uploadContainer,
.displayContainer {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.uploadArea {
	width: 80%;
	height: 80%;
	background-color: rgba(0, 0, 0, 0.692);
	border: 2px solid #b94870;
	border-radius: 5px;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
	font-size: 3rem;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	text-shadow: 2px 2px 4px #000000;
}

.uploadContainer input {
	opacity: 0;
}

.uploadContainer label {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.closeUpload,
.closeGallery {
	position: absolute;
	top: 0.75em;
	right: 0.5em;
}

.sideBar {
	position: absolute;
	right: 0;
	width: 2em;
	height: calc(100% - 2px);
	background-color: rgb(26, 26, 26);
	border: 1px solid #b94870;
	color: white;
	z-index: 2;
	transition: width 0.3s ease;
	overflow: hidden;
}

.sideBar .sideBarContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	position: relative;
	overflow-y: scroll;
}

.sideBar .sideBarContent h2 {
	width: 100%;
	text-align: center;
}

.sideBar .sideBarContent .field {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.sideBar .sideBarContent .field button {
	width: auto;
	padding: 0.5em;
	border: 2px solid #109202;
	border-radius: 5px;
	background-color: #12bc00;
	color: white;
	font-size: 1.3rem;
	cursor: pointer;
}

.sideBar .sideBarContent .photosToUpload {
	width: 80%;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
	gap: 10px;
	margin-top: 1em;
}

.sideBar[data-openstate='close'] {
	display: flex;
	justify-content: center;
	align-items: center;
}

.sideBar[data-openstate='open'] {
	width: 50%;
}

.sideBar .closeSideBar {
	position: absolute;
	top: 1em;
	right: 0.5em;
	cursor: pointer;
}

.thumbnailWrapper {
	position: relative;
	display: inline-block;
	width: 10em;
	height: 10em;
	border-radius: 5px;
	background-color: #b94870;
	overflow: hidden;
	place-self: center;
}

.pictureSelect {
	position: absolute;
	top: 0;
	right: 0;
	width: 2em;
	height: 2em;

}

.thumbnailWrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumbnailWrapper span {
	position: absolute;
	top: 0.2em;
	right: 0.2em;
	cursor: pointer;
}

.gallery {
	font-size: 3rem;
	position: relative;
	width: 80%;
	height: 80%;
	background-color: rgba(0, 0, 0, 0.692);
	border: 2px solid #b94870;
	border-radius: 5px;
	color: white;
	text-shadow: 2px 2px 4px #000000;
	overflow-y: scroll;
}

.gallery h1 {
	text-align: center;
	width: 100%;
	font-size: 1.5em;
}

.galleryActions {
	width: calc(100% - 2em);
	display: flex;
	gap: 2.3em;
	align-items: center;
	font-size: 0.5em;
	padding-left: 1em;
	margin-bottom: 1em;
}

.galleryActions div {
	background-color: #5eba45;
	padding: 0.5em;
	border-radius: 15px;
	width: 12.2em;
	text-align: center;
	cursor: pointer;
}

.disabled {
	pointer-events: none;
	opacity: 0.5;
	background-color: #9e9e9e;
}

.galleryActions div:not(.disabled):hover {
	background-color: #67c54d;
	box-shadow: 0px 0px 15px -1px rgba(255, 255, 255, 0.1);
}

.galleryBody {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10em, 1fr));
	gap: 10px;
	font-size: 2rem;
}

.galleryBody .thumbnailWrapper {
	cursor: pointer;
}

.modal {
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.952);
	z-index: 998;
	display: flex;
	justify-content: center;
	align-items: center;
}

.closeModal {
	position: absolute;
	top: 1em;
	right: 1em;
	cursor: pointer;
	color: white;
	z-index: 999;
}

.prevArrow,
.nextArrow {
	position: absolute;
	top: 50%;
	transform: translate(-50%);
	color: white;
	z-index: 999;
	cursor: pointer;
}

.prevArrow {
	left: 2em;
	z-index: 999;
}

.nextArrow {
	right: 2em;
}

.modalActions i {
	color: white;
	font-size: 2rem;
	cursor: pointer;
	pointer-events: auto;
	transition: transform 0.2s ease;
}

.modalActions i:hover {
	transform: scale(1.2);
}

.modalContent img {
	max-width: 90vw;
	max-height: 80vh;
	box-shadow: 0 0 10px black;
	border-radius: 8px;
}

.loaderModal {
	position: absolute;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.233);
	z-index: 999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.loaderContainer {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100px;
}

.loader {
	width: 60px;
	height: 60px;
	border: 6px solid;
	border-image: conic-gradient(red,
			orange,
			yellow,
			green,
			cyan,
			blue,
			violet,
			red) 1;
	border-radius: 50%;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}

@media screen and (max-width: 950px) {
	.downloadAll,
	.downloadSelected,
	.pictureSelect {
		display: none;
	}
	.homeContainer {
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
	}

	.uploadButton,
	.displayButton {
		width: 80%;
		height: 45%;
		text-align: center;
	}

	.uploadArea {
		font-size: 1.2em;
		width: calc(100% - 4px);
		height: calc(100% - 4px);
	}

	.uploadArea p {
		text-align: center;
	}

	.sideBar[data-openstate='open'] {
		width: 100%;
	}

	.sideBar:not([data-openstate='open']) {
		opacity: 0;
		width: 0;	
	}

	.displayContainer {
		width: 100%;
		height: 100%;
	}

	.gallery {
		width: calc(100% - 4px);
		height: calc(100% - 4px);
		font-size: 1.2em;
	}

	.gallery h1 {
		font-size: 1.5em;
	}

	.galleryActions {
		flex-direction: column;
		font-size: 1.2em;
		gap: 0.5em;
	}

	.fa-xmark {
		font-size: 1.3em!important;
	}

	.prevArrow,
	.nextArrow {
		display: none!important;
	}
}