/* ========== FLEXBOX GRID SYSTEM ========== */

.grid {
  display: flex; /* Enables Flexbox layout */
  flex: 0 1 auto;
  flex-direction: row; /* Lays out items in a horizontal row */
  flex-wrap: wrap; /* Allows wrapping to a new row when needed */
  justify-content: flex-start; /* Aligns items to the start of the row */
  align-items: flex-start; /* Aligns items to the top of the row */
}

.grid-col {
  flex: 0 0 auto;
  padding: 0 0.5rem 0.5rem;
  box-sizing: border-box; /* Includes padding and border in element width/height */
}

/* Responsive column widths (based on a 12-column layout system) */
.grid-col_1 { flex-basis: 8.33333333%; max-width: 8.33333333%; }
.grid-col_2 { flex-basis: 16.66666667%; max-width: 16.66666667%; }
.grid-col_3 { flex-basis: 25%; max-width: 25%; }
.grid-col_4 { flex-basis: 33.33333333%; max-width: 33.33333333%; }
.grid-col_5 { flex-basis: 41.66666667%; max-width: 41.66666667%; }
.grid-col_6 { flex-basis: 50%; max-width: 50%; }
.grid-col_7 { flex-basis: 58.33333333%; max-width: 58.33333333%; }
.grid-col_8 { flex-basis: 66.66666667%; max-width: 66.66666667%; }
.grid-col_9 { flex-basis: 75%; max-width: 75%; }
.grid-col_10 { flex-basis: 83.33333333%; max-width: 83.33333333%; }
.grid-col_11 { flex-basis: 91.66666667%; max-width: 91.66666667%; }
.grid-col_12 { flex-basis: 100%; max-width: 100%; }

/* ========== CUSTOM STYLING ========== */
.u-overlap.u-overlap-transparent:not(.u-overlap-contrast) .u-header :not(.u-nav-item) > a, .u-gradient > .u-container-layout > a, .u-image:not(.u-shading) > .u-container-layout > a, a {
  color: #259bca;
	text-decoration: underline;
}

a{
	color: #259bca;
	text-decoration: underline;
}

body {
  background-color: #c1c4c78c; /* Fallback color */
  margin: 0px;
  background-image: linear-gradient(white, black); /* Gradient background */
}

.footer {
  text-align: center;
  font-size: 1.05rem;
  margin-top: 5vh;
  padding: 2vh;
  background-color: #000000;
  color: white;
}

.container-fluid.container-fluid {
  max-width: 96vw;
  margin-left: 2vw;
  margin-right: 2vw;
}

.h1 {
  border-bottom: 3px solid #615055;
  padding: 2rem;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card.card {
  max-width: 65vw;
  min-height: fit-content;
  max-height: fit-content;
  border: 6px solid #3c3d3e;
  border-radius: 20px;
  box-shadow: 5px 2px 15px 8px rgba(0, 0, 0, 0.7);
  margin: auto;
  margin-top: 4vh;
  background-color: #f2f2f2;
}

.card2.card2 {
  max-width: 65vw;
  min-height: fit-content;
  max-height: fit-content;
  border: 1px solid #000000;
  border-radius: 10px;
  margin: auto;
  margin-top: 4vh;
  margin-bottom: 6vh;
  background-color: #ffffff;
}

.card-text {
  margin: 2%;
  padding: 1%;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  font-size: large;
}

.card-img.card-img {
  max-width: 70%;
  border: 2px solid #615055;
  border-radius: 10px;
  box-shadow: 7px 4px 10px 8px rgba(0, 0, 0, 0.6);
  margin: 15%;
  margin-top: 2vh;
  margin-bottom: 2vh;
}

.card-title.card-title {
  margin: 1rem;
}

.noLink {
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem;
  color: #9FD356;
  border: 2px solid #9FD356;
  background-color: #615055;
  border-radius: 7px;
  font-size: 1.3rem;
}

img {
  margin: auto;
  align-self: center;
  border-radius: 9px;
  border: 1px solid #615055;
  box-shadow: 5px 3px 20px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 2vh;
  margin-top: 4vh;
  max-width: 100%;
}

li {
  margin-top: 1vh;
  list-style: none;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
}

.card-header {
  border-bottom: 1px solid rgba(198, 189, 189, 0.582);
  background-color: rgba(198, 189, 189, 0.582);
  margin-top: 0px;
  padding: 1rem;
}

.noLink:hover {
  transition: 0.3s;
  color: #FCB5B5;
  font-weight: 700;
  border: 3px solid #CF8E80;
  box-shadow: 0px 1px 5px 3px rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
}

.noLinkCard {
  cursor: pointer;
  text-decoration: none;
}

.adjustable {
  flex-basis: 66.66666667%;
  max-width: 66.66666667%;
}

#goHome {
  margin-left: auto;
  text-decoration: none;
  color: black;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 550;
  font-size: larger;
}

#goHome:hover {
  background-color: #9d9d9d28;
}

/* ========== MEDIA QUERIES FOR RESPONSIVE DESIGN ========== */

@media (min-width: 768px) {
  .card-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  #home2 {
    display: none;
  }

  .card.card {
    max-width: 90vw;
    min-height: fit-content;
    max-height: fit-content;
    border: 6px solid #3c3d3e;
    border-radius: 20px;
    box-shadow: 5px 2px 15px 8px rgba(0, 0, 0, 0.7);
  }

  .card2.card2 {
    max-width: 90vw;
    min-height: fit-content;
    max-height: fit-content;
    border: 1px solid #3c3d3e;
    border-radius: 20px;
  }

  .card-img.card-img {
    max-width: 90%;
    box-shadow: 2px 2px 10px 4px rgba(0, 0, 0, 0.6);
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 1vh;
  }

  .adjustable {
    flex-basis: 100%;
    max-width: 100%;
  }
}