/*Website made by Nathan Call (https://nathancall.tech) for Crowne Pointe Church*/
/*Last updated: 2022-12-27*/
/*This is the main CSS file for custom styling*/
:root {
  --white: #ffffff;
  --white-trans: #ffffff80;
  --black: #000000;
  --off-white: #f2f2f2;
  /*--alt-color: #4b8077;
  --alt-color-light: #7eb4ab;
  --alt-color-dark: #26403c;*/
  --alt-color: #265ac9;
  --alt-color-light: #7e9fe7;
  --alt-color-dark: #14306b;
  --alt-color-xdark: #08132b;
  --alt-color-xdark-trans: #08132bbf;
  --selection: #80808080;
  --red: red;
  /*--main-width: 50vw;*/
  --main-width: 960px;
  --main-font-size: 32px;
  --title-font-size: 48px;
  --nav-title-font-size: 28px;
  --large-caption-font-size: 45px;
  --smaller-font-size: 24px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  /*background-color: #476490;*/
  background-color: var(--alt-color-xdark);
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 0 20px;
  z-index: 7;
  user-select: none;
}
nav > a {
  font-weight: bold;
  text-decoration: none;
  font-size: var(--nav-title-font-size);
  color: var(--white);
}

nav a[href$="../donate"] {
  background-color: var(--alt-color);
}

nav > div {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  height: 100%;
  justify-content: flex-end;
  margin: 0px;
  padding: 0px;
  position: absolute;
  right: 20px;
}
nav > div > a,
nav > menu > a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5px;
  color: var(--white);
  text-decoration: none;
  border: solid transparent;
  border-radius: 7px;
  transition-duration: 250ms;
  text-transform: uppercase;
}

nav > div > a:hover,
nav > menu > a:hover {
  border: solid var(--white);
  cursor: pointer;
}

.selected {
  border: solid var(--white-trans);
}

nav > div > a > span,
nav > menu > a > span {
  padding: 2px 0px;
  white-space: nowrap;
  position: relative;
  font-weight: 600;
}
nav > a > span {
  white-space: nowrap;
  margin-left: 0px;
}

.navLarge {
  display: flex;
}
.navSmall {
  display: none;
}
button {
  position: absolute;
  font-size: 40px;
  background: none;
  text-decoration: none;
  border: none;
  color: var(--white);
  top: 18px;
  user-select: none;
  padding-top: 15px;
  padding-bottom: 15px;
}
button:hover {
  cursor: pointer;
}
.menu {
  display: block;
  position: relative;
}
.menu,
.menu::before,
.menu::after {
  width: 30px;
  height: 4px;
  background: var(--white);
  transition: transform 400ms ease-in-out, opacity 200ms linear;
  border-radius: 5px;
}
.menu::before,
.menu::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu::before {
  bottom: 12px;
}
.menu::after {
  top: 12px;
}

.nav-open {
  transform: rotate(-405deg);
}

.nav-open::before {
  opacity: 0;
}

.nav-open::after {
  transform: rotate(90deg) translate(-12px);
}

.hide {
  display: none !important;
}
.show {
  display: flex;
}

.nav-card {
  font-size: 15px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  background-color: var(--alt-color-xdark);
  border-radius: 8px;
  position: relative;
  animation: w3animatetop 0.5s backwards;
  color: var(--white);
  text-decoration: none;
  /*from w3*/
  padding: 8px 16px;
  float: left;
  width: auto;
  display: block;
  outline: 0;
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  white-space: normal;
  float: none;
  outline: 0;
  text-align: center;
  float: right !important;
  margin-right: 20px;
}

.nav-panel {
  position: absolute;
  width: 75px;
  right: 0;
  padding-bottom: 15px;
  background-image: linear-gradient(
    90deg,
    var(--alt-color-light),
    var(--alt-color)
  );
  margin-top: 0px;
  top: 70px;
  z-index: 1;
  border-radius: 0px 0px 0px 15px;
}
.logo {
  width: 75px;
  padding-top: 6px;
  padding-right: 10px;
}

