table {
  border-collapse: separate !important;
  border-spacing: 0;
}

.logo-img {
  height: 80px;
  width: auto;
}

#mainHeader {
  border-bottom: 2px #fff solid;
}

#mainFooter {
  border-top: 2px #fff solid;
}

.more-item:hover {
  background-color: #676967;
}

.language-selector {
  border-width: 2px;
  border-radius: 3px;
  padding: 0 8px;
}

/* TODO: Make flags work */
select#preferredLanguage option[value="English"] {
  background: transparent;
  background-image: url("/media/images/us.svg");
}

.table-link {
  text-decoration: none;
  color: #fff;
}

.table-link:hover {
  color: #676967;
}

#newsTable {
  padding: 0;
  margin: 0;
}

.scrollTable {
  border: 2px #fff solid;
  border-radius: 5px;
  max-height: 164px;
  overflow-y: auto;
}

#BPF-title {
  font-size: 60px;
}

.scholarship-img {
  max-width: 640px;
  height: auto;
}

.scholarship-submission-text {
  text-decoration: underline;
}

.team-img {
  width: 375px;
  height: 500px;
}

.resource-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Flip Card */
.card-wrapper {
  height: 500px;
  width: 375px;
  perspective: 1000px;
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-wrapper:hover .content {
  transform: rotateY(180deg);
  transition: 1s;
}

.face-front,
.face-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.face-back {
  transform: rotateY(180deg);
}

/* Donation */
#donationAmt {
  display: none;
}

#donateButton {
  border: 2px #fff solid;
  border-radius: 3px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 10px 40px;
}

#infoButton {
  border: 2px #000 solid;
  padding: 10px 40px;
}

#goalTable {
  width: 400px;
}

#donationTable {
  width: 800px;
  max-height: 500px;
  overflow-y: auto;
}

#donationTable table {
  padding: 0;
  margin: 0;
}

#donationTable table thead {
  position: sticky;
  top: 0;
}

input[type="radio"]:checked + label {
  border: 3px #fff solid !important;
}

.donate-form-btn {
  border: 2px #fff solid;
  border-radius: 3px;
}

.donate-form-dark {
  filter: brightness(65%);
}

#donation-page-bg {
  background-image: url("../img/DonationPage_BG_Test.png");
  background-size: cover;
  background-color: #000;
}

.article_title {
  margin-bottom: 30px;
  -webkit-text-stroke-width: 1.6px;
  -webkit-text-stroke-color: #000;
  font-style: italic;
  font-size: 36px;
}

.article_image {
  width: 300px;
  height: auto;
  object-fit: contain;
}

.center_image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: scale-down;
}

.article_image_preview {
  max-width: 120px;
  height: auto;
}

.article_body a {
  color: #fff;
}

.carousel-img {
  height: 400px;
  width: 600px;
  /* width: auto; */
  object-fit: scale-down;
}

.carousel-title {
  display: none;
}

.form-bordered {
  border: 2px #fff solid;
  border-radius: 5px;
  padding: 30px 10px;
  margin-top: 30px;
}

.year-header {
  overflow: hidden;
  position: relative;
  min-height: 400px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.year-header#impact-closer {
  overflow: hidden;
  position: relative;
  min-height: 600px;
}

.year-header .container {
  position: relative;
  top: 125px;
}

.year-bg {
  width: 100%;
  height: 100vh;
  opacity: 0.9;
  filter: grayscale(5%);
  position: absolute;
  left: 0;
  top: -60px;
}

.year-bg#year-2021 {
  background: url("../img/2021_Backpacks.png");
}

.year-bg#year-2020 {
  background: url("../img/2020_backpacks.png");
}

.year-bg#year-2022 {
  background: url("../impact/2022/header.png");
  /* background-color: red; */
}

.year-bg#backpacks {
  opacity: 1;
  filter: grayscale(0);
  background: url("../img/PositiveImpact.png");
  background-position: 10% 10vh;
}

.year-content {
  position: relative;
  color: #fff;
  font-size: 80px;
  font-weight: bold;
  text-shadow: 0 0 10px #000;
  transform: scale(0.94);
  animation: scale 3s forwards cubic-bezier(0.5, 1, 0.89, 1);
}
@keyframes scale {
  100% {
    transform: scale(1);
  }
}

.year-content span {
  opacity: 0;
  filter: blur(4px);
  animation: fade-in 0.8s 0.1s forwards cubic-bezier(0.11, 0, 0.5, 0);
}
@keyframes fade-in {
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.impact-text {
  font-family: "Libre Baskerville", Helvetica, sans-serif;
  font-size: 22px;
  /* font-style: italic; */
}

.half-page-lg {
  width: 50%;
}

.wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 10px;
  -webkit-perspective: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.wrapper::-webkit-scrollbar {
  display: none;
}

.doc-link:hover {
  filter: brightness(65%);
}

.youtube-frame {
  width: 30vw;
  min-width: 280px;
  height: calc(30vw / 2);
  min-height: 140px;
}

.card-form {
  background-color: #fa7204;
  padding: 0 5px;
  border: 2px #fff solid;
  border-radius: 5px;
}

#custom_amt_btn {
  margin: 0;
}

@media (max-width: 463px) {
  #custom_amt_btn {
    margin-top: 7px;
  }
}

@media (max-width: 768px) {
  #BPF-title {
    font-size: 40px;
  }

  .half-page-lg {
    width: 100%;
  }

  #donation-page-bg {
    background-image: none;
  }

  .scholarship-img {
    max-width: 60vw;
    height: auto;
  }

  p {
    font-size: 14px;
  }

  .lead {
    font-size: 16px;
    font-weight: 200;
  }

  .year-bg#backpacks {
    background-size: 300px;
    background-position-y: 30%;
  }
}

/* Scholarships */
.scholarship-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 2px;
    grid-row-gap: 12px;
}

.scholarship-tile {
  border: solid black 1px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 3fr 1fr;
  height: 300px;
  width: 400px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 5px 5px 5px 5px #555555;
  position: relative;
}

.scholarship-tile-img {
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/3;
}

.scholarship-img-container {
  height: auto;
  overflow: hidden;
}

.scholarship-text-container {
  background: #000;

  > p {
    margin: 0;
  }
}

.scholarship-title {
  margin: 4px;
  text-decoration: underline;
  font-weight: bold;
}

.scholarship-amt {
  font-size: small;
}

.due-date-container {
  position: absolute;
  background: #0c0c0c;
  text-align: center;
  border: 1px solid #0c0c0c;
  padding: 10px 6px 0px 6px;
  box-shadow: 2px 2px 2px 2px #0c0c0c;
  opacity: 75%;
  right: 0;
}

/* LOGOS */
#yogi-logo {
  width: 60%;
}

/* Grants */
.grant-section-header {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #yogi-logo {
    width: auto;
  }
  .scholarship-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 6px;
    justify-content: center;
  }
  .scholarship-tile {
    width: 80vw;
    height: 60vw;
  }
}
