:root {
  --white: #FFFFFF;
  --softwhite: #fcfcfc;
  --black: #000000;
  --gray: #E9ECED;
  --mobilegray: #3F3F3F;
  --darkgray: #6C6C6C;
  --lightcoral: #FDA38A;
  --coral: #FF7F5A;
  --turquoise: #69D3E8;
  --lavender: #A379C9;
  --selective-yellow: #FFB802;
  --golden-yellow: #FFD700;
  --goldensearch: #FFDC58;
  --searchhover: #EEC119;
  --turquoise-light: #A5EDFC;
  --dodger-blue: #1DA1F2;
  --electric-blue: #3300FF;
  --purple: #9723C9;
  --magenta: #DE11D7;
  --pink: #FF7EBF;
  --lightblue: #BFEAF2;
}

html {
  font-family: 'Lexend';
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip; /* 👈 prevents horizontal scroll hard */
  width: 100%;       /* 👈 enforces 100% width, no extra push */
}

body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: var(--gray);
  min-height: 100vh;
  height: 100%;
  overflow-x: clip; /* 👈 again, just to be safe */
  width: 100%;       /* 👈 reinforces layout boundaries */
}



h1.about-header {
font-size: 4.13rem;
font-weight: 900;
margin-left: 13.9%;
padding-top: .5rem;
line-height: 6.25rem;
width: 100%;
}

p.about-subheader {
width: 70%;
margin-left: 13.9%;
margin-top: .1rem;
font-weight: 400;
color: var(--mobilegray);
font-size: 1.38rem;
line-height: 130%;
margin-bottom: 5rem;
}


/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between; /* Ensures other navbar elements don't push the search bar */
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--gray);
  color: var(--black);
  height: 10.81rem;
}

.navbar-logo img {
width: 12.88rem;
height: 5.81rem;
}

.navbar-links {
font-size: 16px;
font-weight: 600;
margin-right: 2rem;
font-family: 'Lexend', sans-serif;
}

.navbar-links a {
color: var(--black);
text-decoration: none;
font-size: 1.3rem;
}

.navbar-links a:hover {
transform: scale(1.02);
border-bottom: 2px solid var(--black);
}

/* FIX BELOW - SEARCH BAR, ICON, BUTTON */


.navbar-search {
  position: absolute; /* Remove from Flexbox flow */
  left: 50%; /* Move to the horizontal center of the navbar */
  transform: translateX(-50%); /* Offset by half its width for perfect centering */
  display: flex;
  align-items: center;
}

.navbar-search input {
  border: 2px solid var(--black);
  background-color: var(--softwhite);
  border-radius: 3px;
  height: 3rem;
  width: 30rem;
  font-family: 'Lexend';
  font-size: 1.2rem;
  padding-left: 0.5rem;
  background-color: var(--gray);
}

.navbar-search input:hover {
background-color: var(--white);
border: 2px solid var(--black);
outline: none;
}

.navbar-search input:focus {
border: 3px solid var(--black);
outline: none;
background-color: var(--white);
}

.navbar-search input:active {
background-color: var(--white);
}

.search-btn {
padding: 4px;
border: none;
cursor: pointer;
background-image: url('./assets/images/search.png');
background-repeat: no-repeat;
background-position: center;
height: 3.1rem; /* same height as the search bar */
width: 3.1rem;
margin-left: .5rem;
background-color: var(--gray);
}

.search-btn:hover {
background-color: var(--gray);
transform: rotate(-5deg);
}

/* .navbar-search button[type="submit"] {
position: absolute;
height: 2.13rem;
width: 1.38rem;
position: absolute;
right: 29.5rem;
top: 5rem;
padding: 0;
margin: 0;
opacity: 0;
border: 1px solid ;
border-radius: inherit;
cursor: pointer;
} */

/* End Navbar */

/* --------------------------------- */

/* --------- Home Page --------- */

/* Header */

/* .home-header { original
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2.5rem;
  font-size: 4.25rem;
  font-weight: 900;
  text-align: center;
  margin-left: 10rem;
  margin-right: 10rem;
  margin-bottom: 3rem;
  padding: 2.5rem;
  font-family: 'Lexend', sans-serif;
} */

/* new with responsive */

.home-header {
display: block;
text-align: center;
padding-top: 2.5rem;
font-size: 5rem;
font-weight: 900;
margin: auto;
margin-bottom: 1rem;
padding: 2.5rem;
width: 70%;
font-family: 'Lexend', sans-serif;
line-height: 1.2;
word-wrap: break-word;
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
.home-header {
    font-size: 3rem; /* Smaller font size for smaller screens */
    padding: 1rem; /* Adjust padding for smaller screens */
}
}


/* end home header styling  */



.emphasis {
font-style: oblique;
color: var(--lightblue);
font-weight: 900;
text-shadow:
  -1px -1px 0 #000,
   1px -1px 0 #000,
  -1px  1px 0 #000,
   3px  3px 0 #000;
letter-spacing: 0.04em;
}


