@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Merriweather+Sans:wght@700&family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Covered+By+Your+Grace&family=Merriweather&family=Merriweather+Sans:wght@700&family=Open+Sans:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji&display=swap');

.dynamic-form-outline {
	border: 1px solid gray !important;
	border-radius: 4px;
}

/* INDEX CARD PRINTING */
.index-card-4-6 {
	background-color: white;
	width: 4in;
	height: 6in;
}

.index-card-5-3 {
	background-color: white;
	width: 5in;
	height: 3in;
}

.index-card {
	background-color: white;
	width: 5.5in;
	height: 3.2in;
}

.index-card-portrait-double {
	background-color: white;
	height: 5in;
	width: 3.2in;
}

.epic-quest-bar{
	margin-bottom: 20px;
}

.epic-quest{
	height: 30px; 
	width: 97%; 
	position: relative;
}

.skull-icon{
	position: absolute; 
	right: -0.75em; 
	bottom: -1.25em;
	background-color: white;
	padding: 6px;
	border: 3px solid black;
	border-radius: 50px;
}

.skull-icon i{
	-webkit-text-stroke-width: 3px;
	-webkit-text-stroke-color: black;
	font-size: 3em;
}
dl {

}
dt {
  font-weight: bold;
  font-size: 1.3em;
  font-style: underline;
}
dd {
	padding-left: 20px;
}

.stat-box {
	margin-bottom: 5px;
}

.stat-box.tag {
	margin-right: 5px;
	margin-left: 5px;
}

.stat-box h2 {
	margin-bottom: -5px;
}

.stat-box p {
	margin-top: 5px;
}

.fa-solid.fa-flag.Health {
	color: rgb(128, 0, 0);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: red;
}

.fa-regular.fa-flag.empty.Health {
	color: rgb(128, 0, 0);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: white;
}

.fa-solid.fa-flag.Durability {
	color: rgb(34, 139, 34);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: rgb(50, 205, 50);
}

.fa-regular.fa-flag.empty.Durability {
	color: rgb(34, 139, 34);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: white;
}

.fa-solid.fa-flag.Limit {
	color: rgb(218, 165, 32);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: rgb(255, 255, 0);
}

.fa-regular.fa-flag.empty.Limit {
	color: rgb(218, 165, 32);
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: white;
}

.form-select.fix-form-select {
	border: 1px solid white; 
	border-radius: 4px; 
	color: hsla(0,0%,100%,.7);
}

.custom-select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #4f4f4f;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #bdbdbd;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075);
    transition: all .2s linear;
}

.stats strong{
	font-size: 1.2em;
}

.countdown-timer{
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: 2em;
  color: #0FFF50;
  background-color: black;
  margin-left: 10px;
  margin-right: 10px;
  border-radius: 10px;
  padding: 10px;
}

.badge {
	position: absolute;
	top: -4px;
	left: -4px;
	padding: 3px 5px;
	border-radius: 50%;
	background: red;
	color: white;
}

.badge-inline {
	position: relative;
	padding: 1px 5px;
	border-radius: 50%;
	background: red;
	color: white;
}

.results tr[visible='false'],
.no-result{
  display:none;
}

.results tr[visible='true']{
  display:table-row;
}

.counter{
  padding:8px; 
  color:#ccc;
}

/* Perk cards styles */
.perk-title {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: bold;
}

.perk_flavor_text, .perk_text, .perk_cost, .perk_prerequisites, div.perk_card ul li, .species-flavor-text{
	font-family: Calibri, sans-serif;	
}

.perk_flavor_text, .species-flavor-text{
	font-style: italic;
	background-color: gray;
	padding: 10px;
}

div.perk_card ul li span.synergy-bold {
	font-weight: bolder;
	font-size: 1rem;
}

div.perk_card span.form-bold {
	font-weight: bolder;
	font-size: 1.1rem;
}

.upload{
  width: 150px;
  position: relative;
  margin: auto;
  text-align: center;
}
.upload img{
  border-radius: 50%;
  border: 8px solid #DCDCDC;
  width: 150px;
  height: 150px;
}
.upload .rightRound{
  position: absolute;
  bottom: 0;
  right: 0;
  background: #00B4FF;
  width: 32px;
  height: 32px;
  line-height: 33px;
  text-align: center;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}
.upload .leftRound{
  position: absolute;
  bottom: 0;
  left: 0;
  background: red;
  width: 32px;
  height: 32px;
  line-height: 33px;
  text-align: center;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}
