/*
Theme Name: Vote.Utah.gov
Theme URI: http://utahinteractive.org
Description: Vote.Utah.Gov
Author: Tracie Wamsley
Author URI: http://utahinteractive.org
Version: 1
*/

/* Vote Appendings */


/* HEADER */
header nav ul li {        width: auto !important; margin-right: 40px;}
header nav ul li a {white-space: nowrap;}
.current_page_item a {color: #8B0F0A;}

/* FONT_AWESOME: proposed for master lt gov as well */
i.fa {padding-right: 10px;}

/* Homepage: Three CTAs */
/*.cta {width: 32% }*/
#CTAs {display:flex;}
.cta {margin:15px; background:white; display: flex; flex: 1;flex-direction: column;align-items: stretch;}
.cta .pitch {    font-size: 0.9em; padding: 0 15px; min-height:355px;    position: relative; }

#CTAs h2 {padding-top: 10px;font-size: 1.25rem;}
#cta_become h2 {background: url("images/icons/notary-cta-header-add.svg") #223853 no-repeat; padding-left:50px;}
#cta_manage h2 {background: url("images/icons/notary-cta-header-manage.svg") #223853 no-repeat; padding-left:50px;}
#cta_find   h2 {background: url("images/icons/notary-cta-header-find.svg") #223853 no-repeat; padding-left:50px;}
h2#cta_news    {background: url("images/icons/notary-header-info.svg") #223853 no-repeat; padding-left:50px;}
aside #events h2 {background: url("images/icons/notary-header-calendar.svg") #223853 no-repeat; padding-left:50px;}

#cta_become button {background: url("images/icons/notary-cta-add.svg") #223853 no-repeat; padding-left:60px;}
#cta_manage button {background: url("images/icons/notary-cta-manage.svg") #223853 no-repeat; padding-left:60px;}
#cta_find   button {background: url("images/icons/notary-cta-find.svg") #223853 no-repeat; padding-left:60px;}


.cta a:hover button {cursor: pointer;}
.cta button {width:90%; height: 60px; background:#18395F;    color: #FFFFFF;    font-size: 1.3rem;     border: 1px solid #051B36; text-align: left; position:absolute; bottom:15px;padding-bottom:8px;     background-position: 7px center !important;}
.cta a button:hover {background-color: #C3CAD2 !important; border-color: #C3CAD2; border-left:10px #8B0F0A solid}
.cta a button:hover, .cta a button:hover em {color: #223853;}

/* ANIMATIONS */
.cta a button {-webkit-transition: all 0.15s ease-in;  transition: all 0.15s ease-in;}



.cta button em {font-style: normal; color: #7D94B0; font-size:14px; margin-left: -5px;}
.cta button em:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
  }

#menu-main-menu { margin-left: 171px; }


/* MAIN: News */
.post h3 a, .snippets a  {text-decoration: none;}

/* MAIN: News ~ Detail: Social Links */
#socialize {border-top: 1px solid #dadada; margin-top:20px; }
ul.socialmedialist {padding-bottom:35px;}
ul.socialmedialist li {float: left; margin-right: 10px; font-size: 2em;}

/* MAIN: Content ~ Seminar Time Stamps */
.timeStamps {float:left; width:45%;margin-right: 3%;}
.timeStamps ul {margin: 0 !important; padding:0;}
.timeStamps li {list-style-type: none; margin-bottom: 10px; font-size: 13px;}
.timeStamps b {margin-right: 3px;}
.clearBoth {clear:both;}

.bottom-container {
  background-color: #fff !important;
  margin-top: -20px;
}

// BANNER

#banner {
  height: 300px;
  width: 100%;
  background-image: url(images/banner.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-top: 15px;

  &.noImage {
    background-image: none;
    text-align: center;
    height: 115px;
    border-bottom: 2px solid;
  }

}


/* GRID STUFF */
.grid-container {
  display: grid;
  grid-template-columns: 72px 280px 280px 280px 72px;
  text-align: center;
}

.grid-container li {
  font-size: 20px;
  width: 200px;
  margin: auto;
  padding-top: 15px;
  /*padding-bottom: 40px;*/
}

.grid-container li a {
  color: #fff;
  text-decoration: none;
  display: grid;
  grid-template-rows: 2fr 1fr;
  grid-row-gap: 18px;
}

.circle {
  background: #274069;
  width: 150px;
  height: 150px;
  margin: auto;
  border-radius: 50%;
  background-size: 75px 75px;
  background-repeat: no-repeat;
  background-position: center center;
}

.circle:hover {
  background: #fff;
  cursor: pointer;
  background-size: 75px 75px;
  background-repeat: no-repeat;
  background-position: center center;
}

.vote {
  grid-column-start: 2;
  grid-column-end: 3;
}

.find {
  grid-column-start: 2;
  grid-column-end: 3;
}

.vote .circle {
  background-image: url(images/icons/where-to-vote-white.svg);
}

.vote .circle:hover {
  background-image: url(images/icons/where-to-vote-blue.svg);
}

.track .circle {
  background-image: url(images/icons/mail-checkmark-white.svg);
}

.track .circle:hover {
  background-image: url(images/icons/mail-checkmark-blue.svg);
}

.learn .circle {
  background-image: url(images/icons/candidates-white.svg);
}

.learn .circle:hover {
  background-image: url(images/icons/candidates-blue.svg);
}

.find .circle {
  background-image: url(images/icons/search-white.svg);
}

.find .circle:hover {
  background-image: url(images/icons/search-blue.svg);
}

.register .circle {
  background-image: url(images/icons/how-to-reg-white.svg);
}

.register .circle:hover {
  background-image: url(images/icons/how-to-reg-blue.svg);
}

.request .circle {
  background-image: url(images/icons/mail-white.svg);
}

.request .circle .active {
  background-image: url(images/icons/mail-blue.svg);
}

.request .circle:hover {
  background-image: url(images/icons/mail-blue.svg);
}

.active {
  background: #fff !important;
  background-size: 75px 75px !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

.register .active {
  background-image: url(images/icons/how-to-reg-blue.svg) !important;
}

.request .active {
  background-image: url(images/icons/mail-blue.svg) !important;
}



/* BOTTOM GRID */
.bot-grid-container {
  display: grid;
  grid-template-columns: 237px 237px 237px 237px;
  grid-column-gap: 12px;
  overflow: hidden;
  text-align: center;
}

/*.bot-grid-container div {
  text-align: center;
}*/

.bot-grid-container li a {
  font-size: 16px;
  width: 200px;
  margin: auto;
  color: #5d5d5d;
  text-decoration: none;
}

.bot-grid-container li{
  background-color: #e7e7e7;
  padding: 20px 15px;
}

.bot-grid-container li:hover {
  cursor: pointer;
}

.bot-grid-container li:hover a{
  color: #fff;
}

.bot-vote:hover {
  background-color: #9aa2b0;
}

.candidates:hover {
  background-color: #766249;
}

.election-results:hover {
  background-color: #263f69;
}


.general:hover {
  background-color: #881211;
}

/* dropdown content */
.dropdown-content {
  visibility: hidden;
}

.dropdown-content a{
  text-decoration: none;
  padding: 8px;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #fff;
  display:inline-block;
  width: 80%;
}

.dropdown-content a:hover{
  background-color: rgba(0,0,0,0);
  color: #fff !important;
}

.show {
  visibility: visible;
}

ul {
  text-align: left;
}

ul li {
  padding-bottom: 15px;
}


#bot-vote-drop {
  background-color: #9aa2b0;
}

#bot-vote-drop a {
  color: #9aa2b0;
}

#candidates-drop {
  background-color: #766249;
}

#candidates-drop a {
  color: #766249;
}

#election-results-drop {
  background-color: #263f69;
}