.home-subheader {
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  margin: 0 auto 4rem auto; /* centers it horizontally */
  line-height: 28px;
  font-family: 'Lexend', sans-serif;
  /* width: 5%; */
  max-width: 1000px;
}


/* End Header */

/* Filter Section - Left Side */

.main-container {
display: flex;
align-items: flex-start; /* Align items at the start of the container */
padding: 2rem; /* Adjust padding as needed */
/* border: 1px solid red; */
}

.search-and-filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 90%; */
  margin: 0 auto;
}


.search-header {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  /* padding: 0 1rem 2rem; */
  width: 100%;
  box-sizing: border-box;
  font-size: 1.25rem;
  width: 50%;
}




.filter-wrapper {
width: 27rem;
/* height: 135rem; */
/* border: 1px solid red; */
}

.filter-wrapper h4 {
margin-top: .75rem;
}

.filter-container {
border: 1px solid var(--black);
}

.tools-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 27.31rem; /* keeps original intent on larger screens */
  margin: 0 auto;
  border: 2px solid var(--black);
  border-radius: 8px;
  background-color: var(--white);
  box-sizing: border-box;
  padding: 1rem;
}


.tools-wrapper h4 {
width: 405px;
height: 30px;
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: center;
margin: .25rem auto 1rem auto; /* centers the header */
}

.tools-container {
width: 25%;
}

.tools-container p {
font-size: .88rem;
text-align: center;
font-family: 'Lexend', sans-serif;
background-color: var(--white);
}

.tools-img {
display: block;
width: 4rem;
height: 4rem;
margin: 10px auto;
filter: grayscale(100%);
cursor: pointer;
}

.tools-img:hover {
transform: scale(1.05);
filter: grayscale(20%);
}

.tools-container.selected img {
transform: scale(1.1);
filter: grayscale(0%);
}

.tools-img:focus {
transform: scale(1.1);
filter: grayscale(0%);
}


.tools-images {
transform: scale(.8);
}

.tools-images img {
width: 5.5rem;
height: 5.5rem;
}

.players-wrapper {
  width: 100%;
  max-width: 27.31rem;
  height: 9.38rem;
  margin: 2rem auto 0 auto; /* replaces margin-left with centered layout */
  padding-bottom: 1rem;
  border: 2px solid black;
  border-radius: 8px;
  font-weight: 400;
  background-color: var(--white);
  box-sizing: border-box;
}


.players-wrapper h4 {
width: 405px;
height: 30px;
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: center;
margin: 1rem auto 0 auto; /* centers the header */
}

.players-wrapper select {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 14px 24px;
margin: 1rem auto 0 auto;
gap: 8px;
width: 25.31rem;
height: 3.5rem;
background: var(--gray);
border: 2px solid #000000;
border-radius: 4px;
font-family: 'Lexend';
font-size: 1.25rem;
line-height: 28px;
font-weight: 400;
}

select:hover {
background: var(--lightblue);
}

option#filter-option {
font-family: 'Lexend', sans-serif;
background-color: var(--white);
}

option#filter-option:hover {
background-color: var(--lightblue);
}

option:active {
border: 2px solid var(--coral);
}

.vibe-wrapper {
  width: 100%;
  max-width: 27.31rem;
  height: 45rem;
  border: 2px solid var(--black);
  border-radius: 8px;
  margin: 2rem auto 0 auto; /* center horizontally, preserve top margin */
  display: flex;
  flex-wrap: wrap;
  background-color: var(--white);
  box-sizing: border-box;
}


.vibe-wrapper h4 {
width: 25.31rem;
height: 3.75rem;
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: center;
margin: 1rem auto 0 auto;
}

.vibe-container {
width: calc((100% / 2) - 3.5rem);
height: 4.38rem;
border-radius: 4px;
border: 2px solid var(--black);
background: var(--gray);
display: flex;
flex-wrap: wrap;
font-size: 1.38rem;
flex-direction: row;
justify-content: center;
align-items: center;
padding: .5rem .5rem;
margin-left: 1rem;
margin-right: 1rem;
cursor: pointer;
}

.vibe-container:hover {
background-color: var(--lightblue);
box-shadow: 2px 2px 0px var(--black);
}

.vibe-container:focus {
background-color: var(--turquoise-light);
box-shadow: 2px 2px 0px var(--black);
}

.vibe-container.selected {
background-color: var(--turquoise);
box-shadow: 2px 2px 0px var(--black);
}

.time-wrapper {
  width: 100%;
  max-width: 27.31rem;
  height: 10.3rem;
  border: 2px solid var(--black);
  border-radius: 8px;
  margin: 2rem auto 0 auto;
  background-color: var(--white);
  box-sizing: border-box;
}


.time-wrapper h4 {
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: center;
margin: 1rem auto 1rem auto;
}

.time-wrapper select {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 14px 24px;
margin: 1rem auto 0 auto;
gap: 8px;
width: 25.31rem;
height: 3.5rem;
background: var(--gray);
border: 2px solid #000000;
border-radius: 4px;
font-family: 'Lexend';
font-size: 1.25rem;
line-height: 28px;
font-weight: 400;
margin-top: 1.5rem;
}