.upload .fa{
  color: white;
}
.upload input{
  position: absolute;
  transform: scale(2);
  opacity: 0;
}
.upload input::-webkit-file-upload-button, .upload input[type=submit]{
  cursor: pointer;
}

.tox-tinymce{
	padding-top: 10px;
}

div.perk .keyword {
	color: white;
	font-weight: 900 !important;
	font-size: 16px;
	cursor: pointer;
}

a.perk-view-link {
	color: white !important;
	text-decoration: none;
	cursor: pointer;
}

/* PERK RATINGS */
.score {
  display: block;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.score-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 19px;
}

.score .stars-active {
  color: #EEBD01;
  position: relative;
  z-index: 10;
  display: inline-block;
}

.score .stars-inactive {
  color: grey;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-text-stroke: initial;
  overflow: hidden;
}

#filters {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* FONTS */
.aw-fonts h1{
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 3em;
}

.aw-fonts h2{
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 1.2em;
}

.aw-fonts h3{
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 2em;
}

h3.aw-fonts {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 3em;
}

.aw-fonts p, .aw-fonts ul li{
	font-family: Calibri, sans-serif;	
}

.aw-fonts .flavor {
	font-style: italic;
	background-color: gray;
	padding: 10px;
}

option.fixbg{
	background-color: rgba(48, 48, 48);
}

.info-bar {
	width: 100%;
    padding: 10px;
    background: gray;
    border: 1px solid #999;

    position: fixed;  /* This is the magic - stays during scroll. */
    bottom: 0; right: 0%;/* These coordinates are now in 
                         relation to the first parent
                         with non-static positioning (body) */
}

body div.card div.form-check.form-switch input.disabled-switch {
	background-color: red;
}

.admin-buttons { margin-bottom: 20px; }

/* TICKETS */
.tickets .inline-group {
  max-width: 9rem;
  padding: .5rem;
}

.tickets .inline-group .form-control {
  text-align: right;
}

.tickets .form-control[type="number"]::-webkit-inner-spin-button,
.tickets .form-control[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* COMMUNITY */
.comm-post {
	margin-bottom: 1em;
}

.comm-speech-bubble {
	position: relative;
	background: lightgray;
	border-radius: .4em;
	padding: 1em;
	color: black;
}

.comm-speech-bubble:after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	height: 0;
	border: 38px solid transparent;
	border-right-color: lightgray;
	border-left: 0;
	border-bottom: 0;
	margin-top: -19px;
	margin-left: -38px;
}

.pagination {
	color: yellow;
	text-decoration: underline;
	display: inline;
	cursor: pointer;
}

.pagination.active {
	color: grey;
	text-decoration: none;
}

.comment-button{
	cursor: pointer;
}

.like-button{
	cursor: pointer;
}

blockquote {
  background: #f9f9f9;
  border-left: 10px solid #000;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
}

@media only screen and (max-width: 768px) {
	.comm-speech-bubble:after {
		content: '';
		position: absolute;
		top: 0;
		left: 50%;
		width: 0;
		height: 0;
		border: 38px solid transparent;
		border-bottom-color: lightgray;
		border-top: 0;
		margin-left: -38px;
		margin-top: -38px;
	}
	
	.comm-wrapper {
		display: flex;
		flex-direction: column; /* For vertical placement of items */
	}
	.comm-title {
		order: 2;
	}
	.comm-post {
		order: 1;
	}
	.comm-footer {
		order: 3;
	}
}

/* Volunteering */
input.text-bolden {
    font-size: 18px !important;
    color: white;
    font-weight: 600;
}

/* QUESTS */
.map-cell {
	background-color: black;
	color: #FFBF00;
	height: 25px;
	width: 25px;
	padding: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #8B8000;
}

.map-container{
	border: 5px solid #FFBF00;
    width: 285px;
}