#election-results-drop a {
  color: #263f69;
}

#primary-info-drop {
  background-color: #881211;
}

#primary-info-drop a {
  color: #881211;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #274069;
    margin: auto;
    padding: 0;
    border: 10px solid #2c2c2c;
    width: 50%;
    text-align: center;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

#modalTitle {
  width: 95%;
  padding-left: 2.5%;
  font-size: 24px;
}

.modal-content input[type=text] {
  width: 90%;
  border-radius: 6px;
  border: 0px;
  padding: 6px;
  font-size: 16px;
}

#remember-checkbox {
  text-align: left;
  width: 90%;
  padding-left: 4%;
}

#remember-checkbox input{
  width: 14px;
  height: 16px;
}

input[type=submit] {
  background-color: #fdbe2c;
  border: none;
  padding: 10px 15px 10px 15px;
  border-radius: 6px;
  font-size: 15px;
}

.buttons {
  padding: 30px;
}

.question {
  text-align: center;
}

.answers {
  display: inline-flex;
}

.answers a {
  padding-right: 20px;
}

.answers button {
  margin-right: 20px;
}

.btn {
  font-family: "Open Sans",Helvetica,Arial,Freesans,sans-serif;
  display: inline-block;
  width: auto;
  height: 2.5rem;
  margin: 0 0 0.5rem 0;
  padding: 0 1rem;
  border: none;
  border-radius: 3px;
  color: white;
  background: #1b758f;
  line-height: 2.5rem;
  border-bottom: 2px solid #12647c;
  box-shadow: none;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  vertical-align: bottom;
  -webkit-transition: background .4s;
  transition: background .4s;
}

