
/* General Reset */
body, h1, h2, h3, p, ul, li, a, button, input, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font and Body Styling */
html, body {
    // font-family: 'Roboto', sans-serif;
	font-family: 'Kanit', merriweather-sans !important;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    color: #333;		// Red-black
    background-color:rgb(244, 244, 249, .5);
    margin: 0;
    height: 100%;
    overflow-y: auto;
    min-height: 100vh;
    overflow-y: auto;
    min-height: 100vh;
}

/* Main content should fill available space */
main {
    // flex: 1;
    // padding-top: 40px; /* Adjust based on your header height */
    // height: 60vh;
    max-height: 100%; /* Or a fixed height in pixels */
    min-height: calc(100vh - 3em); /* Account for footer height */
    position: relative;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: content-box radial-gradient(rgb(188 199 230 / 0.7), rgb(255 255 255));
    align-items: stretch;
    text-align: center;
}

/* Container */
.container {
	font-family: 'Kanit', merriweather-sans !important;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    // padding: 0 1rem;
    height: 100%; 
    z-index: 0;
    border-radius: 50% 20% / 10% 40%;
    margin-bottom: 1rem;
}

/* Header */
header {
    position: sticky;
    font-family: 'Kanit', merriweather-sans !important;
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color:rgb(105, 4, 4);
}

/* Hero Section */
.hero {
    display: block;
    // margin-top: 1rem;
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(to right,rgb(105, 4, 4),rgb(194, 12, 21));
    color: #fff;
    width: 100%;
    opacity: 0.8;
    border-radius: 30% / 30%;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    opacity: 1;
    color: rgb(214, 0, 36);
    text-shadow: 1px 1px 2px #000000;
    text-align: center;
    width: 100%; /* Or max-width if you want to limit the width */
    margin-left: auto;
    margin-right: auto; 
}

.hero button {
    background-color: #fff;
	font-family: 'Kanit', merriweather-sans !important;
    color:rgb(105, 4, 4);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    opacity: 1;
}

.hero button:hover {
    background-color:rgb(194, 12, 21);
    color: #fff;
    opacity: .8;
}

/* Section Styling */
.section {
    padding: 0rem 0;
    text-align: center;
    padding-right: 50px;
}

.section h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
    opacity: 1;
    color: #fff;
    text-shadow: 1px 1px 2px #000000;
    text-align: center;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin: 0.5rem 0;
    color: #555;
}

/* Contact Form */
form {
    font-family: 'Kanit', merriweather-sans !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 40%;
    max-width: 800px;
    margin: 10 auto;
    height: 23em; 
    max-height: 1200px;
}

form input, form textarea {
    font-family: 'Kanit', merriweather-sans !important;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    padding: 1rem;
    opacity: 50%;
}

form button {
    background-color:rgb(105, 4, 4);
	font-family: 'Kanit', merriweather-sans !important;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-bottom: 4rem;
}

form button:hover {
    background-color: #fff;
}

/* Footer */
footer {
    position: sticky;
    margin-top: auto;
    background-color: #333;
    font-family: 'Kanit', merriweather-sans !important;
    // display: sticky;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    // margin-top: 2rem;
    height: 2em;
    max-height: 40%;
    left: 0;
    bottom: 0;
    width: 100%;
}


// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 300 to 800

.merriweather-sans-phlo {
	font-family: "Merriweather Sans", serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
  }

  /* Video styling */ 
  #bird_over_fires {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
  }

  .container overlay {
    position: relative;
    bottom: 0;
    // background: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    width: 100%;
    padding: 0px;
    // text-align: center !important;
  }

  /* Video Background */
#video-background {
    position: relative;
    width: 100%;
    min-height: 1000px; /* Adjust the value as needed */
    // height: 400px; /* Adjust as needed for the height */
    height: 100vh;
    max-height: 100%;
    overflow: hidden;
    // background-size: cover;
}

#video-background video {
    position: absolute;
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    width: 100%; /* Make it span the container width */
    height: 100%; /* Make it span the container height */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    z-index: 1;
    pointer-events: none; 
}

