@font-face {
  font-family: 'RopaSans';
  src: url('ropasans/RopaSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'RopaSans';
  src: url('ropasans/RopaSans-Italic.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'eurostile';
  src: url('eurostile.ttf') format('truetype');
}

html {
  overflow: hidden;
}
body {
  color:#000000;
  font-family:'eurostile';
  font-size:14px;
  height:768px; min-width: 1280px; min-height: 860px; overflow: hidden;
}

a { color:#ffffff; text-decoration:none; text-transform:uppercase; }
a:hover { color:#8eb423; }
h1 { font-family:'RopaSans'; font-weight:normal; }
h2 { font-family:'RopaSans'; font-weight:normal; }
li { list-style-type:none; }

#wrapper {
  display:block;
  float:left;
}

#visualization{
  position: fixed;
  right: 1px;
  transition: all 0.81s;
}
#visualization.shifted-left {
  right: 250px;
}

#dataviz {
  background-color:   #000000;
  margin:       0px;
  overflow-y:     hidden;
  overflow-x:         auto;
}
#overlay_2d{
  -webkit-perspective:    800;
  position:          absolute;
  margin:           0px;
  width:            100%;
  height:            100%;
  pointer-events:        none;
}

.marker {
  position:         absolute;
  display:          inline-block;
  background-color: rgba(0,0,0,0.7);
  color:            #ffffff;
  font-size:        4pt;
    font-family:       'RopaSans';
  -moz-user-select:    -moz-none;
  -khtml-user-select:    none;
  -webkit-user-select:  none;
  margin:         0px;
  border:          0px;
  padding:        5px;
  overflow:         hidden;
  cursor:          pointer;
  font-family: 'eurostile';
  font-variant: small-caps;
}

.country {
  margin-right:      10px;
}

.detail {
  // display: block;
  display: none;
  color: #aaaaaa;
} .selected .detail {
  display: block;
}
.abridged {
  display: block;
  font-size: 0.8rem;
} .selected .abridged {
  display: none;
}

#loading{
  background-color: #111;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -38px;
  margin-left: -380px;
  color: white;
  padding: 16px 30px;
  width: 700px;
  height: 45px;
  line-height: 11px;
  text-align: center;
}


/*Styles by Pitch*/
.clear {
    clear:both;
}

/*Remove all text selection (except for Text Input)*/
* {
  -webkit-touch-callout: none;
  -webkit-user-select:   none;
  -khtml-user-select:    none;
  -moz-user-select:      none;
  -ms-user-select:       none;
  user-select:           none;
}
input[type='text'] {
  -webkit-touch-callout: default;
  -webkit-user-select:   auto;
  -khtml-user-select:    auto;
  -moz-user-select:      text;
  -ms-user-select:       text;
  user-select:           text;

}
/*
Elements to control the title and country selector
*/
.overlayCountries {
    z-index: 10001; /* selected country has z-index:10000*/
}
.pointer {
    pointer-events: auto;
}
.noPointer {
    pointer-events: none;
}

#glcontext {
    z-index: 1;
    pointer-events:none;
}
#glcontext canvas {
    z-index: 1;
    pointer-events:none;
}

/* Consistent background shading and other features for all HUD elements */
.hud {
  background: rgba(0,0,0,0.8);
  color: #fff;
  transition: all 0.23s;
}

.hud-global-metrics {
  position: fixed;
  height: 100%;
  width: 500px;
  right: -600px;
  padding: 2rem;
  padding-top: 2rem;
  z-index: 100;
  font-size: 150%;
  border-left: 1px solid #333;
  font-variant: small-caps;
}

.hud-global-metrics.active {
  right: 0px;
}

.hud-metrics-toggle {
  position: fixed;
  right: 1rem;
  padding: 1rem;
  color: #aa8;
  background-image: url("icon-metrics.svg");
  background-size: contain;
  background-repeat: no-repeat;
  height: 32px;
  width: 48px;
  font-size: 1.8rem;
  text-align: right;
  font-variant: small-caps;
  opacity: 0.8;
}
.hud-metrics-toggle:hover {
  color: #fff;
  opacity: 1.0;
  cursor: pointer;
}