.difficulty-wrapper {
  width: 100%;
  max-width: 27.31rem;
  height: 12.2rem;
  border: 2px solid var(--black);
  border-radius: 8px;
  margin: 2rem auto 0 auto;
  background-color: var(--white);
  box-sizing: border-box;
}


.difficulty-wrapper h4 {
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: center;
margin: 1rem auto 1rem auto;
}

.difficulty-wrapper select {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 14px 24px;
margin: 1rem auto 0 auto;
gap: 8px;
width: 25.31rem;
height: 3.5rem;
background: var(--gray);
border: 2px solid #000000;
border-radius: 4px;
font-family: 'Lexend';
font-size: 1.25rem;
line-height: 28px;
font-weight: 400;
margin-top: 2.5rem;
}

select:hover {
background: var(--lightblue);
}

option#filter-option {
font-family: 'Lexend', sans-serif;
background-color: var(--white);
}

option#filter-option:hover {
background-color: var(--lightblue);
}

option:active {
border: 2px solid var(--coral);
}

.drinking-wrapper {
width: 27.31rem;
height: 11.25rem;
border: 2px solid var(--black);
border-radius: 8px;
margin-left: 3rem;
margin-top: 2rem;
background-color: var(--white);
}

.drinking-wrapper h4 {
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: left;
margin-left: 1rem;
}

.radio {
display: inline-flex;
align-items: center;
cursor: pointer;
font-family: 'Lexend';
font-size: 1.38rem;
padding-right: 5rem;
margin-left: 1rem;
}

.radio__input {
display: none;
}

.radio__radio {
width: 2.5rem;
height: 2.5rem;
border: 2px solid var(--black);
border-radius: 50%;
margin-right: 1rem;
box-sizing: border-box;
padding: 2px;
}

.radio__radio:hover {
background: var(--turquoise-light);
}

.radio__radio:after {
content: "";
width: 100%;
height: 100%;
display: block;
background: var(--turquoise);
border-radius: 50%;
transform: scale(0);
}

input[type=radio]:checked {
background: var(--black);
border: 5px solid var(--turquoise);
}

.radio__input:checked + .radio__radio:after {
transform: scale(1);
background: radial-gradient(#69D3E8, #478e9d);
}

.drinking-wrapper label {
display: inline-flex;
align-items: center;
justify-content: space-between;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
margin-left: 5rem;
cursor: pointer;
font-family: 'Lexend';
font-size: 1.38rem;
}

.drinking-wrapper input:checked {
background-color: var(--coral);
color: var(--coral);
border: 1px solid var(--coral);
}

.family-friendly-wrapper {
width: 27.31rem;
height: 9.5rem;
border: 2px solid var(--black);
border-radius: 8px;
margin-left: 3rem;
margin-top: 2rem;
background-color: var(--white);
}

.family-friendly-wrapper h4 {
font-family: 'Lexend';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 30px;
text-align: left;
margin-left: 1rem;
}

.button-wrapper {
display: flex;
flex-direction: column;
align-items: center;
/* gap: 1rem; */
margin-top: 2rem;
}

button.search-button {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 16px 155px;
gap: 8px;
/* margin-left: 3rem; */
/* margin-top: 2rem; */
width: 27.4rem;
height: 3.5rem;
background-color: var(--goldensearch);
border: 2px solid var(--black);
border-radius: 12px;
font-family: 'Lexend';
font-size: 1.25rem;
font-weight: 600;
cursor: pointer;
}

.search-button:hover {
background-color: var(--searchhover);
box-shadow: 2px 2px 0px var(--black);
cursor: pointer;
}

.search-button:active {
border: 2px solid var(--black);
background-color: var(--searchhover);
box-shadow: none;
}

button.reset-button {
display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 155px;
  gap: 8px;
  margin: 2rem auto;
  width: 27.4rem;
  height: 3.5rem;
  background-color: var(--lightcoral);
  border: 2px solid var(--black);
  border-radius: 12px;
  font-family: 'Lexend';
  font-size: 1.25rem;
  font-weight: 600;
  z-index: 1;
  white-space: nowrap;
}

.reset-button:hover {
background-color: var(--coral);
box-shadow: 2px 2px 0px var(--black);
cursor: pointer;
}

.reset-button:active {
border: 2px solid var(--black);
background-color: var(--coral);
box-shadow: none;
}


/* End Filter Section */


/* Results - Cards */

/* cards-list should be aligned with tools-wrapper */

.errormessage {
background-color: #FFBABA; /* Light red background */
border: 1px solid #D8000C; /* Red border */
padding: 10px; /* Padding around the message */
margin: 0px 0; /* Margin around the message */
border-radius: 5px; /* Rounded corners */
font-size: 24px; /* Font size */
text-align: center; /* Center the text */
}

.cards-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center the rows */
  align-items: flex-start;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto 0 auto;
  /* padding: 1rem; */
  gap: 1rem;
  box-sizing: border-box;
}

.card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  /* width: 14rem; */
  flex: 1 1 13rem;
  max-width: 14rem;
  height: 28rem;
  background: #FFFFFF;
  border: 2px solid #000000;
  border-radius: 8px;
}

