/* Base elements */
header {
	text-align: center;
	color: #111;
	background-color: #999999;
	height: auto;
	margin: 0;
	padding: 15px 5%;
	width: 100%;
	box-sizing: border-box;
}

button:hover {
	cursor: pointer;
}

a {
	color: #111;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	cursor: pointer;
}

textarea {
	resize: none;
}

body > h3 {
	margin-left: 5%;
}

.main-content {
	display: grid;
	justify-content: center;
	margin: 0 5%;
	justify-items: center;
}
/* End base elements */

/* Buttons */
.new-btn, .back-btn {
	position: absolute;
	display: inline-block;
	color: #111;
	margin: 0 5%;
	bottom: 15px;
}

.new-btn {
	right: 0;
}

.back-btn {
	left: 0;
}

.new-btn:hover, .back-btn:hover {
	cursor: pointer;
	text-decoration: underline;
}

.delete-button {
	background-color: red;
	color: white;
}

.delete-button:hover {
	background-color: #B22222;
}

.add-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #0056b3;
}


.delete-btn2 {
  border: none;
  background: transparent;
  color: #888;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  visibility: hidden;
  width: 25px;
  padding-right: 5%;
}
/* End Buttons */

/* Forms/inputs */

.small-input {
	width: auto;
}

.searchbar {
	width: 100%;
	padding: 8px 5%;
	border-radius: 0;
	box-sizing: border-box;
	margin-top: 0;
}

.count { /* searchbar count */
	padding: 8px 5%;
	text-align: center;
}

/* End forms/inputs */

/* tooltips */
.tooltip {
	position: relative;
	display; inline-block;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background-color: #555;
	color: #fff;
	text-align: center;
	padding: 5px;
	border-radius: 6px;

	position: absolute;
	z-index: 1;
	top: 150%;
	left: 50%;
	margin-left: -60px;

	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}
/* end tooltips */

.flex-row:hover {
	background-color: #E0E0E0;
	border: #BBBBBB solid 1px;
	cursor: pointer;
}

.flex-row {
    display: flex;
    align-items: stretch;
    background: #EEEEEE;
    border: #CCCCCC solid 1px;
    white-space: nowrap;
    flex-wrap: wrap;
}

.flex-row-2 {
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}

.class-row-content {
    padding: 7px 5%;
	box-sizing: border-box;
	width: calc(100% - 58px);
	white-space: nowarp;
}

.arrow {
	position: absolute;
	right: 5%;
	top: 50%;
	transform: translateY(-50%);
}

.clearfix {
	overflow: auto;
	position: relative;
}

.info-header {
	margin: 20px auto;
	text-align: center;
	position: relative;
}

.info-header:hover {
	text-decoration: underline;
	cursor: pointer;
}

.add-record {
	position: absolute;
	right: 0;
	margin: 1em;
	text-decoration: underline;
}

.add-record:hover {
	cursor: pointer;
}

.drop-down-select {
	background: white;
	min-width: 0;
	padding: 0;
	margin: auto;
}

.dd-options {
	display: block;
	border-bottom: 1px solid #8e8e8e;
	padding: 5px;
	white-space: wrap;
}

.dd-options:hover {
	background-color: #EEEEEE;
	border-top: 1px solid #DDDDDD;
	border-bottom: 1px solid #DDDDDD;
	cursor: pointer;
}

.flex-col {
	display: flex;
	flex-direction: column;
}

.square {
	aspect-ratio: 1/1;
}

.transparent {
	background-color: transparent;
}

.type-ul {
	padding: 0;
}

.dragging {
	opacity: 0.6;
	background: #f0f0f0;
}

.inline-edit {
  width: 100%;
  border: none;
  font: inherit;
  padding: 2px 4px;
  box-sizing: border-box;
  background-color: #f9f9f9;
}

.inline-edit:focus {
  outline: 2px solid #007bff;
  background-color: white;
}

#class-type-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.type-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.2s;
}

.type-list:hover {
  background: #f7f7f7;
}

.type-list:hover .delete-btn2 {
  visibility: visible;
}

.loading {
	display: none;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

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

.right-text {
	text-align: right;
	margin: auto;
}

.delete-btn {
	border: 1px #333 solid;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	aspect-ratio: 1 / 1;
	background-color: #ffdddd;
	cursor: pointer;
	font-size: 32px;
}

.delete-btn:hover {
	background-color: #ffbbbb;
	font-weight: 900;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
}

.right {
	float: right;
	clear: right;
	margin-right: 5%;
}

#class-proposal {
	max-width: 400px;
}

#class-proposal > input,
#class-proposal > textarea,
#class-proposal > select {
	border: 1px solid #d1d1d1;
	border-radius: 2px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 23px;
}

.switch > input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.switch > input:checked + .slider {
  background-color: #2196F3;
}

.switch > input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

.switch > input:checked + .slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

.grid3 {
	display: grid;
	grid-template-columns: 2fr 1fr 4fr;
	justify-items: center;
	gap: 20px;
	margin: 10px;
}

.grid3 > span {
	width: 100%;
	text-align: center;
}

.grid-border {
	width: 100%;
	grid-column: 1 / 4;
	border-bottom: 1px solid #eeeeee;
}

.bold {
	font-weight: bold;
}

.center {
	text-align: center;
}

.dd {
	position: absolute;
	padding: 0;
	background-color: #fafafa;
	border: 1px solid #eeeeee;
	margin-top: 0;
	margin-right: 30px;
	box-sizing: border-box;
	width: fit-content;

}

.class-dd-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
}


.seperator {
	width: 80%;
	background-color: #d8d8d8;
	height: 1px;
	margin: 5px auto;
}

.vertical-seperator {
	width: 1px;
	height: 30px;
	margin: auto 0;
	background-color: #999999;
	display: inline-block;
}

.class-section,
.profile-section {
	margin-bottom: 2rem;
}

.class-section > h3,
.profile-section > h3 {
	margin-left: 5%;
}

main > h2,
main > h3 {
	margin-left: 5%;
}

.check-col {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}

.check-col h4 {
	margin: 0;
}

.chart {
	display: grid;
	justify-content: center;
	justify-items: center;
}

.chart iframe {
	width: 90vw;
	height: 40vw;
}