/**
 * Created By: Chloe Focke
 */

@font-face {
  font-family: "Libre Frankline";
  src: url("https://civicrm.adoptrevolution.org/themes/contrib/adopt_bootstrap/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf");
}

@font-face {
  font-family: "EBGaramond";
  src: url("https://civicrm.adoptrevolution.org/themes/contrib/adopt_bootstrap/fonts/EBGaramond/EBGaramond-VariableFont_wght.ttf");
}

/* _____ HIDE _____ */
/* hide header */
body.page-civicrm header#navbar div.navbar-header{
   /*display: none; */
}

body.page-civicrm div#civicrm-footer{
  display: none;
}

body.page-civicrm-contribute{
  background: url("https://civicrm.adoptrevolution.org/themes/contrib/adopt_bootstrap/img/hg_neg2.jpg");
}

header#navbar,
div.main-container,
footer.footer.container{
  max-width: 1200px;
  margin: 0 auto;
}

div.main-container{
  width: 100%;
  background-color: #ffffff;
}

/* _____ Fonts _____ */
h1{
  font-family: "EBGaramond", serif;
}

h1.page-header{
  font-family: "Libre Frankline", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
}

.crm-container .crm-section h3{
  font-family: "Libre Frankline", sans-serif;
  font-weight: 400;
  font-size: 20px;
  background-color: unset;
}

div.main-container div.header-dark{
  background: none;
  font-size: 20px;
  font-weight: 400;
  font-family: "Libre Frankline", sans-serif;
  color: #000000;
}

.page-civicrm .dialog-off-canvas-main-canvas a, .page-civicrm .dialog-off-canvas-main-canvas p, .page-civicrm .dialog-off-canvas-main-canvas label, .page-civicrm .dialog-off-canvas-main-canvas span, .page-civicrm .dialog-off-canvas-main-canvas div{
  font-size: 20px;
}

.page-civicrm .dialog-off-canvas-main-canvas a, .page-civicrm .dialog-off-canvas-main-canvas p, .page-civicrm .dialog-off-canvas-main-canvas label, .page-civicrm .dialog-off-canvas-main-canvas span, .page-civicrm .dialog-off-canvas-main-canvas div{
  font-family: "Libre Frankline", sans-serif;
}

p{
  text-decoration: none;
  line-height: 1.25;
  margin: 10px 0 20px;
}

fieldset legend{
  margin: 10px 0;
}

/* Sets the font family of bank account text to serifless to improve readbility */
div.contribution_footer_text-section p{
  font-family: "Libre Frankline", sans-serif;
}

div#intro_text strong{
  font-family: "Libre Frankline", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

div.label{
  color: #404040;
}

/* --- Button --- */
/* Button Container */
form#Main div.crm-submit-buttons{
  display: flex;
  justify-content: center;
  height: auto;
}
div#thankyou_footer p a,
body.page-civicrm div#crm-container button{
  background-color: rgb(204, 0, 0);
  font-size: 20px;
  color: #ffffff;
  height: 28px;
  padding: 13px 23px;
  box-sizing: content-box;
  border: none;
  border-radius: 0;
  text-shadow: none;
}

div#thankyou_footer{
  display: flex;
  justify-content: center;
  height: auto;
}

div#thankyou_footer p{
  height: auto;
}


/* _____ HEADER _____ */
/* set size of header logo */
header#navbar{
  padding: 0;
  margin: 0 auto;
  border: none;
  width: unset;
  background-color: #ffffff;
  background-image: none;
}

div#navbar-collapse{
  margin: 0;
  padding: 0;
}

header#navbar div.collapse{
  display: unset;
}

header#navbar > div.container{
  width: unset;
  padding: unset;
}

header#masthead{
  display: flex;
}

/* Blue Underline for the header for visual separation */
div#navbar-collapse nav{
  border-bottom: solid 2px #008bd2;
}

/* Donation Link */
header#masthead div.mobile-spenden{
  background: #008bd2;
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  display: none;
  /* Must not be displayed
   * since the user already is
   * on the donation page */
}

header#masthead div.mobile-spenden div.headline{
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  line-height: 20px;
}
header#masthead div.header-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

header#masthead div.header-top p.site-description{
  font-family: "Libre Frankline", sans-serif;
  font-weight: 500;
  color: #404040;
  font-size: 16px;
  margin: 0 0 10px 20px;
}

header#masthead div.header-top ul#language-menu{
  display: none;
}

header#masthead div.header-bottom{
  margin: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

header#masthead div.header-bottom div.mobile-nav{
  display: none;
}


header#masthead div.header-bottom div.mobile-nav svg{
  color: #029ed3;
}

/* Rules for mobile header
 * Is active on all pages, because a desktop header was not required
 */
header#masthead{
  display: flex;
  flex-direction: column-reverse;
}
.site-header .social{
  display: none;
}
.header-middle{
  display: none;
}

header a.custom-logo-link img.custom-logo{
  height: 55px;
  width: 137px;
  max-width: 100%;
}

/* Hides the Donation button since, the user is already on the donation page */


svg.svg-inline--fa{
  width: 0.875em;
  height: 1em;
  font-size: 55px;
}

/* _____ INPUT _____ */
/* --- Text Field --- */
body.page-civicrm div#crm-container input[type=text]{
  border-radius: 0;
  border: solid 1px rgb(204,204,204);
  background-color: #ffffff;
  background-image: none;
}

body.page-civicrm div#crm-container div.crm-form-select a{
  border-radius: 0;
  background-image: none;
}

/* Added important to override another important rule */
div.crm-section div.content div.crm-form-select{
  width: 90% !important;
  max-width: 350px;
}

