/* Basic reset */
body, div {
    margin: 0;
    padding: 0;
}
body {
    background-color: #F47F1E;
    #font-family: arial;
    }

h1 {
font-family: arial;
font-weight: bold;
color: #002D62;
margin: 0;
}

a {
font-family: arial;
font-weight: bold;
color: #002D62;
}

a:hover {
font-family: arial;
font-weight: bold;
color: #002D62;
}

a:visited {
font-family: arial;
font-weight: bold;
color: #002D62;
}

textarea {
    word-wrap: normal; /* Default: allows breaking between words */
    word-break: normal; /* Prevents breaking within words */
    white-space: pre-wrap; /* Maintains whitespace and wraps text only at line breaks or as necessary */
    overflow-wrap: normal; /* Prevents breaking within words */
}

.logofull {
background-color: #002D62;
width: 100%;
cellspacing: 0;
cellpadding: 0;
border-top: 25px solid #002D62;
border-top: 25px solid #002D62;
}

.headerfull {
background-color: #EFEFEF;
width: 100%;
cellspacing: 10;
cellpadding: 10;
border-top: 25px solid #EFEFEF;
border-top: 25px solid #EFEFEF;
}

/* Default container width (for very small screens) */
.maincontainer {
    width: 90%; /* Use 90% of the viewport width */
    margin: 0 auto; /* Center the container */
}

/* Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .maincontainer {
        width: 100%; /* Use the full width of the viewport */
    }
}

/* Medium devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .maincontainer {
        width: 95%; /* Slightly reduce the width for better padding */
    }
}

/* Large devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .maincontainer {
        width: 85%; /* Use 80% of the viewport width */
    }
}

/* Extra large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .maincontainer {
        width: 85%; /* Use 70% of the viewport width */
    }
}

/* Extra extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .maincontainer {
        width: 85%; /* Use 60% of the viewport width */
    }
}

.spacer {
  height: 100px;
  background-image: url('bg.png');
  #background-repeat: no-repeat;
  #background-size: cover;
  width: 100%;
}
.container1 {
    background-color: #EFEFEF;
    width: 85%;
    margin: 5 auto;
    border-top: 25px solid #EFEFEF;
    border-bottom: 25px solid #EFEFEF;    
    cellpadding: 10;
    cellspacing: 10;
}
.container2 {
    background-color: #EFEFEF;
    width: 95%;
    margin: 0 auto;
    #border: 1px solid #ccc;
    cellpadding: 10;
}

.post-controls {
    margin-top: 10px;
    background-color: inherit; /* Inherit the background color of the row */
    padding: 5px;
    text-align: right; /* Align controls to the right */
}

.post-controls .btn {
    display: inline-block; /* Ensures buttons stay inline */
    margin: 2px 1px;
    padding: 5px 10px;
}

.row .post-controls {
    display: inline-flex; /* Ensures controls are inline within the row */
    align-items: center; /* Vertically align controls */
    justify-content: flex-end; /* Align to the right */
}

.post-controls .btn:hover {
    background-color: #CCC; /* Slightly darker on hover */
}


.header, .row {
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    padding: 10px;
    border: 1px solid #ccc;  
}

.header {
    /* align: center; */
    /* width: 85%; */
    color: white;
    font-family: arial;
    font-weight: bold;
    background-color: #002D62;
}

.Topicheader {
    color: white;
    font-weight: bold;
    background-color: #002D62;
}

.pagination {
color: #002D62;
font-weight: bold;
}

.pagination a {
    display: inline-block; /* Ensure each link is treated as an inline block */
    margin-right: 5px; /* Optional: adds space between the links */
    text-decoration: none; /* Optional: remove underline for a cleaner look */
    color: #002D62; /* Optional: set the color of the links */
}

.pagination .current-page {
    color: white;
    background-color: #002D62;
    font-weight: bold;
    text-decoration: none;
}

.pagination .current-page:hover {
    color: white;
    background-color: #002D62;
}


/* Column widths */
.started-by2 {
    flex-basis: 25%;
    text-align: left;
}
.message1 {
flex-basis: 75%;
text-align: left;
color: white;
max-width:100%;
}
.message2 {
    color: #002D62;
    font-weight: bold;
    font-size: 1.2em;
    flex-basis: 75%;
    #flex: 1;
    text-align: left;
    white-space: normal; /* Change this to normal */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word; /* Ensures long words or URLs break correctly */
    max-width: 100%;
    line-height: 1.5; /* Adjusts the spacing between lines */
}

.row:nth-child(odd) {
    background-color: #f9f9f9;
}

.row:nth-child(even) {
    background-color: #e6e6e6;
}

/* Ensure images and iframes scale down to fit within the container */
.message2 img,
.message2 iframe {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
}
