@import url('https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,600,600i,700,700i|Bebas+Neue:400&display=swap');

/* defaults */

html {
  position: relative;
}

body {
  margin: 0;
  font-family: 'Roboto';
  font-size: 16px;
  line-height: 1.5;
  color: #596472;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0 0 10px;
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child {
  margin-bottom: 0;
}

h1,
h2 {
  font-family: 'Bebas Neue';
  font-weight: 400;
  text-transform: uppercase;
  color: #000B1A;
}

h1 {
  font-size: 80px;
  line-height: 115%;
}

h2 {
  font-size: 56px;
  line-height: 120%;
}

a {
  text-decoration: none;
  color: inherit;
	transition: .3s;
}

p a {
  font-weight: bold;
  text-decoration: underline;
}

*:focus {
  outline: none;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
  font-size: 1em;
	transition: .3s;
}

*::placeholder {
  color: inherit;
  opacity: .5;
}

.button {
	transition: .3s;
}

ul, ol {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

@media (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

@media (min-width: 1240px) {
  .container {
    max-width: 1240px;
  }
}

@media (min-width: 992px) {
  ::-webkit-scrollbar {
    width: 2px;
    height: 5px;
  }
  
  ::-webkit-scrollbar-track {
    background: #F5F8FC;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #202F29;
  }
}

@media (max-width: 991px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 28px;
    line-height: 115%;
  }

  h2 {
    font-size: 24px;
    line-height: 115%;
  }
}

/*  */

.graph {
  padding-top: 0 !important;
}

.graph h3 {
  font-size: 20px;
  line-height: 110%;
  color: #272928;
}

.graph .container {
  padding: 32px;
  max-width: 1210px;
  margin-top: -300px;
  background: #FFFFFF;
  font-size: 14px;
  line-height: 150%;
  color: #808792;
}

.graph .container-fluid {
  max-width: none;
  margin-top: 0;
}

.graph .introduction {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.graph h2 {
  font-size: 24px;
  line-height: 135%;
  color: #334051;
}

.graph .info div {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.graph .info img {
  margin-right: 8px;
}

@media (max-width: 991px) {
  .graph .container {
    margin-top: 0;
    padding: 60px 15px 15px;
    min-height: 0;
  }

  .graph .container-fluid {
    padding-top: 40px;
  }

  .graph .introduction {
    display: block;
  }

  .graph .info {
    display: none;
  }

  .graph h3 {
    font-size: 18px;
  }
}

/*  */

.graph .middle > .top {
  padding: 18px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.graph-legend {
  display: flex;
  white-space: nowrap;
  overflow: auto;
  height: 29px;
  margin-left: 20px;
}

.candidate-legend {
  display: flex;
  flex-direction: row-reverse;
}

.candidate-legend:not(:last-child) {
  padding-right: 12px;
}

.candidate-legend .odd {
  font-family: 'Bebas Neue';
  font-size: 20px;
  line-height: 110%;
  padding-right: 4px;
}

.graph .middle > .bottom {
  display: flex;
}

.graph-sidebar {
  width: 240px;
  flex: 0 0 240px;
  max-height: 470px;
  overflow: auto;
  direction: rtl;
  border-right: 2px solid #DEE1E6;
  padding: 0 16px;
}

.graph-sidebar .element {
  direction: ltr;
  border: 1px solid transparent;
  border-bottom-color: #DEE1E6;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  transition: .3s;
}

.graph-sidebar .element:hover {
  border-color: transparent #DEE1E6 #DEE1E6;
}

.graph-sidebar .element:first-child:hover {
  border-color: #DEE1E6;
}

.graph-sidebar .area-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.graph-sidebar .left {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.graph-sidebar .left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color .3s;
  cursor: pointer;
}

.graph-sidebar .element:hover .left::before {
  background: rgba(0, 0, 0, 0.6) url(https://static.oddsscanner.com/wp/sites/2/candidate-hovertoadd.png) center no-repeat;
}

.graph-sidebar .element.active .left::before {
  background: rgba(0, 0, 0, 0.6) url(https://static.oddsscanner.com/wp/sites/2/candidate-added.svg) center no-repeat;
}

.graph-sidebar .element.active:hover .left::before {
  background-image: url(https://static.oddsscanner.com/wp/sites/2/candidate-hovertoremove.png);
}

.graph-sidebar .right {
  flex: 1;
  padding-left: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.graph-sidebar .odd {
  font-family: 'Bebas Neue';
  font-size: 24px;
  line-height: 110%;
  color: #120B66;
}

.graph-sidebar .chance-to-win {
  font-size: 10px;
  line-height: 150%;
}

.graph-sidebar .advertiser {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-sidebar .advertiser img {
  width: 100%;
}

@media (max-width: 991px) {
  .odds-graph {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .graph .middle > .top {
    display: block;
  }

  .graph .last-updated-date {
    display: none;
  }

  .graph-legend {
    margin: 100px 0 0;
  }

  .graph .middle > .bottom {
    display: block;
  }

  .graph-sidebar {
    display: flex;
    padding: 0;
    margin: -125px 0 65px;
    border-right: 0;
    width: auto;
    direction: ltr;
    white-space: nowrap;
    border-bottom: 1px solid #DEE1E6;
  }

  .graph-sidebar .element {
    border: 0;
    padding: 0 0 10px;
  }

  .graph-sidebar .element:not(:last-child) {
    margin-right: 32px;
  }

  .graph-sidebar .right {
    padding-left: 10px;
  }

  .graph-sidebar .advertiser {
    margin-left: 6px;
  }

  .graph-sidebar .chance-to-win {
    display: none;
  }
}

/*  */

.filter-dropdown {
  position: relative;
}

.filter-dropdown > div:first-child {
  width: 240px;
  height: 56px;
  border: 2px solid #DEE1E6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  color: #596472;
  cursor: pointer;
  margin-bottom: 4px;
  background: #FFF;
  transition: .3s;
}

.filter-dropdown:hover .dropdown,
.filter-dropdown > div:first-child:hover {
  border-color: #939998;
}

.filter-dropdown .dropdown.hide {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.filter-dropdown .dropdown {
  position: absolute;
  width: 100%;
  top: 54px;
  background: #FFF;
  z-index: 1;
  border: solid #DEE1E6;
  border-width: 0 2px 2px;
  transition: .3s;
}

.dropdown-element {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  color: #596472;
  cursor: pointer;
  transition: .3s;
}

.dropdown-element:hover {
  background: #F5F8FC;
}

.dropdown-element:nth-child(n+2) .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

@media (max-width: 991px) {
  .filter-dropdown > div:first-child {
    width: auto;
    margin-bottom: 0;
  }
}

/*  */

.google-visualization-tooltip {
  padding: 10px !important;
  box-shadow: 0px 20px 80px 20px rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  border: 0 !important;
  color: #000B1A;
  font-weight: 500;
  line-height: 1.5;
}

/*  */

.graph .container > .bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}

.bottom > .top > .embed div {
  display: flex;
  flex-direction: row-reverse;
  font-family: 'Bebas Neue';
  font-size: 16px;
  line-height: 150%;
  color: #939998;
  cursor: pointer;
}

.bottom > .top > .embed img {
  margin-right: 6px;
}

.provided-by a {
  display: flex;
  font-size: 12px;
  line-height: 150%;
  color: #3F4543;
}

.provided-by img {
  margin-left: 4px;
}

/*  */

.pop-up {
  position: fixed;
  top: calc(50% - 135px);
  left: calc(50% - 175px);
  width: 350px;
  background: #FFFFFF;
  box-shadow: 0px 20px 80px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
}

.pop-up.hide {
  display: none;
}

.pop-up .close {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.pop-up .close img {
  width: 32px;
  opacity: .5;
}

.pop-up .embed div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  font-family: 'Bebas Neue';
  font-size: 24px;
  line-height: 110%;
  color: #121212;
  padding-bottom: 8px;
}

.pop-up .embed img {
  margin-right: 8px;
}

.pop-up textarea {
  width: 100%;
  height: 124px;
  margin-bottom: 16px;
  border: 1px solid #939998;
  background: #F7FCFB;
  padding: 8px;
  font-size: 12px;
  line-height: 150%;
  color: #3F4543;
  overflow: hidden;
}

.pop-up .bottom {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.pop-up .copy {
  padding: 10px 18px;
  background: #F7FCFA;
  border: 1px solid #E9EEEC;
  border-radius: 2px;
  font-family: 'Bebas Neue';
  font-size: 16px;
  line-height: 150%;
  color: #202F29;
  cursor: pointer;
}

.pop-up-copied {
  color: #202F29;
}

@media (max-width: 349px) {
  .pop-up {
    max-width: calc(100% - 20px);
    left: 10px;
    padding-right: 15px;
    padding-left: 15px;
  }
}
