:root{
  --box-color: #572D7B;
  --image-border-color: #FAAF3C;
  --font-color: white;
  --border-color: white;
  --nav-font-border:#666666;
  --nav-font-border-hover: #7d7d7d;
  scrollbar-color: var(--box-color) #fff;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: var(--box-color);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(77,38,112,1);
}

body {
  background-color: white;
  font-family: Roboto, Helvetica, Arial, serif, "monospace";
  color: var(--font-color);
  padding: 0px;
  margin: 0px;
}

.entry-header{
    display: none;
}

.topNav{
  position: sticky;
  padding: 0px;
  background-color: white;
  z-index: 100;
  margin: 0px;
  top: 0;
  left: 0;
  width: 100%;
  height: 58px;
  box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.10), 0px 0px 15px 0 rgba(0, 0, 0, 0.05);
}

.topNav img{
  position: relative;
  top: 4px;
  height: 49px;
  padding-left: 30px;
}

.topNav #navLogo{
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

.topNav #navLogo:hover {
  cursor: pointer;
}


#topNavMain ul {
  float: right;
  margin: 0;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  align-items: center;
  list-style: none;
  height: 58px;
}

#topNavMain ul li{
  float: left;
  padding-right: 22px;
  height: auto;
}

.navLinks li a{
  color: var(--nav-font-border);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

#topNavMobile {
  display: none;
}

#navDonate {
  background-color: var(--box-color);
  border-radius: 3px;
  padding: 5px 10px;
  color: white !important;
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

#navDonate:hover{
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  opacity: .7;
}

#navFundraise {
  border: 1px solid var(--nav-font-border);
  border-radius: 3px;
  padding: 5px 10px;
}

#navFundraise:hover {
  border: 1px solid var(--nav-font-border-hover);
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  opacity: .7;
}

#navFundraise:hover, #navWhat:hover, #navAbout:hover, #navGet:hover {
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
  opacity: .7;
}

#topNavMobile #hamburger{
  position: relative;
  float: right;
  top:9px;
  padding-right: 30px;
  height: 40px;
  width: 40px;
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

#topNavMobile #hamburger:hover{
  cursor: pointer;
  opacity: .7;
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

#navSliderCheckbox {
  display: none;
}

.topNav label, #topNavMobile label {
  position: absolute;
  top: 19px;
  right: 30px;
  height: 20px;
  width:30px;
  z-index:101;
  display: grid;
  grid-template-columns: 30px;
  grid-template-rows: 2px 2px 2px;
  align-content: space-between;
}

.navSliderHamburgerBar {
  height: 3px;
  width: 30px;
  border-radius: 2px;
  background-color: #7d7d7d;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

#mobileTrayHolder{
  height: 300px;
  transform: scaleY(0);
  top:58px;
  width: 300px;
  margin-right: auto;
  margin-left: auto;
  left: 0;
  right: 0;
  position: absolute;
  background: white;
  z-index: -100;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
  box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.10), 0px 0px 15px 0 rgba(0, 0, 0, 0.05);
  transform-origin:  top;
  border-top: 2px solid #7d7d7d;
  box-sizing: border-box;
}

#navSliderCheckbox:checked ~ label #burgerBarTop {
  -webkit-transform: translateY(9px) rotateZ(45deg);
  -moz-transform: translateY(9px) rotateZ(45deg);
  -ms-transform: translateY(9px) rotateZ(45deg);
  -o-transform: translateY(9px) rotateZ(45deg);
  transform: translateY(9px) rotateZ(45deg);
}

#navSliderCheckbox:checked ~ label #burgerBarMiddle {
  opacity: 0;
}

#navSliderCheckbox:checked ~ label #burgerBarBottom {
  -webkit-transform: translateY(-9px) rotateZ(-45deg);
  -moz-transform: translateY(-9px) rotateZ(-45deg);
  -ms-transform: translateY(-9px) rotateZ(-45deg);
  -o-transform: translateY(-9px) rotateZ(-45deg);
  transform: translateY(-9px) rotateZ(-45deg);
}

#navSliderCheckbox:checked ~ #mobileTrayHolder{
  height: 300px;
  display: block;
  transform: scaleY(1);
}

#mobileNavList {
  display: grid;
  padding: 0px 20px;
  margin: 0px;
  width: 260px;
  grid-template-columns: 260px;
  grid-template-rows: 60px 60px 60px 60px 60px;
  justify-items: center;
  list-style:none;
}