.map-active-select {
	animation: blinker 1s linear infinite;
	cursor: pointer;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.map-inactive {
	color: #D22B2B;
}

.terminal {
	background-color: black !important;
	color: #FFBF00;
	font-family: "VT323", serif;
	font-weight: 400;
	font-style: normal;
}

.terminal-text {
	font-size: 1.4em;
	padding-top: 2em;
	padding-left: 2em;
	padding-right: 2em;
}

.terminal-map {
	padding-top: 2em;
}

button.terminal {
	border: 2px solid #FFBF00;
	border-radius: 0em;
	font-size: 2em;
}

button.terminal.easy {
	background: rgba(170, 255, 175, 0.15) !important;
}

button.terminal.normal {
	background: rgba(255, 191, 0, 0.15) !important;
}

button.terminal.hard {
	background: rgba(255, 87, 51, 0.15) !important;
}

.legend-container{
	padding-left: 2em;
	padding-right: 2em;
	font-size: 10px;
}

.inventory {
	
}

button.terminal.item{
	font-size: 1em;
	padding: 10px;
	width: 75px;
}

button.terminal.item h4{
	margin: 0px;
}

.bbs {
	font-family: "MS Sans Serif",Tahoma,Verdana,Segoe,sans-serif; 
}

/* BBS */
.bbs div.card{
    border: solid;
    border-width: 2px;
    border-bottom-color: #424242;
    border-right-color: #424242;
    border-left-color: #fff;
    border-top-color: #fff;
    background: silver !important;
    color:#212529;
	border-radius: 0px;
	min-height: 397px;
}

.bbs div.card-header{
    background: -webkit-linear-gradient(left,#08216b,#a5cef7);
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 2px;
    padding-bottom: 1px;
    text-align: left;
	border-radius: 0px;
}

.bbs div.card-body{
    display: block;
	border-radius: 0px;
	background: silver !important;
	padding-top: 0px;
    padding-bottom: 1px;
    color:#212529;
}

.bbs div.card-footer{
    border: none;
	display: block;
	border-radius: 0px;
	background: silver !important;
	padding-top: 0px;
    padding-bottom: 1px;
    color:#212529;
}

.bbs-main {
	width: 100%;
	height: 256px;
    border: 2px inset #d5d5d5;
    color: #424242;
    background: #fff;
    box-shadow: -1px -1px 0 0 #828282;
    margin-top: 4px;
    padding-left: 2px;
	overflow-x: hidden;
    overflow-y: auto;
}

.fake-window {
	width: 100%;
	height: 256px;
    border: 2px inset #d5d5d5;
    color: #424242;
    background: #fff;
    box-shadow: -1px -1px 0 0 #828282;
    margin-top: 4px;
    padding-left: 2px;
}

.bbs .btn{
    padding: 5px;
    font-size: x-large;
	line-height: 18px;
    border-width: 2px;
    border-style: outset;
    border-color: buttonface;
    border-right-color: #424242;
    border-bottom-color: #424242;
    background: silver;
    color: black;
	border-radius: 1px;
}
.bbs .btn:hover {
    border: 2px inset #fff;
    background: silver;
    color: #424242;
    box-shadow: -1px -1px #000;
}
.bbs .btn:focus {
    border: 2px inset #fff !important;
    background: silver;
    color: #424242;
    box-shadow: -1px -1px #000 !important;
    outline: 0 !important;
}
.bbs .btn:active {
    border: 2px inset #fff !important;
    color: #424242;
    box-shadow: -1px -1px #000 !important;
    outline: 0 !important;
}

.bbs .btn-primary{
    padding-left: 8px;
    padding-right: 8px;
}

.bbs button:focus{
    outline: 1px dotted;
}

.bbs .btn.disabled,.btn:disabled{
    cursor: default;
    background-color: silver;
    border-style: outset;
    border-color: buttonface;
    border-right-color: #424242;
    border-bottom-color: #424242;
    color: grey;
    text-shadow: 1px 1px #fff;
}

.bbs .text-input{
	resize: none;
	height: 60px;
	width: 100%;
    border: 2px inset #d5d5d5;
    color: #424242;
    background: #fff;
    box-shadow: -1px -1px 0 0 #828282;
    margin-top: 4px;
    padding-left: 2px;
}

.bbs .chat-btn{
	height: 60px;
	width: 100%;
    margin-top: 4px;
}

.bbs .room-link{
	border: 2px solid #fff;
}

.bbs .room-link:hover {
	cursor: pointer;
	border: 2px inset #fff;
    background: silver;
    color: #424242;
    box-shadow: -1px -1px #000;
}

.bbs select, .bbs #fake-password {
	outline: 0 !important;
	width: 100%;
	border: 2px inset #d5d5d5;
	color: #424242;
	background: #fff;
	box-shadow: -1px -1px 0 0 #828282;
	margin-top: 4px;
	padding-left:2px;
}

.bbs #fake-login{
	min-height: 256px;
}

.gm_bbs {
	color: purple;
}

.plot_bbs {
	color: darkred;
}

.mention {
	background-color: yellow;
	font-style: italic;
}
/* CUSTOM CRAFTING */
	/* CUSTOM CHEMS */
.herb-box {
	margin:auto;
	width:35px;
	height:35px;
	border:1px solid white;
	background-color: #4f4f4f;
}

.herb-display {
	font-size: 22px;
	pointer-events: none;
}

