	html{
		width:100%;
	}
    body {

        color:#eee;
  background:url(../images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
        padding-top: 20px;

        /* Required padding for .navbar-fixed-top. Remove if using .navbar-static-top. Change if height of navigation changes. */
      }

th, td {
    padding: 5px;
}
       table.table1, td.table1, th.table1{
        border: 1px solid black;
      }
      
 table.table2 {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td.table2, th.table2 {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

/* Reduce padding for rows in construction and training queues */
#tablebuild td, #tablebuild th,
#tabletrain td, #tabletrain th,
#tablein td, #tablein th,
#tableyour td, #tableyour th {
    padding: 2px;
}

/* Progress bar styling for build and training queues */
.progress {
    height: 15px;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 1s linear, background-color 1s linear;
}

/*
 * Shared card styling for overview panels. Ensures that the "Incoming Units",
 * "Outgoing Units", "Buildings Under Construction" and "Training Queue"
 * cards all align the same, match the base view width and are centered within the page.
 */
.overview-card {
    width: 100%;
    max-width: 650px;
    margin: 35px auto 0;
    border: 1px solid #cdcdcd;
    border-radius: 0;
}

/* Drop shadow for the main base overview card */
.base-overview {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


	  
 table.table3 {
    font-family: arial, sans-serif;
    width: 100%;
}

td.table3 {
    text-align: left;
    padding: 8px;
}
th.table3 {
    text-align: left;
    padding: 8px;
}

 table.table4 {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td.table4, th.table4 {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

/* Ensure all links have no underline */
a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

/* Messaging styles */
.message-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.message-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-bubble p {
    margin-bottom: 0;
}

.message-bubble.you {
    align-self: flex-end;
    background-color: #d1e7dd;
    color: #0f5132;
    text-align: right;
}

.message-bubble.other {
    align-self: flex-start;
    background-color: #f8f9fa;
    color: #212529;
    text-align: left;
}

.message-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Report table styling */
.report-table .report-unread {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

/* Individual report view styling */
.report-card {
    max-width: 700px;
    margin: 0 auto;
}

.report-card .table {
    color: #212529;
}

/* Landing page styling */
body.login-page {
    /* Use the same full-screen background image as the game pages */
    background: url('../images/bg.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #eee;
    padding-top: 0;
}

/* Ranking page styling */
body.ranking-page {
    /* Match the game background image */
    background: url('../images/bg.jpg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #212529;
}

/* Toggle slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    transform: translateX(20px);
}


/* Build menu animation */
.build-menu {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.build-menu--visible {
    opacity: 1;
    transform: scale(1);

/* Flash animation when resources change */
.resource-flash {
    animation: resourceFlash 0.5s ease;
}

@keyframes resourceFlash {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }

}
