/*
 * HTML5 ✰ Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 *
 * Detailed information about this CSS: h5bp.com/css
 *
 * ==|== normalize ==========================================================
 */


/* =============================================================================
   HTML5 display definitions
   ========================================================================== */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 * 3. Prevent iOS text size adjust on device orientation change, without disabling user zoom: h5bp.com/g
 */

html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

body { margin: 0; font-size: 13px; line-height: 1.231; }

body, button, input, select, textarea { font-family: sans-serif; color: #222; }



/* =============================================================================
   Links
   ========================================================================== */

a { color: #00e; }
a:visited { color: #551a8b; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover, a:active { outline: 0; }


/* =============================================================================
   Typography
   ========================================================================== */

abbr[title] { border-bottom: 1px dotted; }

b, strong { font-weight: bold; }

blockquote { margin: 1em 40px; }

dfn { font-style: italic; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }

ins { background: #ff9; color: #000; text-decoration: none; }

mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }

/* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { font-family: monospace, serif; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }

q { quotes: none; }
q:before, q:after { content: ""; content: none; }

small { font-size: 85%; }

/* Position subscript and superscript content without affecting line-height: h5bp.com/k */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }


/* =============================================================================
   Lists
   ========================================================================== */

ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7: h5bp.com/d
 * 2. Remove the gap between images and borders on image containers: h5bp.com/e
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow not hidden in IE9
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct color not inheriting in IE6/7/8/9
 * 2. Correct alignment displayed oddly in IE6/7
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * Reintroduce inner spacing in 'table' to avoid overlap and whitespace issues in IE6/7
 */

table button, table input { *overflow: auto; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"], [role="button"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }

/*
 * Remove inner padding and border in FF3/4: h5bp.com/l
 */

button::-moz-focus-inner { border: 0; padding: 0; }

/*
 * 1. Remove default vertical scrollbar in IE6/7/8/9
 * 2. Allow only vertical resizing
 */

textarea { overflow: auto; vertical-align: top; resize: vertical; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }
td { vertical-align: top; }


/* ==|== primary styles =====================================================
   Author: Matt Ruten
   ========================================================================== */
body {
}
#container {
  position: absolute;
  top: 0;
  bottom: 42px;
  left: 0;
  right: 0;
}

#oblique-strategy {
  position: absolute;
  width: 90%;
  padding: 0 5%;
  top: 25%;
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  /*text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.3), 2px 2px 0px rgba(0, 0, 0, 0.2);*/
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

#about-content {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 10px;
  padding: 20px;
  -webkit-box-shadow: 0px 0px 9px 1px rgba(0,0,0,0.5);
          box-shadow: 0px 0px 9px 1px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.9);
  -webkit-border-radius: 4px;
          border-radius: 4px;
  -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
  color: white;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-family: "OpenSansRegular";
}
#about-content a {
  color: white;
}
#about-content a.close {
  text-decoration: none;
  position: fixed;
  top: 25px;
  right: 40px;
  display: block;
  background-color: rgba(0,0,0,0.8);
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(255,255,255,0.3);
}
#about-content a.close .icon {
  font-family: IconicFill;
  margin-right: 5px;
}

ul#faves {
  width: 100%;
  margin: 0;
  padding: 0 0 42px 0;
}
  ul#faves li {
    padding: 12px 10px;
    border-top: 1px solid rgba(80, 80, 80, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font: normal 400 22px/27px "JosefinSansStdLight", sans-serif;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2);
  }


footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}
  #strat-nav {
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(60, 60, 60, 0.1);
    overflow: hidden;
    background-image: linear-gradient(bottom, rgba(36,36,36,0.3) 11%, rgba(102,102,102,0.3) 56%, rgba(125,125,125,0.3) 78%);
    background-image: -o-linear-gradient(bottom, rgba(36,36,36,0.3) 11%, rgba(102,102,102,0.3) 56%, rgba(125,125,125,0.3) 78%);
    background-image: -moz-linear-gradient(bottom, rgba(36,36,36,0.3) 11%, rgba(102,102,102,0.3) 56%, rgba(125,125,125,0.3) 78%);
    background-image: -webkit-linear-gradient(bottom, rgba(36,36,36,0.3) 11%, rgba(102,102,102,0.3) 56%, rgba(125,125,125,0.3) 78%);
    background-image: -ms-linear-gradient(bottom, rgba(36,36,36,0.3) 11%, rgba(102,102,102,0.3) 56%, rgba(125,125,125,0.3) 78%);
    background-image: -webkit-gradient(
      linear,
      left bottom,
      left top,
      color-stop(0.11, rgba(36,36,36,0.3)),
      color-stop(0.56, rgba(102,102,102,0.3)),
      color-stop(0.78, rgba(125,125,125,0.3))
      );
  }
    #strat-nav li {
      display: block;
      width: 31%;
      float: left;
      text-align: center;
    }
    #strat-nav li#about {
      width: 7%;
    }
    #strat-nav li#clear-faves {
      display:none;
    }
    #strat-nav li .inner {
      border-radius: 2px;
      border-right: 1px solid rgba(0, 0, 0, 0.3);
      border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    /* :hover is unpredictable on mobile safari http://goo.gl/D2YrL */
    .no-touch #strat-nav li .inner:hover,
    #strat-nav li.active .inner { /* for iOS */
      background: rgba(255, 255, 255, 0.1);
    }
    #strat-nav li a {
      display: block;
      padding: 10px 0;
      text-decoration: none;
      font: normal 400 16px/21px "Cuprum", sans-serif;
      color: white;
      text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
      -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
    #strat-nav li a .icon {
      font-family: IconicFill;
      margin-right: 5px;
    }
    #strat-nav #fave.is-user-fave a .icon {
      color: #e0fa62;
    }
    #strat-nav li#about a span {
      margin-right: 0;
      margin-left: 3px;
    }


.one-strategy {}
  .one-strategy #oblique-strategy,
  .one-strategy #strat-nav #fave {
    display: block;
  }
  .one-strategy #faves,
  .one-strategy #strat-nav #clear-faves {
    display: none;
  }
.strategy-list {}
  .strategy-list #faves,
  .strategy-list #strat-nav #clear-faves {
    display: block;
  }
  .strategy-list #oblique-strategy,
  .strategy-list #strat-nav #fave {
    display: none;
  }

/* Hide "fave" functionality from browsers that don't support localstorage */
.nolocalstorage #strat-nav #fave, 
.nolocalstorage #strat-nav #clear-faves, 
.nolocalstorage #strat-nav #view-faves {display:none;} 
.nolocalstorage #strat-nav #random {width:93%;}


/*
 * Media queries for responsive design github.com/h5bp/mobile-boilerplate/wiki/The-Style
 */


/* Styles for desktop and large screen ----------- */

/*styles for 800px and up!*/
@media only screen and (min-width: 800px) {
  /* Styles */
}/*/mediaquery*/


/* iPhone 4, Opera Mobile 11 and other high pixel ratio devices ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min--moz-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
  /* Styles */
}



/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* prevent callout */
.nocallout {-webkit-touch-callout: none;}

/* A hack for HTML5 contenteditable attribute on mobile */
textarea[contenteditable] {-webkit-appearance: none;}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if they have been set as display: none */
.gifhidden {position: absolute; left: -100%;}

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats: h5bp.com/q */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}


/* addtohome.css */

/**
 *
 * Main container
 *
 */
#addToHomeScreen {
  z-index:9999;
  -webkit-user-select:none;
  -webkit-box-sizing:border-box;
  width:240px;
  font-size:15px;
  padding:12px 14px;
  text-align:left;
  font-family:helvetica;
  background-image:-webkit-gradient(linear,0 0,0 100%,color-stop(0,#fff),color-stop(0.02,#eee),color-stop(0.98,#ccc),color-stop(1,#a3a3a3));
  border:1px solid #505050;
  -webkit-border-radius:8px;
  -webkit-background-clip:padding-box;
  color:#333;
  text-shadow:0 1px 0 rgba(255,255,255,0.75);
  line-height:130%;
  -webkit-box-shadow:0 0 4px rgba(0,0,0,0.5);
}

#addToHomeScreen.addToHomeIpad {
  width:268px;
  font-size:18px;
  padding:14px;
}