.metric {
  font-size: 2rem;
  color: #faf;
}

.date-panel {
  position: absolute;
  right: 1rem;
  width: 
}
#current-date {
  right: 1rem;
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: #aaa;
  font-variant: small-caps;
  font-size: 1.2rem;
  cursor: default;
  width: 11rem;
  outline: none;
  padding: 0;
  padding-bottom: 10px;
  transition: all 0.42s;
} #current-date:hover {
  cursor: pointer;
  color: #ccc; }
#date-picker:active, #date-picker:focus {
  color: #ccc;
  border: none;
}

#ui-datepicker-div {
  font-size: 1.5rem;
  color: #999;
  padding: 0.5rem;
  background-color: rgba(0,0,0,0.9);
  border: 1px solid #222;
}
.ui-corner-all {
  padding: 1rem;
}
.ui-datepicker-header { text-align: center; }
.ui-datepicker-title: {
  text-align:center;
}


/* Leaderboard styles */
#top-countries {
  font-size: 0.8rem;
  height: 60%;
  overflow-y: scroll;
  padding-bottom: 50%;
  margin-bottom: 1rem;
}
.leaderboard-title {
  text-align: right;
  margin: 0;
  border-bottom: 1px solid #999;
}
.leaderboard-entry {
  position: relative;
  color: #888;
}
.leaderboard-label {
  font-size: 1.2rem;
  padding-left: 4rem;
}
.leaderboard-label:hover { color: #fff; cursor: pointer; }
.leaderboard-score {
  position: absolute; right: 0;
  color: #faf;
  padding-right: 2rem;
}
.leaderboard-first-place { color: #fea; }  /* gold */
.leaderboard-second-place { color: #cff; } /* silver */
.leaderboard-third-place { color: #ca8; } /* bronze */
.leaderboard-top10 { color: #ccc; } /* bronze */
.leaderboard-place { display: block; width: 4rem; position: absolute;}


#hudHeader {
  position: fixed;
  width: 100%;
  top: 0; left: 0;
  padding: 1rem;
  color: #fff;
  font-family:       'RopaSans';
  display:                none;
  background: rgba(0,0,0,0.5);
}
#hudHeader h1 {
  font-size:         32px;
  font-family:       'RopaSans';
  margin:         0 0 0px 0;
  display:                block;
  float:                  left;
}
#hudHeader h1 .subtitle {
  font-size: 14px;
  color: #ddd;
}

.version-tag { font-size: 0.5rem; }
.description {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 900;
} .description:hover { color: #fff; }

#hudButtons {
    display: none;
    position: absolute;
    top: 20px;
    width: 489px;
}
#hudButtons .countryTextInput {
    float:                  right;
    font-size:         17px;
    width:           300px;
    margin-right:       5px;
  font-family:       'RopaSans';
  text-transform:          uppercase;
}

#hudButtons .armsBtn {
    float: right;
    background:       #333333;
    padding:         3px 10px 2px;
    color:           white;
    border:         0;
    font-size:         18px;
  font-family:       'RopaSans';
  cursor:         pointer;
  margin-right:       0px;
  opacity:                0.9;
} #hudButtons .armsBtn:hover {
    opacity: 1;
}

#hudButtons .aboutBtn {
  display:        block;
  clear:          both;
  margin-right:       0px;
  width:           76px;

}
#hudButtons .zoomBtn {
  margin-right:           5px;
  width:                  30px;
  font-weight:            bold;
  height:                 24px;
  margin-top:             2px;
}
#hudButtons .zoomOutBtn {
  font-size:              17px;
}

