/* Global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #111;
    color: white;
    font-family: Arial, sans-serif;
}

/* Navbar styles */
nav {
    background-color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.logo img {
    height: 32px;
}

.nav-links,
.auth-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a,
.auth-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.nav-links a:hover,
.auth-links a:hover {
    text-decoration: underline;
}

.moon-icon {
    color: white;
}

/* Banner styles */
#banner {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch; /* ให้ banner-content ยืดเต็มแนวดิ่ง */
    text-align: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.banner-content h1 {
    font-size: 6rem;
    margin-top: 250px;
}

.banner-content p {
    margin-top: auto; /* ดันลงล่างสุดของ banner-content */
    margin-bottom: 60px; /* เว้นจากขอบล่างหน่อย */
    font-size: 1.2rem;
}


/* About Me section */
.about-section-left {
    display: flex;
    justify-content: flex-start;
    padding: 40px 100px;
}

.about-section-right {
    display: flex;
    justify-content: flex-end;
    padding: 35px 100px;
    
}

.about-card {
    background-color: #000;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 20px #888;
    width: 100%;
    max-width: 500px;
    max-height: 300px;
    line-height: 1.6;
    overflow-y: auto; /* ซ่อนเนื้อหาที่เกิน */
    scroll-behavior: smooth; /* ทำให้เลื่อนเนียน */
    margin-left: 30px;
    position: relative;
}

.about-card p {
    margin-bottom: 1em;
}

.about-card .indent {
    text-indent: 2em;
}

/* สไตล์ scrollbar */
.about-card::-webkit-scrollbar {
    width: 8px;
}

.about-card::-webkit-scrollbar-track {
    background: transparent;
}

.about-card::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* สำหรับ Firefox */
.about-card {
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

/* Animation */
.updown {
    animation: updown 2s ease-in-out infinite;
    display: inline-block;
    position: relative;
}

.updown a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

@keyframes updown {
    0% {top: 0;}
    50% {top: -10px;}
    100% {top: 0;}
}

