html {
	background-color: #0e0e0e;
	color: white;
	font-family: "Roboto Round";
}

body {
	margin: 0;
}

html::before,
html::after {
	content: "";
	z-index: -1;
	display: block;
	position: fixed;
	border-radius: 100vw;

	width: 110vw;
	height: 110vw;
	
	background: radial-gradient(50% 50% at 50% 50%, rgba(64, 195, 64, 0.5) 15%, rgba(64, 195, 64, 0) 100%);

	animation: scaleIn 2s forwards ease;
}

@keyframes scaleIn {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}

input:not(input[type=checkbox]),
select {
	background-color: rgba(29, 29, 29, 0.5);
	background-image: url(../noise.png);
	background-size: contain;
	backdrop-filter: blur(15px);
	color: white;
	border: 2px solid rgba(46, 46, 46, 0.8);
	border-radius: 10px;
	/* height: 40px; */
	font-size: 2.4rem;
	width: 15ch;
	font-family: "Roboto Round";
}

select {
	font-size: 1.8rem;
	background-color: #1d1d1d;
}

input.error {
	background-color: rgba(195, 64, 64, 0.5);
	border-color: rgba(245, 80, 80, 0.8);
}

input[type=checkbox] {
	transform: scale(2);
}

.dialog input {
	font-size: 1.6rem;
}

/* Background */
html::before {
	top: -60vh;
	left: -60vw;
}

html::after {
	bottom: -60vh;
	right: -60vw;
}

@media (max-width: 600px) {
	html::before,
	html::after {
		width: 200vw;
		height: 200vw;
	}

	html::before {
		top: -100vw;
		left: -100vw;
	}

	html::after {
		bottom: -100vw;
		right: -100vw;
	}
}
/* Background End */

#login,
#login-user {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	height: 100vh;
}

#schoolcode-container {
	display: flex;
	gap: 5px;
}

#schoolcode-container input {
	width: 7ch;
}

#schoolcode-container span {
	font-size: 3rem;
}

#nav {
	background-color: rgba(29, 29, 29, 0.5);
	background-image: url(../noise.png);
	background-size: contain;
	backdrop-filter: blur(15px);
	padding: 10px;
	padding-left: 5px;
	display: flex;
	flex-direction: column;
	width: 20%;
	border: 2px solid rgba(46, 46, 46, 0.8);
	border-left: none;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	height: 85vh;
	animation: slideIn 800ms forwards ease;
}

#nav h3 {
	margin: 0;
	margin-bottom: 5px;
	font-size: 1.4rem;
	padding: 5px;
	border-radius: 5px;
}

#nav h3.active {
	background-color: #40C340;
}

#dashboard-container {
	display: flex;
	gap: 10px;
}

#selectsomething {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

#content {
	width: 100%;
	height: 87vh;
}

#content > div {
	animation: slideInFromRight 800ms forwards ease;
}

@keyframes slideInFromRight {
	0% {
		transform: translateX(100px) scale(1.2);
		opacity: 0;
	}
	100% {
		transform: translateX(0) scale(1);
		opacity: 1;
	}
}

#absents {
	animation: scaleInBig 800ms forwards ease;
}

@keyframes scaleInBig {
	0% {
		transform: scale(1.3);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.loading #nav,
.loading #schoolname {
	font-family: "Flow Rounded";
	animation: font-load 500ms infinite alternate ease;
}

@keyframes font-load {
	from {
		color: white;
	}
	to {
		color: #808080;
	}
}

@keyframes slideIn {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}

.box {
	background-color: rgba(29, 29, 29, 0.5);
	background-image: url(../noise.png);
	background-size: contain;
	backdrop-filter: blur(15px);
	padding: 10px;
	width: 30%;
	border: 2px solid rgba(46, 46, 46, 0.8);
	border-radius: 10px;
}

.itemlist {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.itemlist .box {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.itemlist .box h2 {
	margin: 0;
	font-size: 1.9rem;
	font-weight: bolder;
}

.itemlist .box #actions {
	margin-left: auto;
	display: flex;
	gap: 10px;
}

button {
	background-color: #2e2e2e;
	border-style: solid;
	border-radius: 5px;
	border-color: #2e2e2e;
	border-bottom: 7px solid #0e0e0e;
	outline: none;
	color: white;
	font-size: 1.7rem;
	height: 55px;
}

button:active:not(:disabled) {
  border-bottom-width:4px;
  position:relative;
  top:4px;
}

.middle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#controlbuttons {
	display: flex;
	gap: 10px;
}

#trafficlight {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.traffic {
	width: 20px;
	height: 20px;
	border-radius: 100%;
}

.traffic:nth-of-type(1):not(.trafficOff) {
	background-color: #C34040;
}

.traffic:nth-of-type(2):not(.trafficOff) {
	background-color: #40C340;
}

.trafficOff {
	background-color: #1d1d1d;
}

#course {
	/* display: flex;
	gap: 10px;
	flex-wrap: wrap; */
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	/* grid-template-rows: 1fr 1fr; */
	margin-right: 10px;
}

#course .box {
	width: unset;
}

#leaderboard {
	grid-area: 2 / 1 / 3 / 4;
}

#absents {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

#rotateScreen {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background-color: rgba(14, 14, 14, 0.5);
	z-index: 1000;
	backdrop-filter: blur(15px);
	text-align: center;
	display: none;
}

@media (max-width: 700px) {
	#rotateScreen {
		display: flex;
	}
	body {
		overflow: hidden;
	}
}

tr:nth-child(2) {
	width: 30%;
}

th, td {
	background-color: rgba(46, 46, 46, 0.8);
	background-image: url(../noise.png);
	background-size: contain;
	backdrop-filter: blur(15px);
	border-radius: 5px;
	font-size: 1.6rem;
	width: 1px;
	text-align: center;
}

#leaderboardactions button {
	margin-right: 10px;
}

#leaderboardactions button:last-of-type {
	margin-right: 0;
}

.statusicon {
	border-radius: 100%;
	width: 20px;
	height: 20px;
}

.status-offline {
	background-color: #C34040;
}

.status-online {
	background-color: #40C340;
}

.status-idle {
	background-color: #F5F550;
}

.badge {
	background-color: white;
	border-radius: 10px;
	color: black;
	padding: 5px;
}