.herb-box-menu {
  position: absolute;
  background-color: black;
  width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.herb-box-menu .row{
  margin: 0px;
  padding: 5px;
}

.herb-menu-btn {
	height: 50px;
	width: 50px;
	border-radius: 3px;
	border: 1px solid white;
	padding: 0px !important;
	font-size: 22px;
}

.herb-menu-btn small{
	display: block;
	font-size: 9px;
	margin-top: -4px;
	text-wrap: nowrap;
}

.jadegrass {
	filter: invert(0%) sepia(60%) saturate(3916%) hue-rotate(40deg) brightness(100%) contrast(90%);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
	pointer-events: none;
}

.ambermoss {
	filter: invert(19%) sepia(100%) saturate(3916%) hue-rotate(9deg) brightness(167%) contrast(51%);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
	pointer-events: none;
}

.pumpkap {
	filter: invert(0%) sepia(60%) saturate(3916%) hue-rotate(348deg) brightness(100%) contrast(90%);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
	pointer-events: none;
}

.bloodroot {
	filter: invert(0%) sepia(100%) saturate(3916%) hue-rotate(329deg) brightness(100%) contrast(200%);
	text-shadow: -1px -1px 0 red, 1px -1px 0 red, -1px 1px 0 red, 1px 1px 0 red;
	pointer-events: none;
}

.indigonia {
	filter: invert(9%) sepia(100%) saturate(3916%) hue-rotate(262deg) brightness(100%) contrast(90%);
	text-shadow: -1px -1px 0 purple, 1px -1px 0 purple, -1px 1px 0 purple, 1px 1px 0 purple;
	pointer-events: none;
}

.azurecactus {
	filter: invert(9%) sepia(65%) saturate(3916%) hue-rotate(127deg) brightness(80%) contrast(94%);
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
	pointer-events: none;
}

.chem td {
	padding: 10px !important;
}

.chem {
	font-size: 10px;
}

.chem-effect-box {
	border: 1px solid black;
	background-color: white;
	color: black;
}

/***** LOOT CARDS *****/



/* RULES PAGES */
ul.table-of-contents {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: bold;
	list-style: none;
}

ul.table-of-contents.sublinks {
	font-size: 14px;
}

ul.table-of-contents li a{
	color: Gold !important;
	text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5), -2px -2px 0 rgba(0, 0, 0, 0.5), 2px -2px 0 rgba(0, 0, 0, 0.5), -2px 2px 0 rgba(0, 0, 0, 0.5);
}

h4.table-of-contents {
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: bold;
}

.rules{
	padding-left: 10px;
	padding-right: 10px;
}

.rules h1{
	font-family: "Covered By Your Grace", cursive;
	font-weight: 400;
	font-style: normal;
	text-align: center;
}

.rules h2{
	font-family: "Covered By Your Grace", cursive;
	font-weight: 400;
	font-style: normal;
	text-align: center;
}

.rules h5{
	font-family: "Covered By Your Grace", cursive;
	font-weight: 400;
	font-style: normal;
	text-align: center;
}

.rules h4{
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: bold;
	font-size: 18px;
}

.rules li a.nav-link{
	font-family: 'Merriweather Sans', sans-serif;
	font-weight: bold;
	font-size: 14px;
	padding-left: 10px;
	padding-right: 10px;
}

.rules p{
	font-family: Calibri, sans-serif;	
}

.rules ul, section.rules ol{
	font-family: Calibri, sans-serif;	
}

.rules thead{
	color: black;
}

.rules .chem-table thead{
	color: white;
}

.rules code{
	font-family: Calibri, sans-serif;
	color: black;
	background-color: lightgray;
	font-style: italic;
	display: block;
	padding: 10px;
	font-size: 16px;
}

.rules figure{
	font-family: Calibri, sans-serif;
	color: black;
	background-color: lightgray;
	display: block;
	padding: 10px;
}

.rules figcaption {
	font-weight: bold;
}

.rules table{
	margin-bottom: 20px;
}

.rules td{
	border: 1px solid white;
	padding: 5px;
}

.rules a{
	color: LightYellow !important;
}

.rules table.tag-table thead tr{
	background-color: #202020 !important;
	font-family: 'Merriweather Sans', sans-serif !important;
	color: white;
}

.rules table.tag-table tr:nth-child(even){
	background-color: #404040;
	font-family: Calibri, sans-serif;
}

.rules table.tag-table tr:nth-child(odd){
	font-family: Calibri, sans-serif;
}

.rules div.perk-text{
	font-family: Calibri, sans-serif;
}

.rules table.chem-table td{
	border-left: 1px solid gray;
	border-right: 1px solid gray;
	border-top: none;
	border-bottom: none;
	text-align: center;
}

