@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Bitter');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans:wght@300;400;600&display=swap');

body {
    align-items: center;
    min-width: 100%;
    background: #d0c4b8;
    overflow-x: hidden;
    text-align: center;
    font-family: "Open sans", Verdana, Arial, Helvetica, sans-serif;
    position: relative;
    padding-top: 100px;
    margin: 0;   
    padding: 0;
}

/* Default background image */
body.home::before {
    content: "";
    background: url('https://www.llanioldpics.wales/gifs/llanidloesmarkethall.jpg') center top no-repeat;
    background-size: cover;
    opacity: 0.85;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);  /* Center the image horizontally */
    width: 100vw; /* Ensures full width */
    height: 100vh; /* Ensures full height */
    min-height: 797px;
    max-width: 999px;
    z-index: -1;
    pointer-events: none;
    border-radius: 20px; /* Adjust this value for more or less curvature */
}

body.bethalst {
    background-color: #e7d6c9; /* Set the background color */
    background-image: url('https://www.llanioldpics.wales/gifs/bethalst2.jpg'); /* Apply background image */
    background-position: right top;
    background-size: auto;
background-repeat: no-repeat; 
    position: absolute;
    top: 0;
    right: 0; /* Align to the right edge */
    width: auto; /* Keep the image's natural width */
    height: auto; /* Keep the image's natural height */
    max-width: 100%; /* Ensure the image doesn't overflow the screen */
}


html {overflow-y: scroll;} 

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    /* Intro Section */
    #intro {
        margin: 0; /* Remove all margins */
        margin-top:375px;
        padding-top:245px;
        margin-bottom:15px;
        padding: 0; /* Remove all padding */
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        position: relative;
        width: 80%; /* Ensure it takes full width */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Intro Box */
    .intro-box {
        background: rgba(0, 0, 0, 0.6);
        width: 90%; /* Ensure intro-box takes up full available width */
        max-width: 100vw; /* Prevent the intro-box from overflowing the screen */
        max-width: 600px; /* Set a max width to prevent it from becoming too wide */
        padding: 20px; /* Adjust padding for smaller screens */
        box-sizing: border-box; /* Include padding in width calculation */
        margin: 0; /* Remove any margin */
        padding: 20px;
        color: white;
        text-align: center;
        border-radius: 10px;
    }

    /* Intro2 Section */
    #intro2 {
        margin: 0; /* Remove all margins */
        margin-top:225px;
        padding-top:245px;
        margin-bottom:15px;
        padding: 0; /* Remove all padding */
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        position: relative;
        width: 90%; /* Ensure it takes full width */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Intro Box2 */
    .intro-box2 {
        background: rgba(0, 0, 0, 0.8);
        width: 90%; /* Ensure intro-box takes up full available width */
        max-width: 100vw; /* Prevent the intro-box from overflowing the screen */
        max-width: 800px; /* Set a max width to prevent it from becoming too wide */
        padding: 20px; /* Adjust padding for smaller screens */
        box-sizing: border-box; /* Include padding in width calculation */
        margin: 0; /* Remove any margin */
        padding: 20px;
        color: white;
        text-align: center;
        border-radius: 10px;
    }


h1 {
    font-family: 'Bitter', serif;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight:300;
}

h2 {
    font-family: 'Bitter', serif;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight:300;
}

h3 {
    font-family: 'Bitter', serif;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight:300;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height:1.5;
    margin-bottom:7px;
}
/* General Button Style */
button, a.whatsapp-button {
    background-color: #33351f;  /* WhatsApp green */
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;  /* Remove underline from the link */
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin:11px;
}

button:hover, a.whatsapp-button:hover {
    background-color: #128C7E;  /* Darker WhatsApp green */
    transform: scale(1.05);  /* Slightly enlarge the button on hover */
}

button:focus, a.whatsapp-button:focus {
    outline: none;  /* Remove outline on focus */
}

/* Optional: Adding a WhatsApp Icon */
a.whatsapp-button i {
    margin-right: 8px;  /* Space between icon and text */
}

.button {
    background-color: #33351f;  /* WhatsApp green */
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;  /* Remove underline from the link */
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin:11px;
}

.button:hover {
    background-color: #128C7E;  /* Darker WhatsApp green */
    transform: scale(1.05);  /* Slightly enlarge the button on hover */
}

button:focus, a.whatsapp-button:focus {
    outline: none;  /* Remove outline on focus */
}