#mobileNavList li {
  width: 100%;
  height: 60px;
}

#mobileNavList li:first-child + li + li,
#mobileNavList li:first-child + li + li + li {
  border-bottom: 2px solid #adadad;
  box-sizing: border-box;
}

.mobileLink {
  position: absolute;
  width: 80%;
  height: 40px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  line-height: 40px;
  box-sizing: border-box;
  padding: 0px;
}

#mobileNavList li #navDonate,
#mobileNavList li #navFundraise,
#mobileNavList li #navWhat,
#mobileNavList li #navAbout,
#mobileNavList li #navGet{
  padding: 0px;
  margin-top: 10px;
}

/*----------------------Start Filter Styling--------------------------*/

#child-filter-form{
  width: 100%;
  height: auto;
  display: grid;
  grid-template-areas: "child-filter-form-text ."
                        "child-filter-country-selector child-filter-submit";
  grid-template-columns: 175px 100px;
  grid-template-rows: 30px 40px;
  grid-column-gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

#child-filter-form input[type=submit] {
    padding:5px 15px;
    height: 100%;
    background: var(--box-color);
    color: white;
    border:0 none;
    cursor:pointer;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    grid-area: child-filter-submit;
    font-size: 17px;
}

#child-filter-country-selector{
  height: 100%;
  grid-area: child-filter-country-selector;
  font-size: 17px;
}

#child-filter-form-text{
  display: inline-flex;
  align-items: center;
  text-align: right;
  grid-area: child-filter-form-text;
  font-size: 17px;
  font-weight: 700;
}

/*----------------------End Filter Styling--------------------------*/


#sponsorship-header{
  display:block;
  color:black;
  width:100%;
  text-align: center;
  margin-top:50px;
  font-size:70px;
  margin-bottom: 30px;
}

#passed-message{
  margin:auto;
  width:100%;
  text-align:center;
}

#main-container{
  padding-top: 10px;
  width: 1500px;
  margin-right: auto;
  margin-left: auto;
  display: grid;
  grid-auto-rows: 625px;
  grid-template-columns: 500px 500px 500px;
  justify-items: center;

}

#child-entry-container{
  width: 320px;
  height: 625px;
  display: grid;
  grid-template-columns: 320px;
  grid-template-rows: 125px 500px;
  grid-template-areas: "child-image"
                       "child-entry-data";
}

#child-entry-container h3{
  font-weight: 700;
}

#child-entry-container p{
  font-weight: 300;
  font-size: 17px;
}

#child-entry-container a{
  font-weight: 300;
  font-size: 17px;
}


#child-image {
  border-radius:300px;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  grid-area: "child-image";
  z-index: 2;
  justify-self: center;
  position: relative;
  box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#child-image img {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  z-index: 1;
  object-fit: cover;
  object-position: top center;
  position: relative;
  left: 0px;
  top: 0px;
}

#image-border{
  height: 100%;
  width: 100%;
  border: 7px solid var(--image-border-color);
  box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
  z-index:2;
  border-radius: 50%;
  position: absolute;
  left: 0px;
  top: 0px;
}

#child-entry-data {
  height: 430px;
  width: 320px;
  background-color: var(--box-color);
  color: var(--font-color);
  border-radius: 10px;
  box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.20), 5px 10px 15px 0 rgba(0, 0, 0, 0.10);
  line-height:normal;
  margin-bottom: 0px;
}

#child-entry-data #child-entry-name{
  margin: 135px 30px 10px 30px;
  height: 28px;
  font-size: 27px;
  line-height: 27px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#child-entry-data #child-entry-description{
  margin: 0px 30px 0px 30px;
  height: 30px;
  display: flex;
  justify-content: start;
  align-items: center;
}

#child-entry-data #child-entry-link{
  display: inline-block;
  margin: 10px 30px 10px 30px;
  height: 18px;
  font-style: italic;
  color: var(--font-color);
  text-decoration: underline;
}

#child-entry-data #sponsor-header{
  margin: 0px 30px 5px 30px;
  margin-top: 0px;
  height: auto;
  font-size: 26px;
  color: var(--image-border-color);
}

#child-entry-data #child-sponsor-sub-text{
  margin: 0px 30px 0px 30px;
  height: 60px;
  hyphens: none;
}


#child-entry-data .empty-button{
  width: 75px;
  height: 75px;
  display: block;
}

