
.padded-multiline {
    line-height: 1.2;
    padding: 2px 0;
    border-left: 20px solid #000000;
    width: 100%;
    margin: 20px auto;
}

.padded-multiline p {
	background-color: #c0c;
	padding: 4px 0;
	color: #fff;
	display: inline;
	margin: 0;
}

.padded-multiline p strong {
	position: relative;
	left: -10px;
}

div.autoShowHide {
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.autoShowHide:hover {
	white-space: normal;
	overflow: visible;
	width: 100%;
}

.hovertext {
    position: relative;
    border-bottom: 1px dotted black;
}

.hovertext:before {
	content: attr(data-hover);
	visibility: hidden;
	opacity: 0;
	width: 99%;
	background-color: black;
	text-align: center;
	border-radius: 5px;
	padding: 5px 0;
	transition: opacity 1s ease-in-out;
	position: absolute;
	z-index: 1;
	left: 0%;
	bottom: -50px;
}

.hovertext:hover:before {
	opacity: 1;
	visibility: visible;
}

.image1 {
    width: 300px;
    image-rendering: auto;
}

.crisp-edges {
    image-rendering: -webkit-optimize-contrast; /* Chrome, Edge, Opera, and Safari */
    image-rendering: crisp-edges;
}

.pixelated {
    image-rendering: pixelated;
}

.smooth {
    image-rendering: smooth;
}

.high-quality {
    image-rendering: high-quality;
}

.zoomR {
  overflow: hidden;
}

.zoomR img {
  transform-origin: right center;
  transition: transform 0.8s ease;
  background: #000;
}

.zoomR:hover img {
  transform: scale(2.5);
}

.zoomL {
  overflow: hidden;
}

.zoomL img {
  transform-origin: left center;
  transition: transform 0.8s ease;
  background: #000;
}

.zoomL:hover img {
  transform: scale(2.5);
}

.zoomC {
  overflow: visible;
}

.zoomC img {
  transform-origin: center left;
  transition: transform 0.8s ease;
}

.zoomC:hover img {
  transform: scale(2.5);
}

.border {
	background-color: black;
}

.border_civinfo {
    overflow: hidden;
	display:flex;
	justify-content: center; 
}

.image-container_civinfo {
    position: relative;
    width: 15%;
    overflow: hidden;
    display: flex;
    height: 25vh;
    align-items: center;
    transition: width 1.5s ease;
}

.image-container_civinfo .zoomC img {
    width: 100%;
    transition: transform 1s ease;
}

.image-container_civinfo:hover .zoomC img {
    transform: scale(2.2); /* Adjust zoom level as needed */
}

.image-container_civinfo:hover {
    width: 100%; /* Expand the image container on hover */
}

.image-container_civinfo img {
    position: relative;
    width: 40%;
    height: auto;
    transition: transform 3s ease;
    left: 2px;
}

.text-overlay_civinfo {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: width 2.5s;
    overflow-y: scroll;
    padding: 2px; /* Add padding to keep the text within its box */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.image-container_civinfo:hover .text-overlay_civinfo {
    opacity: 1;
}

.text_civinfo p {
    padding: 2px;
    color: white;
	font-size: 120%; /* Adjust the font size as needed */
}

.text_civinfo .image-title {
    display: flex;
    padding: 1vh;
    position: relative; /* Allows finer control for alignment */
}

.text_civinfo .image-title img {
    flex-shrink: 0; /* Prevents the image from resizing */
    margin-right: 1vw; /* Adds space between the image and the text */
}

.text_civinfo .image-title p {
    margin: 0; /* Removes default margins for the text */
    text-align: center; /* Ensures the text is centered horizontally in its space */
    align-self: center; /* Centers the text vertically within the flex container */
    flex-grow: 1; /* Ensures the text takes up the remaining space */
}

.text_civinfo p.federation {
    color: blue; /* Blue color for the United Federation of Planets */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.federationciv {
    border: 1px solid #4169e1;
}

.text_civinfo p.klingon {
    color: #dc143c; /* Dark red color for the Klingon Empire */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.klingonciv {
    border: 1px solid #dc143c;
}

.text_civinfo p.romulan {
    color: green; /* Purple color for the Romulan Star Empire */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.romulanciv {
    border: 1px solid Green; /* Purple color for the Romulan Star Empire */
}

.cardassianciv {
    border: 1px solid #b8860b; /* Gold color for the Cardassian Union */
}
.text_civinfo p.cardassian {
    color: #b8860b; /* Gold color for the Cardassian Union */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.text_civinfo p.cardassiancivans {
    color: #b8860b; /* Gold color for the Cardassian Union */
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.6); /* Adjust the values as needed */
}

.text_civinfo p.ferengi {
    color: #ff8c00; /* Orange color for the Ferengi Alliance */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.ferengiciv {
    border: 1px solid #ff8c00; /* Orange color for the Ferengi Alliance */
}

.text_civinfo p.dominion {
    color: #8b008b; /* Green color for the Dominion */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.dominionciv {
    border: 1px solid #8b008b; /* Green color for the Dominion */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}

.text_civinfo p.borg {
    color: #9acd32; /* Gray color for the Borg Collective */
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}
.borgciv {
    border: 1px solid #9acd32; /* Gray color for the Borg Collective */
}

.text_civinfo p.empire-greetings {
    /* Add your desired styles for the greeting paragraphs here */
    font-size: 2.4vh;
    font-weight: bold; /* Example style */
	text-align: center;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}

.text_civinfo p.empire-description {
    font-size: 2vh;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adjust the values as needed */
}


        .privacy-banner {
            display: none;
            width: min(94%, 980px);
            margin: 10px auto 0;
            padding: 10px 14px;
            border: 2px solid var(--race-main);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.92);
            color: #fff;
            box-shadow: 0 0 18px var(--race-soft);
            text-align: center;
        }

        .privacy-banner p {
            margin: 0 0 8px;
            font-size: 12px;
        }

        .privacy-banner button {
            margin: 2px 5px;
            padding: 6px 13px;
            border: 1px solid var(--race-border);
            border-radius: 6px;
            background: var(--race-main);
            color: #fff;
            font-weight: bold;
            cursor: pointer;
        }

        .privacy-banner button:last-child {
            background: var(--race-accent);
            color: #000;
        }

/* Panel button alignment overrides — match panel-1-button behavior */
body.ultra .left-frame .panel-3,
body.ultra .left-frame .panel-4,
body.ultra .left-frame .panel-5,
body.ultra .left-frame .panel-6,
body.ultra .left-frame .panel-7,
body.ultra .left-frame .panel-8,
body.ultra .left-frame .panel-9,
body.ultra .left-frame .panel-10 {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: flex-end;
	padding: 0 10px 10px 0;
	box-sizing: border-box;
}

/* Narrower column-2 and left-frame */
body.ultra #column-2 {
	width: 200px;
}
body.ultra .left-frame-top,
body.ultra .left-frame {
	width: 200px;
}
body.ultra .left-frame-top .panel-1-button {
	width: 200px;
}
body.ultra .scroll-top a {
	width: 200px;
}
body.ultra .sidebar-button {
	width: 200px;
}