body {
font: 14px trebuchet ms, sans-serif;
background: #203A4A;
color: white;
white-space: nowrap; /* hacky way to not wrap parts */
}
a { color: #66EFF7; text-decoration: none; }
a:hover { text-decoration: underline; }
.normalwrap {white-space: normal}

#main { /* used in the pages with iframe headers */
min-width: 1140px;
margin: 0 auto;
white-space: normal;
}

.partcontainer {
display: inline-block;
width: 24vw;
max-width: 360px;
min-width: 220px;
white-space: normal;
}

.part, #spoiler, #spoiler2 {
padding: 5px;
border-radius: 6px;
display: inline-block;
white-space: normal;
}

.part {
background-color: #192735b0;
border: 2px solid #4598B9b0;
max-width: 220px;
min-width: 150px;
box-sizing: border-box;
}

.partheader {
background-color: #889a9f8c;
padding: 5px;
border-radius: 7px;
text-shadow: 0px 0px 3px #000000, 0px 0px 3px #000000;
font-weight: bold;
}

@font-face {font-family: "SporeCurrencyEA"; src: url(SporeCurrencyEA.ttf); font-weight: normal;}
.price {float: right; font-family: "SporeCurrencyEA"; font-weight: normal;}
.modelcap {
border-bottom: 1px solid #4598B9b0;
text-shadow: 1px 1px 2px #000000;
min-height: 32px;
}
.modelcaps {padding: 3px;}

.caplevel {
float: right;
color: #FFE50A;
text-shadow: 0px 0px 3px #000000, 0px 0px 3px #000000;
margin: 8px 0 0 0; /* centering */
}
/* this is for parts */
.caplevel img {height: 25px;}

/* ---------- verb icons ---------- */