#video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    background: rgba(0, 0, 0, 0.1); /* Optional for readability */
    color: #fff;
    // padding: 20px;
    margin-bottom: 30px; 
}

#video-background .overlay h2,
#video-background .overlay form {
    z-index: 3;
}

#video-background .overlay form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    border-radius: 10px;  /* Add rounded corners */
    // border-radius: 50% 40% / 20% 60%;
    padding: 20px; 
}

#video-background .overlay form input,
#video-background .overlay form textarea {
    // padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    align-items: stretch !important;
    text-align: left !important;
    flex-grow: 1 !important;
    width: 100%; /* Make input fields span the container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#video-background .overlay form button {
    background-color: rgb(105, 4, 4);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    align-items: stretch;
    text-align: center;
    border-radius: 50% 20% / 10% 40%;
}

#video-background .overlay form button:hover {
    background-color:rgba(0, 0, 0, 0.5);
}

#contact .overlay h2 {
    /* Your styles here */
    color:rgb(255, 255, 255); /* Example: Change text color */
    font-family: 'Kanit', merriweather-sans !important;
    font-size: 2rem; /* Example: Adjust font size */
    text-transform: uppercase; /* Example: Add text transformation */
    align-items: stretch;
    text-align: center;
}


.shadow1 {
    margin: 10px;
    background-color: rgb(68,68,68); /* Needed for IE */
    box-shadow: 5px 5px 5px rgb(68 68 68 / 0.6);
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
    -ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
    zoom: 1;
    border-radius: 70% 30% / 20% 60%;
    padding-right: 3em;
  }
  .shadow1 .container {
    position: relative; /* This protects the inner element from being blurred */
    padding: 100px;
    background-color: #ddd;
  }


  /* Large Devices (Tablets & Smaller Desktops) */
@media screen and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    form {
        width: 60%;
    }

    .hero h2 {
        font-size: 2rem;
    }

    #video-background {
        height: 350px;
    }
}

/* Medium Devices (Tablets) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    form {
        width: 80%;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    #video-background {
        height: 300px;
    }

    #video-background .overlay {
        padding: 15px;
    }

    #video-background .overlay form {
        max-width: 300px;
    }

    footer {
        height: auto;
        min-height: 100px;
    }
}

/* Small Devices (Mobile Landscape) */
@media screen and (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 0.5rem;
        height: auto;
    }

    header {
        padding: 0.5rem 0;
    }

    header .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .hero {
        padding: 1.5rem 0.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    form {
        width: 95%;
    }

    .section {
        padding: 1rem 0;
    }

    #video-background {
        height: 250px;
    }

    #video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #video-background .overlay {
        padding: 10px;
    }

    #video-background .overlay form {
        max-width: 250px;
    }

    .shadow1 {
        margin: 10px;
    }

    .shadow1 .container {
        padding: 30px;
    }

    #bird_over_fires {
        position: fixed;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

/* Extra Small Devices (Mobile Portrait) */
@media screen and (max-width: 375px) {
    header .logo {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    form input, 
    form textarea,
    #video-background .overlay form input,
    #video-background .overlay form textarea {
        font-size: 0.9rem;
    }

    .hero button,
    form button,
    #video-background .overlay form button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    #video-background {
        height: 200px;
    }

    #video-background .overlay {
        padding: 8px;
    }

    #video-background .overlay form {
        max-width: 200px;
        gap: 0.5rem;
    }

    .shadow1 {
        margin: 5px;
    }

    .shadow1 .container {
        padding: 30px;
    }

    #contact .overlay h2 {
        font-size: 1.5rem;
    }
}

/* Height-based queries for video background */
@media screen and (max-height: 500px) {
    #video-background {
        height: 200px;
    }

    footer {
        height: auto;
        min-height: 80px;
    }
}

/* Ensure video responsiveness */
@media screen and (orientation: portrait) {
    #bird_over_fires,
    #video-background video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}
