/*main*/
html, main {
    height: 100%;
    width: 100%;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: #f0f0f0;
    position: relative;
}

/* styles the button within the different image boxes */
.about_us_button{
    background-color: #168389;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    position: relative;
    top: 20px;
}

/* styles the groups of text inbetween the different pictured sections */
.text-group .about_us_button {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.text-group {
    display: flex;
    width: 100%;
    background-color: #f0f0f0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: #168389 inset 10px;
}

.text-group h2 {
    font-size: 2.5em;
    color: #168389;
    margin-bottom: 20px;
    text-align: center;
}

.text-group ul {
   list-style: none;
   padding-left: 1;
}

.text-group li {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
    line-height: 1.5;
}

.text-group ul li::before {
    content:"◆";
    color: #168389;
    font-size: 1.2em;
    margin-right: 6vw;
}

.text-group p {
    text-decoration: underline;
    padding-bottom: 20px;
    align-self: center;
}

.feed-box {
    border: #168389 outset 10px;
    width: 100%;
    text-align: center;
}

/* styles the images in the background of the different sections */
.home_img_1 {
    background-image: url('/Images/tank2.jpg'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.home_img_2 {
    background-image: url('/Images/thetank.jpg'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0% 30%;
}

.home_img_3{
    background-image: url('/Images/Group+Rubes.jpg'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0% 40%; /* Adjusted position for better visibility */
}

@media (min-width: 1439px) {
    .home_img_1, .home_img_2, .home_img_3 {
        background-position: 0% 20%; /* Centers the image on smaller screens */
    }
}

/* styles the facebook feed, creating space around it */
.fb-page {
    padding: 20px;
}

/* Forces text to the righ hand side to show the background image better */
.Text_Container {
    margin-left: 40%;
}

@media (max-width: 768px) { /* Spans text across image rather than on the side  on smaller screens*/
    .Text_Container {
        margin-left: 0;
        width: 100%;
    }
}


/* Styles the text in the different boxes, giving them a scroll wheel if there is too much text */
.Text_Box{
    background: linear-gradient(to left, rgb(0, 0, 0), rgba(0, 0, 0, 0)); /* White with some transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
    height: 40vh;
    overflow-y: scroll;
}

/* Styles the about us section, giving it a black background and white text, ready for background image */
.about_us {
    text-align: center;
    height: 40vh;
    width: 100vw;
    padding-bottom: 15vh;
    background-color: black;
    color: white;
}

h2{
    text-align: center;
    height: 50%;
    padding-top: 2%;
    padding-bottom: 2%;
}

.container {
    align-items: flex-start; /* Aligns items at the top */
}

.fb-page {
    flex: 2; /* Facebook feed takes more space */
}

.teamwork {
    flex: 1; /* Image takes up less space */
    margin-left: 10px; /* Adds spacing between elements */
    max-width: 390px; /* Adjust image size */
    padding-bottom: 0px; /* Adds padding at the bottom */
    padding-top: 10px; /* Adds padding at the top */
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stacks elements vertically on smaller screens */
        align-items: center; /* Centers items */
    }
    
    .fb-page, .teamwork {
        width: 100%; /* Full width for both elements */
        margin-left: 0; /* Removes left margin */
    }
    
    .teamwork {
        max-width: 100%; /* Allows image to take full width on small screens */
    }
}