.hudVolunteer {
  color: #fff;
  display: block;
  position: fixed;
  bottom: -420px;
  height: 500px;
  padding: 12px;
  margin: 1rem;
  overflow: hidden;
  // border: 1px solid #888;
  text-align: center;
  transition: bottom 0.23s;
}
.hudVolunteer.active {
  bottom: 0;
}
.hudVolunteerToggle {
  border: 1px solid #333;
  padding: 1rem;
  transition: all 0.23s;
  margin-bottom: 6rem;
}
.hudVolunteerToggle:hover {
  background-color: rgba(180,180,180,0.3);
}
.hudVolunteerAbout {
  background-color: #000;
  position: absolute;
  bottom: 0;
  display: block;
  height: 175px;
  width: 100%;
}
.aboutText {
  padding: 1rem;
}

.hud-global-metrics {
}

.ui-autocomplete {
  position: absolute;
}
.ui-autocomplete .ui-menu-item {
  border-top:             1px solid #656565;
  margin-left:            -39px;
  padding-left:           4px;
  font-family:            'RopaSans';
  font-size:              18px;
  color:                  white;
  background:             #333;
  width:                  301px;
}
.ui-autocomplete #ui-active-menuitem {
  background:             white;
  color:                  black;
  width:                  301px;
  display:                block;
  margin-left:            -4px;
  padding-left:           4px;
}

/*
Bar graph on left
*/
#barGraph {
    position: absolute;
    /*bottom:10px;*/
    left:-7px;
    opacity: 0.9;
}
#barGraph .import.ammo {
  fill:           #44B2D4;
}
#barGraph .import.civ {
  fill:           #4679C1;
}
#barGraph .import.mil {
  fill:          #1658B2;
}
#barGraph .export.ammo {
  fill:           #FFA90B;
}
#barGraph .export.civ {
  fill:           #FF7018;
}
#barGraph .export.mil {
  fill:          #E83E0A;
}
#barGraph .importLabel text,#barGraph .exportLabel text {
  fill:           white;
    font-family:      Roboto;
}
#barGraph .totalLabel {
    fill:           white;
    font-family:      Roboto;
    font-size:         23px;
}
#barGraph .exportLabel {
    font-family:       Roboto;
    font-size:         14px;
    fill:           #FFA90B;
}
#barGraph .importLabel {
    font-family:       Roboto;
    font-size:         14px;
    fill:           #44B2D4;
}
#barGraph .barGraphLabelBG {
    fill: rgba(0,0,0,0.8);
}
/* histogram and timeline at bottom */
#history {
  position:         absolute;
  bottom:         0;
  left:           386px;
  background-color:     rgba(43,43,43,0.9);
  display:         none;
  opacity: 0;
}

/* import export buttons (bottom right)*/
#importExportBtns {
  width:                  298px;
  position:               absolute;
  bottom:                 0px;
  color:                  white;
  display:                none;
}
#importExportBtns>div>div {
  float:                  left;
  width:                  60px;
  text-align:             center;
  height:                 28px;
}
#importExportBtns .imex>div {
  background:             #262626;
}
#importExportBtns .typeLabels div {
  font-family:            'Roboto';
  font-size:              13px;
  text-transform:         uppercase;
  margin-bottom:-12px;
}