.rules table.chem-table tbody tr th{
	padding-left: 10px;
	white-space: nowrap;
}

option.select-bold {
	font-style: bold;
}

#character-builder-container {
	width: 100%;
	position: absolute;
    top: 80px;
}

#character-preview-container {
	max-width: 100%;
    overflow-x: hidden;
	position: fixed;
	height: 100vh;
	z-index: 1;
	pointer-events: none; 
	width: 100vw;
}

#character-preview {
	background-color: #424242;
	z-index: 1;
	position: sticky;
	top: 0;
	min-height: 40px;
	pointer-events: auto;
}

#character-preview div.sticky-bottom {
	position: relative;
	bottom: 0;
}

#character-preview-pane {
	height: 90vh;
	overflow-y: scroll;
	max-width: 100vw;
    overflow-x: hidden;
}

.sort-links {
	font-size: 14px;
}

a.sort-link.active {
	font-weight: bolder;
	text-decoration-line: underline;
	text-underline-position: under;
}

/*DOWNTIME*/
@media only screen and (max-width: 768px) {
	#map-contain {
		overflow: scroll;
	}
}

#faction-map {
	background-image: url('../downtime/img/geo-map.png');
	background-size: contain;
	width: 100%;
	min-width: 600px;
	position: relative;
}

#faction-map div.cell {
	background-image: url('../downtime/img/empty.png');
	border: 1px solid black;
	width: 9.09%;
	aspect-ratio: 1/1;
	display: inline-block;
	overflow: hidden;
}

#faction-map div.cell .coord{
	font-size: small;
    font-weight: bolder;
    color: gold;
	position: absolute;
}

#faction-map div.cell.junktown-control {
	background-color: rgba(255, 255, 255, 0.35);
}

#faction-map div.cell.barony-control {
	background-color: rgba(0, 0, 0, 0.65);
}

#faction-map div.cell.commonwealth-control {
	background-color: rgba(0, 255, 0, 0.35);
}

#faction-map div.cell.kingdom-control {
	background-color: rgba(255, 255, 0, 0.35);
}

#faction-map div.cell.guild-control {
	background-color: rgba(0, 0, 255, 0.35);
}

#faction-map div.cell.conflict-zone {
	animation: conflict-zone 2s infinite;
}

@keyframes conflict-zone {
  0%, 100% {
    background-color: rgba(255, 0, 0, 0.75);
  }
  50% {
    background-color: rgba(255, 0, 0, 0.0);
  }
}

/* Tooltip text */
#faction-map .cell .maptiptext {
  visibility: hidden;
  width: 150px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 2px 0;
  border-radius: 4px;
  font-size: 10px;
  opacity: 0;
 
  /* Position the tooltip text - see examples below! */
  position: absolute;
  margin-left: -45px;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
#faction-map .cell:hover .maptiptext {
  visibility: visible;
  
  /* Fade in tooltip - takes 1 second to go from 0% to 100% opac: */
  opacity: 1;
  transition: opacity 1s;
}

/* OPS STYLES */
#ops {
	
}

#ops .sticky-menu {
	background-color: rgb(51, 45, 45);
	color: white;
	box-shadow: rgba(0, 0, 0, 0.07) 0px 4px 12px 0px, rgba(0, 0, 0, 0.05) 0px 2px 4px 0px;
}

#ops .sticky-menu h1 {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 2em;
}

#ops button.square-btns {
	aspect-ratio: 1/1;
	width: 200px;
	font-size: 2em;
}

#ops button.nav-btns {
	aspect-ratio: 1/1;
	width: 75px;
}

#ops code {
	font-family: Calibri, sans-serif;
	color: black;
	background-color: lightgray;
	font-style: italic;
	display: block;
	padding: 10px;
	font-size: 1.5em;
	text-align: center;
}

#ops p.text {
	font-family: Calibri, sans-serif;
	font-size: 26px;
	text-align: center;
}

#ops p.perk-line {
	font-family: 'Merriweather Sans', sans-serif;
	font-size: 1.5em;
}


#ops #checklist td label {
	font-size: 14px;
	font-weight: bold;
	font-family: Calibri, sans-serif;
}

#sticky-menu {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 0;
  height: 100px;
  background-color: lightgrey;
}

#ops .big-btns {
	font-size: 2em;
	font-weight: 500;
}

#ops .ops-btn span#xp_to_add, .ops-btn span#rp_to_add  {
	font-size: 1em;
	font-weight: 500;
}
 
#ops .check-mark {
	font-size: 3em;
}