.button-link{
  display: block;
  height: 100%;
  width: 100%;
}

#child-entry-data #child-sponsor-button-container {
  height: 88px;
  width: auto;
  margin: 0px 30px;
  display: grid;
  grid-template-rows: 70px;
  grid-template-columns: 75px 75px 75px;
  grid-template-areas: "button_column_first button_column_second button_column_third";
  justify-items: center;
  align-items: center;
  justify-content: space-between;
}


#child-entry-data #child-sponsor-button-container .child-entry-button {
  width: 75px;
  height: 70px;
  border: 0.5px solid var(--border-color);
  align-items: center;
  color: var(--font-color);


}

#child-entry-data #child-sponsor-button-container .child-entry-button:hover {
  cursor: pointer;
  opacity: .7;
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

.child-entry-button-top-text {
  text-align: center;
  height: auto;
  font-weight: 300;
  padding-top: 3px;
  margin-top: 0px;
  margin-bottom: 0px;
  color: var(--font-color);
}

#child-entry-container .child-entry-button-bottom-text {
  margin-left: auto;
  text-align: center;
  margin-right: auto;
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 20px;
  font-weight: 700;
  color: var(--font-color);
}

#child-entry-container .child-entry-button a {
  display: grid;
  width: 100%;
  grid-template-columns: 100%;
  grid-template-rows: 40px auto;
  align-items: center;
}

#button-column-first {
  grid-area: button_column_first;
}

#button-column-second {
  grid-area: button_column_second;
}

#button-column-third {
  grid-area: button_column_third;
}

/*------------------- Loading Children Notification --------------------------*/

#loadingChildrenNotification{
  height: 300px;
  width: 100%;
  display: grid;
  grid-template-rows: 150px 150px;
  grid-template-columns: 100%;
  justify-items: center;
  display: none;
}

#loadingChildrenNotification h3{
  align-self: end;
  color: var(--box-color);
}

.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  align-self: start;
}
.lds-ripple div {
  position: absolute;
  border: 4px solid var(--box-color);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}
@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

/*------------------- No Child Message --------------------------*/

#no-child-message{
  text-align: center;
  margin-bottom: 50px;
  color: #000000;
  font-weight: 400;
}

#no-child-message a{
  color: var(--box-color);
  text-decoration: underline;
  font-weight: 700;
}

#no-child-message a:hover{
  cursor: pointer;
}

#noMoreChildrenNotification{
  display: none;
  height: 300px;
  width: 100%;
  text-align: center;
  line-height: 150px;
  color: var(--box-color);
  margin-bottom: 0px;
}


/*------------------- Scroll Arrows --------------------------*/

.downArrowsContainer{
  width: 30px;
  height: 30px;
  display: block;
  position: fixed;
  right: 30px;
  bottom: 30px;
  list-style: none;
}

.downArrow{
  height: 10px;
  width: 10px;
  border-right: 3px solid #552C7A;
  border-bottom: 3px solid #552C7A;
  border-radius: 3px;
}

.downArrow{
    transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

/*------------------- Foster Message --------------------------*/

#foster-container{
  width: 400px;
  height: 100px;
  display: grid;
  position: fixed;
  margin-right: auto;
  margin-left: auto;
  z-index:99;
  grid-template-columns: 247px 147px;
  grid-template-rows:97px;
  grid-template-areas: "foster-text foster-button";
  border:3px solid #0C71C3;
  border-bottom:none;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
  box-sizing: border-box;
  background-color: #0C71C3;
  align-items: center;
  bottom: 0px;
  left:calc(50% - 200px);
  font-size: 17px;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 10px 0 rgb(0 0 0 / 20%), 5px 10px 15px 0 rgb(0 0 0 / 10%);
}

#foster-message{
  color: #fff;
  padding: 10px;
  margin:0px;
  justify-self: start;
  position:relative;
  left:17px;
}

#foster-button{
  border:1px solid #fff;
  color: #fff;
  display: flex;
  width: 100px;
  height: 60px;
  line-height: 30px;
  background-color: #0C71C3;
  color: var(--box-color);
  padding:0px;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  justify-self: end;
  position:relative;
  right:27px;

}

#foster-button p{
  margin-bottom: 0px;
  color: #fff;
}

