:root {
    --bg-start: hsl(101, 54%, 68%); 
		--bg-login: hsl(101, 60%, 45%);  
    /* --bg-stop: hsl(14, 100%, 97%); */
		--bg-start2: hsl(16, 100%, 60%);
		--bg-stop2: hsl(16, 100%, 90%);
		scroll-padding-top: 60px;
}

* {
	box-sizing: border-box;
}

body {
	/* margin: 0; */
	font-family: "Kanit", sans-serif;
	background-image: url("../images/tlo.jpg");
}

hr {
	width: 70%;
	margin: 20px auto;
	border: none;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

/* header --- */

header {
	width: 100%;
    /* width: calc(100vw - 170px); */
    position: sticky;
    /* top: 8px; */
		top: 0;
		left: 0;
    z-index: 3;

		background-color: var(--bg-start);
		/* background-image: linear-gradient(var(--bg-start2), var(--bg-stop2));   */
	box-shadow: 0 0 5px 0 rgba(0,0,0,.9);
}

nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	max-height: 4.75em;
	min-height: 3.7em;
}

nav ul {
	margin: 0.4em 0.5em 0.6em 2em;
	padding: 0;
	list-style: none;
}

nav li {
	display: inline-block;
	margin-right: 1em;
}
nav a {
	text-decoration: none;
	font-style: italic;
	color: #fff;
}

nav li a {
	font-variant: small-caps;
    /* font-size: 1.6rem; */
	font-size: clamp(1rem, 1.5vw, 1.6rem); 
    font-weight: 500;
    line-height: 1.4;
	letter-spacing: 1px;

}

nav a:hover {
	text-shadow: -2px 2px 4px #000;
}


.home-icon {
	margin-left: 1.3em;
}

.home-icon img:hover {
	transform: scale(1.1);
}

/* .home-icon img {
	display: block;
} */

.header-menu {
	flex-grow: 1;

}

.admin-login-wrapper {
	width: 80%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1em;
}

.admin-login-form {
	/* flex-grow: 1;	 */
	display: flex;
	justify-content: center;
	align-items: center;
	transform:skew(-8deg, 0deg);
	gap: 0.5em;
	flex-wrap: wrap;

}

.admin-login-form input {
	background-color: var(--bg-login);
	border: 1px solid rgb(175, 175, 175);
	/* box-shadow: 0 0 5px 0 rgba(231, 231, 231, 0.9); */
	border-radius: 5px;
	text-decoration: none;
	font-style: italic;
	color: white;
	outline: none;
	padding: 0.4em 1.2em;
	font-size: 1.2rem;
	
}

.login_error {
	display: flex;
	justify-content: center;
	align-items: center;
	transform:skew(-8deg, 0deg);
	margin-top: 1em;
}

.mobile-menu-checkbox {
	display: none;
}

.mobile-nav {
	display: none;
}

.header-icons {
	display: flex;
	/* width: 186px; */
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	margin-right: .7em;
	padding-top: .4em;
}

.header-icons a {
	margin: 0 .4em;
}

.header-icons a:hover {
	opacity: 0.7;
}

.clipartswim {
	margin-right: .25em;
	margin-top: .375em;
  	height: 1.625em;
}

.clipartski {
    margin-right: 1.125em;	
    height: 2em;
}

.clipartrest {
	height: 2em;
}

.header-dudeksport {
    /* margin-right: 38px;
    margin-left: 36px; */
    /* font-family: Arial, sans-serif; */
	font-size: 1.625rem;
	margin: 0 .8em;

}

/* --- header */

/*  hero --- */

.hero-section {
	width: 100%;

	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 5em;
}

.hero-circle {
	position: relative;	
	width: 800px;
	height: 800px;
	border: 3px dotted rgb(247, 207, 77);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}

.dudeksport-logo {
	max-width: 300px;
	width: 100%;
}

