/* From Uiverse.io by gharsh11032000 */
.menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* or max-width if needed */
  padding: 0 20px; /* optional spacing */
}
.menu {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  width: fit-content;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.menu .link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 36px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu .link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1fbd2d;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu .link svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu .item {
  position: relative;
}

.menu .item .submenu {
  display: flex;
  background: #121212;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 100%;
  border-radius: 0 0 16px 16px;
  left: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid #cccccc;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  pointer-events: none;
  list-style: none;
}

.menu .item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  border-top: transparent;
  border-color: #1fbd2d;
}

.menu .item:hover .link {
  color: #ffffff;
  border-radius: 16px 16px 0 0;
}

.menu .item:hover .link::after {
  transform: scaleX(1);
  transform-origin: right;
}

.menu .item:hover .link svg {
  fill: #ffffff;
  transform: rotate(-180deg);
}

.submenu .submenu-item {
  width: 100%;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.submenu .submenu-link {
  display: block;
  padding: 12px 24px;
  width: 100%;
  position: relative;
  text-align: center;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.submenu .submenu-item:last-child .submenu-link {
  border-bottom: none;
}

.submenu .submenu-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  width: 100%;
  height: 100%;
  background-color: #1fbd2d;
  z-index: -1;
  transform-origin: left;
  transition: transform 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.submenu .submenu-link:hover:before {
  transform: scaleX(1);
  transform-origin: right;
}

.submenu .submenu-link:hover {
  color: #ffffff;
}

.lineup {
  display: flex;
  z-index: 2;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  gap: clamp(10px, 2vw, 40px);
}
.squad-section .lineup{
  width: 100%;
}
.lineup > * {
  flex: 1 1 auto; /* Let items shrink if needed */
  max-width: 100px; /* Optional: Cap the width */
}
.fsubs {
  max-width: 800px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  flex-direction: row;
  background-color: #1fbd2d;
}
.portfolio-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}
.automatic-substitutions {
  margin-top: 20px;
  padding: 10px;
  /* background-color: #f9f1c1; */
  border: 1px solid #1fbd2d;
  border-radius: 5px;
}

.gameweek-deadline {
  text-align: center;
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
}

#countdown-timer {
  font-weight: bold;
  font-size: 18px;
  color: #ff0000;
}

.player-info h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

/* .player-info p {
    font-size: 0.9rem;
  } */

.player-info span.up {
  color: green;
}

.player-info span.down {
  color: red;
}

.team-selection {
  margin: 20px;
  text-align: center;
}

.player-selection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
}