#importExportBtns .imex>div {
  cursor: pointer;
  opacity: 0.9;
}
#importExportBtns .imex>div:hover {
  opacity: 1;
}
#importExportBtns>div>.label {
  width:              98px;
  height:             25px;
  text-transform:     uppercase;
  font-family:        'Roboto';
  font-size:          18px;
  margin-left:        10px;
  background:         #262626;
  vertical-align:     middle;
  padding-top:        3px;
}
#importExportBtns .imports .label {
  color:              #44B2D4;
}
#importExportBtns .exports .label {
  color:              #FFA90B;
}
#importExportBtns .imports {
  margin-bottom:      5px;
}
#importExportBtns .mil, #importExportBtns .civ {
  margin-right:       5px;
}
#importExportBtns .imex .check {
  width: 16px;
  height: 16px;
  background: #262626 url('importExportIcons.png') 0 0 no-repeat;
  margin: 6px auto;
}
#importExportBtns .imports .mil .check {
  background-position: 0px 0px;
}
#importExportBtns .imports .mil .check.inactive {
  background-position: 0px -16px;
}
#importExportBtns .imports .civ .check {
  background-position: -16px 0px;
}
#importExportBtns .imports .civ .check.inactive {
  background-position: -16px -16px;
}
#importExportBtns .imports .ammo .check {
  background-position: -32px 0px;
}
#importExportBtns .imports .ammo .check.inactive {
  background-position: -32px -16px;
}
#importExportBtns .exports .mil .check {
  background-position: -48px 0px;
}
#importExportBtns .exports .mil .check.inactive {
  background-position: -48px -16px;
}
#importExportBtns .exports .civ .check {
  background-position: -64px 0px;
}
#importExportBtns .exports .civ .check.inactive {
  background-position: -64px -16px;
}
#importExportBtns .exports .ammo .check {
  background-position: -80px 0px;
}
#importExportBtns .exports .ammo .check.inactive {
  background-position: -80px -16px;
}


#graphIcon {
    width: 42px;
    height: 42px;
    position: absolute;
    bottom: 10px;
    left: 1255px;
    cursor: pointer;
    background: url('graphIcon.png') 0 0 no-repeat;
    display: none;
    opacity: 0.9;
}
#graphIcon:hover {
    opacity: 1;
}

#aboutContainer {
    display: none;
    position: absolute;
    top: 95px;
    width: 350px;
    right: 28px;
    color: white;
}
#aboutBox {
    width: 288px;
    padding: 20px 30px;
    background: #323232;
}
#aboutBox .title {
    margin-bottom: 20px;
    font-weight: bold;
    font-family: RopaSans;
    font-size: 20px;
}
#aboutContainer .arrowUp {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #323232;
    margin-left: 293px;
}
#aboutBox .text {
    font-family: Roboto;
    font-size: 15px;
}
#aboutBox a {
    text-transform: none;
    font-size: 15px;
    font-family: Roboto;
    font-weight: bold;
    color: #FFA90B;
}
#aboutBox a:hover {
    text-decoration: underline;
}


/* Small size */
@media all and (max-width: 600px) {

  #hudHeader h1 {
    font-size: 1rem;
  }
  #hudHeader h1 .subtitle { font-size: 50%; }
  .description { font-size: 0.8rem; }
  #importExportBtns {
      width: 187px;
  }
  #importExportBtns>div>div {
      width: 23px;
  }
  #importExportBtns .imex>div {
      background: transparent;
  }
  #importExportBtns .imex .label {
      background: #262626;
  }
  #importExportBtns .typeLabels div {
      font-size: 12px;
      -webkit-transform:rotate(323deg);
      -moz-transform:rotate(323deg);
      -o-transform:rotate(323deg);
      -ms-transform:rotate(323deg);
      margin-top: -2px;
  }

  #importExportBtns .typeLabels .mil {
      margin-left: 8px;
  }
  #importExportBtns .typeLabels .civ {
      margin-left: 2px;
  }
  #importExportBtns .typeLabels .ammo {
      margin-left: -1px;
  }

  .hud-global-metrics {
    width: 80%;
    padding: 1rem;
    padding-top: 5rem;
    font-size: 0.7rem;
  }
  .leaderboard-label { padding-left: 2rem; }
  #visualization.shifted-left { right: 10px; }
  .hud-metrics-toggle { width: 0.5rem; height: 0.5rem;}
}

.hidden {
  display: none;
}

.twitter-link {
  height: 2rem;
  width: 2rem;
  display: inline-block;
  vertical-align: middle;
  background-image: url('twitter-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0 2rem;
  opacity: 0.8;
}

.twitter-link:hover {
  opacity: 1;
}

.confidential {
  position: fixed;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: 0.8rem;
  padding: 1rem;
  background-color: rgba(0,0,0,0.9);
}