.swim-logo {
	max-width: 270px;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.kindergarten-logo {
	max-width: 230px;
	width: 100%;
	position: absolute;
	top: 0;
	right: 0;
}

.swimschool-logo {
	max-width: 230px;
	width: 100%;
	position: absolute;
	bottom: 210px;
	right: -90px;
}

.ski-logo {
	max-width: 240px;
	width: 100%;
	position: absolute;
	bottom: -80px;
	right: 240px;
}

.rest-logo {
	max-width: 280px;
	width: 100%;
	position: absolute;
	bottom: 140px;
	left: -120px;
}





.sm-container, .sm {
    height: 50px;
    width: 250px;
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 1;
  }

.sm-container {
	display: block;
	background-color: white;
	opacity: 0.9;
	border-radius: 8px;
	transform:skew(-12deg, 0deg);
}

.sm {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 20px;
}

.schedule-container, .schedule {
	height: 50px;
	width: 310px;
	position: absolute;
	top: 90px;
	right: 40px;
	z-index: 1;
}

.schedule-container {
	display: block;
	background-color: white;
	opacity: 0.9;
	border-radius: 8px;
	transform:skew(-12deg, 0deg);
}

.schedule {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 20px;
}

.schedule  a {
	font-variant: small-caps;
	font-size: 1.5rem;
	font-weight: bold;
	color: rgb(82, 82, 82);
	text-align: center;
	text-decoration: none;
	font-style: italic;
}


.schedule-image {
	width: 31px; 
	height: 26px;
	margin-top: 6px;
}

.contest-container, .contest {
	height: 50px;
	width: 360px;
	position: absolute;
	top: 160px;
	right: 40px;
	z-index: 1;
}

.contest-container {
	display: block;
	background-color: white;
	opacity: 0.9;
	border-radius: 8px;
	transform:skew(-12deg, 0deg);
}

.contest {
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: 20px;
}

.contest  a {
	font-variant: small-caps;
	font-size: 1.5rem;
	font-weight: bold;
	color: rgb(82, 82, 82);
	text-align: center;
	text-decoration: none;
	font-style: italic;
}
 
.contest-image {
	margin-top: 6px;
}


.schedule a:hover, .contest a:hover {
	font-size: 1.55rem;
	color: black;
}


.w3-animate-opacity{animation:opac 3s}@keyframes opac{from{opacity:0} to{opacity:1}}
.w3-animate-zoom {animation:animatezoom 0.6s}@keyframes animatezoom{from{transform:scale(0)} to{transform:scale(1)}}
.w3-animate-input{transition:width 0.4s ease-in-out}.w3-animate-input:focus{width:100%!important}
.w3-animate-fading{animation:fading 10s infinite}@keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}}

.w3-display-bottomleft {
    position: absolute;
    left: 15px;
    bottom: 30px;
    font-size: 1.55rem;
    line-height:2.2rem;
    transform:skew(-12deg, 0deg);
	background:		rgba(0,0,0, 0.6);
    color: white;
    padding: 10px 40px;
	text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
	border-top:		solid 1px rgba(102,102,102,0.5);
	border-right:	solid 1px rgba(102,102,102,0.5);
	border-bottom:	solid 1px rgba(102,102,102,0.5);
	border-radius:	10px;
	display:		table;
}

.hero-text {
    animation: hero-text-anima 5s infinite;
}

@keyframes hero-text-anima {
	0%		{ left: -310px;	opacity: 0;}
	15%		{ left: 15px;	opacity: 0.5;}
	30%	  { left: 15px;	opacity: 1;}
	100%	{ left: 15px;	opacity: 1;}
		

}

/* --- hero */

.wrapper {
	width: calc(100% - 40px);
	margin: 20px auto;
}

/* footer --- */

.partners {	
	background-color: #e7f3ff; 
	display: flex;
	padding: 15px;
	justify-content: center;
	align-items: center;
	column-gap: 50px;
	row-gap: 20px;
	flex-wrap: wrap;
	border-top: solid 1px rgb(196, 196, 196);
	border-bottom: solid 1px rgb(196, 196, 196);
	margin-bottom: 30px;
	margin-top: 50px;
}

.partners img {
	display: block;
}

.partners img:hover {
	transform: scale(0.9);
}

.footer {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	flex-wrap: wrap;
	font-size: 1rem;
	column-gap: 6.25em;
	row-gap: 1.25em;
	margin-bottom: 2.5em;
	margin-left: .625em;
}

.logo-dudek {
	max-width: 150px;
	align-self: center;
}


