﻿/* add all special styles used for displaying the rules */

/* .rules: used for all elements loading rules (rules at main site, rules ingame, popup with rules extract 
   #rules: div with complete rules used at main site
   #rulesPage: ingame rules page display
   #panelRules: ingame rules sidepanel display
   #popup.rules: popup with rules extract only */

iframe {
    border: 1px solid black;
    width: 100%;
    height: 100vh;
}

iframe .page-banner {
    display: none
}

iframe .custom-footer {
    display: none
}

/* SmoochSans for headers*/
@font-face {
	font-family: 'SmoochSans';
	src: local('SmoochSans'), local('Nucleum header'),
			 url('/Games/Nucleum/fonts/SmoochSans-Regular.ttf') format('truetype');
}   

@font-face {
	font-family: 'SmoochSansBold';
	src: local('SmoochSansBold'), ,
			 url('/Games/Nucleum/fonts/SmoochSans-SemiBold.ttf') format('truetype');
}   


.rules {
    padding: 0.5em;
    text-shadow: none;
}

.rules p {
    margin-bottom: 0.5em;
}

.rules h1 {
    border: none;
    font-family: 'SmoochSansBold', serif;
    padding: 5px;
    font-size: 2.5em;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    color: #D2DE40;
    text-shadow: 1px 2px #896E36;
    background-image: url(/Games/Nucleum/images/rules/header1.webp); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
}
#panelRules h1 {
    font-size: 1.5em;
}


.rules h2 {
    font-family: 'SmoochSansBold', serif;
    /*margin: 0.5em 2.5em 0.6em 0em;*/
    padding: 0.3em 0 0.1em 1em;
    border: none;
    font-size: 2em;
    text-transform: uppercase;
    font-weight: bold;
}
#panelRules h2 { font-size: 1.2em; margin: 0.5em 0em 0.6em 0em; padding: 0.3em 0 0.1em 0.2em;}

.rules .h_mod {
    background-color: #C3CF4B;
    color: #35363D;
    font-weight: bold;
    padding: 0.1em 1em 0.0em 1em;
    border: none;
}
.rules .h2left { height: 1.9em;   margin-top: -0.2em; margin-right: -0.4em;}
.rules .h2right { height:1.9em;  margin-top: -0.2em; margin-left: -0.4em;}
#panelRules .h2left {display: none}
#panelRules .h2right {display: none}

/* cover picture only in main rules */
#rules .cover {    width: 60%;    margin-left: 20%;}
#rulesPage .cover {    width: 40%;    margin-left: 30%;}
#panelRules .cover {    display: none;}

/* sidebar or not sidebar */
#panelRules .nosidebar {    display: none;}
.ui-popup .rules .nopopup {    display: none;}
.rules .sidebaronly {    display: none;}
#panelRules .sidebaronly {    display: inherit;}

.rules .clear {clear:both;}
.rules .center {text-align: center;}

/* striped boxes in different colors */
.rules .stripebox {
  border: 4px solid #467EBF;
  background-color: #7AC2EF;
  border-radius: 0.4em;
  overflow: hidden;
  padding: 0.5em;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 5px,
    transparent 5px,
    transparent 10px
  );
}
.rules .stripebox b {
    font-style: normal;
    font-family: 'SmoochSansBold';
    font-size: 1.2em;
    overflow: auto;
}

.rules .stripebox.purple {
  border: 4px solid #9E8BAC;
  background-color: #CDC0D3;
  font-style: italic;
}

.rules .stripebox.yellow {
  border: 4px solid #D4DD3A;
  background-color: #CDD385;
}


/* flex lists basic */
.rules .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em;
}
@media (max-width: 768px) {
    .rules .flex.mobile { flex-direction: column; /* columns below each other */  }
}