#ops i.bigger {
	font-size: 3em;
}

#ops .xp i.minus, .xp i.plus, .rp i.minus, .rp i.plus {
	cursor:pointer;
	border-radius:4px;
	vertical-align: middle;
	text-align: center;
	font-size: 2.5em;
	font-weight: 500;
}

#ops .xp input.control, .rp input.control{
	font-size: 2.5em;
	height:50px;
	width: 50px;
	text-align: center;
	border:1px solid #ddd;
	border-radius:4px;
	display: inline-block;
	vertical-align: middle;
}

#ops .search-box {
	border: 1px solid;
	border-radius: 10px;
	font-size: 1.5em;
}

#ops .search-box::placeholder {
  font-weight: bold;
  opacity: 0.5;
  color: white;
}

#ops button.action-btn {
	aspect-ratio: 1/1;
	width: 120px;
	padding-left: 3px;
	padding-right: 3px;
}

#ops .action-btn .icon {
	font-size: 1.5em;
}

#ops tr.table-line {
	font-size: 1.5em;
}

#ops .action-headline {
	font-size: 1.3em;
}


#map {
    position: relative;
	min-height: 350px;
}

#raid-map {
  display: grid;
  grid-template-columns: repeat(7, 0fr);
  border: 5px solid #8B8000;
  padding: 0px;
  width: 234px;
  position: absolute;
  aspect-ratio: 1/1;
  top: 17%;
  left: 50%;
  transform: translateX(-50%) scale(1.4);
}

#event-layer  {
  display: grid;
  grid-template-columns: repeat(7, 0fr);
  padding: 5px;
  width: 234px;
  position: absolute;
  aspect-ratio: 1/1;
  top: 17%;
  left: 50%;
  transform: translateX(-50%)  scale(1.4);
}

#event-layer {
    z-index: 2; /* Make it appear above the map */
}

#event-layer .event-cell {
	width: 32px;
	aspect-ratio: 1/1;
	padding: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	line-height: 1;
	font-size: 24px;
}

#event-layer .empty {
    opacity: 0; /* Make empty cells invisible but maintain layout */
}

#raid-map .cell {
	color: #FFBF00;
	width: 32px;
	aspect-ratio: 1/1;
	padding: 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px dashed #8B8000;
	line-height: 1;
}

#raid .mouseover-grid {
	width: 234px;
	position: absolute;
	aspect-ratio: 1/1;
	top: 17%;
	left: 50%;
	transform: translateX(-50%) scale(1.4);
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-template-rows: repeat(7, 1fr);
	pointer-events: none;
	z-index: 10;
	padding: 5px;
}

#mouseover-layer .mouseover-cell {
	width: 32px;
	height: 32px;
	padding: 0px;
	display: block;
    border: 1px solid transparent;
    transition: border 0.2s;
	pointer-events: auto;
	touch-action: manipulation;
}

#mouseover-layer .mouseover-cell.highlight, 
#mouseover-layer .mouseover-cell.touch-highlight {
    border: 1px solid rgba(255, 255, 0, 0.7);
    box-shadow: 0 0 5px yellow;
    background-color: rgba(255, 255, 0, 0.1);
}

#mouseover-layer {
    user-select: none;
    -webkit-user-select: none;
	pointer-events: none;
    z-index: 10;
}

#raid-map .urban{
	background-image: url('../downtime/img/tiles/urbantile.png');
}

#raid-map .suburban{
	background-image: url('../downtime/img/tiles/suburbantile.png');
}

#raid-map .rural{
	background-image: url('../downtime/img/tiles/suburbantile.png');
}

#raid-map .farm{
	background-image: url('../downtime/img/tiles/farmtile.png');
}

#raid-map .forest{
	background-image: url('../downtime/img/tiles/foresttile.png');
}

#raid-map .river{
	background-image: url('../downtime/img/tiles/foresttile.png');
}

#raid-map .lake{
	background-image: url('../downtime/img/tiles/laketile.png');
}

#raid-map .swamp{
	background-image: url('../downtime/img/tiles/swamptile.png');
}

#raid-map .swamp.wet{
	background-image: url('../downtime/img/tiles/wetswamptile.png');
}

#raid-map .camp{
	background-image: url('../downtime/img/tiles/foresttile.png');
}

#raid-map .golf{
	background-image: url('../downtime/img/tiles/foresttile.png');
}

#raid-map .golf.green, #raid-map .golf.flag{
	background-image: url('../downtime/img/tiles/farmtile.png');
}

#raid-map .crater.crater-ridge{
	background-image: url('../downtime/img/tiles/deadurbantile.png');
}

