@import 'https://fonts.googleapis.com/css?family=Open+Sans';

//Used basic example of dark mode css from : https://gist.github.com/ZachSaucier

* {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	font-family: 'Open Sans', sans-serif;
	line-height: 1.75em;
	font-size: 16px;
	background-color: #222;
	color: #aaaaaa;
	z-index: 10;
}



.simple-container {
	max-width: 675px;
	margin: 0 auto;
	padding-top: 70px;
	padding-bottom: 20px;
}

.simple-print {
	fill: white;
	stroke: white;
}
.simple-print svg {
	height: 100%;
}

.simple-close {
	color: white;
	border-color: white;
}

.simple-ext-info {
	border-top: 1px solid #aaa;
}

p {
	font-size: 16px;
}

h1 {
	font-size: 20px;
	line-height: 24px;
}

h2 {
	font-size: 15px;
	line-height: 20px;
}

h3 {
	font-size: 10px;
	line-height: 13px;
	padding-top: 0px;
	padding-bottom: 0px;
	border-bottom: 1px solid #D8D8D8;
	border-top: 1px solid #D8D8D8;
}

hr {
	height: 1px;
	background-color: #d8d8d8;
	border: none;
	width: 100%;
	margin: 0px;
}

a[href] {
	color: #1e8ad6;
}

a[href]:hover {
	color: #3ba0e6;
}

img {
	max-width: 100%;
}

li {
	line-height: 1.5em;
}

.tutorial {
	color: 2277EE;
}

.mana-text {
    color: #4D9FF6; /* Light blue color */
}


.Lore {
	color: AC55AD;
}

.Red {
	color: AA0000;
}

.Green {
	color: 00AA00;
}


aside,
[class *= "sidebar"],
[id *= "sidebar"] {
	max-width: 90%;
	margin: 0 auto;
	border: 1px solid lightgrey;
	padding: 5px 15px;
}

@media (min-width: 1921px) {
	body {
		font-size: 18px;
	}
}



.container {
	padding:0px 0px 0px 0px;
	margin:0px;
	border:solid white 1px;
	border-radius:5px;
  /*background-color:#aaa;
  color: #aaa;*/
  text-align:center;
}
.buttonDiv {
    /* Increase height or remove it to allow the div to expand as needed */
    padding-top: 10px;
}
.btn-success, .btn-danger {
	width:100%;
}


/************Progress bar*************/

.ui-progressbar {
	position: relative;
}
#progressbar {
	background: #f5fffa;
}
.ui-progressbar .ui-progressbar-value {
	margin: 0;
}
.progress-label {
	position: absolute;
	text-align: center;
	width: 100%;
	color: #cccccc;
	font-family: 'Open Sans Condensed', sans-serif;
	font-size: 20px;
}
.ui-widget-header {
	background: #aa2528;
}
p {
	text-align: center;
	font-family: 'Open Sans Condensed', sans-serif;
	font-size: 26px;
}
.well {
	margin-top: 20px;
}


/**********End progress Bar*******/







/*************** split in 3*******************/
.side {
	display: flex;
	flex-direction: column;
	width: calc(50vw - 262px);
}
.outer {
	display: flex;
	height: 512px
}
.middle {
	grid-row: 1;
	width: 512px
}

.action-label{
	padding-left: 5px;

}

/*************end split***********/

#elementId {
	width: 100vw;
	height: 100vh;
	display: flex;
	color: black;
	opacity: 0;
	z-index : 10;
}


/************Story log**********/
.fixedHeightContainer
{
	height: 200px; 
	padding:3px; 
}
.fixedHeightContainerContent
{
	height:200px;
	overflow:auto;
	line-height: 15pt;
}
/*****************end story************/

/***********Fade in************/

.image {
	opacity : 0;
	transition: opacity 4s;
}



.gameOverScreen{
	padding-top: 50vh;
	text-align: center;
	pointer-events: none;
	position:absolute;
	left:0, top:0;
	z-index: 100;
	width: 100vw;
	height: 100vh;
	background-color: 000000;
	opacity : 0;
	transition: opacity 4s;
}

.fade-in {
	opacity: 1;
	transition: opacity 4s;
}

/********end fade in**************/


/**********Tabs***********/

[data-tab-info] {
	display: none;
}

.active[data-tab-info] {
	display: block;
}

.tab-content {
}

.tabs {
	font-size: 20px;
	color: rgb(255, 255, 255);
	display: flex;
	margin: 0;
}

.tabs span {
	background: rgb(11, 11, 11);
	padding-left: 5px;
	padding-right: 5px;
	border: 1px solid rgb(255, 255, 255);
}

.tabs span:hover {
	background: rgb(29, 185, 112);
	cursor: pointer;
	color: black;
}


/*********Tooltips************/
/* Style for the tooltip box */
#description-box {
	position: absolute;
	background-color: #333; /* Dark gray background color for dark mode */
	color: #eee;
	padding: 10px;
	border: 2px solid silver; /* Silver border */
	border-radius: 5px;
	z-index: 1000;
	display: none;
}

