:root {
  --colorMain: #004225;
  --colorHighlight: #d4af37;
  --colorHighShad: #cba135;
  --colorBG: #f8f8f2;
  --colorBGGreen: #00703c;
  --colorBrown: #241b0f;
}

html {
  font-size: 16px;
}

body {
  background-color: black;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  scrollbar-gutter: stable;

  text-align: center;

  font-family: "League Spartan";
}

.fullHeight {
  min-height: 100vh;
}

/* Navigation Bar */

header {
  background-color: var(--colorBG);
  position: sticky;
  z-index: 100;
  top: 0rem;

  margin: 0px;
  padding: 1rem;
  width: calc(100% - 2em);
  height: calc(0.15em * 2 + 1em * 2 + 1em);

  -webkit-user-select: none; /* Safari and Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard property */

  box-shadow: 0px 0px 5px black;
}

#navLogo {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0.7rem;
  max-width: calc(1em * 2 + 1em + 0.3em * 2);
  width: auto;
  height: auto;
}

nav {
  position: absolute;
  right: 0;
  top: 0;
  margin: 1rem;
  border: 0.15em solid black;
  border-left: 0px;
  border-right: 0px;
  padding-top: 1rem;
  padding-bottom: 1rem;

  overflow: hidden;
  white-space: nowrap;
}

.navItem {
  cursor: pointer;

  margin-right: 1rem;
  margin-left: 1rem;

  color: black;
  text-decoration: none;

  transition: color 0.3s;
}

#current {
  color: var(--colorHighlight);
}

.navItem:hover {
  color: var(--colorHighlight);
}

#footer {
  background-color: var(--colorBrown);
  padding: 0.7rem;
  color: var(--colorBG);
  text-align: left;
}

#footerContainer {
  display: flex;
  padding-left: 2rem;
  padding-right: 2rem;
}

#footerGrid {
  margin-right: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  row-gap: 0.7rem;
  column-gap: 1.2rem;
}

.footerText {
  display: flex;
  flex-direction: column;
  max-width: min(25vw, 40em);
}

.footerSubText {
  margin: 0;

  text-indent: 0rem;
}

.footerSubText.italic {
  font-size: 0.9rem;
  font-style: italic;
}

#footerQuickLinks {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 0.7rem;
}

.footerQuickLinksButton {
  cursor: pointer;
  position: relative;
  height: 2rem;
  width: 2rem;

  object-fit: cover;
  aspect-ratio: 1/1;
}

/* ================= */
/* -------BODY------*/
/* ================= */

/* Backgrounds / Sections */
.greenBG {
  position: relative;
  background-image: url("/images/background1.png");
  background-size: 60rem;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 4rem;

  color: var(--colorBG);
}

.whiteBG {
  position: relative;
  background-color: var(--colorBG);
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 4rem;

  color: var(--colorMain);
}

/* Countdown Widget */
#countdownWidgetContainer {
  background-color: var(--colorHighShad);
  margin-top: 2rem;
  padding: 1rem;
  width: 90%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 3rem;
}

#countdownWidgetTimer {
  display: flex;
  justify-content: space-evenly;
}

/* Text */
h1 {
  margin: 0.2rem;
  font-size: 4rem;
}

h2 {
  margin: 0.2rem;
  font-size: 2.5rem;
}

h3 {
  margin: 0.2rem;
  font-size: 2rem;
}

h4 {
  margin: 0.2rem;
  font-size: 1.5rem;
}

.headerTextAlt {
  font-family: "Poppins";
  font-weight: bold;
}

span {
  margin: 1rem;
  font-family: "Poppins";
  font-size: 1rem;

  /* Make it Justified */
  text-align: justify;
  text-indent: 2rem;
}

.unIndent {
  text-indent: 0;
}

ul {
  margin-block-start: 0;
  margin-block-end: 0;
}

li {
  text-align: justify;
  text-indent: 2rem;
}

/* Button */
.btn {
  width: 70%;

  text-decoration: none;
  border: none;
  border-radius: 12px;
  margin: 0.7rem;
  padding: 0.7rem;

  font-family: "League Spartan";
  font-size: 1rem;

  -webkit-user-select: none; /* Safari and Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard property */

  cursor: pointer;

  transition: transform 0.1s;
}

.btn.green {
  background-color: var(--colorMain);
  color: var(--colorBG);
}