.player-card {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  width: 150px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 10px;
}
.player-card:hover {
  /* background-color: #e3e3e3; 
    border-color: #918c8c;  */
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.player-card img {
  border-radius: 50%;
}

.btn-primary,
.Tsave {
  margin-bottom: 10px;
  margin-top: 10px;
  background-color: #1fbd2d;
  color: white;
  padding: 10px 20px;
  border: none;
  width: 100px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}
.GCssabv {
  display: flex;
  justify-content: center;
  align-items: center; /* Optional: for vertical centering if the container has height */
  width: 100%;
}
.bottom-modal {
  background: var(--background-color);
  width: 100%;
  height: 60vh; 
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px;
  animation: slideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-modal button {
  margin: 5px;
  padding: 10px 20px;
  width: 90%;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.PTlgtr {
  min-height: 50vh;
  border: 1px solid #1fbd2d;
  position: relative;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 2% auto;
  padding: 20px;
  width: 95%;
  max-width: 1000px;
  overflow-y: auto;
  border-radius: 8px;
  height: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: none;
}
.highlight-zone {
  background-color: rgba(48, 118, 224, 0.2) !important;
  border: 2px dashed #3076e0 !important;
  transition: all 0.2s ease;
}
.points-summary{
  font-size: 16px;
  padding-bottom:10px ;
}
/* .PTlgtr img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -webkit-touch-callout: none;
  touch-action: none;
} */
.alert {
  background-color: #1fbd2d;
  width: 200px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* For absolute positioning if needed */
  left: 50%; /* Move to center */
  transform: translateX(-50%); 
  height: 60px;
}
.btn-primary:hover {
  background-color: #218838;
}

#messageContainer {
  margin-top: 10px;
  padding: 10px;
  font-weight: bold;
}

.hidden {
  display: none;
}

.action-buttons {
  margin: 10px 0;
}

.action-buttons button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
}

.action-buttons button:hover {
  background-color: #0056b3;
}
.green {
  color: #1fbd2d;
}

.red {
  color: #ff0000;
}

.gray {
  color: #888;
}

.five-a-side-team {
  text-align: center;
  margin: 20px;
}

.formation-dropdown {
  margin-bottom: 100px;
}
.slots-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.slots {
  justify-content: center;
  width: 650px;
  display: grid;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.gaplayer {
  position: relative;
  display: inline-block;
  margin: 5px;
  vertical-align: top;
  padding: clamp(8px, 2vw, 16px);
  color: #f5f5f5;
  justify-content: center;
  font-weight: bold;
  border-radius: 4px;
  width: clamp(60px, 15vw, 120px);
  flex: 0 1 auto;
  font-size: clamp(8px, 2.5vw, 14px);
  text-align: center;
  transition: all 0.2s ease;
}
.player-kit {
  width: clamp(30px, 10vw, 80px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: clamp(4px, 1vw, 8px);
  position: relative;
  z-index: 100;
}
.cap {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  color: white;
  border-radius: 50%;
  z-index: 1;
  margin: 10%;
}

.cap:not(:empty) {
  background: var(--lup-text);
}

.cap.double-captain {
  background: white;
  color: black;
  font-weight: 500;
}

.formation-container,
.squad-section {
  position: relative;
  background-color: #28a745;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  display: flex;
  max-width: 800px;
  margin: 5px auto;
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Container to wrap both formation and rank info */
.formation-rank-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 20px;
}
.rank-info {
    max-width: 350px;
}

.rank-box h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    text-align: center;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rank-item label {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.rank-item .value {
    font-size: 1.2rem;
    font-weight: 600;
}

.value.positive {
    color: #28a745;
}

.value.negative {
    color: #dc3545;
}


@media screen and (min-width: 950px) {
  .formation-rank-wrapper {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
  }
  .squad {
    width: 65%;
    position: relative;
    overflow: hidden;
  }
  .lineup {
    width: 98%;
    position: relative;
    overflow: hidden;
  }
  .squad-section {
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  .rank-info {
    width: 30%;
    position: sticky;
    top: 20px;
  }
}

.GSFTPA {
  position: absolute;
  top: 0;
  left: auto;
  transform-origin: center center;
  opacity: 60%;
  pointer-events: none;
  z-index: 2;
  width: 40%;
  max-width: 180px;
}
.GSFTPA svg {
  width: 100%;
  height: auto;
}
.CSGhba {
  position: absolute;
  bottom: 50px;
  opacity: 30%;
  border: 1px solid #f5f5f5;
  width: calc(100% - 2px);
  transform: rotate(0deg);
  background-color: #f5f5f5;
  pointer-events: none;
  z-index: 0;
}

.CSGhba::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid #f5f5f5;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

.CSGhba::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #f5f5f5;
  border-radius: 50%;
  pointer-events: none;
}

.xsub {
  display: flex;
  justify-content: flex-start;
}
/* From Uiverse.io by adamgiebl */
.chipcard {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(65px, 15vw); /* Use minimum of 65px or 15% of viewport width */
  height: min(100px, 25vw); /* Use minimum of 100px or 25% of viewport width */
  border-radius: 10px;
  padding: 2px;
  border-top: 2px solid #ff0000; /* red */
  border-right: 2px solid #1fbd2d; /* green */
  border-bottom: 2px solid #1fbd2d; /* green */
  border-left: 2px solid #ff0000; /* red */
  flex: 0 1 auto; /* Allow shrinking but maintain aspect ratio */
  overflow: hidden; /* Prevent content from overflowing */
}

.chipcard__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #121212;
  justify-content: center;
  border-radius: 10px;
  text-align: center;
  font-size: clamp(0.6rem, 2.7vw, 0.8rem);
  padding: 5px;
  box-sizing: border-box;
  z-index: 500;
  overflow: hidden; /* Prevent content from overflowing */
}
.chipcard__content a{
  color: #fff
}
.chip-title {
  font-size: 11px;
  font-weight: bold;
  width: 100%;
  text-align: center;
  margin-bottom: 2px;
}

.chip-status {
  font-size: 10px;
  width: 100%;
  text-align: center;
  opacity: 0.8;
}

.chipcard_active {
  width: min(65px, 15vw); /* Match chipcard width */
  height: min(100px, 25vw);
  background: #121212;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  place-items: center;
  overflow: hidden;
  padding: 2px;
  border-radius: 10px;
  flex: 0 1 auto; /* Allow shrinking but maintain aspect ratio */
}

.cancel-chip {
  position: relative;
  z-index: 1;
  text-decoration: none;
  margin-top: 5px;
  font-size: 10px;
  background-color: #dc3545;
  color: white;
  white-space: nowrap; /* Keep text on one line */
}

.chipcard_active::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: conic-gradient(
    #ff0000 0deg,
    /* top */ #ff0000 90deg,
    /* left */ #28a745 90.1deg,
    /* bottom */ #28a745 270deg,
    #ff0000 270.1deg,
    #ff0000 360deg
  );

  animation: spinBorder 3s linear infinite;
  border-radius: 12px;
  z-index: 0;
}

@keyframes spinBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.chipcard_active::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #121212;
  border-radius: 10px;
  z-index: 1;
}
.chipcard_active .chip-title,
.chipcard_active .chip-status {
  color: #f5f5f5;
}
/* New styles for used and unavailable states */
.chipcard.used {
  opacity: 0.5;
  pointer-events: none;
}

.chipcard.unavailable {
  opacity: 0.5;
  pointer-events: none;
}

.chipcard.used .chipcard__content {
  background-color: #6c757d;
  color: white;
  border-radius: 8px;
}

.chipcard.unavailable .chipcard__content {
  background-color: #6c757d;
  color: white;
  border-radius: 8px;
}

#chip-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.PHJR{
  display: flex;
  position: absolute;
  top: 0;
  left: 90px;
  font-weight: bold;
  font-size: 16px;
}
.FGST{
    position: relative;
    color: var(--text-color);
    bottom: 30%;
    left: 70px;
    width: 100px;
    justify-content: center;
    display: flex;
    align-items: center;
    height: 20px;
    border-radius: 0 0 4px 4px;
    background: rgb(10, 180, 24);
    font-size: 0.9em;
    margin-top: -8px;
}
.SEp{
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
bottom: 30%;
}
.EFGYt {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}
.inputFrm {
  gap: 10px;
  height: 20px;
}
.frm-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px; /* Creates space between form groups */
}
.SQDH{
  width: clamp(40px, 8vw, 70px);
}
.frm-group label {
  margin-bottom: 8px; 
  width: 40%;
  font-weight: bold;
  font-size: 16px; /* Slightly larger font size for better readability */
  text-align: left; /* Align label text to the left */
  display: block; /* Ensures label takes full width */
}

