:root {
  --crayfish: #8c2729;
  --secondary: #2A6E23;
  --secondary-rgb: 42, 110, 35;
  --curseforge-btn: #f16436;
  --modrinth-btn: #1bd96a;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 75rem;
  padding-top: 4.5rem;
  background-color: #e6e6e6;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--secondary);
}

a:hover {
  color: var(--crayfish);
}

svg.thick-stroke path {
  stroke: #FFF;
  stroke-width: 0.75;
}

.footer {
  bottom: 0;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mod-box {
  height: 150px;
}

svg.mod-wave {
  position: absolute;
  bottom: 0;
  object-fit: cover;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.mod-box div.mod-icon {
  flex-grow: 0;
  width: 150px;
}

.mod-box div.mod-icon img {
  width: 100px;
  height: 100px;
}

.mod-box div.mod-icon,
.mod-box div.mod-info {
  height: 150px;
}

.mod-box div.small-mod-icon {
  flex-grow: 0;
}

.mod-box div.small-mod-icon img {
  width: 60px;
  height: 60px;
}

.mod-box p.mod-description {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

.mod-box p.mc-support-label {
  font-size: 0.75rem;
}

.mod-box p.mc-support-badges {
  font-size: 1.25rem;
}

.mod-description-card p {
  margin-bottom: 0;
}

.mod-download-card>.card-header {
  border-bottom: none;
  padding-bottom: 0;
  border-radius: 0.5em 0.5em 0 0;
}

.mod-download-card .nav-link {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.mod-download-card .nav-link:not(.active) {
  background-color: #0003;
  color: #FFF;
}

.mod-download-panel {
  padding-left: 1rem;
  padding-right: 1rem;
}

.mod-download-item {
  margin-bottom: 1rem;
}

.mod-download-item:last-of-type {
  margin-bottom: 0;
}

.mod-download-item>a {
  font-size: 0.9rem
}

.mod-changelog p {
  margin-bottom: 0;
}

.mod-files-item:last-of-type {
  margin-bottom: 0 !important;
}

.mod-file-card-body {
  border-top: 1px solid rgba(0, 0, 0, .125);
  background-color: #e6e6e6
}

.mod-features {
  border-radius: 0.5rem;
}

.mod-features>li {
  padding: 0.75rem;
}

.mod-feature-item:last-of-type {
  margin-bottom: 0 !important;
}

.mod-feature-item>div {
  font-size: 1rem;
  padding: 0.5rem;
}

button.forge-button {
  background-color: #2e4460;
}

button.fabric-button {
  background-color: #9a927e;
}

.mod-banner {
  height: 80px;
}

.mod-featured-sm {
  height: 100px;
}

.featured-banner {
  height: 150px;
}

.crayfish-navbar {
  background-color: var(--crayfish);
  padding: .5rem 1rem;
}

.bg-crayfish {
  background-color: var(--crayfish);
}

.bg-complementary {
  background-color: #2A6E23;
}

.no-border-radius {
  border-radius: 0 !important;
}

#mod-files-pagination .page-link {
  color: var(--secondary)
}

#mod-files-pagination .page-link:focus {
  box-shadow: 0 0 0 .2rem rgba(var(--secondary-rgb), .25);
}

#mod-files-pagination .page-item.active>.page-link {
  color: white;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-discord {
  background-color: #7289da !important;
  border-color: #7289da !important;
}

.btn-discord:hover {
  background-color: #7289da !important;
}

.discord-border {
  border-color: #7289da;
  box-shadow: 0 .125rem .25rem #7289da83 !important;
}

@media (min-width: 576px) {
  .mod-banner {
    height: 90px;
  }

  .featured-banner {
    height: 170px;
  }
}

@media (min-width: 768px) {
  .mod-banner {
    height: 120px;
  }

  .featured-banner {
    height: 200px;
  }
}

@media (min-width: 992px) {
  .mod-banner {
    height: 170px;
  }

  .featured-banner {
    height: 250px;
  }
}

@media (min-width: 1200px) {
  .mod-banner {
    height: 200px;
  }

  .featured-banner {
    height: 300px;
  }
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff !important;
  background-color: #6c757d !important;
}

/* Utils */
.no-margin-last-child>*:last-child {
  margin-bottom: 0 !important;
}

.rotatable {
  -moz-transition: all .25s linear;
  -webkit-transition: all .25s linear;
  transition: all .25s linear;
}

.rotatable.flip {
  -ms-transform: rotate(180deg);
  -moz-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

/* Cookie Consent */
#cookieConsent {
  position: fixed;
  width: auto;
  height: auto;
  z-index: 1000;
}

#cookieConsentBox {
  position: fixed;
  bottom: 0;
  left: 0;
  max-width: 700px;
}

.btn-curseforge {
    background-color: var(--curseforge-btn);
    border-color: var(--curseforge-btn);
}

.btn-modrinth {
    background-color: var(--modrinth-btn);
    border-color: var(--modrinth-btn);
}

/* Bootstrap overrides */
.btn-primary {
  color: #fff;
  background-color: var(--crayfish);
  border-color: var(--crayfish);
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-green {
  color: #fff;
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.breadcrumb {
  background-color: #FFF;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff !important;
  background-color: var(--crayfish) !important;
}

.card {
  border-radius: 0.5rem;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.card-header {
  background-color: var(--crayfish);
  color: #FFF;
  border-radius: 0.5rem;
}

.card-header:first-child {
  border-radius: calc(.5rem - 1px) calc(.5rem - 1px) 0 0;
}

.jumbotron {
  background-color: #e6e6e6;
}