.logo-swim {
	max-width: 140px;
	align-self: center;
}

.logo-anime {
	animation: logo_an 2s infinite ease-out;
	animation-play-state:	paused;
}

@keyframes logo_an {
  0%	 { transform:rotate(0deg); }
  33%	 { transform:rotate(-10deg); }
  66%	 { transform:rotate(10deg); }
  100% { transform:rotate(0deg); }
}

.logo-anime:hover { 
  animation-play-state: running;
}


.phone  {
	display: flex;
	flex-wrap: nowrap;
	gap: 1em;
}

.account {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
}

/* --- footer */

/* content share --- */

.content-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.content-col {
	font-size: 1.125rem;
	color: rgb(99, 99, 99);
	background-color: #f5faff;
	padding: 1.2em;
	border: solid 1px rgb(196, 196, 196);	
	box-shadow:	5px 13px 8px -8px #6a6a6d;
}

.content-col h1 {
	font-size: 2rem;
	padding-top: 0;
	padding-bottom: 1em;
	margin: 0;
	line-height: 1;
	font-weight: 400;
}

/* --- content share  */


/* reservation --- */

.reservations {

	display: grid;
	grid-template-areas:
	"Res1 Res2";
	column-gap: 4em;
	row-gap: 1em;
	margin-top: 2rem;
	justify-items: start;
	width: 80%; 
	margin: 2rem auto;
	font-size: 1rem;
}

.reservations h3 {
	font-size: 1.2rem;
	font-weight: 500;
} 

.res:nth-child(1) {
	grid-area: Apart1;
	/* justify-self: center; */
}

.res:nth-child(2) {
	grid-area: Apart2;
	/* justify-self: center; */
}

.res:nth-child(3) {
	grid-area: Res1;
	/* justify-self: center; */
}

.res:nth-child(4) {
	grid-area: Res2;
	/* justify-self: center; */
}


.apart1, .apart2 {
	display: none;
}
	