#crm-container div.crm-section div.content input[type=text]{
  width: 90%;
  max-width: 350px;
  font-size: 20px;
  box-sizing: border-box;
}

.page-civicrm .crm-option-label-pair input{
	margin-right: 10px;
}
	

/* --- Fieldset --- */
body.page-civicrm-contribute fieldset > legend{
  font-size: 20px;
  font-weight: 700;
  font-family: "Libre Frankline", sans-serif;
  line-height: 26px;
  hyphens: none;
  color: #404040;
  padding: 0;
}

/* Decription Text */
#crm-container fieldset div.helprow-pre div.description,
#crm-container fieldset div.helprow-post div.description{
  font-family: "Libre Frankline", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #404040;
}

/* Ensures that links in descriptions have the same font size as the discription */
#crm-container fieldset div.helprow-post div.description a{
  font-size: 14px;
}
div.crm-form-select{
  width: auto !important;
  max-width: 250px;
}

div.crm-section div.label {
  text-align: left; /* Overwrites a bootstrap value */
}

div.crm-section div.label label{
  margin: 0;
}

div.crm-section div.content input[type=radio], input[type=checkbox]{
  align-self: baseline;
}

div.is_recur-section div.label{
  display: none;
}

#crm-container div.is_recur-section div.content{
  display: grid;
  grid-template-columns: 14px 1fr 0 2fr 28px;
  font-size: 0;
}

div.is_recur-section div.content label{
  margin-bottom: 0;
  align-self: center;
}

div.is_recur-section div.content input[type=checkbox]{
  align-self: auto;
}

/* Rules for input and lables for smaller screens */
@media screen and (max-width: 500px) {
  div.other_amount-section,
  div.contribution_amount-section{
    display: grid;
    grid-template-columns: 1fr;
  }
  fieldset div.crm-section.form-item:not(.billing_mode-section, .helprow-pre, .helprow-post){
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 0;
  }
  fieldset div.crm-section.form-item div.label label{
    float: left;
  }
  div.crm-section div.label{
    justify-content: start;
  }
  #crm-container div.crm-section div.content input[type=text]{
    width: 100%;
    max-width: unset;
  }
  div.crm-section div.content div.crm-form-select{
    width: 100% !important;
    max-width: unset;
  }
  #crm-container div.is_recur-section div.content{
    display: grid;
    grid-template-columns: 14px 1fr 0;
  }
  div.is_recur-section div.content div#s2id_frequency_unit{
    grid-column: 1 / 4;
    width: 100%;
  }
  div div.other_amount-section,
  div div.contribution_amount-section{
    display: grid;
    grid-template-columns: 1fr;
  }
  fieldset.billing_mode-section div.crm-section{
    grid-template-columns: 1fr;
  }
  body fieldset div.crm-section:not(.billing_mode-section, .helprow-pre, .helprow-post){
    display: grid;
    grid-template-columns: 1fr;
  }
  div.crm-section div.label{
    text-align: left;
    padding-left: 0;
  }
}

.crm-public-form-item div.crm-form-select a.select2-choice{
  background-color: #ffffff;
  color: #404040;
  border: 1px solid #c0c0c0;
}

.crm-public-form-item div.crm-form-select a.select2-choice span{
  width: max-content;
}

/* Widths of CRM-section and fieldset label and content */
div.other_amount-section,
div.section-pricesetTotal,
div.contribution_amount-section{
  display: grid;
  grid-template-columns: 1fr 2fr 0;
}

div#crm-container div.crm-section > div.content{
  margin: 0;
}

div#crm-container div.crm-section > div.label{
  width: unset;
}

fieldset div.crm-section:not(.billing_mode-section, .helprow-pre, .helprow-post){
  display: grid;
  grid-template-columns: 1fr 2fr 0;
  margin: 5px 0;
}

div.crm-section div.content div > span{
  display: flex;
}

div.crm-section.form-item div.content{
  display: flex;
}

.editrow_custom_116-section .crm-option-label-pair{ /*Newsletter */
	display: grid;
	grid-template-columns: min-content 1fr;
}

.crm-section.payment_processor-section .content:has(.crm-option-label-pair) {
	display: grid;
	grid-template-columns: 1fr 0;
	gap 5px;
}

/* _____ FOOTER _____ */
footer.footer.container{
  padding: 0;
  width: unset;
}
footer a.custom-logo-link img.custom-logo{
  max-width:  230px;
  height: 92px;
}

footer div.site-info{
  display: flex;
  background-color: #ffffff;
  justify-content: space-between;
  margin: 20px 0;
  padding: 30px;
  align-items: flex-end;
}

@media screen and (max-width: 800px) {
  footer div.site-info {
    flex-direction: column;
    align-items: center;
    color: #029ed3;
  }
}

#language-menu{
  margin: 0 10px 5px 0;
}

#footer-menu{
  margin: 0;
}

header #language-menu,
footer #footer-menu{
  display: flex;
  font-size: 14px;
  padding: 0;
  justify-content: center;
  list-style: none;
}

header #language-menu li a,
footer #footer-menu li a{
  color: #444444;
  font-family: "Libre Frankline", sans-serif;
  text-decoration: none;
  font-size: 14px;
}

footer #footer-menu li:not(:last-child) a::after{
  content: "|";
  margin: 0 5px;
}

header #language-menu li:not(:last-child) a::after{
  content: "|";
  padding: 0 10px;
}

header #language-menu li:last-child a::after{
  content: "";
  padding: 0 10px;
}

.social{
  font-size: 18px;
}

div.social img{
  height: 37px;
  width: 37px;
}