/**
 *
 * The 'wide' class is added when the popup contains the touch icon
 *
 */
#addToHomeScreen.addToHomeWide {
  width:296px;
}

#addToHomeScreen.addToHomeIpad.addToHomeWide {
  width:320px;
  font-size:18px;
  padding:14px;
}

/**
 *
 * The balloon arrow
 *
 */
#addToHomeScreen .addToHomeArrow {
  position:absolute;
  background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(0,rgba(204,204,204,0)),color-stop(0.4,rgba(204,204,204,0)),color-stop(0.4,#ccc));
  border-width:0 1px 1px 0;
  border-style:solid;
  border-color:#505050;
  width:16px; height:16px;
  -webkit-transform:rotateZ(45deg);
  bottom:-9px; left:50%;
  margin-left:-8px;
  -webkit-box-shadow:inset -1px -1px 0 #a9a9a9;
  -webkit-border-bottom-right-radius:2px;
}


/**
 *
 * The balloon arrow for iPad
 *
 */
#addToHomeScreen.addToHomeIpad .addToHomeArrow {
  -webkit-transform:rotateZ(-135deg);
  background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(0,rgba(238,238,238,0)),color-stop(0.4,rgba(238,238,238,0)),color-stop(0.4,#eee));
  -webkit-box-shadow:inset -1px -1px 0 #fff;
  top:-9px; bottom:auto; left:50%;
}


/**
 *
 * Close button
 *
 */
#addToHomeScreen .addToHomeClose {
  -webkit-box-sizing:border-box;
  position:absolute;
  right:4px;
  top:4px;
  width:18px;
  height:18px; line-height:14px;
  text-align:center;
  text-indent:1px;
  -webkit-border-radius:9px;
  background:rgba(0,0,0,0.12);
  color:#707070;
  -webkit-box-shadow:0 1px 0 #fff;
  font-size:16px;
}


/**
 *
 * The '+' icon, displayed only on iOS < 4.2
 *
 */
#addToHomeScreen .addToHomePlus {
  font-weight:bold;
  font-size:1.3em;
}


/**
 *
 * The 'share' icon, displayed only on iOS >= 4.2
 *
 */
#addToHomeScreen .addToHomeShare {
  display:inline-block;
  width:18px;
  height:15px;
  background-repeat:no-repeat;
  background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAPCAQAAABDj1eZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAUdJREFUKFNtkLtLw1AYxS/qJLhXVKr2ZRulUNtiqgSb3CziICI6ucTFVYcOnaQOFRwUnNTRwUWXgpP/QdHNUEQUHGxofYBTlRs83iZNjKTncOGe7/vx3QchXUWn6FL3jhfKUdCCr5zuifV5oDiHQM+c+CIhiiCSWNu08iq9oHXKLAiqrgR4UXqlOEYZt++ExEL0wW7+OW0G10muLv9gmqfe5FAWKmTMYQYiFL7PYwyLOD8lSjNh2gdnPzMII4QUBxc4OothbAF7GCBKQ0YbSWyPQsIhqvetS+y0ygGMo/KFZfviDvR4AhwgZU9dGYnA0J/6ndc15i3ouYIMcVVUcEXIoOxCeRCfwP8sXBSdjtpUv/1QW+K16kCCIUC4id9Fa0JtkluwVkSfqPL6RwfSDA0aNlx7k/bWgViB7bMS2/1vk5sdsZLN/ALSuL3tylO4RAAAAABJRU5ErkJggg==);
  background-size:18px 15px;
  text-indent:-9999em;
  overflow:hidden;
}


/**
 *
 * The touch icon (if available)
 *
 */
#addToHomeScreen .addToHomeTouchIcon {
  display:block;
  float:left;
  -webkit-border-radius:6px;
  -webkit-box-shadow:0 1px 3px rgba(0,0,0,0.5),
    inset 0 0 2px rgba(255,255,255,0.9);
  background-repeat:no-repeat;
  width:57px; height:57px;
  -webkit-background-size:57px 57px;
  margin:0 12px 0 0;
  /*border:1px solid #333;*/
  -webkit-background-clip:padding-box;
}


/**
 *
 * The 'share' icon for retina display
 *
 */
@media all and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