.frm-group input,
.frm-group select {
  padding: 8px;
  width: 50%;
  border-radius: 12px;
}
#player-grid {
  display: grid;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.player-row {
  display: flex;
  justify-content: center; /* Center align the row */
  gap: 20px;
}

.player-slot.dragging {
  opacity: 0.5;
  background-color: #1fbd2d;
  border: 2px dashed #888;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.player-slot.highlight {
  background-color: #e6f7ff; /* Light blue background */
  border: 2px dashed #1f78d1; /* Optional dashed border */
  transition: background-color 0.2s ease;
}
.player-slot.drag-over {
  background-color: #e0e0e0; /* Light grey to highlight when dragged over */
}
.player-slot img {
  width: 50%;
}

.player-slot .lock-indicator svg {
  width: 30px;
  margin-right: 5px;
  margin-top: 5px;
}
.lock-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.trade-form input,
#buy-form input {
  width: 120px;
  height: 25px;
  margin-bottom: 5px;
  font-size: 12px;
  border-radius: 8px;
  padding: 3px; /* Reduce padding */
}

.trade-form button,
#buy-form button {
  font-size: 12px;
  padding: 4px 8px;
}

.slot-content p {
  margin: 5px 0;
}

.add-player-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
}

.add-player-link:hover {
  text-decoration: underline;
}