#raid-map .crater.crater-center{
	background-image: url('../downtime/img/tiles/pathtile.png');
}

#raid-map .crater{
	background-image: url('../downtime/img/tiles/urbantile.png');
}

#raid-map .trailerpark{
	background-image: url('../downtime/img/tiles/farmtile.png');
}

#raid-map .airport{
	background-image: url('../downtime/img/tiles/urbantile.png');
}

#raid-map .mall{
	background-image: url('../downtime/img/tiles/deadurbantile.png');
}

#raid-map .mall-building{
	background-image: none;
	background-color: #444;
}

#raid-map .stadium{
	background-image: url('../downtime/img/tiles/farmtile.png');
}

#raid-map .stadium.green{
	background-image: url('../downtime/img/tiles/foresttile.png');
	color: white;
}

#raid-map .urban.deadlands{
	background-image: url('../downtime/img/tiles/deadurbantile.png');
}

#raid-map .suburban.deadlands{
	background-image: url('../downtime/img/tiles/deadsuburbantile.png');
}

#raid-map .rural.deadlands{
	background-image: url('../downtime/img/tiles/deadsuburbantile.png');
}

#raid-map .farm.deadlands{
	background-image: url('../downtime/img/tiles/deadfarmtile.png');
}

#raid-map .forest.deadlands{
	background-image: url('../downtime/img/tiles/deadforesttile.png');
}

#raid-map .river.deadlands{
	background-image: url('../downtime/img/tiles/deadforesttile.png');
}

#raid-map .lake.deadlands{
	background-image: url('../downtime/img/tiles/deadlaketile.png');
}

#raid-map .swamp.deadlands{
	background-image: url('../downtime/img/tiles/deadswamptile.png');
}

#raid-map .swamp.wet.deadlands{
	background-image: url('../downtime/img/tiles/deadwetswamptile.png');
}

#raid-map .camp.deadlands{
	background-image: url('../downtime/img/tiles/deadforesttile.png');
}

#raid-map .cell.path{
	background-image: url('../downtime/img/tiles/pathtile.png');
}

#raid-map .cell.water{
	background-image: url('../downtime/img/tiles/watertile.gif');
    color: white;
}

#raid-map .cell.toxicwater{
	background-image: url('../downtime/img/tiles/toxicwatertile.gif');
    color: green;
}

#raid-map .cell.field{
	background-image: url('../downtime/img/tiles/fieldtile.png');
}


#raid-map .cell.shoreline{
	background-image: url('../downtime/img/tiles/shorelinetile.png');
}


#raid-map .cell.deadlands.shoreline{
	background-image: url('../downtime/img/tiles/deadshorelinetile.png');
}

#raid-map .cell.road{
	background-image: none;
	background-color: #333;
    color: white;
    font-weight: bold;
}

#raid-map .runway{
	background-image: none;
	background-color: #333;
    color: white;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
   .tree-pine, .tree-urban, .house, .office, .derelict, .hotel, .school, .department, .factory, .church, .convenience, .car {
		text-shadow: 1px 0 black, -1px 0 black, 0 0px black, 0 -1px black;
	}
}

#raid-map .tree-dead {
	color: #6F4E37;
    font-weight: bold;
	text-shadow: 1px 0 black, -1px 0 black, 0 0px black, 0 -1px black;
}

#raid-map .cell.paved{
	background-image: none;
	background-color: #666;
    color: white;
    font-weight: bold;
}

#raid-map .fence {
    color: #8B4513;
    text-shadow: 1px 1px 2px #000;
}

#raid-map .flip_h {
  transform: scale(-1, 1);
}

#event-layer .user i{
	color: #ffe000;
	transform: scale(1, 1);
	font-size: 24px;
	text-shadow: 1px 1px 2px #000;
	animation: user-pulse 2s infinite;
}

@keyframes user-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#event-layer .zombie{
	color: #96b496;
	text-shadow: 2px 1px 2px #000, -2px 1px 2px #000;
}

#event-layer .robot .fa-robot{
	font-size: 8px;
	z-index: 2;
	position: absolute;
	top: 2px;
}

#event-layer .robot {
	position: relative;
	color: silver;
	text-shadow: 1px 1px 2px #000;
}

#event-layer .bandit {
	color: #f8f8f8;
	text-shadow: 1px 1px 2px #000;
}

#event-layer .mutant {
	text-shadow: -1px -1px 0 #00ff00, 1px -1px 0 #00ff00, -1px 1px 0 #00ff00, 1px 1px 0 #00ff00;
}