.rules .flexbox {    flex: 1 2 48%; background-color: #C9BC9C; padding: 0.3em; border-radius: 0.3em;}
#panelRules .flexbox {    flex: 1 1 95%;}
.rules .flexbox img { height:3em; float: left; margin-right: 1em;}
.rules .column {    flex: 1; }
.rules .column.wide {    flex: 2; }
.rules .income_track .flex .column {flex:0 0 auto;}

/* special flexboxes */
.rules  .flex.content {}
.rules  .flex.content .flexbox { flex: 2 1 auto; }

@media (max-width: 580px) {
    .rules .flex.reward_types { flex-direction: column; /* columns below each other */  }
}
.rules .flex.reward_types .flexbox{ flex: 2 2 30%; text-align: center; font-family: 'SmoochSansBold'; font-size: 1.2em;}
.rules .flex.reward_types .flexbox img { height:3em; float: none; }
.rules .flex.contracts .flexbox img { height:4em; float: none; }
.rules .flex.subsidizeactions .flexbox{ flex: 2 2 23%; text-align: center; padding:0.5em; padding-right: 1em;}
.rules .flex.subsidizeactions .flexbox img { height:4em;  }

.rules  .flex.contractsappendix .flexbox { flex: 2 2 23%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.contractsappendix .flexbox img { height:7em; float: left; margin-right: 1em; }
@media (max-width: 1024px) {
    .rules .flex.contractsappendix .flexbox { flex: 2 2 48%; }
}
@media (max-width: 1024px) {
    .rules .flex.contractsappendix .flexbox { flex: 2 2 95%; }
}
#panelrules .flex.contractsappendix .flexbox { flex: 2 2 48%; }

.rules  .flex.milestonesappendix .flexbox { flex: 2 2 23%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.milestonesappendix .flexbox img { width:5em; float: left; margin-right: 1em; height: auto;}
@media (max-width: 1024px) {
    .rules .flex.milestonesappendix .flexbox { flex: 2 2 48%; }
}
@media (max-width: 360px) {
    .rules .flex.milestonesappendix .flexbox { flex: 2 2 95%; }
}
#panelrules .flex.milestonesappendix .flexbox { flex: 2 2 48%; }

.rules  .flex.technologiesappendix .flexbox { flex: 2 2 48%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.technologiesappendix .flexbox img { height:3em; float: left; margin-right: 1em; }
@media (max-width: 1024px) {
    .rules .flex.technologiesappendix .flexbox { flex: 2 2 95%; }
}
#panelrules .flex.technologiesappendix .flexbox { flex: 2 2 95%; }

.rules  .flex.turbinesappendix .flexbox { flex: 2 2 48%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.turbinesappendix .flexbox img { height:3em; float: left; margin-right: 1em; }
@media (max-width: 768px) {
    .rules .flex.turbinesappendix .flexbox { flex: 2 2 95%; }
}
#panelrules .flex.turbinesappendix .flexbox { flex: 2 2 95%; }


.rules  .flex.symbols .flexbox { flex: 2 2 23%;  padding:0.5em; padding-right: 1em;}
.rules  .flex.symbols .flexbox img { height:5em; float: left; margin-right: 1em; }
@media (max-width: 1024px) {
    .rules .flex.symbols .flexbox { flex: 2 2 48%; }
}
#panelrules .flex.symbols .flexbox { flex: 2 2 48%; }


/* unordered lists */
.rules ul {
    margin: 1em 0em 1em 2em;
    list-style-type: disc;
}
#panelRules ul {margin-left: 0.5em; }
@media (max-width: 768px) {
 .rules ul {margin-left: 0.3em; }
}

.rules .content ul {list-style-type: none;}


/* customized list - red squares with numbers*/
.rules ol.custlist { list-style: none; counter-reset: li; }
#panelRules ol.custlist {margin-left: 0.5em; padding-left: 0; }
@media (max-width: 768px) {
 .rules ol.custlist {margin-left: 0.3em; }
}
.rules ol.custlist.c12 { counter-reset: li 11; }
.rules ol.custlist>li::before {
	content: counter(li) '.';
	font-family: 'SmoochSansBold', serif; color: #C0C4C0; font-weight: bold; text-align: center; 
	color: #D2DE40;
  text-shadow: 1px 1px #896E36, -1px -1px #896E36, 1px -1px #896E36, -1px 1px #896E36;
	margin-right: 0.5em;
	font-size: 1.5em;
  width: 2em; 
}
.rules ol.custlist>li { counter-increment: li; margin-bottom: 0.1em;}

.rules ol.alpha >li::before {
	content: counter(li , upper-alpha) '.';
	font-family: 'SmoochSansBold', serif; color: white; font-weight: normal; text-align: center; font-size: 1.5em;
	background-image: none;
	box-shadow: none;
	color: black;
  margin-right: 0.5em; 
  text-shadow: none;
}


/* link colors */
.rules a:link { color: #35834D; font-weight: bold;}
.rules a:visited { color: #35834D;  font-weight: bold;}
.rules a:hover { color: #35834D; font-weight: bold;}
.rules a:active { color: #35834D; font-weight: bold;}


/* Examples */
.rules .example {
   width: 50%;
   float: right;
   margin-left: 1em;
   font-style: italic;
}
#panelRules .example {
    display: none;
}
.rules .example b {
    font-style: normal;
    font-family: 'SmoochSansBold';
    font-size: 1.2em;
}

.rules .example.example_map_elements { width: 60%; }
.rules .example.example_map_elements img { float: left; margin-right: 1em; width:clamp(12em,35%,35%);}
.rules .example.resolve_actions img { height: 8em; float: left;}
.rules .example.resolve_actions div { width: 48%; float: left;}
.rules .example.matched_actions { width: clamp(16em,30%,25em);  float: right; margin-left: 1em;}
.rules .example.matched_actions img { width: 100%;  }
.rules .example.urbanize { width:100%;  }
.rules .example.urbanize img { width: clamp(10em,40%,20em);  float: left ; margin-right: 1em;}
.rules .example.industrialize {  width:100%; }
.rules .example.industrialize img { width: clamp(10em,40%,20em);  float: left ; margin-right: 1em;}
.rules .example.develop { width:100%; }
.rules .example.develop img { width: clamp(10em,30%,20em);  float: left ; margin-right: 1em;}
.rules .example.contract { width: 100%; }
.rules .example.contract img { width: clamp(10em,30%,20em);  float: left ; margin-right: 1em;}
.rules .example.contract img.inlineicon { width: auto; float:none; margin-right: 0em;}
.rules .example.energize { width: clamp(10em,25%,20em) ; float: right; margin-left: 1em;}
.rules .example.energize img { width: 100%;  }
.rules .example.energize2 { width: 100%; float: none; margin-left: 0em;}
.rules .example.energize2 img { width: clamp(10em,100%,20em); margin:auto;}
.rules .example.energize3 { width: 100%;  float: none; margin-left: 0em;}
.rules .example.energize3 img { width: 50%;  float: left; margin-right: 1em;}
.rules .example.gain_income { width: 100%;  float: none; margin-left: 0em;}
.rules .example.gain_income img { width: 80%; margin-left: 9%; float: none; margin-bottom: 1em;}
.rules .example.milestone_marker { width: 80%;  float: right; margin-left: 1em;}
@media (max-width: 1024px) {
 .rules .example.milestone_marker  {width: 100%; }
}
.rules .example.milestone_marker img { width: 10em; float: left; margin-right: 1em;}
.rules .example.kings_scoring { width: 100%;  float: none; margin-left: 0em;}
.rules .example.kings_scoring img { width: 5em; float: left; margin-right: 1em;}
.rules .example.score_milestones { width: 100%;  float: none; margin-left: 0em;}
.rules .example.score_milestones img { width: 5em; float: left; margin-right: 1em;}
.rules .example.score_energized_buildings { width: 100%;  float: none; margin-left: 0em;}
.rules .example.score_energized_buildings img { width: 12em; float: left; margin-right: 1em;}
.rules .example.score_income_track_bonus { width: 100%;  float: none; margin-left: 0em;}
.rules .example.score_income_track_bonus img { width: 10em; float: left; margin-right: 1em;}


.rules .example.example_baron_railway { width: 100%; }
.rules .example.example_baron_railway img { width: clamp(10em,80%,20em);  float: none ; display: block; margin-left: auto; margin-right: auto; }
.rules .example.urbanize_solo { width: 100%; }
.rules .urbanize_solo2 { width: clamp(10em,80%,30em);  float: none ; display: block; margin-left: auto; margin-right: auto; }
.rules .urbanize_solo1 { width: clamp(7em,50%,10em);  float: none ; display: block; margin-left: auto; margin-right: auto; }
.rules .example.industrialize_solo { width: 100%; }
.rules .industrialize_solo1 { width: clamp(7em,50%,10em);  float: none ; display: block; margin-left: auto; margin-right: auto; }
.rules .industrialize_solo2 { width: clamp(10em,60%,20em);  float: none ; display: block; margin-left: auto; margin-right: auto; }
.rules .example.develop_solo { width: 100%; }
.rules .example.develop_solo img { display: block; margin-left: auto; margin-right: auto; }
.rules .example.contract_solo { width: 100%; }
.rules .example.contract_solo img { width: clamp(10em,60%,15em); display: block; margin-left: auto; margin-right: auto; }
.rules .example.energize_solo { width: 100%; }
.rules .example.energize_solo img { width: clamp(10em,60%,20em); display: block; margin-left: auto; margin-right: auto; }
.rules .example.recharge_solo { width: 100%; }
.rules .recharge_solo1 { width: clamp(7em,50%,10em);  float: right ; margin-left: 1em;}
.rules .recharge_solo2 { width: clamp(10em,60%,20em);  float: none ; display: block; margin-left: auto; margin-right: auto; }
.rules .example.scoring_solo { width: 100%; }
.rules .example.scoring_solo img { width: clamp(10em,20%,12em); float: right ; margin-left: 1em;}


/* tip box */
.rules .tipbox {
    color: black;
    font-family: 'SmoochSansBold', serif;
    text-transform: uppercase;
    background-color: transparent;
    background-image: url(/Games/Nucleum/images/rules/tip_box.webp);
    background-size: 100% 100%;
    padding: 2.5em 2.3em 2.5em 2.8em;
    overflow: auto;
    margin: 0.5em;
    width: 40%;
    font-size: 1.2em;
    float:right;
    margin-left: 1em;
}
.rules .tipbox>b {
    color: #D2DE40;
    text-shadow: 1px 1px #604D26, -1px -1px #604D26, 1px -1px #604D26, -1px 1px #604D26;
}

.rules .tipbox.gaining_resources {width: 95%}
.rules .tipbox.gain_income {float: left; margin-left: 10%;}
.rules .tipbox.unfloat {float: none; width:auto; margin: 0em;}


.rules .inlineicon { height:2em; }
.rules .headericon { height:2.3em; margin-right: 0.3em;}


/* inline pseudo counter */
.rules .ic {
   border-radius: 50%; background-color: #D2D540; color: #473E1C ; border: 2px solid #9E8B50;
   font-family: 'SmoochSansBold', serif; padding: 0 0.3em 0 0.3em; font-size: 1.2em; width: 1em;  height: 1em; text-align: center;
}



/* some pics and other stuff */
.rules img.setup {float: right; width: 70%; margin-left: 1em; margin-top: -1em;}
.rules img.setup_player {float: right; width: 50%; margin-left: 1em; margin-top: -1em;}
.rules img.gaining_resources {float: left; width: clamp(4em,12vw,6em); margin-right: 1em; }
.rules .income_track {width: clamp(20em,80%,40em); margin-left: auto;margin-right: auto;ext-align: center; font-family: 'SmoochSans'; font-size: 1.2em;}
.rules .map_elements {width: 60%; font-family: 'SmoochSans'; font-size: 1.2em; float: right; margin-left: 1em;}
.rules .map_elements img {width: 100%; float: left; margin-right: 1em;}
.rules img.coal_production_areas {float: left; width: clamp(15em,20%,25em); margin-right: 1em; }
.rules img.endgame_trigger {float: right; width: 35%; margin-left: 1em; }
.rules img.score_ultimate_technology { width: 10em; float:right; margin-left: 1em; }

.rules table.technologytypes td {padding:0.2em; margin:0.2em; background-color: #fff4; }
.rules table.technologytypes td>b {font-family: 'SmoochSansBold'; font-size: 1.2em; }
.rules table.technologytypes img {min-width: 5em;}

.rules .milestonemarker {width: 7em; font-family: 'SmoochSansBold'; font-size: 1.2em; float: right; margin-left: 1em; text-align: center; margin-top: -1em;}
.rules .milestonemarker img {width: 100%; float: none; }



