.card a {
  text-decoration: none;
  color: var(--black);
}


.game-name {
  position: relative;
  height: 1rem; /* maybe, make dynamic? */
  font-family: 'Lexend';
  font-size: 1.75rem;
  margin-top: .65rem;
  font-weight: 600;
  margin-left: .5rem;
  line-height: 2rem;
}

.card-title a {
  text-decoration: none;
  color: var(--black);
}

.card-title a:hover {
  font-weight: 800;
}


.game-description {
    text-align: left;
    font-family: 'Lexend';
    font-size: .75rem;
    line-height: 15px;
    margin-top: 0.3rem;
    margin-left: .5rem;
    margin-right: .5rem;
    width: 95%;
    /* border: 1px solid red; */
    height: 40%; /* maybe, make dynamic? look into that, but also can adjust this height */
  }

.card-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  border: 1px sold red;
  width: auto;
  padding: .5rem;
  margin-top: .5rem;
}

.tools-display-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.tools-display-container {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  margin: 1rem 0;
}

.image-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.image-container img {
  width: 60px;
  height: 60px;
}

.image-title-container {
  font-size: .75rem;
  margin-top: .33rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  color: var(--black);
}



.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  text-align: center;
}

.tool-item img {
  width: 60px;
  height: 60px;
}

.tool-item p {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--black);
}


.tools-display-container:has(.tool-item:nth-child(3):last-child) .tool-item img {
  width: 36px;
  height: 36px;
  gap: 0;
}

.tools-display-container:has(.tool-item:nth-child(3):last-child) {
  gap: 0;
}



.cards-list .card .tools-display-container:has(.tool-item:nth-child(3)) {
  gap: 0;
}


.cards-list .card .tools-display-container:has(.tool-item:nth-child(3):last-child) img {
  width: 36px;
  height: 36px;
}

.cards-list .card .image-container:has(.tools-images:nth-child(3):last-child) img {
  width: 36px;
  height: 36px;
}

.image-container:has(img:nth-child(3):last-child) img {
  width: 28px;
  height: 28px;
}

.tool-item p {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--black);
  word-wrap: break-word;
}


div#toolsText p {
  color: var(--black);
}

.card-images {
  display: flex;
  flex-direction: column;
}

.card-images img {
  max-width: 94px;
  width: 70px;
  height: 70px;
  margin: 0;
  /* border: 1px solid red; */
}

.card-images p {
  font-family: 'Lexend';
  font-size: .75rem;
  text-align: center;
  color: var(--darkgray);
}

.card-filter-icons-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  row-gap: 0.3rem;
  padding: 0.5rem 0;
}

.card-filter-icons,
.card-filter-text {
  display: contents; /* let children fill the grid cells directly */
}

.card-filter-icons img {
  width: 1.5rem;
  height: 1.5rem;
}

.card-filter-text p {
  font-size: 0.75rem;
  margin: 0;
  text-align: center;
}



.icons-and-text {
  display: inline-block;
  justify-content: center;
  /* border: 2px solid blue; */
}

.card:hover {
  box-shadow: 2px 2px 0px var(--black);
}

/* End Results Cards */


.reset-button:hover {
  background-color: var(--coral);
  box-shadow: 2px 2px 0px var(--black);
  cursor: pointer;
}

.reset-button:active {
  border: 2px solid var(--black);
  background-color: var(--coral);
  box-shadow: none;
}

.title-white {
  color: white;
}

.title-black {
  color: var(--black);
}

/* Responsive Cards */

@media all and (max-width: 500px) {
  .card-list {
    /* On small screens, we are no longer using row direction but column */
    flex-direction: column;
  }
}

/* End Responsive Cards */

/* Footer */

/* .footer-section {
  height: 50%;
  bottom: 0;
  display: flex;
} */

.footer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: var(--black);
  width: 100%;
}

/* #footer {
  height: 44px;
  display: flex;
  justify-content: space-around;
  align-self: end;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    color: var(--black);
  position: relative;
} */

#footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

/* footer {
  margin-top: 5rem;
} */

footer a {
  color: var(--black);
  text-decoration: none;
}

footer a:hover {
  transform: scale(1.05);
}

/* End Footer */


/*
.card {
  margin: 30px auto;
  width: 300px;
  height: 300px;
  border-radius: 40px;
  background-image: url('https://i.redd.it/b3esnz5ra34y.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-repeat: no-repeat;
box-shadow: 5px 5px 30px 7px rgba(0,0,0,0.25), -5px -5px 30px 7px rgba(0,0,0,0.22);
  transition: 0.4s;
}
*/

/* -------- End Home -------- */

/* --------------------------------- */

/* ------- About Page --------- */




/* ------ End About Page ------ */

/* --------------------------------- */



/* 404 Page */

h1.error-header {
font-size: 4rem;
font-weight: 900;
margin-top: 2rem;
margin-bottom: 2rem;
text-align: center;

}

.error-img {
display: block;
margin: 0 auto;
width: 40%;
height: 40%;

}

/* Game Pages */