.save-team-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#playerModal {
  background-color: var(--background-color);
}
.lock-message-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lock-message-popup-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.lock-message-popup button {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.lock-message-popup button:hover {
  background-color: #0056b3;
}

.save-team-button:hover {
  background-color: #218838;
}

#fixtures-list ul {
  font-weight: bold;
  border: #333;
  list-style-type: none;
  padding: 0;
}
ul {
  list-style-type: none;
}
#fixtures-list li {
  margin-bottom: 10px; /* Optional: Adds space between list items */
}
/* Center the fixtures list */
.fixtures-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  max-width: 800px;
  text-align: center;
}

/* Style the gameweek title */
.gameweek-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #333;
}

/* Style the fixture date */
.fixture-date {
  font-size: 1.2em;
  margin: 10px 0;
  color: #121212;
}

/* Style the fixture list */
.fixture-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style each fixture item */
.fixture-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  font-size: 1em;
}
.fixture-item img {
  width: 50px;
  height: 50px;
}
/* Add a border around the kickoff time */
.kickoff-time {
  border-top: 2px solid #ff0000; /* Top border: orange */
  border-right: 2px solid #28a745; /* Right border: blue */
  border-bottom: 2px solid #28a745; /* Bottom border: blue */
  border-left: 2px solid #ff0000; /* Left border: orange */
  padding: 5px 10px;
  flex: 0 0 60px;
  border-radius: 5px;
  background-color: #f9f9f9;
  width: 60px;
  margin: 0 16px;
  color: #121212;
}
.scoreline {
  border-top: 2px solid #ff0000;
  border-right: 2px solid #28a745;
  border-bottom: 2px solid #28a745;
  border-left: 2px solid #ff0000;
  padding: 5px 10px;
  flex: 0 0 50px;
  width: 40px;
  margin: 0 16px;
  border-radius: 5px;
  background-color: #f9f9f9;
  color: #121212;
}

.home-team,
.away-team {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
}
/* Style team names */
.away-team img {
  margin-left: 0; /* Push away team kits to align vertically */
}

.home-team,
.away-team {
  flex: 1; /* Make home and away teams take equal space */
}

.team-name {
  margin: 0 10px;
  font-weight: bold;
  font-size: 14px;
}
.next-opponent {
  font-weight: bold;
}
/* Add a divider between fixtures */
.fixture-divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 10px 0;
}
.score-win {
  background-color: #28a745;
}

.score-draw {
  background-color: #6c757d;
}

.score-loss {
  background-color: #dc3545;
}
/* No fixtures message styling */
.no-fixtures {
  font-size: 1.2em;
  color: #888;
}
.stockChart {
  width: 400px;
  height: 250px;
}
#playerActionModal {
  display: none;
  position: fixed;
  background: var(--background-color);
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: clamp(12px, 2vw, 24px);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: clamp(280px, 50vw, 400px);
  max-height: 80vh;
  height: auto;
  overflow-y: auto;
}

