/* Global Styles */
body {
    margin: 0;
    font-family: 'Noto Serif Thai', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.menu-icon {
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #333;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

.side-menu a {
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    border-bottom: 1px solid #444;
    font-family: 'Noto Serif Thai', serif;
}

.side-menu a:hover {
    background: #444;
}

.side-menu .closebtn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.side-menu.active {
    left: 0;
}

/* Full-Screen Video Section */
.video-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay Content */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.overlay h1 {
    font-family: 'Noto Serif Thai', serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.overlay p {
    font-family: 'Noto Serif Thai', serif;
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 20px;
}

.overlay .btn {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: 'Noto Serif Thai', serif;
    font-weight: 400;
}

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

/* Sound Toggle Button */
.sound-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Icons Inside the Toggle Button */
.sound-icon {
    width: 24px;
    height: 24px;
    pointer-events: none; /* Ensure the click doesn't affect the icons */
}

/* Hide Elements with the 'hidden' Class */
.hidden {
    display: none;
}

/* About Section Styling */
#about {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
}

#about h2 {
    text-align: center;
    font-family: 'Noto Serif Thai', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* About Content: Portrait and Text */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.about-portrait {
    width: 200px; /* Default portrait size */
    max-width: 100%; /* Ensure it does not exceed the container width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}


.about-text {
    flex: 1;
    font-family: 'Noto Serif Thai', serif;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}



/* About and Videos Sections */
section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    text-align: justify;
}

h2 {
    text-align: center;
    font-family: 'Noto Serif Thai', serif;
    font-size: 2rem;
    font-weight: 700;
}

/* Videos Grid */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-top: 56.25%; /* Aspect ratio: 16:9 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Top-Right Logo */
.top-right-logo {
    position: fixed;
    top: 10px;
    right: 20px;
    width: 360px; /* Default size */
    height: auto;
    z-index: 1100;
}

/* Responsive Logo for Mobile */
@media (max-width: 768px) {
    .top-right-logo {
        width: 120px; /* Smaller size for mobile */
        right: 10px; /* Adjust padding for smaller screens */
        top: 5px; /* Adjust position for smaller screens */
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

   .about-portrait {
        width: 150px; /* Smaller portrait for mobile */
    }

    .about-text {
        text-align: justify;
    }
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    font-size: 0.9rem;
    font-family: 'Noto Serif Thai', serif;
}