.card1 {
  animation: card1 0.5s;
}
.card2 {
  animation: card2 0.5s;
}
.card3 {
  animation: card3 0.5s;
}
.card4 {
  animation: card4 0.5s;
}
.card5 {
  animation: card5 0.5s;
}
.card6 {
  animation: card6 0.5s;
  margin-bottom: 5px;
}
.card7 {
  animation: card7 0.5s;
}
@keyframes card1 {
  from {
    position: absolute;
    top: -150px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0px;
    opacity: 1;
  }
}
@keyframes card2 {
  from {
    position: absolute;
    top: -250px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0px;
    opacity: 1;
  }
}
@keyframes card3 {
  from {
    position: absolute;
    top: -350px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0px;
    opacity: 1;
  }
}
@keyframes card4 {
  from {
    position: absolute;
    top: -450px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0px;
    opacity: 1;
  }
}
@keyframes card5 {
  from {
    position: absolute;
    top: -550px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0;
    opacity: 1;
  }
}
@keyframes card6 {
  from {
    position: absolute;
    top: -650px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0;
    opacity: 1;
  }
}
@keyframes card7 {
  from {
    position: absolute;
    top: -750px;
    opacity: 0;
  }
  to {
    position: relative;
    top: 0;
    opacity: 1;
  }
}

/*nav > div > a > span:before {
  background-color: rgb(249, 249, 249);
  border-radius: 0px 0px 4px 4px;
  bottom: -6px;
  content: "";
  height: 2px;
  left: 0px;
  opacity: 0;
  position: absolute;
  right: 0px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
  visibility: hidden;
  width: auto;
}
nav > div > a:hover > span:before {
  transform: scaleX(1);
  visibility: visible;
  opacity: 1 !important;
}*/
.background1,
.background2,
.background3,
.background4,
.background5,
.background6 {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
}
.background1 {
  /* background-image: url("../images/church-4K.jpg"), url("../images/church-HD.jpg"), url("../images/church-SD.jpg"); */
  background-image: url("../images/church-70.webp");
}
.background2 {
  /* background-image: url("../images/foyer-4K.jpg"), url("../images/foyer-HD.jpg"), url("../images/foyer-SD.jpg"); */
  /* background-image: url("../images/foyer-70.webp"); */
  background-image: url("../images/sanctuary-2-70-remastered-lights.webp");
}
.background3 {
  /* background-image: url("../images/table-4K.jpg"), url("../images/table-HD.jpg"), url("../images/table-SD.jpg"); */
  /* background-image: url("../images/table-70.webp"); */
  background-image: url("../images/foyer-70.webp");
}
.background4 {
  /* background-image: url("../images/windows-4K.jpg"), url("../images/windows-HD.jpg"), url("../images/windows-SD.jpg"); */
  background-image: url("../images/windows-70.webp");
}
.background5 {
  /* background-image: url("../images/sanctuary-4K.jpg"), url("../images/sanctuary-HD.jpg"), url("../images/sanctuary-SD.jpg"); */
  /* background-image: url("../images/sanctuary-70.webp"); */
  background-image: url("../images/table-70.webp");
}
.background6 {
  /* background-image: url("../images/altar-4K.jpg"), url("../images/altar-HD.jpg"), url("../images/altar-SD.jpg"); */
  background-image: url("../images/altar-70.webp");
}
/*------------------------------------------------------------------------------------------------------*/
/*https://stackoverflow.com/questions/27934548/load-a-low-res-background-image-first-then-a-high-res-one*/

.high-res-background {
  display: none;
}

.img-row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  /*align-items: center*/
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: var(--main-width);
}
/*.img-row > div {
  width: 33%;
  padding-top: 75%;
}
.img-row img {
   width: 100%;
  object-fit: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}*/
.img-column {
  display: flex;
  flex: 23%;
  max-width: 23%;
  padding: 0 4px;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: space-around;
}
.img-column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 200px;
  height: 175px;
  object-fit: cover;
  display: flex;
  justify-content: center;
  border: solid var(--alt-color-xdark) 5px;
  border-radius: 10px;
  margin: 10px;
}
.img-column span {
  position: relative;
  margin: auto;
  bottom: 15px;
  background-color: var(--alt-color-xdark-trans);
  color: var(--white);
  border-radius: 7.5px;
  padding-left: 5px;
  padding-right: 5px;
  padding: 2.5px;
  margin-top: -24px;
}

