html {
    scroll-behavior: smooth;
    scroll-padding-top: 135px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Kanit", sans-serif;
    font-weight: 200;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    text-transform: uppercase;
    font-family: "Kanit", sans-serif;
    padding-top: 1%;
}

h2 {
    font-size: 2.0em;
    text-align: center;
    text-transform: capitalize;
    font-family: "Kanit", sans-serif;
    font-weight: bold;
    padding-top: 1%;
}

h3 {
    font-size: 1.65em;
    text-align: center;
    text-transform: capitalize;
    font-family: "Kanit", sans-serif;
}

p {
    font-size: 1.2em;
    text-transform: none;
    font-family:"Times New Roman", "serif";
    padding-top: 1%;
}

.column {
	justify-content: center;
	align-content: center;
}

.container {
    width: 100%;
	margin: auto;
    position: relative;
	background-color:#B2C1D6;
	justify-content: center;
	align-content: center
}

.row-bio {
    display: flex;
    gap: 2%;
    justify-content: center;
    margin: 30px 0;	
}

.column-bio {
	border: 2px solid #6E87B0;
	border-radius: 5px;
	padding: 10px;
	text-align: center
}

.tittle{
	font-family: "Kanit", sans-serif;
	font-weight: bold;
    padding-top: 1%;
}

header {
	min-height:140px;
	background-color:#6E87B0;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 100;
	font-family: "Oswald", sans-serif
}

.navi {
	font-family: "Oswald", sans-serif;
	font-weight:400;
	font-size: 1.5em;
	display: flex;
	list-style: none;
	justify-content: center;
	align-items: center;
	padding: 3% 3% 0;
	gap:3%
	
}

.navi a:link, a:active {
	color:#B7799E;
	text-decoration: none;
	font-size: 1.25em;
	font-family: "Oswald", sans-serif;
}

.navi a:link, a:visited {
	color:#DBBACB;
	border-bottom: 2px #B7799E;
	padding-bottom: 2%
	
}

.logo{
	min-height: 3%;
	min-width: 5%;
	position:absolute;
	top: 0;
	left: 0;
	margin: 1%
}

section{
	min-height: 90vh;
	width:90%;
	margin: auto;
	position: relative;
	
}

#home {
	position: relative;
	background-color: #B2C1D6;
	width: 100%;
	top:0;
	left: 0;
	text-align: center
	
}

.btn_home {
	display:flex;
	justify-content: center;
	align-content: center;
	align-items: center;
}

.item {
	background-color: #EDE5E3;
	border: 1px solid #000000;
	text-align: center;
	width: 200px;
	padding: 1%;
	margin-top: 1%;
	font-family: "Kanit", sans-serif;
	font-weight: 700
	
}

.item a:link {
	color: #DBBACB;
	text-decoration: none;
}

.item a:hover {
	color: #B7799E;
	transition: 0.3s
}

.profile {
	text-align:center;
	margin-bottom: 20px
}

#Personalities {
	margin-bottom:20px;
	min-height: 750px
}

.container_2 {
	width: 100vw;
	max-width: 850px;
	height: 350px;
	background-color: #EDE5E3;
	border-radius: 25px;
	box-shadow: 0 10px 50px rgba(0,0,0,0.3);
	position:relative;
	display: flex;
	justify-content:center;
	align-items: center
}

.card {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 350px;
	padding-left: 30px;
	position: absolute;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.6s
s}

.card .card_img {
	width:250px;
	height: 250px;
	border-radius: 20px;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}

.card .card_img img{
	width:100%;
	height: 100%;
	object-fit: cover;
}

#slide_1:checked~.card-1,
#slide_2:checked~.card-2,
#slide_3:checked~.card-3,
#slide_4:checked~.card-4,
#slide_5:checked~.card-5 {
    opacity: 1;
    transition-delay: 0.2s;
}

.card .content {
    flex: 1;
    padding: 0 30px 0 35px;
    position: relative;
    left: 50px;
    opacity: 0;
    transition: opacity 0.6s, left 0.6s;
}

#slide_1:checked~.card-1 .content,
#slide_2:checked~.card-2 .content,
#slide_3:checked~.card-3 .content,
#slide_4:checked~.card-4 .content,
#slide_5:checked~.card-5 .content {
    opacity: 1;
	z-index: 9;
	left: 0;
    transition-delay: 0.3s;
}

.card .tittle {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 20px;
}

.card .text {
	font-size: 17px;
	color: #B7799E;
	text-align: justify;
	margin-bottom: 25px;
}

.card a[href^="https://tzewei29.blogspot.com/"] {
	padding: 13px 20px;
	background-color: #6E87B0;
	color: #EDE5E3;
	text-decoration: none;
	border-radius: 50px;
	letter-spacing: 1px;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	float: right;	
}

.slider {
	position:absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
}

.slide {
	width: 50px;
	height: 10px;
	background-color: #B7799E;
	display: inline-flex;
	margin: 0 3px;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
	overflow: hidden
}

.slide .slide::before {
	content: "";
	width: 0;
	height: 100%;
	background-color: #DBBACB;
	border-radius: 5px;
	position: absolute;
	left: 0;
	top: 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s;
}

#slide_1:checked~ .slider .slide-1::before,
#slide_2:checked~ .slider .slide-2::before,
#slide_3:checked~ .slider .slide-3::before,
#slide_4:checked~ .slider .slide-4::before,
#slide_5:checked~ .slider .slide-5::before {
	width: 100%;
	transform: scaleX(1);
}

.container_2 {
	justify-content: center;
	margin: 0 auto
}

#contact {
	margin-top: 20px
}

#project {
	
	text-align: center;
	padding-top: 20px;
	min-height: 570px
}

#project h2 {
	font-size: 2.5em;
	margin-bottom: 20px;
	font-family: "Kanit", sans-serif;
	font-weight: bold
}
#Hobbies {
    background-color: #B2C1D6;
    min-height: 400px;
    text-align: center;
    margin-top: -400px; 
}

.container_3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.row-hob {
    width: 310px;
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #6E87B0;
    color: #001D36;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.row-hob .hobimg {
    width: 100%;
    height: 100%;
    transition: opacity 0.35s ease;
}

.row-hob .explain {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    color: #000000;
    opacity: 0;
    transition: opacity 0.35s ease;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    overflow: hidden;
}

.row-hob .explain h2,
.row-hob .explain p {
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.row-hob .explain h2 {
    font-weight: 500;
    text-transform: uppercase;
}

.row-hob .explain h2 span {
    font-weight: 700;
}

.row-hob .explain p {
    font-weight: 400;
}

.row-hob:hover .hobimg {
    opacity: 0.3;
}

.row-hob:hover .explain {
    opacity: 1;
}

.row-hob:hover .explain h2 {
    opacity: 1;
    transition-delay: 0.4s;
}

.row-hob:hover .explain p {
    opacity: 0.9;
    transition-delay: 0.6s;
}

.row-hob:hover .explain::before {
    background-color: rgba(255, 255, 255, 0);
    left: 0;
    opacity: 1;
    transition-delay: 0s;
}

#contact {
    background-color: #f0f0f0;
    padding: 50px 0;
    text-align: center;
	min-height: 100px
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 0 20px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #6E87B0;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 10px;
	margin-bottom: auto;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #526D84;
}

footer {
  background-color: #6E87B0;
  min-height: 100px;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 100;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
}

.footbio {
  min-height: 2%;
  min-width: 3%;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1%;
}

.social {
  min-height: 20%;
  min-width: 20%;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 1%;
}




