@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@400;700;900&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

:root {
  /** Fonts */
  --font-family-alt: Oswald;
  --font-family-main: "Work Sans";
  --font-icons: "Material Icons";
  
  /** Colors */
  --color-black: #3d3d3d;
  --color-text: var(--color-black);
  --color-link: #0892c4;
  --color-white: #fff;
  --color-background: var(--color-white);

}

/** Unset Material Icons size because we can't edit the Google Fonts stylesheet */
.material-icons {
  font-size: 1em;
}

/** Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family-main);
  color: var(--color-text);
  background: var(--color-background);
}

body {
  padding: 0;
  margin: 0;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

h1 {
  margin-top: 0;
  font-size: 55px;
  margin-bottom: 0.4em;
}

h2 {
  font-size: 38px;
  font-weight: bold;
}

h3 {
  font-size: 24px;
}

h4 {
  font-family: var(--font-family-alt);
  font-size: 1em;
  text-transform: uppercase;
  font-weight: normal;
}

h5 {
  font-family: var(--font-family-alt);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: normal;
}

li {
  margin-left: 1.2em;
  margin-bottom: 0.4em;
}

img {
  width: 100%;
  max-width: 100%;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

h1 strong {
  font-weight: 900;
}

.h-menu li {
  margin: 0;
  display: block;
  position: relative;
  text-decoration: none;
  transition-duration: 0.5s;
}

.h-menu ul {
  font-family: var(--font-family-alt);
  font-weight: 500;
  text-transform: uppercase;
  /* font-size: 20px; */
}


.h-menu li:focus-within a {
  outline: none;
}

/** End of dropdown */


/* Avatar */
.avatar {
  transition: all .2s;
  position: relative;
  z-index: 1; /* Prevent overlap flipping during transform */
}

.avatar.--fluid {
  width: 100%;
  padding-bottom: 100%;
}

.avatar.--linked:hover {
  transform: scale(1.1);
}


.colorshade--border[colorshade]:not([colorshade=""]) {
  border-color: var(--colorshade);
}

[colorshade][colorshade-props*="'border-left'"] {
  border-left-color: var(--colorshade);
}

[colorshade][colorshade-props*="'border'"] {
  border-color: var(--colorshade);
}

[colorshade][colorshade-props*="'color'"] {
  color: var(--colorshade-text);
}

[colorshade][colorshade-props*="'background'"] {
  background-color: var(--colorshade);
}

[colorshade][colorshade-props*="'background-colorshade'"] {
  background: linear-gradient(to right, var(--colorshade-background), #fff);
}

[colorshade][colorshade-props*="'text-shadow'"] {
  text-shadow: 
    2px 2px 0.15rem var(--colorshade-text-shadow),
    -1px -1px 0.15rem var(--colorshade-text-shadow),
    1px -1px 0.15rem var(--colorshade-text-shadow),
    -1px 1px 0.15rem var(--colorshade-text-shadow);
}

/** Tippy.js tooltips */
.tippy-box {
  /* Light theme */
  --tooltip-bg-color: #f7f7f7;
  --tooltip-text-color: var(--color-text);
  --tooltip-border: 1px solid #eee;

  /* Dark theme */
  --tooltip-bg-color: #333;
  --tooltip-text-color: white;
  --tooltip-border: 1px solid #222;

  --tooltip-arrow-color: var(--tooltip-bg-color);
  --tooltip-shadow: 0 1px 1rem rgba(0,0,0,.08);
}
.tippy-box[data-theme~="daneric"] {
  background-color: var(--tooltip-bg-color);
  color: var(--tooltip-text-color);
  border: var(--tooltip-border);
  border-radius: .5rem;
  box-shadow: var(--tooltip-shadow);
}
.tippy-box[data-theme~='daneric'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: var(--tooltip-arrow-color);
}
.tippy-box[data-theme~='daneric'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: var(--tooltip-arrow-color);
}
.tippy-box[data-theme~='daneric'][data-placement^='left'] > .tippy-arrow::before {
  border-left-color: var(--tooltip-arrow-color);
}
.tippy-box[data-theme~='daneric'][data-placement^='right'] > .tippy-arrow::before {
  border-right-color: var(--tooltip-arrow-color);
}


html,
body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0 !important;
}

.material-icons {
    font-size: 1rem;
}

.d-flex {
    display: flex !important;
}

.header-bg-color {
    background-color: #cf0d0d;  /* #6366f1; #2d9ac2; #6366f1; #13a7e5; */
    color: #fff;
}

header {
    padding: 0.5rem;
}

header>section {
    width: 60%;
    margin: 0 auto;
}