main > header {
  margin-top: 70px;
  padding-bottom: 7vh;
  /*background-color: #858282;*/
}
main > img {
  width: 35vw;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
main > header > strong {
  width: 90vw;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-top: 20vh;
  font-size: var(--title-font-size);
  color: var(--white);
  font-family: "Raleway";
  text-transform: uppercase;
  text-shadow: 2px 3px var(--black);
  user-select: none;
}
main > header > hr {
  width: var(--main-width);
  margin-bottom: 7vh;
  margin-top: 2vh;
}
main > header hr.dual-hr {
  width: var(--main-width);
  margin-top: 2vh;
}

main > div {
  background-color: var(--white);
}
main > div > div {
  width: var(--main-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  /*flex-direction: column;*/
  font-size: var(--main-font-size);
}
main > div > div > p {
  /*background-color: #f1f1f1;
  
  flex: 50%;*/
  padding: 20px;
  border-left: solid 10px var(--alt-color-xdark);
  border-radius: 10px;
}
main > div > div > section {
  padding: 10px;
}
main > div > div > aside {
  padding: 10px;
  /*font-size: 1.5vw;*/
  font-size: var(--main-font-size);
}

section > ul {
  font-size: calc(var(--main-font-size) - 6px);
}

.large-caption {
  font-size: var(--large-caption-font-size);
  display: flex;
  flex-direction: column;
  margin: auto;
  white-space: nowrap;
  font-weight: bold;
}

.flex1-3 {
  margin: 10px;
  flex: 33%;
  padding: 10px;
}
.flex1-3 > aside {
  margin: auto;
  margin-left: 30px;
}
.flex1-3 > aside > li,
.inline-li li {
  list-style-position: none;
}
.flex1-3 > aside > li > span,
.inline-li span {
  position: relative;
  left: -30px;
}
aside > li > span,
.inline-li span {
  position: relative;
  left: -20px;
}
.flex2-3 {
  flex: 67%;
  margin: 10px;
}
.inline-li {
  display: flex;
  flex-direction: row;
}
.no-bullet {
  list-style-type: none;
  padding-left: 15px;
  padding-right: 15px;
}
.red-blink {
  animation: red-blink 2.5s;
  animation-iteration-count: infinite;
}
@keyframes red-blink {
  0% {
    color: var(--white);
  }
  25% {
    color: var(--red);
  }
  50% {
    color: var(--red);
  }
  75% {
    color: var(--white);
  }
  100% {
    color: var(--white);
  }
}

.border1 {
  border: solid var(--alt-color-xdark) 5px;
  border-radius: 10px;
}
.backfill {
  background-color: var(--alt-color-dark);
  border-radius: 10px;
}
.alt-color {
  color: var(--white);
}
.alt-color-trans {
  color: var(--white-trans);
}
body {
  /*background-color: #e6e6e6;*/
  background-color: var(--white);
  font-family: "Karla";
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--selection);
}
.ital {
  font-style: italic;
}
em {
  color: var(--alt-color);
  font-style: normal;
  font-weight: bold;
}

.link {
  cursor: pointer;
  color: var(--alt-color-light);
  text-decoration: none;
  font-weight: bold;
}
.link:hover {
  color: var(--alt-color);
}

iframe {
  display: flex;

  margin: auto;
  transform: scale(1.01);
}

.video-container {
  overflow: hidden;
  position: relative;
  border: solid var(--alt-color-xdark) 5px;
  border-radius: 10px;
}
.video-container::after {
  padding-top: 56.25%;
  display: block;
  content: "";
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#BlockContAB {
  display: flex;
  flex-flow: column;
}

#BlockA {
  order: 1;
}
#BlockB {
  order: 2;
}

#BlockCont12 {
  display: flex;
  flex-flow: row;
}

#Block1 {
  order: 1;
}
#Block2 {
  order: 2;
}

#BlockB .video-container {
  display: none;
}

#BlockB aside {
  display: flex;
}

footer {
  background-color: var(--alt-color-xdark);
  color: var(--white);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: var(--main-font-size);
  padding: 10px;
  padding-bottom: 30px;
}
footer > a {
  font-size: 24px;
}
footer > p {
  text-align: center;
}

.hide {
  display: none !important;
}

.show {
  display: visible;
}