#event-layer .corpse {
	color: white;
	text-shadow: 1px 1px 2px #000;
	font-size: 10px;
}

#event-layer .left{
  transform: scale(-1, 1);
}

#raid .control {
	margin: 5px;
	padding: 0px !important;
	width: 30px;
	aspect-ratio: 1/1;
}

#raid .control.control-left {
  margin-right: 20px;
}

#raid .control.control-right {
  margin-left: 20px;
}

#raid-map.key-press-feedback {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transition: box-shadow 0.1s ease;
}

#player-display {
    min-height: 60px;
}

#raid .encounter-message {
    border-radius: 5px;
    padding: 10px;
    margin: 5px 0;
}

#raid .encounter-message p {
    margin-bottom: 10px;
}

#raid .control:disabled {
    cursor: not-allowed;
}

#raid #message-display {
	min-height: 40px;
}

#raid #dynamic-controls {
	min-height: 120px;
}

.cell.invalid {
    background-color: rgba(255,0,0,0.1);
    border: 1px dashed red;
}

.event-cell.invalid::after {
    content: "!";
    color: red;
    position: absolute;
    font-weight: bold;
}

#fundraiser .wrap{max-width:1100px;margin:0 auto;padding:28px}
#fundraiser header{
      display:grid;gap:18px;align-items:center;grid-template-columns:1fr; text-align:center; padding:26px 0 10px;
    }
#fundraiser .hero{margin-top:6px;padding:22px;border-radius:var(--radius);background:radial-gradient(1200px 400px at 50% -200px, rgba(110,231,255,.25), transparent 60%), var(--card); box-shadow:var(--shadow)}
#fundraiser .hero h1{margin:0 0 8px;font-size:34px}
#fundraiser .hero p{margin:0;color:var(--muted);font-size:18px}
#fundraiser .cta-row{margin-top:18px;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}

#fundraiser .grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px;margin-top:26px}
#fundraiser .card{grid-column:span 12;border-radius:var(--radius);padding:18px; box-shadow:var(--shadow); position:relative; overflow:hidden}
#fundraiser .card .topline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#fundraiser .pill{padding:6px 10px;border-radius:999px;background:#0f1520; color:var(--muted);font-weight:700;font-size:12px;letter-spacing:.3px}
#fundraiser .price{margin-left:auto;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#001018;font-weight:900}
#fundraiser .card h3{margin:10px 0 6px;font-size:22px}
#fundraiser .card p{margin:0;color:var(--muted)}
#fundraiser .actions{margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}

    /* Two-up on medium, three-up on wide */
    @media (min-width:700px){#fundraiser  .card{grid-column:span 6} }
    @media (min-width:1024px){#fundraiser  .card{grid-column:span 4} }

#fundraiser .tickets,.boosters{margin-top:26px;background:var(--card);border-radius:var(--radius);padding:18px; box-shadow:var(--shadow)}
#fundraiser .tickets h2,.boosters h2{margin:0 0 8px}
#fundraiser .paybox{display:grid;gap:10px}
    @media (min-width:720px){.paybox{grid-template-columns:repeat(3,1fr)}}
#fundraiser .pay{background:#0f1520;border-radius:14px;padding:14px}
#fundraiser .pay strong{display:block}
#fundraiser .small{font-size:13px;color:var(--muted)}

#fundraiser footer{opacity:.75;text-align:center;padding:28px 0}
#fundraiser .sep{height:1px;background:linear-gradient(90deg,transparent,#334155,transparent);margin:22px 0}

    /* ribbons */
#fundraiser .ribbon.yellow{position:absolute;right:-50px;top:18px;transform:rotate(35deg); background:linear-gradient(135deg,yellow,gold);color:#032512;padding:6px 80px;font-weight:900;letter-spacing:.3px}
#fundraiser .ribbon.green{position:absolute;right:-50px;top:18px;transform:rotate(35deg); background:linear-gradient(135deg,green,lightgreen);color:#032512;padding:6px 80px;font-weight:900;letter-spacing:.3px}

    /* utility */
#fundraiser .muted{color:var(--muted)}
#fundraiser .center{text-align:center}
#fundraiser .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}

/* Card cover image scales with card width, keeps a consistent ratio */
#raffle .cover {
  width: 100%;
  height: auto;          /* let browser compute height */
  aspect-ratio: 16 / 9;  /* pick the ratio you want (e.g., 1/1, 4/3, 3/2) */
  object-fit: cover;     /* fill the box without distortion */
  display: block;        /* remove inline-gap */
}

/* Optional: make modal images scale nicely too */
#raffle .gallery-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