.justify-space-around {
    justify-content: space-around !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-space-evenly {
    justify-content: space-evenly !important;
}

.justify-space-between {
    justify-content: space-between !important;
}

.align-item-center {
    align-items: center;
}

.h-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 5px;
    /* width: 20%; */
}

.h-menu>ul {
    list-style-type: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px;
}

.h-menu>ul>li {
    margin-right: 0.8rem;
}

.h-menu>ul>li:hover {
    color: #80eff0 !important;
    cursor: pointer;
}

.h-menu>ul>li.active {
    color: #80eff0 !important; /*#80eff0;#a0e0f8*/
}

header a {
    color: unset !important;
}

.h-logo {
    max-width: 150px;
    min-width: 80px;
    height: 67px;
}

.h-logo > img {
    width: 100%;
    height: 100%;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.m-para {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-bottom: 1.75rem;
    margin-top: 1.25rem;
    /* padding: 1rem; */
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

main {
    width: 70%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    min-height: 72%;
}

footer {
    margin-top: 1.5rem;
    padding: 2rem;
    background-color: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

:root {
    --colorshade-0: #009345;
    --colorshade-0-text: #009345;
    --colorshade-1: #6AB145;
    --colorshade-1-text: #6AB145;
    --colorshade-2: #B4C73F;
    --colorshade-2-text: #93a22f;
    --colorshade-3: #fad233;
    --colorshade-3-text: #cc8f00;
    --colorshade-4: #f89c1b;
    --colorshade-4-text: #df8507;
    --colorshade-5: #c85146;
    --colorshade-5-text: #c85146;
}

[colorshade="0"] {
    --colorshade: rgb(0, 147, 69);
    --colorshade-text: rgb(0, 147, 69);
    --colorshade-text-shadow: rgba(0, 0, 0, .14);
    --colorshade-background: rgb(0, 147, 69, 25%);
}

[colorshade="1"] {
    --colorshade: rgb(106, 177, 69);
    --colorshade-text: rgb(106, 177, 69);
    --colorshade-text-shadow: rgba(0, 0, 0, .14);
    --colorshade-background: rgb(106, 177, 69, 25%);
}

[colorshade="2"] {
    --colorshade: rgb(180, 199, 63);
    --colorshade-text: rgb(147, 162, 47);
    --colorshade-text-shadow: rgb(147, 162, 47);
    --colorshade-background: rgb(180, 199, 63, 25%);
}

[colorshade="3"] {
    --colorshade: rgb(250, 210, 51);
    --colorshade-text: rgb(204, 143, 0);
    --colorshade-text-shadow: rgb(204, 143, 0);
    --colorshade-background: rgb(250, 210, 51, 25%);
}

[colorshade="4"] {
    --colorshade: rgb(248, 156, 27);
    --colorshade-text: rgb(223, 133, 7);
    --colorshade-text-shadow: rgb(223, 133, 7);
    --colorshade-background: rgb(248, 156, 27, 25%);
}

[colorshade="5"] {
    --colorshade: rgb(200, 81, 70);
    --colorshade-text: rgb(200, 81, 70);
    --colorshade-text-shadow: rgba(0, 0, 0, .14);
    --colorshade-background: rgb(200, 81, 70, 25%);
}

.text-center {
    text-align: center;
}

.sub-tabs {
    margin: 1rem 0 0.5rem 0;
}

.sub-tabs > ul {
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(3, 33.333%);
    cursor: pointer;
}

.sub-tabs li {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 1px solid #e5e7eb;
    margin-left: 0;
    line-height: 2;
}

.sub-tabs li:hover, .sub-tabs li.active{
    color: #6366f1;
    border-bottom-color: #6366f1 !important;
}

@media only screen and (max-width: 767px) {
    .h-logo {
        display: none !important;
    }

    .h-menu>ul {
        display: block !important;
        font-size: 0.8rem;
    }

    .h-menu>ul>li {
        padding: 5px;
        margin: 0;
    }

    .h-title {
        font-size: 1.1rem;
    }

    .m-para {
        font-size: 1.25rem;
    }

    
    .v-container .section_1 {
      width: 100% !important;
      margin: 0 !important;
    }

    .v-container {
      margin: 0 !important;
      display: block !important;
    }

    .section_2 {
      display: block !important;
    }

    .section_2 div {
      width: 100% !important;
    }

    .section_2 div img {
      width: 50% !important;
    }

    .section_2 div span {
      width: 80% !important;
    }

}

@media only screen and (max-width: 1024px) {

    main,
    header>section {
        margin: 0 !important;
        width: 100% !important;
    }

}

@media only screen and (max-width: 1020px) {
  .d-content {
    display: block !important;
  }
}

.material-symbols-outlined {
    font-size: 1.15rem;
    margin-left: 0.25rem;
}
.material-symbols-outlined:hover {
    cursor: pointer;
    color: #6366f1;
}

.districts {
    margin: 0 1rem;
    position: absolute;
    z-index: 10;
    right: 4%;
    top: 1rem;
    select {
        border: 1px solid;
    }
}

.font-bold {
  font-weight: bolder;
}

@media only screen and (max-width: 880px) {
  .h-title {
    font-size: 1rem !important;
  }
}

.search-container {
  text-align: right;
  margin-bottom: 0.25rem;
  position: relative;
}

.search-container .search_icon {
  position: absolute;
  top: 28%;
}

.search-container input {
  border: 1px solid;
  border-radius: 5px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}

.no-data {
  padding: 1rem;
}

.submenu ul {
  display: none;
}

.submenu:hover ul {
  display: block !important;
  position: absolute;
  z-index: 10;
  color: #53575c;
  background: #ffffffc7;
  width: 100%;
}
.submenu:hover ul li {
  padding: 10px;
  cursor: initial;
}
.submenu:hover ul li a {
  cursor: pointer;
}
.submenu:hover ul li:hover {
  background: #53575c;
  padding: 10px;
  color: #fff;
}

.truncate {
  overflow: hidden;
  /* white-space: nowrap; */
  text-overflow: ellipsis;
  width: 65%;
  padding: 5px 0;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.dates-info {
  background: linear-gradient(45deg,#0a3a5a,#186c93);
  color: #fff;
  padding: 1rem;
}

.d-head {
  padding: 1rem 0;
}

.n-election {
  background: #0a3a5a;
  -webkit-box-shadow: 0 4px 10px rgba(0,0,0,.2);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  border-radius: 6px;
  padding: 32px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.n-election .title {
  text-transform: uppercase;
  padding: 5px 10px;
  background: #25506c;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.n-election .date {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.n-election .location, .n-election .location a {
  color: #b7cbd5;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.n-election .description {
  word-wrap: break-word;
  margin-bottom: 0.5rem;
}

.r-deadlines {
  color: #fff;
  border: 4px solid rgba(238,244,248,.2);
  border-radius: 0 0 6px 6px;
  padding: 1.5rem;
  position: relative;
  z-index: 0;
  margin: 0 0 0 -6px;
}

.r-deadlines .title {
  color: #b7cbd5;
  font-weight: 700;
  margin-bottom: 24px;
  margin-bottom: 1.5rem;
}

.r-deadlines .deadline-row {
  border-bottom: 1px solid rgba(238,244,248,.2);
  margin-bottom: 16px;
  padding-bottom: 0.25rem;
}

.s-election-row {
  margin: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid #fff;
}

.s-election-row .date {
  padding: 1rem;
    background: #0a3a5a;
    margin: 1rem;
    border-radius: 10px;
}

.s-election-row .e-type {
  color: #b7cbd5;
  font-weight: bold;
}

.s-election .all-info {
  text-align: right;
}

.s-election .all-info a{
  color: #fff;
  text-decoration: underline;
}

.d-content {
  display: flex;
}

.d-inline-flex {
  display: inline-flex !important;
}

hr {
  border: 2px solid rgba(0,0,0,.15);
}

.expand_less, .expand_more {
  right: 2%;
}

.badge {
  padding: 0.5rem;
  color: #fff !important;
}

.d-block {
  display: block;
}

.w-100 {
  width: 100%;
}

.past-info {
  opacity: 0.7;
  text-decoration: line-through;
}

.highlights-badge {
  border: 1px solid;
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
  font-weight: bold;
  font-size: 11px;
  width: 100%;
}

.color-green {
  color: green !important;
}

.color-red {
  color: red !important;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.preferred {
  position: absolute;
  top: 5px;
  left: 5px;
  color: #009345;
}

.weight-normal {
  font-weight: normal !important;
}
.independent-election-symbol {
  background-image: url("../images/Independent_Party_logo.png");
}
.bg-img-style {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.democratic-election-symbol {
  background-image: url("../images/Democratic_logo.png");
}
.republican-election-symbol {
  background-image: url("../images/Republican_logo.png");
}
.libertarian-election-symbol {
  background-image: url("../images/Libertarian_logo.png");
}


.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: #0d6efd;
  transition: width .6s ease;
}

.progress {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  font-size: .75rem;
  background-color: #e9ecef;
  border-radius: .25rem;
  font-weight: bold;
}