.btn:hover {
  cursor: pointer;
  background: #1888a9;
}

.btn a {
  text-decoration: none;
  color: #fff;
}

.btn.continue {
  background: #4caf50;
  border-color: #3d8b40;
}

.btn.continue:hover {
  background: #6dc66d;
}

.btn.back {
  color: #3F3F3F !important;
  background: #dcdcdc;
  border-color: #c3c3c3;
}

.btn.back:hover {
  background: #ededed;
}

.btn.back a {
  color: #3F3F3F;
}

.hide {
  opacity:0;
  max-height: 0;
  // height: 0px;
  padding: 0 8px;
  overflow: hidden;
  transition: all .6s;
}

.hide.show {
  opacity:1;
  max-height: 1000px;
  // height: 150px;
  padding: 8px;
}



/*header stuff from agency*/
.dtsvote-c-header__right {
    position: absolute;
    right: 0;
    top: 0;
    padding: 1rem 1rem 0 0;
}

.dtsvote-c-header__right__social {
    display: flex;
    justify-content: center;
}

.dtsvote-c-header__band--blue a {
    text-decoration: none;
}

.dtsvote-c-header__right__social svg {
    fill: white;
}

.dtsvote-c-header__right__logout {
    margin-top: 0.5rem;
}

.dtsvote-btn--primary {
    background: #fdbe2c;
}
.dtsvote-btn {
    border: none;
    padding: .375rem .75rem;
    color: black;
    border-radius: .375rem;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    font-family: "Open Sans", sans-serif;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.dtsvote-u-pl-1 {
  padding-left: 20px;
}



/* SIDEBAR */
section #Links ul {min-height: auto;}
section #Links, section #WhatsNew {margin-left: 0;}

/* SIDEBAR - Events */
.event {overflow: auto;}
.event_date {background: #18395F; color:white; text-align: center; padding: 10px; width: 10%; margin-top:10px; margin-left: 3%; margin-right:5%; float:left; margin-bottom: 10px}
.event_date .number {font-size:1.5em;}
.event_details {width:70%; float:left;}
.event_details h3 {margin-bottom: 0;}
.event_details p  {margin-top: 0;}

/* FOOTER */
/* master proposal*/
footer #footerstateseal {background: url('images/logo/utah_state_seal.svg') no-repeat center center transparent}





/* ACCESSORIES */
.expander {margin-bottom: 30px;}
.expander .question {font-weight: bold; font-size: 16px;}
.expander .details {display:none;}
.expander .more::before {content:'+ '}
.expander .more.hide::before {content:'- '}





@media handheld, only screen and (max-width: 1024px) {
  .container {width:94% !important;}

  .grid-container {
    grid-template-columns: auto 30% 30% 30% auto;
  }

  .bot-grid-container {
    grid-template-columns: 1% 22.25% 22.25% 22.25% 22.25% 1%;
    grid-column-gap: 1%;
  }

  .bot-vote {
    grid-column-start: 2;
    grid-column-end: 3;
  }

  #bot-vote-drop {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 2;
    grid-column-end: 3;
  }

  #candidates-drop {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 3;
    grid-column-end: 4;
  }

  #election-results-drop {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 4;
    grid-column-end: 5;
  }

  #primary-info-drop {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 5;
    grid-column-end: 6;
  }


  #modalTitle {
    font-size: 19px;
  }

  /*section#Secondary #Content {width: 60% !important;}
  section#Secondary aside {width:33% !important;}*/

}