.game-main {
  width: 100%;
  max-width: 100vw;
  background-color: var(--lightblue);
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}


.game-main > * {
  min-width: 0;      /* prevents flex children from forcing overflow */
  max-width: 100%;
  box-sizing: border-box;
  gap: 1rem;
}

.game-main img {
  max-width: 100%;
  height: auto;
  display: block;
}

.game-main .game-detail {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.header-and-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.game-header {
  font-size: 4.25rem;
  font-weight: 900;
  line-height: 1.2;
  width: fit-content;
  text-align: center;
  margin: 0.25rem 0;

  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.aka-header {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--black);

  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.game-subheader {
  width: 50%;
  margin-top: 1rem;
  font-weight: 400;
  line-height: 130%;
  text-align: center;

  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.game-main-spacer {
  flex-grow: 1;
}

.game-details {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex: 1;

  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
}

.game-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* gap: 0.5rem; */
}

.game-detail img {
  width: 1.7rem;
  height: 1.7rem;
}

.game-details-img,
.game-details-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-details-img img {
  width: 1.38rem;
  height: 1.38rem;
}

.game-details-img,
.game-details-text {
  align-items: center;
}


/* End Hero Section */

/* Requirements and Vibes Section - Next Row of Content */

.requirements-vibes-wrapper {
display: flex;
flex-direction: row;
margin-top: 2rem;
}


.game-requirements {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.requirements-header {
  font-size: 3.13rem;
  font-weight: 900;
  margin-top: 3.75rem;
}

.requirements-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  list-style-type: none;
  text-align: center;
}

.game-vibes {
  width: 100%;
  text-align: center;
  /* margin-top: 2rem; */
}

.vibes-header {
  font-size: 3.13rem;
  font-weight: 900;
  margin-top: 3.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

.pills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
  /* border: 1px solid red; */
}

.game-vibe-pills {
  height: 2.75rem;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 1.38rem;
  background-color: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
}

/* Rules Section */

.rules-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  margin-bottom: 10rem;
  text-align: left;
}

.rules-header {
  font-size: 3.13rem;
  font-weight: 900;
  margin-top: 3.75rem;
  text-align: center;
}

.rules-headers {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.rules-text {
  width: 90%;
}

.setup-header,
.gameplay-header {
  font-size: 2.38rem;
  line-height: 48px;
  letter-spacing: 0.25rem;
  text-align: center;
  margin: 0;
}

.setup-text,
.gameplay-text {
  line-height: 130%;
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}


/* End Rules Section */

.how-to-play-video {
  width: 100%;
  max-width: 60rem;
  margin: 1rem auto 4rem;
  text-align: center;
  font-size: 1.5rem;
  padding: 1rem;
  box-sizing: border-box;
  /* border: 1px solid var(--black); */
}

.video-header {
  font-family: 'Lexend', sans-serif;
  font-size: 3.13rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.video-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border: 2px solid var(--black);
  border-radius: 12px;
}

.video-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#youtube-fallback {
  font-size: 1.2rem;
}

#youtube-fallback a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 600;
}

/* test update*/

/* ------- End Individual Page ------- */


/* ------- Directory Page ------- */

.sort-wrapper {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw; /* Full viewport width */
  padding: 1rem 2rem;
  margin: 1rem 0 1rem 0;
  display: flex;
  justify-content: flex-start;
  box-sizing: border-box;
  /* background-color: #f5f5f5; */
  /* border-bottom: 1px solid #ccc; */
  z-index: 1;
}


.sortby {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}


.sortby p {
  margin-right: 1rem;
  width: 80px;
}

#sort-options {
  width: 400px;
  height: 55px;
  font-size: 1.2rem;
  font-family: 'Lexend', sans-serif;
}

.sortby select option {
  font-size: 1.2rem;
  font-family: 'Lexend', sans-serif;
  background-color: var(--lightblue);
  color: var(--black);
}

.sort-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-sizing: border-box;
  /* background-color: red; */
}

.mobile-toggle {
  display: none
}

.directory-card-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  flex-wrap: wrap;
  justify-content: center;
  /* gap: 2rem; */
  margin-top: 2rem;
  margin-left: 3rem;
  margin-right: 3rem;
  list-style-type: none;
  text-align: left;
}


