html {
  --darkbrown-clr: hsl(24, 25%, 35%);
  --lightbrown-clr:hsl(25, 25%, 55%);
  --darkgreen-clr: hsl(128, 25%, 35%);
  --lightgreen-clr:hsl(126, 25%, 55%);
  --darkpurple-clr: hsl(217, 25%, 35%);
  --lightpurple-clr:hsl(216, 25%, 55%); 
  --darkred-clr: hsl(359, 74%, 31%);
  --lightred-clr:hsla(359, 74%, 51%, 0.8); 
  --test: hsl(186, 92%, 24%);
}

html *,
h1,
h2 {
  font-family: "Roboto", sans-serif;
}


.bg-darkbrown {
  background-color: var(--darkbrown-clr);
}
.bg-lightbrown {
  background-color: var(--lightbrown-clr);
}
.bg-darkgreen {
  background-color: var(--darkgreen-clr);
}
.bg-lightgreen {
  background-color: var(--lightgreen-clr);
}
.bg-darkpurple {
  background-color: var(--darkpurple-clr);
}
.bg-lightpurple {
  background-color: var(--lightpurple-clr);
}
.bg-darkred {
  background-color: var(--darkred-clr);
}
.bg-lightred {
  background-color: var(--lightred-clr);
}



.color-darkbrown {
  border-color: var(--darkbrown-clr);
}
.color-lightbrown {
  border-color: var(--lightbrown-clr);
}
.color-darkgreen {
  border-color: var(--darkgreen-clr);
}
.color-lightgreen {
  border-color: var(--lightgreen-clr);
}
.color-darkpurple {
  border-color: var(--darkpurple-clr);
}
.color-lightpurple {
  border-color: var(--lightpurple-clr);
}



* {
  box-sizing: border-box;
}


.container-fluid .photos {
  margin: 0px;
}

a {
text-decoration: none;
}

#yeartext,
#location {
  font-variant: normal;
}

#people,
#personname {
  font-size: 1.25rem;
  font-variant: normal;
}

.navbar-brand {
  font-family: "Dr Sugiyama", cursive;
  font-size: 56px;
}

.logo {
  font-family: "Dr Sugiyama", cursive;
  font-size: 4rem;
  padding: 10px;
}

.greetings {
  font-weight: 300;
}

nav ul * {
  font-weight: 400;
  font-variant: small-caps;
}

.nav-item {
  padding-left: 1.75em;
}

@media (max-width: 1550px) {
  .nav-item {
    padding-left: 1em;
  }
}

@media (max-width: 1420px) {
  .nav-item {
    font-size: 24px;
    padding-left:0.75em;
  }
}

@media (max-width: 1300px) {
  nav li.nav-item {
    padding-left: 0.5em;
    font-size: 20px;
  }
  .navbar-brand {
    font-size: 46px;
  }
  .navbar-brand img {
    width: 52px;
    height: 52px;
  }
}



nav {
  box-shadow: 0px 2px 16px 0px;
}

.info {
  font-variant: small-caps;
  min-width: 300px;
  height: fit-content;
}

@media (max-width:1199.98px) {
  .main {
    display:table;
    position:relative;
    width:100%;
  }

  .main-container,
  .info {
    display:table-row;
  }
}


@media (min-width:1200px) {
  .info {
    min-height:100%;
  }
}


.info h2 {
  font-weight: 500;
  font-size: 1.25rem;
}

.main {
  height: calc(100vh - 110px);
  overflow: auto;
}

.imageContainer img {
  max-width: 85%;
}

.pager {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  /* margin-top: -50px; */
  color: white;
  font-weight: bold;
  font-size: 32px;
  text-decoration: none;
  background-color: transparent;
  border: 0px;
}

#next {
  right: 1%;
}

#previous {
  left: 1%;
}

ul#people,
ul#location {
  list-style: none;
}

ul#location {
  padding-left:0;
}

@media (max-width:1200px) {
  ul#people li {
    display: inline-block;
    padding-right: 25px;
  }
  ul#people li:not(:last-child)::after {
    content: ",";
  }
}



/* ==== Gallery ==== */
.card-columns {
  display: inline-block;
  column-count: 3;
  width: 99%;
  column-gap: 1em;
}

.card-columns img {
  width: 100%;
}

.card-columns > a {
  display:block;
  margin-bottom: 1em;
}

.card-columns.double {
  column-count: 2;
}


@media (max-width:750px) {
  .card-columns {
    column-count: 2;
  }
}

@media (max-width: 575.98px) {
  .card-columns {
    column-count: 1;
  }
}


#mainDocument {
  width: 100%;
}

#mainImage {
  background: url('/static/images/loading.png') no-repeat;
  background-size: 100px;
  background-position: center;
}

#mainImage,
#overlayImage {
  max-height: calc(100vh - 110px - 6rem);
  object-fit: contain;
  width:100%;
  /* animation: loading 3s linear infinite; */
}

#overlayImage {
  position:absolute;
  top:0;
  left:50%;
  opacity:0;
  transform: translateX(-50%);
  
}

@media (min-width:1200px) {
  #overlayImage {
    height:100%;
  }
}