.donate {
  border: solid 10px var(--alt-color-dark);
  padding: 20px;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 50px;
  border-radius: 30px;
  /*background-color: var(--off-white);*/
}
.donate:hover {
  border: solid 10px var(--alt-color);
}
.margin-auto {
  margin: auto;
}
.flex1-3 img {
  width: 250px;
  display: flex;
  margin: auto;
  border-radius: 5px;
}
.center {
  display: flex;
}
.large-p {
  font-size: 16px;
}
.contact {
  /*font-size: var(--smaller-font-size);*/
  word-wrap: break-word;
}

#map {
  width: var(--main-width);
  height: 300px;
  margin-bottom: 15px;
  margin-top: 10px;
  border-radius: 10px;
  border: solid var(--alt-color-xdark) 5px;
}

#bulletin {
  background-color: var(--alt-color);
  color: var(--white);
  border: 0px;
  margin: auto;
  justify-content: center;
  border-radius: 10px;
  padding-right: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 10px;
}

.collage {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  width: var(--main-width);
}
.collage div img {
  width: var(--main-width);
}

.sc-border {
  border-radius: 10px;
  border: solid var(--alt-color-xdark) 5px;
}

#directory {
  background-color: var(--alt-color-dark);
  color: var(--white);
  border: 0px;
  margin: 10px;
  justify-content: center;
  border-radius: 10px;
  padding: 15px;
  justify-content: center;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  max-width: var(--main-width);
  margin-inline: auto;
}

#directory:hover,
#directory:focus {
  cursor: pointer;
  color: var(--white);
  background-color: var(--alt-color);
}

.collage {
  background-color: var(--alt-color-dark);
  margin-block: 20px;
  border-radius: 10px;
}

@media only screen and (min-width: 1070px) {
  .navLarge {
    display: visible;
  }
  .navSmall {
    display: none !important;
  }
  .hidden-l {
    display: none !important;
  }
  .background1,
  .background2,
  .background3,
  .background4,
  .background5,
  .background6 {
    background-size: 100%;
  }
}
@media only screen and (min-width: 480px) and (max-width: 1069px) {
  .navLarge {
    display: none !important;
  }
  .navSmall {
    display: visible;
  }
  .hidden-l {
    display: visible;
  }

  :root {
    --main-width: 93vw;
    --main-font-size: 28px;
    --title-font-size: 40px;
    --large-caption-font-size: 24px;
    --smaller-font-size: 18px;
    --nav-title-font-size: 22px;
  }
  .donate {
    width: 150px;
  }

  .flex1-3 > aside > li > span {
    left: -20px;
  }
  .flex1-3 > aside {
    margin-left: 5px;
    margin: auto;
  }
  main > div > div {
    flex-direction: column;
  }
  .large-caption > aside {
    display: flex;
    font-size: var(--large-caption-font-size);
  }
  #BlockCont12 {
    flex-flow: column;
  }
  #Block1 {
    order: 2;
  }
  #Block2 {
    order: 1;
  }
  .img-column {
    flex: 40%;
    max-width: 40%;
  }
  /*.img-column img {
  }*/
  .background1,
  .background2,
  .background3,
  .background4,
  .background5,
  .background6 {
    background-size: 150%;
  }
}
@media only screen and (max-width: 479px) {
  .navLarge {
    display: none !important;
  }
  .navSmall {
    display: visible;
  }
  .hidden-l {
    display: visible;
  }
  nav > a > span {
    display: none !important;
  }
  :root {
    --main-width: 95vw;
    --main-font-size: 22px;
    --title-font-size: 32px;
    --nav-title-font-size: 18px;
    --large-caption-font-size: 24px;
    --smaller-font-size: 18px;
  }
  .donate {
    width: 125px;
  }

  .flex1-3 > aside > li > span {
    left: -20px;
  }
  .flex1-3 > aside {
    margin-left: 0px;
    margin: auto;
  }
  main > div > div {
    flex-direction: column;
  }
  .large-caption > aside {
    display: flex;
  }
  #BlockCont12 {
    flex-flow: column;
  }
  #Block1 {
    order: 2;
  }
  #Block2 {
    order: 1;
  }
  .img-column {
    flex: 100%;
    max-width: 100%;
  }
  .background1,
  .background2,
  .background3,
  .background4,
  .background5,
  .background6 {
    background-size: 200%;
  }
}