.directory-card-wrapper .card {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex: 1 1 16rem;
  max-width: 16rem;
  margin: 1rem;
  padding: 0.5rem;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

/* .directory-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 13rem;
  flex-basis: calc(25% - 1rem);
  margin: 10px;
  max-width: 13.13rem;
  height: 26.88rem;
  background: #FFFFFF;
  border: 2px solid var(--black);
  border-radius: 8px;
} */



@media (max-width: 500px) {

* {
  /* border: 1px solid red; */
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

select,
option,
input,
button {
  color: var(--black);
  font-family: inherit;    /* use your site font instead of system default */
}


div.navbar-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 220px;
  font-size: 1.9rem;
  /* border: 1px solid red; */
}


h1.home-header {
  font-size: 2.1rem;
  font-weight: 900;
  margin-left: auto;
  margin-right: auto;
  /* border: 1px solid red; */
}

h3.home-subheader {
  font-size: 1rem;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  /* margin-bottom: 5rem; */
  color: var(--mobilegray);
  /* border: 1px solid red; */
}

h3.search-header {
  font-size: 1.25rem;
  max-width: 85%;
  width: 85%;
  /* border: 1px solid red; */
}

nav.navbar {
  width: 100%;
  height: 134px;
}

div.navbar-logo {
  /* content: url('./images/mobile-logo.png'); */
  width: 70px;
  height: 70px;
}

div.navbar-logo img {
  content: url('./images/mobile-logo.png');
  width: 70px;
  height: auto;
}

div.navbar-search {
  display: none;
}

div.navbar-links a {
  /* display: none; */
  font-size: .85rem;
  position: absolute;
  right: 1rem;
}
.search-header {
  font-size: 1.25rem;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 2rem;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  /* width: 100%; */
  padding: 1rem;
}

div.filter-wrapper {
  display: flex;
  flex-direction: column;
  width: 85%;
  max-width: 100%;
  align-items: center;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
}

div.tools-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}

div.tools-wrapper h4 {
  font-size: 1.2rem;
  width: 100%;
  margin: 0 auto 1rem auto;
}

/* div.tools-container {
  width: 33.3%;
} */
 /* @media (hover: hover) and (max-width: 500px) {


  .tools-container:not(.selected) .tools-img:hover {
  transform: scale(1.05);
  filter: grayscale(20%);
}


  .tools-img:focus {
    transform: scale(1.1);
    filter: grayscale(0%);
  }

  this is competing with the js blur on line 16 filter.js
 } */

div.players-wrapper {
  width: 100%;
}

div.players-wrapper h4 {
  font-size: 1.2rem;
  width: 100%;
}

div.players-wrapper select {
  width: 90%;
}

div.vibe-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

div.vibe-wrapper h4 {
  font-size: 1.2rem;
  height: auto;
}

div.vibe-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  margin: .75rem;
  font-size: 1.05rem;
  width: 130px;
}

div.time-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-bottom: 1rem;
}

div.time-wrapper h4 {
  font-size: 1.2rem;
}

div.time-wrapper select {
  width: 90%;
}

div.difficulty-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding-bottom: 1rem;
}

div.difficulty-wrapper h4 {
  font-size: 1.2rem;
  margin: 0 auto 0 auto;
  width: 100%;
  height: auto;
}

div.difficulty-wrapper select {
  width: 90%;
}

div.family-friendly-wrapper {
  width: 100%;
  padding-bottom: 1rem;
}

div.family-friendly-wrapper h4 {
  font-size: 1.25rem;
}

select {
  margin: 1rem;
}

.button-wrapper {
  margin-bottom: 2rem;
}

button.search-button,
button.reset-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85%;
  max-width: 100%;
  /* margin: 1rem auto; */
  /* padding: 1rem; */
  font-size: 1.1rem;
  box-sizing: border-box;
}


button.reset-button {
background-color: var(--lightcoral);
/* margin-top: 16rem; */
}

button.reset-button p {
  width: auto;
  white-space: nowrap;
  overflow: hidden;
}

button.search-button:hover,
button.reset-button:hover {
box-shadow: 2px 2px 0px var(--black);
cursor: pointer;
}

button.search-button:active,
button.reset-button:active {
border: 2px solid var(--black);
box-shadow: none;
}

button.search-button:hover {
background-color: var(--searchhover);
}

button.reset-button:hover {
background-color: var(--coral);
}

button.search-button:active {
background-color: var(--searchhover);
}

button.reset-button:active {
background-color: var(--coral);
}

/* .cards-list {
  position: static;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 1rem auto;
  width: 90%;
  padding: 1rem;
  gap: 1rem;
}

div.cards-list .card {
  display: block;
  width: 90%;
  margin: 0 auto;
  padding: .5rem;
} */

.cards-list {
  flex-direction: column;
  align-items: center;
  margin: 1rem auto;
  width: 90%;
  padding: 1rem;
  gap: 1rem;
}

.card {
  width: 80%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 0.5rem;
}

.tool-item img {
  width: 64px;
  height: 64px;
}


.card-filter-text p {
  font-size: 12px;
}

.game-name {
  margin-top: .25rem;
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  line-height: normal;
}

.game-description {
  margin-bottom: 0;
  /* border: 1px solid red; */
}

.image-title-container {
  padding: 0;
  margin: 0 auto;
  /* border: 1px solid red; */
}


div.footer-section {
  display: flex;
  justify-content: space-around;
  width: 90%
}




h1.about-header {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  margin: 1rem auto 0 auto;
  padding-top: 0.5rem;
  width: 90%;
}

p.about-subheader {
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  font-weight: 400;
  color: var(--mobilegray);
  margin: 1.5rem auto 3rem auto;
  width: 90%;
}

/* toggle on index */

 .cards-list.compact-view {
  flex-direction: row;
  flex-wrap: wrap;
  width: 90%;
}