/* Facebook Link Styling */
.contact-info .facebook-link {
    display: inline-flex;
    align-items: left;
    color: white; /* Make the text white */
    font-size: 16px;
    text-decoration: none; /* Remove underline */
    padding: 10px 20px;
    background-color: #3b5998; /* Facebook blue */
    border-radius: 5px; /* Rounded corners */
    gap: 10px; /* Space between icon and text */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-info .facebook-link:hover {
    background-color: #8b9dc3; /* Lighter blue on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.contact-info .facebook-link i {
    font-size: 18px; /* Adjust icon size */
    margin-right: 8px; /* Space between the icon and text */
}


/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%; /* Full width of the screen */
    max-width: 990px; /* Maximum width of 990px */
    margin-left: auto;
    margin-right: auto;
    top: 0;
    z-index: 1000;
}


nav .logo img {
    height: 60px;
}

/* Contact Information Container */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the items horizontally */
    align-items: left; /* Center the items vertically */
    gap: 10px; /* Space between graphic and text */
    text-align: center; /* Center align text inside the container */
    padding-top: 17px; /* Add padding to the top */
    padding-bottom: 17px; /* Add padding to the bottom */
}

/* Contact Item */
.contact-info .contact-item {
    display: flex;
    flex-direction: row; /* Align graphic and text horizontally */
    align-items: left; /* Align graphic and text on the same line */
    gap: 10px; /* Space between graphic and text */
}

/* Ensure the icons are a reasonable size */
.contact-info .contact-item img {
    max-width: 20px; /* Adjust the size of the icon */
    height: auto;
}

/* Make all links white */
.contact-info .contact-item a {
    text-decoration: none; /* Remove underline from links */
    color: white; /* Make the links white */
    font-size: 16px;
    white-space: nowrap; /* Prevent the links from wrapping */
}

.contact-info .contact-item a:hover {
    color: #ff9e2c; /* Optional: Add hover effect with accent color */
}

/* Menu */
/* Hide the menu by default on mobile */
#menu {
    list-style: none;
    display: flex;  /* Always visible on desktop */
    transition: all 0.3s ease;
}

#menu li {
    margin-left: 20px;
}

#menu a, a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: color 0.3s;
}

#menu a:hover, a:hover {
    color: #ff9e2c; /* Accent color on hover */
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

/* Mobile Menu */
#menu.mobile-menu {
    display: none;  /* Hide the menu by default on mobile */
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#menu.mobile-menu.active {
    display: flex;  /* Show the menu when 'active' class is added */
}



.intro-box h1 {
    font-family: 'Bitter', serif;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight:300;
}

.intro-box h2 {
    font-family: 'Bitter', serif;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight:300;
}

.intro-box h3 {
    font-family: 'Bitter', serif;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight:300;
}

.intro-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height:1.5;
    text-align:left;
}

.intro-box2 h1 {
    font-family: 'Bitter', serif;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight:300;
}

.intro-box2 h2 {
    font-family: 'Bitter', serif;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight:300;
}

.intro-box2 h3 {
    font-family: 'Bitter', serif;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight:300;
}

.intro-box2 p {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height:1.5;
    text-align:left;
}


/* Footer */
footer {
    background: #a19184 url(https://www.llanioldpics.wales/gifs/footerbck.jpg) no-repeat;
    border-top:3px #7b7976 solid;
    margin-top:73px;
    color: white;
    text-align: left;
    padding: 20px 0;
    padding-left:14px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Footer Links */
footer a {
    text-decoration: none; /* Remove underline */
    color: white; /* Set link color to white */
    transition: color 0.3s ease; /* Smooth transition */
    text-align: left;
}

footer a:hover {
    color: #ff9e2c; /* Change color on hover (optional) */
}





@media (max-width: 799px) {

.intro-box h1 {
    font-size: 24px;
}

.intro-box h2 {
    font-size: 20px;
}

.intro-box2 {
        background: rgba(0, 0, 0, 0.99);
 }

.intro-box2 h1 {
    font-size: 24px;
}

.intro-box2 h2 {
    font-size: 20px;
}

/* On mobile, hide menu by default */
    #menu {
        display: none; /* Hide the menu by default on mobile */
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    /* When 'active' class is added, show the menu on mobile */
    #menu.active {
        display: flex;  /* Show the menu when 'active' is added */
    }

    .hamburger {
        display: block; /* Show the hamburger icon on mobile */
    }

    #menu li {
        margin: 10px 0;
    }

}



/* Media Query for Small Screens (Mobile) */
@media (max-width: 480px) {

    .contact-info {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center; /* Center the items vertically */
    }

    .contact-info .contact-item a {
        white-space: normal; /* Allow text to wrap if needed */
    }

}