/* Evergreen Blueprint Site Styles */
/* General styles for the Evergreen Blueprint site */
body {
    font-family: "Times New Roman", Arial, sans-serif; /* Use Times New Roman font for the entire page */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    /*background-color: #ffffff;*/ /* Set background color to white. Change to image of NHCP logo.*/  
    color: #000000; /* Sets the text color to black for better readability against a white background */
    line-height: 1.6;
    text-align: center; /* Centers the text for a clean and professional look */
}

ul {
    list-style-type: none; /* Removes default bullet points from the list */
}


/*Style for heading 1, 2, and 3*/
h1, h2, h3 {
    font-family: "Times New Roman", Arial, sans-serif; /* Use Times New Roman font for headings */
    color: #000000; /* Black color for headings */
    text-align: center; /* Center-aligns the headings for a balanced look */
    padding: 0px 15px; /* Adds padding to the left and right of headings for better spacing on smaller screens */
}

p {
    font-family: "Times New Roman", Arial, sans-serif; /* Use Times New Roman font for paragraphs */
    color: #000000; /* Medium gray color for paragraphs */
    line-height: 1.6; /* Increase line height for better readability */
}

a {
    color: #ffae00; /* Sets the link color to a shade of purple for better visibility */
    text-decoration: none; /* Removes underline from links for a cleaner look */
}

/*Style for links on hover*/
a:hover {
    color: #ffffff; /* Changes the link color to red on hover for better visibility */
    text-decoration: underline; /* Underlines the link text on hover for better visibility */
    
}

/*Style for links when they are focused (tabbing through the content links), adds an outline for better accessibility*/
a:focus-visible {
    outline: 2px solid #01fff7; /* Adds a visible outline to links when they are focused for better accessibility */
    outline-offset: 4px; /* Adds space between the outline and the link text for better visibility */
}

header {
    width: 1024px; /* Set a fixed width for the header */
    max-width: 100%; /* Ensure the header does not exceed the width of the viewport */
    margin: 0 auto; /* Center the header in the body */
    background-image: url('Images/The_Evergreen_Blueprint_Drk_1100x1100.png'); /* Change this image to Evergreen Blueprint Logo */
    background-size: cover; /* Ensure the background image covers the entire header */
    background-position: center; /* Center the background image */
    color: #ffffff; /* Set text color to white for better contrast against the background */
    text-align: center; /* Center the header text */
    padding: 10px 0; /* Add padding to the top and bottom of the header */
}

header background img {
    width: 100%; /* Make the background image span the full width of the header */
    height: auto; /* Maintain the aspect ratio of the background image */
}
header h1 {
    color: #ffffff;
    width: 33ch; /* Set the width of the header heading to 33 characters */
    max-width: 100%; /* Ensure the header heading does not exceed the width of the header */
    margin: 0 auto; /* Center the heading within the header */
    background-color: rgba(0, 140, 255, 0.644); /* Add a semi-transparent background for better text readability */
    text-align: center; /* Center the header heading text */
}

/*Style for the main content area and sections*/
main {
    padding: 24px; /* Adds padding around the main content for better spacing */
    max-width: 1024px; /* Sets a maximum width for the main content area to prevent it from stretching too wide on large screens */
    margin: 0 auto; /* Centers the main content horizontally within the viewport */
}

nav {
    max-width: 500px; /* Set a maximum width for the navigation bar */
    margin: 0 auto; /* Center the navigation bar within the page */
    background-color: rgb(255, 255, 255); /* Dark background for the navigation bar */
    color: #000000; /* Set text color to black for better readability against the white background */
    text-align: center; /* Center the navigation text */
    padding: 10px 0; /* Add padding to the top and bottom of the navigation bar */
    border-bottom: 2px solid #000000; /* Add a bottom border to the navigation bar for separation */
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center the navigation items horizontally */
    gap: 20px; /* Add space between navigation items */
}

nav a {
    color: #000000; /* Set link color to black */
    text-decoration: none; /* Remove underline from links */
    padding: 5px 10px; /* Add padding around the links */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
}

nav a:hover {
    background-color: rgb(0, 140, 255); /* Change background color on hover */
    color: #ffffff; /* Change text color to white on hover */
}

nav ul {
    list-style-type: none; /* Remove default bullet points from the navigation list */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center the navigation items horizontally */
    gap: 20px; /* Add space between navigation items */
}

#subscribe {
    text-align: center;
    margin-bottom: 40px; /* Add some space below the subscribe section */
}

#subscribe h2, #teb-newsletter h2 {
    margin-bottom: 10px; /* Add some space below the heading */
    color:#3a6e0c;
}
#subscribe a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: rgb(0, 140, 255);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
}

#subscribe a:hover {
    background-color: rgb(0, 100, 200);
}

#teb-newsletter {
    flex: 1;            /* allows it to stretch */     
    text-align: center;
    perspective: 1000px; /* Adjust the perspective value as needed */
    cursor: pointer;   /* Changes the cursor to a pointer to indicate interactivity */
    position: relative; /* Establishes a positioning context for the front and back sides */
    transition: transform 0.6s; /* Smooth transition for the flip effect */
    transform-style: preserve-3d; /* Ensures the 3D effect is preserved */
}

#teb-newsletter.is-flipped {
    transform: rotateY(180deg);
}

.flip-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card:focus-visible {
    outline: 2px solid #01fff7;
    outline-offset: 4px;
}

.flip-card-inner {
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    width: 100%;
    min-height: 320px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #ffffff;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-front img,
.flip-card-back img {
    max-width: 375px;
    height: auto;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}