.cards-list.compact-view .card {
  flex: 1 1 120px; /* 2 per row */
  max-width: 120px;
  /* min-width: 120px; */
  height: 160px;
  /* background-color: red; */
  position: relative;
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  text-align: center;      /* center multiline text */
}

.cards-list.compact-view .card .game-name {
  font-size: 1rem;
  /* border: 1px solid var(--black); */
  margin: 0.5rem;
  margin-bottom: 2.5rem;

}

.cards-list.compact-view .card .game-description {
  display: none;
}

.cards-list.compact-view .card .tools-display-container {
  display: flex;
  flex-wrap: nowrap; /* forces single row */
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;  /* removes scroll */
  width: 100%;
}

/*If a card has 3 tools, the images will shrink to fit*/
.cards-list.compact-view .card .tools-display-container:has(.tool-item:nth-child(3):last-child) img {
  width: 28px;
  height: 28px;
}

.image-container:has(img:nth-child(3):last-child) img {
  width: 28px;
  height: 28px;
}



.cards-list.compact-view .card img {
  width: 45px;
  height: 45px;
  overflow-x: hidden;
}

.cards-list.compact-view .card .card-filter-icons {
  display: none;
}

.cards-list.compact-view .card p {
  display: none;
}

/* END HOME STYLES */

/* MOBILE STYLES FOR DIRECTORY PAGE */

.sort-wrapper {
    position: relative;
    width: 100%;
    padding: 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ centers all children horizontally */
    gap: 0.75rem;
  }

  .sortby {
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ centers text + dropdown inside */
    font-size: 1rem;
    width: 100%;
  }

  .sortby p {
    margin-bottom: 0.1rem;
    margin-left: 13px;
    text-align: center;
    font-size: 1rem;
    /* border: 1px solid red; */
    width: 90%;
    max-width: 400px;
  }

  #sort-options {
    width: 90%;       /* ✅ shrink slightly so it doesn't hit screen edges */
    max-width: 400px;  /* optional: prevents it from stretching too far */
    font-size: 1rem;
    height: 48px;
    margin-bottom: 1.75rem;
  }

  /* Experimental here */

  .mobile-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    height: 36px;
  }

  .mobile-toggle.view-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.icon-toggle.hidden {
    display: none !important;
  }

/* Icons */
.view-icon {
  font-size: 1.5rem;
  user-select: none;
}




.icon-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin: 1rem 0;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.button-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.view-toggle-btn {
  box-sizing: border-box;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s, border 0.3s;
  color: inherit;
}

.view-toggle-btn svg {
  display: block; /* Removes baseline spacing */
  width: 1.4rem;
  height: 1.4rem;
}


.view-toggle-btn svg {
  display: block; /* Removes baseline spacing */
  width: 1.6rem;
  height: 1.6rem;
}


.view-toggle-btn.active {
  background-color: var(--lightblue);
  /* color: var(--softwhite); */
  border: 2px solid var(--black);
}


  .directory-card-wrapper.compact-view {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.directory-card-wrapper.compact-view .card {
  flex: 1 1 120px; /* 2 per row */
  max-width: 120px;
  /* min-width: 120px; */
  height: 176px;
  /* background-color: red; */
  position: relative;
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  text-align: center;      /* center multiline text */
}

.directory-card-wrapper.compact-view .card .game-name {
  font-size: 1rem;
  /* border: 1px solid var(--black); */
  margin: 0;
  margin-bottom: 2.5rem;

}

.directory-card-wrapper.compact-view .card .game-description {
  display: none;
}

.directory-card-wrapper.compact-view .card .card-filter-icons {
  overflow-x: auto;
  width: 100%;
}

.directory-card-wrapper.compact-view .card .tools-display-container {
  display: flex;
  flex-wrap: nowrap; /* forces single row */
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  overflow: visible;  /* removes scroll */
  width: 100%;
}

.directory-card-wrapper.compact-view .card img {
  width: 50px;
  height: 50px;
  overflow-x: hidden;
}

.directory-card-wrapper.compact-view .card .card-filter-icons {
  display: none;
}



.directory-card-wrapper.compact-view .card p {
  display: none;
}

/* end of experiment */


  .directory-card-wrapper {
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .directory-card-wrapper .card {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 20rem;
    margin: 1rem auto;
    padding: 0.5rem;
    box-sizing: border-box;
  }

/* Mobile Game Page */

.game-main {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 22rem;
  height: auto;
  max-height: none;
}

.game-header {
  font-size: 2.2rem;
  margin: .5rem auto 0.5rem;
}

.aka-header {
  margin: 0.25rem 0;
  font-size: .8rem;
  font-weight: 600;
}

.game-subheader {
  width: 100%;
  max-width: 600px;
  margin: 0.25rem auto 2rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 400;
}

.game-main-spacer {
  flex-grow: 1;
}

.game-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
  /* margin-bottom: 2rem; */
}

.game-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 5rem;
  max-width: 6rem;
  font-size: .9rem;
  word-wrap: break-word;
}

.game-detail img {
  width: 1.3rem;
  height: 1.3rem;
  /* margin-bottom: 0.5rem; */
  max-width: 100%;
}

#game-players {
  font-size: .8rem;
}