.btn.white {
  background-color: var(--colorBG);
  color: var(--colorMain);
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

/* Useful Misc. */
.centerDiv {
  margin: 0px;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.centerDiv.vertical {
  flex-direction: column;
}

.invert {
  filter: invert(100%);
}

.unselectable-text {
  -webkit-user-select: none; /* Safari and Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard property */
}

img {
  -webkit-user-select: none; /* Safari and Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard property */
}

.largeContainer {
  background-color: var(--colorBG);
  width: 85%;
  max-width: 80rem;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 2rem;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  gap: 1rem;

  color: var(--colorMain);
}

/* Text Logo */
.dlsmunLogo {
  margin: 2.5rem;

  max-height: 4rem;
  width: auto;
  height: auto;
}

/* Cards */
.cardContainer {
  position: relative;
  padding: 1rem;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 4rem;
}

.card {
  position: relative;

  min-width: 12.5rem;
  max-width: 12.5rem;

  transition: all 0.2s;
}

.card.hiddenInfo:hover {
  transform: translate(-10em, 0);
}

.card.hiddenInfo:hover::after {
  position: absolute;
  transform: translate(10em, -100%);

  content: "<h3>" var(--hiddenInfoContent) "</h3>";

  background-color: var(--colorBGGreen);
  color: var(--colorBG);
  width: 20rem;
}

.card.large {
  min-width: max(25em, 50%);
}

.cardImg {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.cardImg.large {
  aspect-ratio: 3 / 2;
}

.borderGreen {
  border: 0.3em solid var(--colorMain);
}

.borderYellow {
  border: 0.3em solid var(--colorHighlight);
}

.cardName {
  height: 2rem;
  overflow: hidden;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;

  font-size: 1rem;
  justify-content: center;
  align-items: end;
}

.cardPos {
  height: 2rem;
  overflow-y: hidden;

  font-family: "Poppins";
  font-size: 1rem;
  line-height: 1rem;
}

/* Image + Text Combo */
.twoCol {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-grow: 1;
  flex-shrink: 1;
}

.twoCol.withMargin {
  margin: 1.5rem;
}

.imgCol {
  min-width: min(15em, 45%);
  max-width: 55%;

  object-fit: cover;
}

.otherCol {
  min-width: 15rem;
  width: 45%;
  max-width: 40rem;

  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
}

/* Expandable Cards */
.expdbleCard {
  background-color: var(--colorBGGreen);
  position: relative;

  border: 0.3em solid var(--colorHighShad);
  border-radius: 12px;
  box-shadow: 0px 2px 6px black;
}

.expdbleCard.showing {
  padding: 1.5rem;
  max-width: 75%;
}

.expdbleCard.hidden {
  z-index: 4;

  min-width: 15rem;
  max-width: 15rem;
  max-height: 22.5rem;

  cursor: pointer;
}

.expdbleCard.hidden::after {
  content: " ";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -100%);

  border: none;
  border-radius: 7px;
}

.expdbleCardTitle {
  position: absolute;
  margin: 0px;
  z-index: 3;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, 0);

  font-size: 2rem;

  transition: transform 0.5s;
}

.expdbleCard.hidden:hover .expdbleCardTitle {
  transform: translate(-50%, -30%);
}

.expdbleCardTitleAnim {
}

.imgCol.expdbleCardImg {
  position: relative;
  max-width: 100%;
  aspect-ratio: 2 / 3;
}

.expdbleCardCol {
  display: none;
}

/* Registration Div */
#registrationContainerHeader {
  display: flex;
  padding-right: 0.5rem;

  -webkit-user-select: none; /* Safari and Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard property */
}

#registrationTitle {
  margin: 0;
  margin-right: auto;
  align-content: center;
}

#registrationToggleButtons {
  display: flex;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.toggleButton {
  background-color: var(--colorBG);
  width: 8rem;
  height: 100%;
  padding-right: 0.2rem;
  padding-left: 0.2rem;
  border: 0.3em solid var(--colorMain);
  border-radius: 1rem;
  align-content: center;

  line-height: 1.2rem;
  color: var(--colorMain);
  cursor: pointer;
  transition: all 0.2s;
}

.toggleButton:hover {
  transform: translate(0px, -6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.toggleButton:active {
  transform: scale(0.95);
}

#registrationToggleSelected {
  background-color: var(--colorMain);
  color: var(--colorBG);
}

.registrationContainerBody {
  width: 100%;
  display: none;
}

#registrationToggleShow {
  display: block;
}

.registrationContent {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-rows: auto;
  align-items: start;
  gap: 1rem;
}

.registrationContainerBody.hidden {
  display: none;
}

#ADF {
  grid-template-columns: 1fr 1fr 1fr;
}

@media screen and (orientation: portrait) {
  html {
    font-size: 16px;
  }

  .twoCol {
    flex-direction: column;
  }

  .otherCol {
    width: 90%;
    max-width: 90%;
  }

  .imgCol {
    max-width: 80%;
  }
}