@media handheld, only screen and (max-width: 930px) {
  .bot-grid-container div p {
    font-size: 14px;
    width: 150px;
  }

  .square svg {
    width: 50px;
    height: 50px;
  }

  .bot-vote p, .election-results p, .primary-info p {
    padding-bottom: 29px !important;
  }



}

@media handheld, only screen and (max-width: 800px) {
  .container {width:94% !important;}

  #banner {
    background-size: cover;
    background-position: center center;
  }

  #CTAs {display: inline-block; }

  .grid-container div p {
    font-size: 16px;
    width: 175px;
  }

  .grid-container li  a {
        padding: 20px;
  }

  .circle svg {
    width: 50px;
    height: 50px;
  }

  .find .circle svg {
    width: 75px;
    height: 75px;
  }

  .circle {
    width: 125px;
    height: 125px;
  }

  .bot-grid-container {
    grid-template-columns: 1% 23.25% 23.25% 23.25% 23.25% 1%;
    grid-column-gap: 1%;
  }

  #modalTitle {
    font-size: 17px;
  }

}

@media handheld, only screen and (max-width: 700px) {
    .dtsvote-c-header__right {
      top: 40px;
    }
  }

@media handheld, only screen and (max-width: 683px) {

  .bot-grid-container {
    grid-template-columns: 1% 46% 46% 1%;
    grid-column-gap: 2%;
    grid-row-gap: 13px;
  }

  #bot-vote-drop {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 2;
    grid-column-end: 3;
    margin-top: -130px;
  }

  #candidates-drop {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 3;
    grid-column-end: 4;
    margin-top: -130px;
  }

  #election-results-drop {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 2;
    grid-column-end: 3;
    margin-top: -13px;
  }

  #primary-info-drop {
    grid-row-start: 3;
    grid-row-end: 4;
    grid-column-start: 3;
    grid-column-end: 4;
    margin-top: -13px;
  }

  .election-results {
    grid-column-start: 2;
    grid-column-end: 3;
  }


  .modal-content {
    width: 70%;
  }






}

/* Handhelds */
@media handheld, only screen and (max-width: 600px) {
  header, #utahgov_statewideheader {overflow: hidden;}
  header hgroup h1 {font-size: 1.8rem !important;}
  header hgroup h1 span { font-size: 0.63rem !important;;}
  header hgroup h1 {    width: 361px !important;}
  header nav ul,#menu-main-menu,header nav ul li {
      margin-left: 0 !important;
      margin-right: 0 !important;
  }

  section#Secondary #Content, section#Secondary aside,section #WhatsNew,section #Links {width: 100% !important;}
  section.container {margin: 0;}

iframe,.timeStamps {width: 100%;}


  .grid-container {
    display: grid;
    grid-template-columns: auto 50% 50% auto;
    grid-row-gap: 10px;
  }

  .learn {
    grid-column-start: 2;
    grid-column-end: 3;
  }

  .register {
    grid-column-start: 2;
    grid-column-end: 3;
  }

  .find {
    grid-column-start: 3;
    grid-column-end: 4;
  }

  .dtsvote-c-header__right {
    top: 27px;
  }

}


@media handheld, only screen and (max-width: 436px) {
  .dtsvote-u-pl-1 {
    padding-left: 10px;
  }

  .dtsvote-c-header__right__social svg {
    width: 20px;
  }
}

@media handheld, only screen and (max-width: 380px) {
  .dtsvote-c-header__right {
    top: 22px;
  }

  .dtsvote-u-pl-1 {
    padding-left: 5px;
  }

  .dtsvote-c-header__right__social svg {
    width: 20px;
  }
}

@media handheld, only screen and (max-width: 370px) {
  .dtsvote-c-header__right {
    top: 52px;
  }
}


/* Expand & Contract */
.details {display: none; cursor: pointer;}