/* Style for the description text */
#description-text {
	margin: 0;
	font-size: 14px;
}

/* Class to hide the description box initially */
.hidden {
	display: none;
}

//****** sidekick bars*/

.buttonContainer {
	display: flex;
	justify-content: space-between;
}

.btn {
	font-size: 20px;
}

.btn2 {
	width: 100%; /* Adjust this width as needed */
	position: relative;
}

.button-active {
    background-color: #444444; /* Darker shade of the primary color for a pressed effect */
    color: white;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); /* Inset shadow for a pressed effect */
    border: 2px solid #aaaaaa; /* Optional: darker border for more depth */
}



#notorietyLabel {
	font-family: 'Arial', sans-serif; /* Replace with a font that includes ⌛ support */
}

.swal2-popup {
	background-color: #333;
	color: #fff;
}

.swal2-title {
	color: #fff;
}

.swal2-content {
	color: #fff;
}

.swal2-actions {
	margin-top: 10px;
}

.swal2-confirm, .swal2-cancel {
	color: #333;
}

.buttonBuildingDiv {
	display: flex;
	justify-content: space-between;
	background-color: #222;
	border: none;
	padding: 20px;
}

.btnBuilding-primary {
	color: #fff;
	background-color: #333;
	border-radius: 5px;
	font-size: 16px;
}

.centered {
	text-align: center;
}

.numberBox {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #ccc;
	padding: 5px;
	border-radius: 5px;
}

.centered-text {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

/* Button styling for dark mode */
.custom-button {
	position: relative;
	display: inline-block;
	background-color: #505050; /* Green background color for the button */
	color: white; /* White text color */
	padding: 4px 15px; /* Adjust padding as needed */
	font-size: 16px;
	border: 2px solid silver; /* Silver border */
	border-radius: 10px; /* Adjust border-radius as needed */
	cursor: pointer;
}

/* Number on the top right */
.number-badge {
	position: absolute;
	top: 0;
	right: 0;
	background-color: #000000; /* Orange-red background color for the square badge */
	color: white; /* White text color */
	padding: 1px;
	border-radius: 3px; /* Adjust border-radius for a square shape */
}

body {
    overflow: hidden;
}

.ui-progressbar {
    background-color: #222 !important; /* Dark background */
    color: #fff !important; /* Light text color, if needed */
}

.ui-widget-content {
    background-color: #222 !important; /* Adjust the widget's background */
}

.troopsDiv .troopsTable {
  width: 100%; /* Ensures the table takes full width of the container */
  border-collapse: collapse; /* Eliminates space between cells */
}

.troopsDiv .troopsItem {
  text-align: left;
  padding: 5px;
}

.troopsDiv .troopsTable th {
  font-weight: normal; /* Sets the header to normal weight, overriding any bold settings */
  text-align: left;
  padding: 5px;
}

/* Container for the barrier*/
.bar {
  width: 100%;
  background-color: #ddd;
  border: 1px solid #000;
  border-radius: 5px;
  overflow: hidden;
  position: relative; 
  margin-top: 5px;
  height: 20px; 
}

/* Inner bar that fills up */
.bar-inner {
  height: 100%;
  width: 0%;
  background-color: green;
  transition: width 0.5s ease-in-out;
}

/* Text that overlaps the bar */
.bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  left: 0;
  line-height: 20px; 
  color: black; 
  font-weight: bold;
}









@media (max-width: 1280px) {

	#gameContainer {
    transform: scale(1);
    width: 100%; /* Adjust based on the scale */
    height: 100%; /* Adjust based on the scale */
  }

	body {
    font-size: 14px;
}
  
  .side {
	display: flex;
	flex-direction: column;
	width: calc(50vw - 131px);
}
.outer {
	display: flex;
	height: 68vh
}
.middle {
	grid-row: 1;
	width: 50vw;
	border: 2px solid silver; /* Silver border */;
}
.tabs {
	font-size: 16px;
	color: rgb(255, 255, 255);
	display: flex;
	margin: 0;
}

.tabs span {
	background: rgb(11, 11, 11);
	padding-left: 2px;
	padding-right: 2px;
	border: 1px solid rgb(255, 255, 255);
}
#description-box {
	position: absolute;
	background-color: #aaa; /* Dark gray background color for dark mode */
	color: #eee;
	padding: 5px;
	border: 2px solid silver; /* Silver border */
	border-radius: 5px;
	z-index: 1000;
	display: none;
}

/* Style for the description text */
#description-text {
	margin: 0;
	font-size: 12px;
}

/* Class to hide the description box initially */
.hidden {
	display: none;
}

//****** sidekick bars*/

.buttonContainer {
	display: flex;
	justify-content: space-between;
}

.btn {
	font-size: 15px;
	font-weight: bold;
}
}