#mainImage:hover ~ #overlayImage,
#overlayImage:hover {
  opacity:1
}


img[src=""],
img:not([src]){
  visibility: hidden;
}

.bg {
  background: url('/static/images/loading.png') no-repeat;
  background-size: 100px;
  background-position: center;
}

@keyframes loading {
  33% {transform: rotate(120deg);}
  66% {transform: rotate(240deg);}
  100% {transform: rotate(360deg);}
}

.img-magnifier-container {
  position: relative;
}

.img-magnifier-glass {
  position: absolute;
  border: 3px solid rgb(28, 139, 190);
  /* cursor: none; */
  /*Set the size of the magnifier glass:*/
  width: 400px;
  height: 200px;
}

 #magnifier {
  max-width: 300px;
  margin:auto;
} 


/*=====family.html*/

.person-li {
  margin-bottom: 20px;
  list-style: none;
}

.two-column-list ul {
  padding-left: 0;
  padding-bottom: 2em;
}

.two-column-list {
  column-count: 2;
  column-gap: 40px;
}

@media (max-width: 1095px){
  .two-column-list {
  column-count: 1; 
  }
}

.badge {
  font-weight: normal;
  width: 90%;
}

.person-button {
  padding: 10px 15px;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 1.25rem;
  color: rgb(71, 71, 71);
  background-color: whitesmoke;
  transition-duration: 0.3s;
}

.person-button:hover,
.dot:hover {
  color: white;
  background-color: rgb(184, 77, 41);
}

.letters {
 display:flex;
 justify-content: center;
 flex-wrap: wrap;
 margin-bottom: 2rem;
 width:90%;
}

.dot {
  display:inline-flex;
  flex-shrink: 0;
  flex-grow: 0;
  justify-content: center;
  margin: 5px;
  height: 50px;
  width: 50px;
  background-color: whitesmoke;
  border-radius: 50%;
  border: 2px solid white;
  transition-duration: 0.3s;
}


.fancy {
  margin:auto;
  font-size:24px;
  color: rgb(71, 71, 71);
}
.dot:hover .fancy {
  color:white;
}


.fixed-ratio {
  position: relative;
  width: 90%; 
  /* padding-top: 555.670px / 1077.47px * 100%; */
  padding-top: 51.57%; 
}

.ancestors-page {
  min-height: calc(100vh - 110px);
}

#ancestors {
  position:  absolute;
  top: 50px;
  left: 0;
  bottom: 0;
  right: 0;
  width:100%;
}


/*===== login - logout =====*/
.login {
  width: 300px;
  min-width: 200px;
  max-width: 400px;
  font-size: x-large ;
}

.logout {
  font-size: x-large ;
  line-height: 2;
}

input[type=submit] {
  margin-top: 30px;
  padding: 5px 30px;
  font-size: 1.5rem;
  background-color: #f8f9fa;
  border: 2px solid white;
  border-radius: 10px;
  transition-duration: 0.3s;
  color: #212529;
}

input[type=submit]:hover {
  background-color: #212529;
  color: #f8f9fa;
}

#id_username,
#id_password {
  background-color:white;
}

.asteriskField {
    display: none;
}

.control-group {
margin-top: 15px;
}
/*=====DASHBOARD======*/

.page {
  min-height: 100vh;
}

p.fs-1 {
  font-weight: 500;
}

.card-icon {
display: flex;
flex-shrink: 0;
float: inline-start;
margin:0;
width: 90px;
height: 90px;
border-radius: 10px 0px 0px 10px;
}

.dashboard-card {
  font-family: "Roboto", sans-serif;
  width: 270px;
  width: 100%;
  height: 90px;
  border-radius: 10px
}

.myborder {
  width: 100%;
  /* min-width: 380px; */
  /* min-height:200px; */
  height: calc(100% + 1rem);
  border-width: 4px;
  border-style: solid;
}

.icon {
  width:80px;
  height:80px;
border-radius:10px;
top: -30px;
left: 10px;
}

.text {
  width: calc(100% - 95px);
}

.date {
  font-size: 0.75rem;
}

/*====PERSON====*/

.ancestorLinkButton a,
.descendantsLinkButton a {
  text-decoration: none;
  color: rgb(71, 71, 71);
  transition-duration: 0.3s;

}

.ancestorLinkButton,
.descendantsLinkButton,
.button {
  cursor: pointer;
  width: 100%;
  /* max-width: 400px; */
  padding: 10px;
  border: 2px solid rgb(71, 71, 71);
  border-radius: 10px;
  font-size: 1.25rem;
  background-color: whitesmoke;
  transition-duration: 0.3s;
}

.button.small {
  padding: 5px;
  width:auto;
  font-size:24px;
  color: rgb(71, 71, 71);
  border: 2px solid white;
  border-radius: 25px;
}

.ancestorLinkButton:hover,
.descendantsLinkButton:hover,
.button:hover {
  background-color: rgb(184, 77, 41);
  color: white;
}

.button:hover svg path {
  fill: white;  
}


/*====ANCESTORS-familytree2==== */ 
#tree {
  width: 100%;
  height: calc(100vh - 100px);
}