.reservations-flex {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.reservation-flex-item {
	border: 1px solid black;
	border-radius: 1rem;
	padding: 1rem;
}


.reservation-input {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	padding: 0.3em;
	column-gap: 1em;

}

.reservation-input input,  .reservation-textarea textarea{
	font-size: 1rem;
	font-weight: 500;
}

.reservation-input label {
	font-size: 0.9rem;
	font-weight: 400;
}


.reservation-input input {
	text-align: right;
}


.reservation-textarea {
	padding: 0.3em;
}

.reservation-textarea textarea {
	width: 100%;

}



.reservation-status {
	display: flex;
	justify-content: flex-start;
	column-gap: 1em;
	align-items: center;
	padding: 1em;

}


.reservation-prireserved {
	background-color: pink;
	color: white;
	padding: 0.3rem 0.6em;
	border-radius: 1em;
	margin: 1em 0;
}

.reservation-reserved {
	background-color: orangered;
	color: white;
	padding: 0.3rem 0.6em;
	border-radius: 1em;
	margin: 1em 0;
	
}

.reservation-button-change, .reservation-button-delete {
	text-align: right;
}



.reservation-button-change button {
	padding: 0.5em 1.3em;
	font-size: 1.2rem;
	/* border-radius: 0.7em; */
	background-color: var(--bg-login);
	color: white;
	margin-top: 1em;
}

.reservation-button-change button:hover {
	background-color: var(--bg-start);
}

.reservation-button-delete button {
	padding: 0.3em 1em;
	font-size: 0.8rem;
	/* border-radius: 0.7em; */
	background-color: red;
	color: white;
	margin-top: 1em;
}

.reservation-button-delete button:hover {
	background-color: rgb(253, 83, 83);
}


/* --- reservation */









@media (max-width: 1024px) 
{
	.sm-container, .sm, .schedule-container, .schedule, .contest-container, .contest {
		display: none;
	}

	.hero-text {
		/* animation: none; */
		display: none;
	}


	.home-icon, .header-menu, .header-dudeksport {
		display: none;
	}

	nav {
		justify-content: flex-end;
		min-height: 3.4em;
	
	}

	.header-icons {
		padding-right: 0.6em;
	}

	.mobile-menu-checkbox, .hamb {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10;
	}

	.hamb {
		cursor: pointer;
		float: left;
		padding: 20px 23px;
		margin-top: 12px;
	}
	
	.hamb-line {
		display: block;
		background: black;
		height: 4px;
		position: relative;
		width: 30px;
		border-radius: 20px;
	}
	
	.hamb-line::before, .hamb-line::after {
		display: block;    
		background: black;
		content: '';
		height: 100%;
		position: absolute;
		transition: all .2s ease-out;
		width: 100%;
		border-radius: 20px;
	}
	
	.hamb-line::before {
		top: 8px;
	}
	
	.hamb-line::after {
		top: -8px;
	}


	.mobile-nav {
		display: block;
		width: 100%;
		height: 100%;
		background-color: black;
		color: white;
		overflow: hidden;
		max-height: 0;
		transition: max-height .5s ease-out;
		position: sticky;
		top: 55px;
		left: 0;
		z-index: 15;
	}

	.mobile-menu-checkbox:checked ~ .mobile-nav {
		max-height: 100%;
	}
	.mobile-menu-checkbox:checked ~ .hamb .hamb-line {
		background: transparent;
	}
	.mobile-menu-checkbox:checked ~ .hamb .hamb-line::before {
		transform: rotate(-45deg);
		top:0;
	}
	.mobile-menu-checkbox:checked ~ .hamb .hamb-line::after {
		transform: rotate(45deg);
		top:0;
	}

	.mobile-nav ul {
		display: block;
		list-style-type: none;
		margin: 0 0 0 25px;
		padding: 0.5em 0;
		overflow: hidden;
	}

	.mobile-nav ul li {
		float: left;
	 }
		
	.mobile-nav ul li a, .mobile-nav ul li a:link, .mobile-nav ul  li a:visited, .mobile-nav ul li a:active {
		display: block;
		font-family: Arial, Helvetica, sans-serif;
		font-variant: small-caps;
		font-size: 1.2rem;
		font-style: italic;	
		font-weight: bold;
		color: white;
		text-align: left;
		padding: 0.375em;
		text-decoration: none;
		width: 6.25em;
	
	}
	
	.mobile-nav ul li a:hover {
		color: #c4c4c4;
	}

	/*  hero mobile --- */

	.hero-section {
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 2em;
	}

	.hero-circle {
		position: relative;	
		width: 96%;
		height: auto;
		border: none;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 50%;
	}

	.dudeksport-logo {
		max-width: 225px;
		width: 100%;
		padding: 170px 25px 150px 0;
	}

	.swim-logo {
		max-width: 120px;
		width: 100%;
		position: absolute;
		top: 0;
		left: calc(50% - 60px);
	}
	
	.kindergarten-logo {
		max-width: 100px;
		width: 100%;
		position: absolute;
		top: 50px;
		left: 0;
	}
	
	.swimschool-logo {
		max-width: 100px;
		width: 100%;
		position: absolute;
		top: 50px;
		right: 0;
	}

	.ski-logo {
		max-width: 130px;
		width: 100%;
		position: absolute;
		bottom: 0;
		right: 5px;
	}
	
	.rest-logo {
		max-width: 150px;
		width: 100%;
		position: absolute;
		bottom: 10px;
		left: 0;
	}


	/* --- hero mobile */
	
	
	/* reservation mobile --- */

	.reservations {

		grid-template-areas:
		"Apart1 Apart2"
		"Res1 Res1"
		"Res2 Res2";
		column-gap: 0.5em;
		width: 98%;

	}



	.apart1, .apart2 {
		display: block;
	}

	a.apart1, a.apart2 {
		font-size: 0.8rem;
		font-weight: 600;
		color: #868686;

		padding: 0.5em 1em;
		margin: 0.5em;
		border: 1px solid #c4c4c4;
		border-radius: 5px;
		background: #ffffff;
	
		text-decoration: none;
	
	}

	a.apart1:hover, a.apart2:hover {
		background: #eee;
	}

	.res:nth-child(1) {
		justify-self: center;
	}
	
	.res:nth-child(2) {
		justify-self: center;
	}

	/* --- reservation mobile */

}