.verbicon {
display: inline-block;
padding: 2px;
border: 1px solid #00000080;
border-radius: 5px;
width: 15px;
height: 15px;
box-shadow: 1px 1px 3px #000000aa;
margin: 5px;
}
.blue {background-color: #3B4FA8;}
.red {background-color: #A41209;}
.green {background-color: #55A046;}
.veblue {background-color: #3FAFBA;}
.vegreen {background-color: #6FB27F;}
.verbicon > img {
filter: drop-shadow(0.2px 0.2px 0 #1F1F3F) drop-shadow(-0.2px -0.2px 0 #1F1F3F) drop-shadow(-0.2px 0.2px 0 #1F1F3F) drop-shadow(0.2px -0.2px 0 #1F1F3F);
opacity: 0.90;
width: 15px;
height: 15px;
}
/* verb icons without a background */
.none {
border: none;
box-shadow: none;
margin: 0 13px 0 0;
position: relative;
top: 3px;
}
.none > img {width: 22px; height: 22px; filter: none;}

/* ---------- verb icons ---------- */

.miscinfo {
color: #C0C0C0;
padding-top: 5px;
font-size: 12px;
}
hr { height: 1px; border-width: 0; background-color: #4598B9b0 }

.part td:first-of-type {border-right: 1px solid #4598B9b0;}
.part td {padding: 0 5px 0 5px;}

.modelcap td:first-of-type {border: none;}
.modelcap td {padding: 0}

iframe {
width: 100%;
border: none;
height: calc(100vh - 71px); /* making sure it fits, though it still cuts off a little at the bottom */
}

.tab {background: linear-gradient(#3C5767 48%, #273642 52%, #19222A);}

.tabbutton {
display: inline-block;
width: 60px;
height: 65px;
background: no-repeat center;
}

/* greyscales unlinked tab buttons */
.tabbutton:not([href]) {filter: grayscale(100%);}

.divider {
display: inline-block;
background-color: #14212D;
height: 45px;
width: 1px;
margin: 5px 0; /* centering */
}

.tabtext {
float: right;
position: relative;
right: 10vw;
margin-top: 10px;
}

/* style taken from RolloverVerbIcon */
#spoiler, #spoiler2 {
position: absolute;
z-index: 1;
max-height: 50vh;
overflow-y: auto;
width: 200px;
background-color: #082B39f0;
border: 1px solid #366E96a8;
border-radius: 3px;
}

/* buttons. referenced -button.spui */

button {
background-color: #AA932C;
border: 2px solid #847226;
border-top-color: #DFDBC7;
border-left-color: #DFDBC7;
outline: 2px solid #111111;
border-radius: 10px;
margin: 5px 0px;
box-shadow: 2px 2px 4px #000000aa;
}
button:hover {
background-color: #EBDC7A;
border: 2px solid #BDB063;
border-top-color: #EFECD9;
border-left-color: #EFECD9;
}
button:active {
background-color: #C5B042;
border: 2px solid #947704;
border-top-color: #ECE4C7;
border-left-color: #ECE4C7;
outline: 2px solid #422A00;
}

/* -popup.spui -popup_item.spui*/
.dropdown {
color: white;
background: linear-gradient(#879BAC, #567187 48%, #2E4D66 52%, #0D1A24);
border: 1px solid #0B141D;
outline: none;
border-radius: 5px;
width: 95px;
}
.dropdown:hover, .dropdown:active {
background: linear-gradient(#98C0DB, #78B8D9 48%, #60AAD0 52%, #487493);
border: 1px solid #3C5C78;
outline: none;
}
#spoilerdropdown {
position: absolute;
z-index: 1;
overflow-y: auto;
width: 200px;
background-color: #D8DCEDeb;
border: 1px solid #366E96a8;
border-radius: 3px;
}
#spoilerdropdown a {
color: black;
padding: 2px;
padding-left: 15px;
display: block;
}
#spoilerdropdown .selected {
background-color: #EFF4FF;
border: 1px solid #A8AAB7;
border-left: none;
border-right: none;
color: black;
}
#spoilerdropdown .selected::before {content: "✓ ";}
#spoilerdropdown .miscinfo {color: #707070; padding: 2px; padding-left: 15px; cursor: default;}
#spoilerdropdown a:hover, #spoilerdropdown .selected:hover {
text-decoration: none;
color: white;
background: linear-gradient(#3F4C59, #6D889D, #4F6F88, #516E85, #647D91);
cursor: default;
outline: 1px solid #77CAE5;
outline-left: none;
outline-right: none;
}

/* https://www.w3schools.com/css/css_tooltip.asp */
.tooltip {
  visibility: hidden; /* Hidden by default */
  background-color: #0F152Dc2;
  color: white;
  height: 20px;
  border: 1px solid #FFFFFF69;
  padding: 0px 7px;
  border-radius: 15px;
  position: absolute;
  z-index: 1; /* Ensure tooltip is displayed above content */
  margin: 55px 0 0 0; /* hacky way to put it below the icon lol */
white-space: nowrap; /* fix for the greyscaling unlinked tabs overriding it for some reason */
}
.tabbutton:hover .tooltip {visibility: visible;}

/* colors for paints */
.color {
width: 30px;
height: 15px;
display: inline-block;
float: right;
border-radius: 4px;
}
.themecolor { height: 30px; top: -15px; position: relative; }

.center {text-align: center;}

.partimg { width: 128px; height: 128px; }

/* dummy for vehicle parts since they dont have the text on the icon on the left */
.noicon {height: 21px; display: inline-block}

/* fixes the misaligned cap levels on cell and vehicle parts since they use icons, and for parts with military/religious/economic power */
.cellvepart .caplevel, .vepower .verbicon {margin: 0}

/* bullet lists in parts */
ul {
padding-left: 10px;
margin: 5px 0 5px 0
}

/* empty part icons */
.noparticon {width: 128px; height: 128px; display: inline-block;}

/* for overly long model cap names */
.longname {white-space: nowrap; font-size: 13px;}

/* for planners */
.partheader img {height: 20px; width: 20px; float: left; margin-right: 3px;}

/* -------------------------------------------- */

/* buttons with icons!!!!!!!!!! */

.mouths        {background-image: url(buttons/button-mouth-norm.png);}
.mouths:hover  {background-image: url(buttons/button-mouth-hl.png);}
.mouths:active {background-image: url(buttons/button-mouth-act.png);}

.senses        {background-image: url(buttons/button-eye-norm.png);}
.senses:hover  {background-image: url(buttons/button-eye-hl.png);}
.senses:active {background-image: url(buttons/button-eye-act.png);}

.limbs        {background-image: url(buttons/button-limbs-norm.png);}
.limbs:hover  {background-image: url(buttons/button-limbs-hl.png);}
.limbs:active {background-image: url(buttons/button-limbs-act.png);}

.graspers        {background-image: url(buttons/button-hands-norm.png);}
.graspers:hover  {background-image: url(buttons/button-hands-hl.png);}
.graspers:active {background-image: url(buttons/button-hands-act.png);}

.feet        {background-image: url(buttons/button-feet-norm.png);}
.feet:hover  {background-image: url(buttons/button-feet-hl.png);}
.feet:active {background-image: url(buttons/button-feet-act.png);}

.weapons        {background-image: url(buttons/button-weapon-norm.png);}
.weapons:hover  {background-image: url(buttons/button-weapon-hl.png);}
.weapons:active {background-image: url(buttons/button-weapon-act.png);}

.details        {background-image: url(buttons/button-detail-norm.png);}
.details:hover  {background-image: url(buttons/button-detail-hl.png);}
.details:active {background-image: url(buttons/button-detail-act.png);}

.legs        {background-image: url(buttons/EDT_creature_legs-norm.png);}
.legs:hover  {background-image: url(buttons/EDT_creature_legs-hl.png);}
.legs:active {background-image: url(buttons/EDT_creature_legs-act.png);}

.cell        {background-image: url(buttons/EDT_creature_cell-norm.png);}
.cell:hover  {background-image: url(buttons/EDT_creature_cell-hl.png);}
.cell:active {background-image: url(buttons/EDT_creature_cell-act.png);}

.other        {background-image: url(buttons/cip-music-butt-dice-norm2.png);}
.other:hover  {background-image: url(buttons/cip-music-butt-dice-hl.png);}
.other:active {background-image: url(buttons/cip-music-butt-dice-on-norm.png);}

.unused        {background-image: url(buttons/arcd-tab-buttn-invtry-norm.png);}
.unused:hover  {background-image: url(buttons/arcd-tab-buttn-invtry-hl.png);}
.unused:active {background-image: url(buttons/arcd-tab-buttn-invtry-act.png);}

.crepaints        {background-image: url(buttons/button-layer-norm.png);}
.crepaints:hover  {background-image: url(buttons/button-layer-hl.png);}
.crepaints:active {background-image: url(buttons/button-layer-act.png);}

.blepaints        {background-image: url(buttons/BE-butn-build-paint-partial-norm.png);}
.blepaints:hover  {background-image: url(buttons/BE-butn-build-paint-partial-hl.png);}
.blepaints:active {background-image: url(buttons/BE-butn-build-paint-partial-act.png);}

.vlepaints        {background-image: url(buttons/VE-butn-build-paint-partial-norm.png);}
.vlepaints:hover  {background-image: url(buttons/VE-butn-build-paint-partial-hl.png);}
.vlepaints:active {background-image: url(buttons/VE-butn-build-paint-partial-act.png);}

.flepaints        {background-image: url(buttons/CIP_butn-section-civc-norm.png);}
.flepaints:hover  {background-image: url(buttons/CIP_butn-section-civc-hl.png);}
.flepaints:active {background-image: url(buttons/CIP_butn-section-civc-norm.png);}

.hats        {background-image: url(buttons/EDT_access_hat_norm.png);}
.hats:hover  {background-image: url(buttons/EDT_access_hat_hl.png);}
.hats:active {background-image: url(buttons/EDT_access_hat_norm.png);}

.masks        {background-image: url(buttons/CIP_butn-section-acc-norm.png);}
.masks:hover  {background-image: url(buttons/CIP_butn-section-acc-hl.png);}
.masks:active {background-image: url(buttons/CIP_butn-section-acc-norm.png);}

.chest        {background-image: url(buttons/EDT_access_chest_norm.png);}
.chest:hover  {background-image: url(buttons/EDT_access_chest_hl.png);}
.chest:active {background-image: url(buttons/EDT_access_chest_norm.png);}

.shoulders        {background-image: url(buttons/EDT_access_shoulders_norm.png);}
.shoulders:hover  {background-image: url(buttons/EDT_access_shoulders_hl.png);}
.shoulders:active {background-image: url(buttons/EDT_access_shoulders_norm.png);}

.symbol        {background-image: url(buttons/EDT_access_symbols_norm.png);}
.symbol:hover  {background-image: url(buttons/EDT_access_symbols_hl.png);}
.symbol:active {background-image: url(buttons/EDT_access_symbols_norm.png);}

.accdetail        {background-image: url(buttons/EDT_access_detail_norm.png);}
.accdetail:hover  {background-image: url(buttons/EDT_access_detail_hl.png);}
.accdetail:active {background-image: url(buttons/EDT_access_detail_norm.png);}

.captain        {background-image: url(buttons/EDT_access_adventurer_norm.png);}
.captain:hover  {background-image: url(buttons/EDT_access_adventurer_hl.png);}
.captain:active {background-image: url(buttons/EDT_access_adventurer_norm.png);}

/* had to rip flora icons out from a strip again */
.trunks        {background-image: url(buttons/fe_trunk_1.png); background-size: 75%}
.trunks:hover  {background-image: url(buttons/fe_trunk_2.png);}
.trunks:active {background-image: url(buttons/fe_trunk_3.png);}

.leaves        {background-image: url(buttons/fe_leaf_1.png); background-size: 75%}
.leaves:hover  {background-image: url(buttons/fe_leaf_2.png);}
.leaves:active {background-image: url(buttons/fe_leaf_3.png);}

.fedetails        {background-image: url(buttons/fe_detail_1.png); background-size: 75%}
.fedetails:hover  {background-image: url(buttons/fe_detail_2.png);}
.fedetails:active {background-image: url(buttons/fe_detail_3.png);}

.fruit        {background-image: url(buttons/fe_fruit_1.png); background-size: 75%}
.fruit:hover  {background-image: url(buttons/fe_fruit_2.png);}
.fruit:active {background-image: url(buttons/fe_fruit_3.png);}

.vebodies        {background-image: url(buttons/EDT_vehicles_bodies-norm.png);}
.vebodies:hover  {background-image: url(buttons/EDT_vehicles_bodies-hl.png);}
.vebodies:active {background-image: url(buttons/EDT_vehicles_bodies-act.png);}

.cockpit        {background-image: url(buttons/EDT_vehicles_cockpit-norm.png);}
.cockpit:hover  {background-image: url(buttons/EDT_vehicles_cockpit-hl.png);}
.cockpit:active {background-image: url(buttons/EDT_vehicles_cockpit-act.png);}

.land        {background-image: url(buttons/EDT_vehicles_land-norm.png);}
.land:hover  {background-image: url(buttons/EDT_vehicles_land-hl.png);}
.land:active {background-image: url(buttons/EDT_vehicles_land-act.png);}

.water        {background-image: url(buttons/EDT_vehicles_sea-norm.png);}
.water:hover  {background-image: url(buttons/EDT_vehicles_sea-hl.png);}
.water:active {background-image: url(buttons/EDT_vehicles_sea-act.png);}

.air        {background-image: url(buttons/EDT_vehicles_air-norm.png);}
.air:hover  {background-image: url(buttons/EDT_vehicles_air-hl.png);}
.air:active {background-image: url(buttons/EDT_vehicles_air-act.png);}

.military        {background-image: url(buttons/EDT_vehicles_military-norm.png);}
.military:hover  {background-image: url(buttons/EDT_vehicles_military-hl.png);}
.military:active {background-image: url(buttons/EDT_vehicles_military-act.png);}

.religious        {background-image: url(buttons/EDT_vehicles_religious-norm.png);}
.religious:hover  {background-image: url(buttons/EDT_vehicles_religious-hl.png);}
.religious:active {background-image: url(buttons/EDT_vehicles_religious-act.png);}

.economic        {background-image: url(buttons/EDT_vehicles_economic-norm.png);}
.economic:hover  {background-image: url(buttons/EDT_vehicles_economic-hl.png);}
.economic:active {background-image: url(buttons/EDT_vehicles_economic-act.png);}

.effect        {background-image: url(buttons/EDT_vehicles_effect-norm.png);}
.effect:hover  {background-image: url(buttons/EDT_vehicles_effect-hl.png);}
.effect:active {background-image: url(buttons/EDT_vehicles_effect-act.png);}

.vedetail        {background-image: url(buttons/EDT_vehicles_detail-norm.png);}
.vedetail:hover  {background-image: url(buttons/EDT_vehicles_detail-hl.png);}
.vedetail:active {background-image: url(buttons/EDT_vehicles_detail-act.png);}

.space        {background-image: url(buttons/EDT_vehicles_space-norm.png);}
.space:hover  {background-image: url(buttons/EDT_vehicles_space-hl.png);}
.space:active {background-image: url(buttons/EDT_vehicles_space-act.png);}

.bebodies        {background-image: url(buttons/EDT_building_bodies-norm.png);}
.bebodies:hover  {background-image: url(buttons/EDT_building_bodies-hl.png);}
.bebodies:active {background-image: url(buttons/EDT_building_bodies-act.png);}

.roofs        {background-image: url(buttons/EDT_building_roof-norm.png);}
.roofs:hover  {background-image: url(buttons/EDT_building_roof-hl.png);}
.roofs:active {background-image: url(buttons/EDT_building_roof-act.png);}

.connectors        {background-image: url(buttons/EDT_build_connector-norm.png);}
.connectors:hover  {background-image: url(buttons/EDT_build_connector-hl.png);}
.connectors:active {background-image: url(buttons/EDT_build_connector-act.png);}

.doors        {background-image: url(buttons/EDT_building_doors-norm.png);}
.doors:hover  {background-image: url(buttons/EDT_building_doors-hl.png);}
.doors:active {background-image: url(buttons/EDT_building_doors-act.png);}

.windows        {background-image: url(buttons/EDT_building_windows-norm.png);}
.windows:hover  {background-image: url(buttons/EDT_building_windows-hl.png);}
.windows:active {background-image: url(buttons/EDT_building_windows-act.png);}

.cityhall        {background-image: url(buttons/EDT_build_function_ctyhall-norm.png);}
.cityhall:hover  {background-image: url(buttons/EDT_build_function_ctyhall-hl.png);}
.cityhall:active {background-image: url(buttons/EDT_build_function_ctyhall-act.png);}

.housing        {background-image: url(buttons/EDT_build_function_house-norm.png);}
.housing:hover  {background-image: url(buttons/EDT_build_function_house-hl.png);}
.housing:active {background-image: url(buttons/EDT_build_function_house-act.png);}

.entertain        {background-image: url(buttons/EDT_build_function_entertain-norm.png);}
.entertain:hover  {background-image: url(buttons/EDT_build_function_entertain-hl.png);}
.entertain:active {background-image: url(buttons/EDT_build_function_entertain-act.png);}

.factory        {background-image: url(buttons/EDT_build_function_factory-norm.png);}
.factory:hover  {background-image: url(buttons/EDT_build_function_factory-hl.png);}
.factory:active {background-image: url(buttons/EDT_build_function_factory-act.png);}

.bedetails        {background-image: url(buttons/EDT_building_details-norm.png);}
.bedetails:hover  {background-image: url(buttons/EDT_building_details-hl.png);}
.bedetails:active {background-image: url(buttons/EDT_building_details-act.png);}

.tools        {background-image: url(buttons/TRP_button-tools-norm.png);}
.tools:hover  {background-image: url(buttons/TRP_button-tools-hl.png);}
.tools:active {background-image: url(buttons/TRP_button-tools-norm.png);}

.buildings        {background-image: url(buttons/CIP_butn-section-buldg-norm.png);}
.buildings:hover  {background-image: url(buttons/CIP_butn-section-buldg-hl.png);}
.buildings:active {background-image: url(buttons/CIP_butn-section-buldg-norm.png);}

.vehicles        {background-image: url(buttons/CIP_butn-section-vhcl-norm.png);}
.vehicles:hover  {background-image: url(buttons/CIP_butn-section-vhcl-hl.png);}
.vehicles:active {background-image: url(buttons/CIP_butn-section-vhcl-norm.png);}

/* to copy

.asdasd        {background-image: url(buttons/asdasd.png);}
.asdasd:hover  {background-image: url(buttons/asdasd.png);}
.asdasd:active {background-image: url(buttons/asdasd.png);}
*/