#game-time {
  font-size: .8rem;
}

#game-difficulty {
  font-size: .8rem;
}


.requirements-vibes-wrapper {
  width: 100%;
  flex-direction: column;
  margin-bottom: 3rem;
}

.requirements-header {
  font-size: 2rem;
  margin: 0 1rem;
}

.requirements-list {
  width: fit-content;
  margin: 1.75rem auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  text-align: center;
  font-size: 1rem;
}

.requirements-list img {
  width: 56px;
  height: 56px;
}

.requirements-list p {
  font-size: .8rem;
}

.game-vibes {
  background-color: var(--lightblue);
}

.vibes-header {
  font-size: 2rem;
  margin: 0 1.5rem 1rem;
  margin-top: .75rem;
}

.pills-container {
  margin: 0 auto 3rem auto;
}

.game-vibe-pills {
  height: 1.75rem;
  width: fit-content;
  font-size: 1rem;
}

.rules-header {
  font-size: 2rem;
  margin: 0 1.5rem;
  margin-top: -.75rem;
}

.rules-wrapper {
  width: 100%;
  margin: 0 1.6rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.how-to-play-video {
  background-color: var(--lightblue);
}

.video-header {
  font-size: 2rem;
  font-weight: 700;
  /* margin: 1.5rem auto; */
  margin: 0.5rem auto 1.5rem auto;
}

#youtube-fallback {
  font-size: .8rem;
}

}

/* THIS IS THE END OF MOBILE STYLES */
/* TABLET */

@media (min-width: 500px) and (max-width: 1280px) {

  h1.about-header {
  font-size: 3.5rem;
  font-weight: 900;
  /* margin-left: 13.9%;
   */
  padding-left: 2rem;
  padding-top: .5rem;
  /* line-height: 6.25rem; */
  width: 90%;
  }

  p.about-subheader {
  width: 100%;
  /* margin-left: 13.9%; */
  padding-left: 1rem;
  margin-top: .1rem;
  font-weight: 400;
  color: var(--mobilegray);
  font-size: 1.38rem;
  line-height: 130%;
  margin-bottom: 5rem;
  }

  div.navbar-search {
    display: none;
  }

  h1.home-header {
    font-size: 3.13rem;
    font-weight: 900;
    display: flex;
    margin: 0;
    justify-content: center;
  }

  h3.home-subheader {
    font-size: 1.38rem;
    display: flex;
    justify-content: center;
    margin: 1rem;
    color: var(--mobilegray);
  }

  h3.search-header {
    font-size: 1.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  div.filter-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 90%;
    align-items: start;
  }

  div.vibe-container {
    justify-content: center;
    align-items: center;
    display: flex;
    margin: .75rem auto;
    font-size: 1.25rem;
  }

  div.time-wrapper, div.difficulty-wrapper {
    padding-bottom: 1rem;
  }



  div.family-friendly-wrapper {
    padding-bottom: 1rem;
  }

  div.footer-section {
    display: none;
  }

  button.search-button {
    margin-bottom: 1rem;
  }

  div.footer-section {
    margin-top: 5rem;
    position: absolute;
    bottom: 0;
  }


  /* Game Page */

  div.navbar-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 300px;
    /* border: 1px solid red; */
  }

  div.game-main {
    display: block;
  }

  div.header-and-sub {
    width: 100%;
  }

  h1.game-header {
    margin-left: 2rem;
    font-size: 3.13rem;
  }

  p.game-subheader {
    margin-left: 2rem;
    margin-top: -1rem;
    font-size: 1rem;
    height: fit-content;
    width: 90%;
    font-weight: 400;
    color: var(--mobilegray);
    /* border: 1px solid red; */
  }

  div.game-details {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    /* border: 1px solid red; */
    /* work on this */
  }

  div.game-details-img {
    display: none;
    flex-direction: row;
    justify-content: space-evenly;
  }

  div.game-details-text {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 400px;
    margin-top: 0.9rem;
  }



  .requirements-vibes-wrapper {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;
    text-align: center;
  }

  .requirements-vibes-wrapper h2 {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    font-size: 2rem;
    text-align: center;
  }

  .requirements-header,
  .vibes-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    text-align: center;
  }

  .pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  ul.requirements-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    padding: 0;
    background-color: blue;
    border: 1px solid black;
    list-style: none;
    text-align: center;
  }

  ul.requirements-list p {
    color: red;
  }

  .rules-wrapper {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: start;
    gap: 5rem;
    margin: 0 auto;
    text-align: left;
    background-color: blue;
  }

  .rules-wrapper p {
    width: 100%;
    max-width: 600px;
    font-size: 1.5rem;
  }

  .rules-text {
    font-size: 2rem;
    text-align: left;
  }





  div.cards-list {
    width: fit-content;
    display: flex;
    justify-content: end;
    flex-wrap: wrap;

  }

  /* About Page */

  h1.about-header {
    font-size: 3.13rem;
    margin: 1rem;
  }

  p.about-subheader {
    margin-left: 2rem;
    margin-right: 2rem;
    width: 80%;
  }

}
