/*
Level 1 = #ff2b82
Level 2 = #ff66a6
Level 3 = #ff91bf
Level 4 = #ffcee2
Level 5 = #ffe6f2
*/

@font-face {
	font-family: "montie's";
	src: url("src/montie's-Bold.ttf") format("truetype");
	font-weight: bold;
	font-style: normal;}
@font-face {
	font-family: "montie's";
	src: url("src/montie's-Regular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;}
@font-face {
	font-family: "LibreBarcode39";
	src: url("src/LibreBarcode39-Regular.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;}

html { height: 100%; margin: 0; padding: 0; }
body {
	font-family: "montie's", sans-serif;
	font-weight: bold;
	background-color: white;
	color: #440000;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	margin: 0;
	padding: 0;}
	
.displayFlex {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;}
.displayFlexVertical {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;}

h2, h3 { margin: 0 0 10px 0; }

hr {
	border: 0;
	margin: 15px 0;}

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: white;
	border-radius: 10px;
	font-size: small;}
th, td { padding: 5px; text-align: center; }
th { color: white; font-weight: bold; }
td {font-weight: normal;}
th:first-child, tr:first-child td:first-child { border-top-left-radius: 8px; }
th:last-child, tr:first-child td:last-child { border-top-right-radius: 8px; }
tr:last-child td:first-child { border-bottom-left-radius: 10px; }
tr:last-child td:last-child { border-bottom-right-radius: 10px; }

.top-banner { position: fixed; top: 0; left: 0; width: 100%; height: 70px; display: flex; align-items: center; justify-content: space-between; z-index: 1000;}
.top-banner div {max-width: 450px;}
#top-banner-profile { margin-right: 10px; text-align: right; color: white; width: 50%; justify-content: right;}
.top-banner-left { gap: 0; width: 40%; justify-content: left; }
#top-banner-burgerMenu { background: none; font-size: 30px; width: auto; padding: 8px 20px;}
#top-banner-profilePicture { width: 40px; height: 40px; border-radius: 50%; background-color: white; border: 2px solid white; object-fit: cover;}
#top-banner-loginbar { font-size: 10px; gap: 5px; justify-content: right; margin-top: 5px;}
#top-banner-loginbar button { font-size: 9px; padding: 3px 8px; width: auto;}
#menuScreen {top: 70px; left: 0; transform: none; border: none; border-radius: 0;}
/* Toggle Button */
#top-banner-toggle { font-size: 12px; color: white; text-align: left;}
#top-banner-toggle div { display: flex; align-items: center; justify-content: space-between; margin: 8px 0;}
.toggle-switch {
	position: relative;
	display: inline-block;
	margin-left: 5px;
	width: 40px;
	height: 20px;}
.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;}
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 50px;
	transition: 0.4s;}
.slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	border-radius: 50%;
	transition: 0.5s;}
input:checked + .slider:before { transform: translateX(20px); }
#toggleButtonTheme .slider { background-color: #ffe6f2; }
#toggleButtonTheme .slider::before { background-color: #ff66a6; }
#toggleButtonTheme input:checked + .slider { background-color: #d4ecff; }
#toggleButtonTheme input:checked + .slider::before{ background-color: #66b8ff; }
#toggleButtonLang .slider { background-color: #eee; }
#toggleButtonLang .slider::before { background-image: url('src/th-flag.png'); background-size: contain; background-position: center; }
#toggleButtonLang input:checked + .slider::before{ background-image: url('src/uk-flag.png'); background-size: contain; background-position: center; }

.container {
	padding: 20px;
	width: 90%;
	max-width: 500px;
	text-align: center;
	margin-top: 70px;
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	z-index: 1;}
@media screen and (max-width: 800px) { .container { height: 65%; } }
@media screen and (min-width: 800px) { .container { margin-bottom: 130px; height: 100%} }
span { font-weight: normal; }
strong { font-weight: bold; }

.bottom-menu { width: 100%; justify-content: space-between; height: 70px;}
.bottom-menu button { font-size: 20px; border-radius: 50px; padding: 10px 12px; width: 50px; height: 50px;}
.bottom-menu i { margin-top: 3px; }
.bottom-menu-title { margin-top: 8px; font-size: 10px; }
#bottom-menu-hr { position: fixed; bottom: 100px; width: 90%; max-width: 500px;}
.bottom-menu-bar { width: 90%; max-width: 500px; position: fixed; bottom: 30px; display: flex; justify-content: center; }
.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	margin: 0;
	font-size: 10px;
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: 30px;}

input, select, button, textarea {
	font-family: "montie's", sans-serif;
	font-weight: normal;
	box-sizing: border-box;
	color: #440000;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 50px;
	font-size: 16px;
	text-align: center;
	width: 100%;}
input[type="date"], input[type="time"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;}
input::placeholder { text-align: center; color: #bbb; }
img, svg, video { display: block; }
button {
	color: white;
	width: 100%;
	font-weight: bold;
	cursor: pointer;
	border: none;
	transition: 0.3s;}

#result {
	margin-top: 15px;
	color: #ff2b82;}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-top: 15px;}
.pagination button {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: #ff91bf;
	color: white;
	font-weight: bold;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;}
.pagination button:disabled { background: #ddd; cursor: not-allowed; }
#pageInfo { font-size: 16px; font-weight: bold; }

.info-table {
	width: 100%;
	background: white;
	margin-top: 0;
	margin-bottom: 10px;}
.info-table td {
	padding: 10px;
	background: white;
	font-size: small;
	text-align: left;}
.info-table td:first-child {
	font-weight: bold;
	color: white;
	width: 35%;}
.info-table tr:first-child td:first-child { border-top-left-radius: 8px; }
.info-table tr:first-child td:last-child { border-top-right-radius: 10px; }
.info-table tr:last-child td:first-child { border-bottom-left-radius: 8px; }
.info-table tr:first-child td { border-top: none;}

.carousel-container {
	overflow-x: auto;
	border-radius: 10px;
	margin: 15px 0;
	position: relative;
	width: 100%;}
.carousel-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	gap: 10px;
	width: 100%;
	touch-action: pan-x;}
.carousel-slide {
	min-width: 100%;
	padding: 10px;
	box-sizing: border-box;
	border-radius: 20px;
	display: flex;
	justify-content: center;
	align-items: center;}
.carousel-slide img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 10px;}

.tooltip-container { cursor: pointer; }
.tooltip-text {
	max-width: 300px;
	width: 300px;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	padding: 12px;
	text-align: center;
	color: #440000;
	background-color: white;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 20px;
	font-size: 15px;
	position: fixed;
	top: 28%;
	left: 50%;
	transform: translate(-50%, 0%);
	z-index: 2000;
	visibility: hidden;
	opacity: 0;
	line-height: 1.2;}
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }

.popupScreen {
	width: 300px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	border-radius: 20px;
	box-shadow: 0 2px 5px rgb(255, 145, 191, 0.5) ;
	z-index: 2000;
	padding: 20px;}
.closeButton {
	position: absolute;
	font-size: 24px;
	top: 10px;
	right: 15px;
	cursor: pointer;}