.player-card {
  padding: 10px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  width: 120px;
  text-align: center;
}
.auto {
  position: absolute;
  right: 0;
  top: 20px;
}

@media (max-width: 768px) {
  .team-name {
    font-size: 13px;
    display: flex;
    width: 90px;
    min-width: unset;
  }
  .squad{
    width: 100%;
  }
  .fixture-list {
    width: 350px;
  }
  .fixture-item {
    width: 350px;
  }
  .home-team,
  .away-team {
    width: 100px !important;
    gap: 0;
    flex-direction: column;
  }
  .home-team img,
  .away-team img {
    margin-bottom: 5px;
    position: relative;
    right: 30px;
  }
  .gameweek-title {
    font-size: 1.6em;
  }
  .scoreline,
  .kickoff-time {
    margin: 0 12px;
  }
  .player-card {
    display: flex;
    flex-direction: column;
    width: 150px;
    margin-right: 10px;
  }

  .btn-primary {
    width: 50px;
  }
}

.gaplayer.dragging {
  opacity: 0.5;
  background-color: transparent !important;
}

.dropdown {
  border: 1px solid #1fbd2d;
  border-radius: 12px;
  transition: all 300ms;
  display: flex;
  flex-direction: column;
  min-height: 58px;
  background-color: var(--background-color);
  overflow: hidden;
  position: relative;
  inset-inline: auto;
  max-width: 100%;
  min-width: 100%;
  margin-bottom: 1rem;
}

.dropdown input:where(:checked) ~ .list {
  opacity: 1;
  transform: translateY(-3rem) scale(1);
  transition: all 500ms ease;
  margin-top: 32px;
  padding-top: 4px;
  margin-bottom: -32px;
}

.dropdown input:where(:not(:checked)) ~ .list {
  opacity: 0;
  transform: translateY(3rem);
  margin-top: -100%;
  user-select: none;
  height: 0px;
  max-height: 0px;
  min-height: 0px;
  pointer-events: none;
  transition: all 500ms ease-out;
}

.trigger {
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-weight: 600;
  color: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  flex-flow: row;
  gap: 1rem;
  padding: 1rem;
  height: max-content;
  position: relative;
  z-index: 99;
  border-radius: inherit;
  background-color: var(--background-color);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.dropdown input:where(:checked) + .trigger {
  margin-bottom: 1rem;
}

.dropdown input:where(:checked) + .trigger:before {
  rotate: 90deg;
  transition-delay: 0ms;
}

.trigger:before {
  content: "›";
  rotate: -90deg;
  width: 17px;
  height: 17px;
  color: var(--text-color);
  border-radius: 2px;
  font-size: 26px;
  transition: all 350ms ease;
  transition-delay: 85ms;
  display: flex;
  justify-content: center;
  align-items: center;
}

.list {
  height: 100%;
  max-height: 20rem;
  width: calc(100% - calc(var(--w-scrollbar) / 2));
  display: grid;
  grid-auto-flow: row;
  overflow: hidden auto;
  gap: 1rem;
  padding: 0 1rem;
  margin-right: -8px;
  --w-scrollbar: 8px;
}

.listitem {
  height: 100%;
  width: calc(100% + calc(calc(var(--w-scrollbar) / 2) + var(--w-scrollbar)));
  list-style: none;
}

.article {
  padding: 1rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-align: justify;
  width: 100%;
  border: 1px solid #1fbd2d;
  display: inline-block;
  background-color: var(--background-color);
}

.webkit-scrollbar::-webkit-scrollbar {
  width: var(--w-scrollbar);
  height: var(--w-scrollbar);
  border-radius: 9999px;
}

.webkit-scrollbar::-webkit-scrollbar-track {
  background: #0000;
}

.webkit-scrollbar::-webkit-scrollbar-thumb {
  background: #0000;
  border-radius: 9999px;
}

.webkit-scrollbar:hover::-webkit-scrollbar-thumb {
  background: #c1c2c5;
}