#foster-close-button{
  position: absolute;
  color: #fff;
  right: 5px;
  top:5px;
  height: 11px;
  width: 11px;
  font-size: 10px;
  justify-content: center;
  align-items: center;
}

#foster-button:hover, #foster-close-button:hover{
  cursor: pointer;
  opacity: .7;
  -webkit-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

/*------------------- Page Selector --------------------*/

#page-selector-list{
  list-style: none;
  display: grid;
  width: 290px;
  margin: auto;
  grid-template-columns: 30px 15px 60px 15px 30px;
  column-gap: 35px;
  grid-template-areas: "first second third fourth fifth";
  padding: 20px 0px 50px 0px;
}

#page-selector-to-first-page{
  display: grid;
  width: 30px;
  grid-template-columns: 15px 15px;
  grid-template-areas: "first second";
}

#page-selector-to-last-page{
  display: grid;
  width: 30px;
  grid-template-columns: 15px 15px;
  grid-template-areas: "first second";
}


.page-selector-first{
  grid-area: first;
  justify-self: center;
  align-self: center;
}

.page-selector-second{
  grid-area: second;
  justify-self: center;
  align-self: center;
}

.page-selector-third{
  grid-area: third;
  justify-self: center;
  align-self: center;
}

.page-selector-fourth{
  grid-area: fourth;
  justify-self: center;
  align-self: center;
}

.page-selector-fifth{
  grid-area: fifth;
  justify-self: center;
  align-self: center;
}

.page-selector-right-arrow{
  height: 15px;
  width: 15px;
  border-right: 2px solid var(--box-color);
  border-bottom: 2px solid var(--box-color);
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.page-selector-left-arrow{
  height: 15px;
  width: 15px;
  border-right: 2px solid var(--box-color);
  border-bottom: 2px solid var(--box-color);
  transform: rotate(-225deg);
  -webkit-transform: rotate(-225deg);
}

/*------------------- jquery ui overrides --------------------*/
.ui-widget-overlay{
    background: #888;
    opacity: .65;
    box-shadow: 0 0 200px 0 #555 inset;
}

div.entry-content {
    -webkit-transform-style: flat !important;
    -moz-transform-style: flat !important;
    transform-style: flat !important;
}

div.ui-widget-content, div.ui-widget-header{
    color: inherit;
}

div.ui-widget-content p{
    margin-bottom: 1em;
}

div.ui-dialog {
    box-shadow: 0 0 5em 2em rgba(0, 0, 0, .5), 0 0 5em 1em rgba(0, 0, 0, .5);
    background: rgba(0, 0, 0, .75);
    border-color: #333;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
    border-radius: 17px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

div.ui-dialog a.return-link{
    margin: .6em 2em;
}

.ui-widget-header {
    border: none;
    background: none;
}

button.ui-dialog-titlebar-close{
    display: none;
}

.ui-dialog .ui-dialog-title{
    text-align: center;
    font-size: 1.4em;
    float: none;
}

a.return-link:before{
    top:-1.5px;
    position:relative;
    margin-right:4px;
    content: '\00ab';
}


@media all and (min-width:981px) and (max-width: 1600px) {
    #main-container{
      width: 980px;
      grid-template-columns: 490px 490px;
    }
}

@media all and (min-width:0px) and (max-width: 980px) {

  .topNav img{
    position: relative;
    top: 10px;
    height: 37px;
    padding-left: 30px;
  }

  #topNavMain {
    display: none;
  }

  #topNavMobile {
    display: block;
  }

  #sponsorship-header{
    font-size:40px;
  }

  #main-container{
      width: 100%;
      padding-top: 10px;
      grid-template-columns: 100%;
      justify-items: center;
    }

    .downArrow{
      display: none;
    }

    /*------------------- Foster Message --------------------------*/

    #foster-container{
      width: 300px;
      height: 130px;
      z-index:99;
      grid-template-rows: 70px 57px;
      grid-template-columns:300px;
      grid-template-areas: "foster-text"
                            "foster-button";
      left:calc(50% - 150px);
    }

    #foster-message{
      text-align:center;
      padding-top: 20px;
      padding-bottom: 0px;
      left: 0px;
      justify-self:center;
    }

    #foster-button{
      height: 40px;
      width: 200px;
      justify-self: center;
      right: 0px;
    }

    #foster-button p{
    }

    #foster-close-button{
    }

    #foster-button:hover, #foster-close-button:hover{
    }

    /*------------------- Page Selector --------------------*/
}
