@font-face {
  font-family:"tf2font";
  src: url("tf2build.ttf") format("truetype");
}




:root {
  --header-height: 8.5vh;
  --footer-height: clamp(46px, 5vh, 62px);
  --page-gap: clamp(10px, 1vw, 20px);
  --chat-width: 15%;
  --chat-right-gap: 1em;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background-color: #121318;
  margin: 0;
  padding: 0;
  overflow: hidden; /* ✅ stop whole-page scrolling */
}

body {
  font-family: tf2font;
}

#pageWrapper {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden; /* ✅ only inner panels should scroll */
}




header {
  font-family: tf2font;
  position: fixed; /* ✅ fixed header */
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  width: 100%;
  box-sizing: border-box;
  background-color: #1e1f23;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  list-style-type: none;
  gap: clamp(1em, 2vw, 3em);
  align-items: center;
  padding-left: 1em;

  z-index: 900; /* below modals, above page */
}

header li {
    /* flex-grow: 1; Allow items to grow and shrink */

    flex-basis: 9rem;
    text-align: center; /* Center text */
    height: 100%; /* Set height to 100% to fit to header height */
    /* border-left: 0.5px solid rgb(211,211,211, 0.5); 
    border-right: 0.5px solid rgb(211,211,211, 0.5);  */
    /* border: 1px red solid; */
    display: flex; /* Enable flexbox layout for centering */
    align-items: center; /* Center content vertically */
    justify-content: center;
}

header li:last-child {
    display: flex;
    margin-left: auto;
    margin-top: auto;
    padding-right: 45px;
    border: none;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 6vh;
  object-fit: contain;
}


#user-photo {
  border: 2px solid lightgrey;
  width: clamp(34px, 2.5vw, 54px);
  height: clamp(34px, 2.5vw, 54px);
  object-fit: cover;
  box-shadow: 0 0 10px rgba(200, 200, 200, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}


#user-photo:hover {
  box-shadow: 0 0 15px rgba(200, 200, 200, 0.6); /* Brighter glow on hover */  
}

/* .user-level {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: #f0b90b;
  color: #121318;
  font-size: 18px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'tf2font', sans-serif;
} */

.user-level {
  position: absolute;
  bottom: 1px;
  left: 1px;
  background: #f0b90b;
  color: #121318;
  font-size: clamp(9px, 0.65vw, 13px);
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: 'tf2font', sans-serif;
}

#user-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: clamp(11px, 0.8vw, 15px);
}


#user-info {
  flex-direction: column-reverse;
  gap: 4px;
  color:white;
  display: none;
  cursor: pointer;
  max-width: 100%;
  align-items: center;  
}

#user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1f1f1f;
  border: 1px solid #444;
  border-radius: 4px;
  z-index: 1000;  
  width: 174px;
  padding: 5px;
  margin-right: 30px;
}

#user-dropdown button {
  background: none;
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: tf2font;
}

#user-dropdown button:hover {
  background-color: #333;
}

#logout-button {
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-header a, .coinflip-header a, .faq-header span, .tos-header span, .Spycrab, .giveaway-header a {
  color:  beige;
  opacity: 1;
  text-decoration: none;
}

.faq-header:hover, .coinflip-header:hover, .tos-header:hover, .Spycrab:hover, .giveaway-header:hover{
  cursor: pointer;
  opacity: 0.7;  
}

.active-giveaway {
  color: #f0b90b;          /* highlight color */
  pointer-events: none;    /* disables clicks */
  cursor: default;         /* normal cursor */
  opacity: 1;              /* keep it fully visible */
  border-bottom: 2px solid #f0b90b; /* underline highlight */
}

.active-coinflip {
  color: #f0b90b;          /* highlight color */
  pointer-events: none;    /* disables clicks */
  cursor: default;         /* normal cursor */
  opacity: 1;              /* keep it fully visible */
  border-bottom: 2px solid #f0b90b; /* underline highlight */
}

.userdetails{
  margin-left: auto;
  font-family: tf2font;
  min-width: 0;
  max-width: clamp(70px, 7vw, 115px);
  overflow: visible;
}

.custom-linksteam a{
    opacity: 1;
    text-decoration: none;
}

.custom-linksteam:hover {

  cursor: pointer;
  opacity: 0.85;
}


.container {
  --game-row-columns:
    clamp(155px, 10vw, 220px)
    minmax(260px, 1fr)
    clamp(95px, 7vw, 140px)
    clamp(90px, 6vw, 120px)
    clamp(95px, 7vw, 130px);

  position: fixed;
  top: calc(var(--header-height) + var(--page-gap));
  left: var(--page-gap);

  right: calc(var(--chat-width) + var(--chat-right-gap) + var(--page-gap));

  bottom: calc(var(--footer-height) + var(--page-gap));

  width: auto;
  height: auto;
  box-sizing: border-box;

  padding: 1em;
  margin: 0;
  border-radius: 10px;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;

  transition: right 0.35s ease;
}


body.chat-collapsed .container {
  right: var(--page-gap);
}

body.chat-collapsed #chat-toggle-buttons {
  right: var(--page-gap);
}


::-webkit-scrollbar {
  width: 12px;
  background-color: black;
}
::-webkit-scrollbar-thumb{
  background-color: rgb(44, 47, 52);
  border-radius: 50px;
  box-shadow:0px 0px 6px 2px rgba(0, 0, 0, 0.5) inset;
}


/* 🔁 If screen width is less than 1900px */
@media (max-width: 1899px) {
  .container {
    right: var(--page-gap); /* ✅ full width when chat is hidden */
    width: auto;
  }

  #chat-toggle-buttons button {
    display: none !important;
  }

  #message-container {
    display: none !important;
  }
}


/* 🔒 If screen width is less than 1250px */
@media (max-width: 1249px) {
  .container {
    right: var(--page-gap);
    width: auto;
  }

  #message-container {
    display: none !important;
  }

  .logo-container {
    display: none;
  }
}



#modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
}

#historyOverlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
}


#JoinGameOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* dark semi-transparent */
  display: none;
  z-index: 1000;
}

/* #JoingGameContainer */
#modalContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  height: min(78dvh, calc(100dvh - 32px));
  transform: translate(-50%, -50%);

  background-color: #191a1e;
  color: white;
  padding: clamp(12px, 1.1vw, 20px);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  font-family: 'tf2font';

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  column-gap: clamp(10px, 1vw, 18px);
  row-gap: clamp(5px, 0.55vw, 9px);

  overflow: hidden;
}

#coinSelectionContainer {
  grid-column: 2;
  grid-row: 3 / 6;
  justify-self: end;
  align-self: end;

  position: static;
  margin: 0;
  text-align: right;
  font-family: 'tf2font';
  font-size: clamp(11px, 0.75vw, 14px);
  color: white;
} 

#coinChoices {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  justify-content: flex-end;
}

#coinChoices img {
  width: clamp(38px, 2.6vw, 50px);
  height: clamp(38px, 2.6vw, 50px);
}

.coin-option {
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: border 0.2s ease;
}

.coin-option img {
  border-radius: 50%;
}

/* Default (no selection) */
.coin-option {
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: border 0.2s ease;
}

/* Selection borders by type */
.coin-option.selected[data-coin="blu"] {
  border: 2px solid rgba(83, 125, 139, 1); /* Blu color */
}

.coin-option.selected[data-coin="red"] {
  border: 2px solid rgba(167, 88, 75, 1); /* Red color */
}


/* [id^="JoingGameContainer"]{
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 74%;
  transform: translate(-50%, -50%);
  background-color: #191a1e;
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow: auto; 
  font-family: 'tf2font';  
} */



[id^="JoingGameContainer"]{
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  height: min(78dvh, calc(100dvh - 32px));  transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);


  background-color: #191a1e;
  color: white;
  padding: clamp(12px, 1.1vw, 20px);

  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  column-gap: clamp(10px, 1vw, 18px);
  row-gap: clamp(5px, 0.55vw, 9px);

  overflow: hidden; /* Add scrollbars when content overflows */
  font-family: 'tf2font';
  /* display: none; */
}



#tradeContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  padding: 20px;
  z-index: 1000;
}



#modalContent {
  grid-column: 1 / -1;
  grid-row: 2;

  overflow-y: auto;
  overflow-x: hidden;

  background-color: #121318;
  color: antiquewhite;
  font-size: 12px;
  display: grid;

  min-height: 0;
  height: auto;

  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: 160px;
  gap: 4px;
  column-gap: 7px;
  padding: 2px;
  font-family: 'tf2font';
}




#JoingGameContent {
  grid-column: 1 / -1;
  grid-row: 2;

  /*
   * Occupy the complete flexible middle row of the join modal,
   * even when there are only a few inventory items.
   */
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
  box-sizing: border-box;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;

  background-color: #121318;
  color: antiquewhite;
  font-size: 12px;

  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-rows: 160px;
  gap: 4px 7px;

  padding: 2px;
  font-family: 'tf2font';
}

#totalPriceContainer_2ndplayer {
  grid-column: 1;
  grid-row: 3;

  align-self: end;
  padding-top: 0 !important;

  font-size: clamp(12px, 0.8vw, 15px);
  font-family: 'tf2font';
}

#priceRangeContainer {
  grid-column: 1;
  grid-row: 4;

  align-self: end;
  margin: 0;

  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.25;
  font-family: 'tf2font';
}



.item-container {
  background-color: #1e1f23;
  position: relative;
  padding: 10px;
  border-radius: 30px;
  margin: 5px;
  text-align: center;
  height: 135px;
  cursor: pointer;
  justify-content: start;
}

.item-container > div:last-child {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}


.item-container.selected {
  border-color: #000000;
  background-color: #21363d;
  cursor: pointer;
}

.market-name, .price {
  margin: 5px 0;
}

 #CreateGame, #CloseJoinGame{
  margin-bottom: 10px;
  margin-top: 9px;
  font-family: tf2font;
  /* width: 87px; */
  height: 38px;
  background-color: midnightblue;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

/* For the top-left game ID label */
.top-game-id {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 18px;
  font-family: tf2font;
  color: #ccc;
}

/* Enhanced top-right close button */
.top-close-btn, .top-close-btn-join{
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  background-color: transparent;
  border: 2px outset rgb(0, 0, 0, 0.3);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: 4px 10px;
  transition: all 0.2s ease-in-out;
}

.top-close-btn-hist {
  position: absolute;
  top: 2px;
  right: 0px;
  font-size: 17px;
  background-color: transparent;
  border: 2px outset rgb(0, 0, 0, 0.3);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: 4px 10px;
  transition: all 0.2s ease-in-out;
}

.top-close-btn:hover, .top-close-btn-join:hover, .top-close-btn-hist:hover {
  background-color: #1e1e45;
  border-color: #1e1e45;
  color: #fff;  
}



#JoinGame {
  grid-column: 2;
  grid-row: 3 / 6;

  justify-self: end;
  align-self: end;

  position: static;
  right: auto;
  bottom: auto;

  height: 38px;
  margin: 0 0 10px 0;
  padding: 0 12px;

  font-family: 'tf2font';
  font-size: 14px;

  background-color: midnightblue;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#JoinGame:disabled {
  position: static;
  right: auto;
  bottom: auto;

  background-color: gray;
  cursor: not-allowed;
  opacity: 0.5;
}



#message-container {
  position: fixed;
  color: white;

  top: calc(var(--header-height) + var(--page-gap));
  right: var(--chat-right-gap);
  bottom: calc(var(--footer-height) + var(--page-gap));

  width: var(--chat-width);
  height: auto;
  max-height: none;

  padding: 10px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  margin-top: 0;
}




#message-container.slide-out {
  animation: slideOut 0.4s forwards ease;
}

#message-container.slide-in {
  animation: slideIn 0.4s forwards ease;
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


#chat-toggle-buttons {
  position: fixed;
  top: calc(var(--header-height) + var(--page-gap));
  right: var(--chat-right-gap);
  z-index: 950;
}



#chat-toggle-buttons button {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#chat-toggle-buttons button:hover {
  background-color: #555;
}

#send-container {
  flex-grow: 1;
  overflow-y: auto;
  display: flex ;
  flex-direction: column-reverse;
  align-items: flex-start;
  /* gap: 10px; */
}

#message-input {
  flex-grow: 1; /* Makes the input take all available space */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 64%;
  width: 93%;
  max-height: 150px;
  background-color: whitesmoke;
}

#send-button {
  width: 75px; /* Fixed width for button */
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  font-family: tf2font;

  color: #fff;
  cursor: pointer;
}

#send-message {
  display: flex;
  width: 100%; /* Make it cover the full width */
  align-items: flex-start;
  gap: 10px; /* Adds some space between input and button */
  /* position: absolute; */
  flex-direction: column;
  bottom: 0;
  min-height: 80px;
  height: auto;
  flex-shrink: 0;
  margin-top: 18px;
}

/* Optional: Hover effect for the send button */
#send-button:hover {
  background-color: #0056b3;
}


.view-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* semi-transparent dark bg */  
  /* justify-content: center;
  align-items: center; */
  z-index: 1002;
}

[id^="viewModalContainer"] {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #191a1e; /* Dark background color */
  padding: 20px;
  padding-top: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  border-radius: 10px;
  width: 50%;
  height: 74%;
  /* width: 1200px;  */
  /* height: 900px;  */
  color: white; /* White text color */
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align the panels at the top */
}

/* Left and right panels should each take 40% of the width */
[id^="viewModalContent"]{
  width: 47% !important; /* Each panel takes 40% */
  max-height: 100%; /* Ensure panels don't overflow vertically */
  overflow-y: clip; /* Add scroll if content exceeds the height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px; /* Padding inside the panels */
  font-family: 'tf2font';
}

.bot-img-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 5px;
}

.user-img-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 5px;
}

.coin-overlay {
  position: absolute;
  width: 40px !important;
  height: 40px !important;
  bottom: -5px;
  left: -17px;
  border-radius: 50%;
  border: 1px solid black;
  background-color: rgb(44, 47, 52); /* optional, to help contrast */
}

/* Styling for user and bot profiles */
.view-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;  
  font-size: 19px;
}

.view-user-profile img {
  
  width: 150px;
  height: 150px;  
}

.view-items-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  overflow-x: clip;
  width: 100%;
  margin-bottom: 120px;  
} 

/* Styles for the header */
.view-items-header {
  background-color: #1e1e45;
  display: flex;
  justify-content: space-between;
  font-size: 19px;
  padding: 10px;
  border-bottom: 2px solid #ccc;
  width: -webkit-fill-available;
  text-align: center;
  margin-top: 20px;
}



/* Each column in the header (Image, Name, Price) */
.view-items-header > div {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.view-item {
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

/* Keep Image / Name / Price as 3 equal, fixed columns */
.view-item > div {
  flex: 1 1 0;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 19px;
  text-align: center;
}

/* Images must not grow/shrink based on item-name length */
.view-item img {
  flex: 0 0 auto;
}

/* Item-name column:
   maximum 3 lines, then show ... */
.view-item > div:nth-child(2) > div {
  width: 100%;
  min-width: 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;

  line-height: 1.15;
  max-height: 3.45em;
}

/* Keep coin + price together and centered */
.view-item > div:nth-child(3) > div {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}



/* Buttons */
[id^="closeViewModalBtn"]{

    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 83px;
    /* align-self: flex-end; */
    height: 35px;
    /* padding: 21px; */
    /* margin: 62px; */
    background-color: midnightblue;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    
}

[id^="callBotBtn"]{

  position: absolute;
  bottom: 15px;
  right: 11px;
  width: 132px;
  height: 35px;
  margin: 8px;
  background-color: midnightblue;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  align-self: flex-end;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: midnightblue;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'tf2font';
}

/* Visually Disabled State */
[id^="callBotBtn"]:disabled {
  background-color: gray; /* Change background color */
  cursor: wait; /* Show a "not-allowed" cursor */
  opacity: 0.5; /* Reduce opacity */
}

[id^="closeViewModalBtn"]:hover, [id^="callBotBtn"]:hover {
  background-color: #e65c00; /* Button hover color */
}


#coin-flip-cont {
  position: absolute;
  left: 50%;
  /* top: 12%; */
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  text-align: center;
  display: flex;
  margin-top: 84px;
  align-items: center;
  justify-content: center;
}



/* Coin Wrapper */
.coin-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: auto;
}

[id^="coin--"] {
  position: relative;
  width: 150px; /* Doubled */
  height: 150px;
  transform-style: preserve-3d;
  transition: transform 3s;  
  display: none;
  perspective: 1000px; /* Added for proper 3D depth */
}

[id^="coin--"] .front,
[id^="coin--"] .back {
  position: absolute;
  width: 150px;
  height: 150px;
  background-size: cover;
  border-radius: 50%;
  border: solid 2px gray;
  backface-visibility: hidden;
}

[id^="coin--"] .front {
  background-image: url('Blu.png');
  transform: rotateX(0deg);
}

[id^="coin--"] .back {
  background-image: url('Red.png');
  transform: rotateX(180deg);
}



[id^="countdown"]{
  width: 150px;
  height: 150px;
  line-height: 150px;
  font-size: 46px;
  color: white;
  position: absolute;
  z-index: 10;
  border-radius: 50%;
  background-color: transparent;
}

[id^="winner-countdown"] {
  width: 50px;
  height: 50px;
  line-height: 50px;
  margin-right: 55px;
  font-size: 30px;
  color: white;
  position: relative;
  z-index: 10;
  border-radius: 50%;
  background-color: transparent;
}



.countdown-wrapper {  
  width: 150px;
  height: 150px;
}

.countdown-circle {
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.countdown-circle circle {
  fill: none;
  stroke-width: 4;
}

.countdown-circle .bg {
  /* fill: none; */
  stroke-width: 24;
  stroke: #ccc;
}

.countdown-circle .progress {
  /* fill: none; */
  stroke: forestgreen;
  stroke-width: 24;
  transition: stroke-dashoffset 1s linear;
}

.countdown-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 46px;
  font-family: 'tf2font';
}


/* === 🔴 For Winner Countdown === */
.winner-countdown-wrapper {
  width: 50px;
  height: 50px;
  margin-right: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}


.winner-countdown-circle {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.winner-countdown-circle circle {
  fill: none;
  stroke-width: 4;
}

.winner-countdown-circle .bg {
  stroke: #ccc;
}

.winner-countdown-circle .progress {
  stroke: forestgreen;
  stroke-dasharray: 138;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.winner-countdown-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
  color: white;
  width: 50px;              /* ✅ Needed for true horizontal centering */
  text-align: center;       /* ✅ Align the text inside the fixed-width box */
  line-height: 50px;        /* ✅ Vertically center the text */
  pointer-events: none;     /* ✅ Optional: let clicks pass through */
}




/* Animation wrappers */
.rotateToFront {
  animation: flipToFront 3s ease-in-out forwards !important;;
}

.rotateToBack {
  animation: flipToBack 3s ease-in-out forwards !important;;
}

/* Flip Keyframes with Scale */
@keyframes flipToFront {
  0%   { transform: rotateX(0deg) scale(1); }
  50%  { transform: rotateX(900deg) scale(1.5); }
  100% { transform: rotateX(1800deg) scale(1); }
}
@keyframes flipToBack {
  0%   { transform: rotateX(0deg) scale(1); }
  50%  { transform: rotateX(990deg) scale(1.5); }
  100% { transform: rotateX(1980deg) scale(1); }
}

/* Shadow */
.coin-shadow {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(4px);
  transform: scale(1);
  z-index: -1;
  transition: all 0.3s ease;
}

/* @keyframes wobble {
  0%   { transform: rotateX(1800deg) scale(1); }
  20%  { transform: rotateX(1775deg) scale(1.05); }
  40%  { transform: rotateX(1815deg) scale(1.05); }
  60%  { transform: rotateX(1785deg) scale(1.03); }
  80%  { transform: rotateX(1805deg) scale(1.02); }
  100% { transform: rotateX(1800deg) scale(1); }
}

.coinWobble {
  animation: wobble 0.7s ease;
} */



@keyframes rotate2160 { from { transform: rotateY(0); } to { transform: rotateY(2160deg); } }
@keyframes rotate1980 { from { transform: rotateY(0); } to { transform: rotateY(1980deg); } }




.reduce-brightness {
  filter: brightness(50%); /* Reduce brightness by 50% */
  transition: filter 1s ease-in-out; /* Smooth transition for brightness change */
}
/* 
.view-button {
  margin-left: 5px;
  width: 70px;
  height: 33px;
  background-color: midnightblue; 
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
} */

#ShowLogos {
  font-family: tf2font;
  width: 138px;
  height: 48px;
  background-color: midnightblue;
  border: none;
  color: antiquewhite;
  border-radius: 5px;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 17px;
  margin-bottom: 10px;
}


@media (max-width: 700px) {

  header li:last-child a img {
    height: 30px;
    width: 150px;
  }

  header li:last-child {
    padding-right: 0px;    
  }

  header{
    gap: 0px;    
  }  

}
@media (max-width: 700px) {
  [class^="coinflipcontainer-"] {
    height: auto !important;;
    /* width: 100%; */
    padding: 10px;
    /* margin: 10px 0; */
    /* background-color: rgb(51 54 59); */
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-wrap: wrap; /* Enable wrapping */
    justify-content: flex-start;
    gap: 10px;

  }

  .user-profile,
  .vs-text,
  .challenger-container {
    order: 1;
    flex: 0 0 auto;
    margin: 8px !important;
  }

  

  .items-container,
  .total-price,
  .button-container {
    order: 2;
    flex: 1 1 100%; /* Force full-width on second row */
    margin-left: 0 !important; /* Override existing margin if any */
    justify-content: space-around;
  }

  .items-container {
    flex-wrap: wrap;
  }

  .total-price {
    display: flex;
    justify-content: flex-end;    
  }

  .button-container {
    justify-content: flex-end;
  }

  [id^="viewModalContainer"] {
    width: 370px; /* Adjust the width as needed */
    height: 500px; /* Adjust the height as needed */
  }

  .view-items-header {
    font-size: 12px;
  }  

  .item-background {
    width: 45px !important;
    height: 45px !important;
  }  
  .view-item img { 
    height: 45px;
    width: 45px;
  }

  .view-item div {
    font-size: 8px;
  }

  .info-total {
    margin-left: 0% !important;
  }

}



#coinflipcontainer > div:nth-child(even) {
  background-color: #191a1e; /* light grey */
}

#historyGames > div:nth-child(even) {
  background-color: #191a1e; /* light grey */
}

#send-container > div:nth-child(odd) {
  background-color: #191a1e; /* light grey */
}

#send-container > div:nth-child(even) {
  background-color: #121318; /* light grey */
}

[class^="coinflipcontainer-"] {
  height: 8vh;
  /* width: 100%; */
  padding: 10px;
  /* margin: 10px 0; */
  /* background-color: rgb(51 54 59); */
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: 'tf2font';
}

/* Initial hidden state */
.coinflipcontainer-hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* Animation for appearing */
.coinflipcontainer-appear {
  animation: fadeSlideIn 0.4s ease-out forwards;
}


.view-button, .Join-Game-button {
  /* margin-left: auto; */
  font-family: tf2font;
  width: 87px;
  height: 33px;
  background-color: midnightblue; /* Or use #ff6600 if you prefer */
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}


.Join-Game-button {
    width: 55%;
    margin-right: 68px;
}

.items-container {
  display: flex;
  margin-left: 60px;
  overflow: hidden;
  height: 74px;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  flex-grow: 1;
}


.user-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.user-profile {
  display: flex;
  flex-direction: column;
  margin: 12px;
  gap: 5px;
  align-items: center;
  font-family: tf2font;    
  font-style: normal;
  color: lightgray;
  max-width: 50px;
}

.user-coin-icon {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1px solid lightgray;
}

.challenger-container {
  display: flex;
  flex-direction: column;
  margin: 12px;
  gap: 5px;
  align-items: center;
  font-family: tf2font;    
  font-style: normal;
  color: lightgray;  
  max-width: 50px;
}

.vs-text {
  font-weight: bold;
  margin: 0px 10px;
  font-family: tf2font;
  font-style: normal;
  color: white;
  max-width: 50px;
}

.button-container {
  margin-left: auto; /* Push the button container to the right */
  display: flex; /* Use flex to align buttons properly */
  gap: 10px; /* Space between buttons */
}


.summary-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: clamp(8px, 0.7vw, 14px);
  margin-bottom: 15px;
}

.summary,
.summary-user {
  flex: 1 1 0;
  min-width: 0;
  height: 10vh;
  box-sizing: border-box;

  background-color: #191a1e;
  color: lightgray;
  font-family: tf2font;
  font-size: clamp(11px, 0.75vw, 16px);
  font-weight: bold;

  padding: 5px 10px;
  border-radius: 5px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 700px) {
  .summary-container {
    flex-direction: column;
  }

  .summary,
  .summary-user {
    width: 100%;
    min-height: 86px;
    height: auto;
  }
}


.summary > div {
  flex: 1;
  text-align: center;
}

.summary-user > div {
  flex: 1;
  text-align: center;
}

.summary-user-btn {
  padding: 6px 12px;
  background-color: #666;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.summary-user-btn:hover {
  background-color: #888;
}

.login-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.login-avatar {
  width: 42px;
  height: 42px;
  /* border-radius: 50%; */
  object-fit: cover;
}

.login-name {
  font-size: 12px;
  color: lightgray;
}



#winner-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #191a1e;
  padding: 6px 12px;
  border-radius: 5px;
  margin: 10px 0;
  flex-wrap: nowrap;
    margin-bottom: 12px;

}


#winner-bar {
    display: flex;
    gap: 4px;
    /* flex-wrap: wrap; */
    flex-grow: 1;
    overflow: hidden;
    max-height: 60px;
}

#winner-bar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

#winner-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: bold;
  font-family: tf2font;
  color: lightgray;
  flex-shrink: 0;
  font-family: 'tf2font';
  margin-left: 12px;
}

.last-50-label {
  font-size: 13px;
}

.percentage {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
}

.percentage-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}




.info-bar {
  display: grid;
  grid-template-columns: var(--game-row-columns);
  align-items: center;
  column-gap: 10px;

  background-color: #191a1e;
  color: lightgray;
  font-family: tf2font;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  height: auto;
  min-height: 24px;
  border-radius: 5px;
}

.info-players {
  grid-column: 1;
  justify-self: start;
  text-align: left;
  padding-left: 20px;
  flex: unset;
  margin-left: 0;
  margin-right: 0;
}

.info-items {
  grid-column: 2;
  justify-self: start;
  text-align: left;
  flex: unset;
  margin-left: 0;
  margin-right: 0;
}

.info-total {
  grid-column: 3;
  justify-self: center;
  text-align: center;
  flex: unset;
  margin-left: 0;
  margin-right: 0;
}

.info-winner {
  grid-column: 4;
  justify-self: center;
  text-align: center;
  flex: unset;
  margin-left: 0;
  margin-right: 0;
}

.history-btn {
  grid-column: 5;
  justify-self: center;

  font-family: tf2font;  
  border: none;
  cursor: pointer;
  background-color: rgb(44, 47, 52);
  color: lightgray;
  display: flex;
  transition: background 0.2s ease, transform 0.2s ease;

  flex: unset;
  margin-left: 0;
  margin-right: 0;
}

/* Keep this for history modal only */
#historyContainer > .info-bar-hist > .info-total {
  margin-left: 41%;
}



.message-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* margin-bottom: 10px; */
}

.user-info-chat {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  width: 100%;
}

.user-level-chat {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: #f0b90b;
  color: #121318;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: 'tf2font', sans-serif;
}

.user-avatar-chat {
  width: 40px;
  height: 40px;
  /* border-radius: 50%; */
  margin-right: 10px;
}

.user-name-chat {
  font-family: 'tf2font';
  font-weight: bold;
  vertical-align: middle;
}

.chat-time {
    font-family: 'tf2font';
    font-size: 0.75em;
    color: #aaa;
    margin-left: auto; /* Pushes it to the far right */
}

.message-text {    
  font-family: 'tf2font';
  margin-top: 5px;
  margin-bottom: 6px;  
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  display: inline-block;
  max-width: 80%;
  word-wrap: break-word;
}


/* Trade Popup Styling */
.trade-popup {
  position: fixed;
  top: 26px;
  right: 120px;
  background: rgb(51 54 59);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in 0.5s ease-out;
  z-index: 1000;
}

/* Popup Fade-out Effect */
.trade-popup.fade-out {
  animation: fade-out 0.5s ease-out forwards;
}

/* Slide-in Animation */
@keyframes slide-in {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

/* Fade-out Animation */
@keyframes fade-out {
  from {
      opacity: 1;
  }
  to {
      opacity: 0;
      transform: translateX(100%);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup Button */
.popup-button {
  background: white;
  color: rgb(51 54 59);
  border: none;
  padding: 6px 12px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.popup-button:hover {
  background: black;
  color: white;
}

.total-price {
  margin-right: 6.25%;
  color: lightgray;
  font-size: 21px;
}

.winner-profile-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 55px;

}
.winner-profile-block-hist {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  margin-right: 25px;
}


.winner-photo {
  width: 50x;
  height: 50px;
  border: 1px solid lightgray;
}

.winner-coin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid lightgray;
}


#tradeUrlContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensures it's above other content */
}

#tradeUrlContent {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 600px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

#tradeUrlInput {
  width: 90%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#submitTradeUrl, #closeTradeUrl {
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#submitTradeUrl {
  background: #28a745;
  color: white;
}

#closeTradeUrl {
  background: #007bff;
  color: white;
}

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

#inventory-message {
  width: max-content;
  font-size: large;
  color: whitesmoke;
  margin-left: 15px;
}



#inventoryHeader {
  grid-column: 1 / -1;
  grid-row: 1;

  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, auto) minmax(220px, 1fr);
  align-items: start;
  column-gap: 12px;

  margin-bottom: 0;
  font-size: clamp(12px, 0.8vw, 16px);
  font-weight: bold;
  font-family: 'tf2font';
  padding-right: 51px;
}

#inventoryHeader .header-left {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  min-width: 0;
}

#inventoryHeader .inventory-header-center {
  grid-column: 2;
  justify-self: center;
  align-self: start;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  gap: 4px;
  line-height: 1;
  min-height: 0;
}

#inventoryHeader .inventory-header-right {
  grid-column: 3;
  justify-self: end;
  align-self: start;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#inventoryHeader .pure-mode-label {
  color: gold;
  font-size: clamp(12px, 0.8vw, 16px);
  line-height: 1;
  white-space: nowrap;
}

#inventoryHeader .sort-toggle-btn {
  font-family: tf2font !important;
  font-size: clamp(11px, 0.75vw, 15px) !important;
  line-height: 1 !important;

  background-color: transparent !important;
  border: 2px outset rgba(0, 0, 0, 0.3) !important;
  border-radius: 6px !important;
  color: darkgrey !important;
  cursor: pointer !important;

  padding: 4px 10px !important;
  margin: 0 !important;
  transition: all 0.2s ease-in-out !important;
}



/* Refresh Button Styled as Text */
#refreshInventoryBtn, #refreshInventoryBtnJoin {
  cursor: pointer;
  font-weight: normal;
  color: #bbb; /* Light gray to match text */
  transition: color 0.2s ease-in-out;
}

/* Hover Effect */
#refreshInventoryBtn:hover, #refreshInventoryBtnJoin:hover {
  color: #fff; /* Turns white on hover */
  text-decoration: underline; /* Adds underline like a clickable link */
}

/* Container for multiple notifications */
#warningContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1003;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: 'tf2font';
}

/* Individual warning notification */
.warning-notification {
  background: crimson;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: bold;
  box-shadow: 0 0 10px 4px rgb(255 0 0 / 48%);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Show animation */
.warning-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Close button */
.warning-close {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}


/* Full-screen overlay */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  font-family: 'tf2font';
}

#loadingContent {
    background: white;
    padding: 20px;
    font-family: 'tf2font';
    border-radius: 8px;
    background-color: #191a1e;
    text-align: center;
    width: 441px;
    height: 138px;
    color: white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}

/* Loading spinner animation */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.3);
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Style applied to the image */
.item-container img {
  object-fit: contain;
  border-radius: 50%;
  margin-top: 4px;
  margin-bottom: 4px;
  /* background-color: rgb(21, 0, 243, 0.2); */
  
  /* box-shadow: 0px 0px 10px 3px rgba(21, 0, 243, 0.5), inset 0px 0px 6px 0px rgba(21, 0, 243, 0.5);   */
}

/* Hover effect */
.item-container:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
  /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); */
}

.quality-normal {
  background-color: rgba(178, 178, 178, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(178, 178, 178, 0.5),
    inset 0px 0px 6px 0px rgba(178, 178, 178, 0.5);
  border-radius: 50%;
}

.quality-unique {
  background-color: rgba(255, 215, 0, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(255, 215, 0, 0.5),    
    inset 0px 0px 6px 0px rgba(255, 215, 0, 0.5);
  border-radius: 50%;
  /* background-image: url('/particles/6_94x94.png'); */
}

.quality-vintage {
  background-color: rgba(71, 98, 145, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(71, 98, 145, 0.5),
    inset 0px 0px 6px 0px rgba(71, 98, 145, 0.5);
  border-radius: 50%;
}

.quality-genuine {
  background-color: rgba(77, 116, 85, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(77, 116, 85, 0.5),
    inset 0px 0px 6px 0px rgba(77, 116, 85, 0.5);
  border-radius: 50%;
}

.quality-strange {
  background-color: rgba(207, 106, 50, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(207, 106, 50, 0.5),
    inset 0px 0px 6px 0px rgba(207, 106, 50, 0.5);
  border-radius: 50%;
}

.quality-unusual {
  background-color: rgba(134, 80, 172, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(134, 80, 172, 0.5),
    inset 0px 0px 6px 0px rgba(134, 80, 172, 0.5);
  border-radius: 50%;
}

.quality-haunted {
  background-color: rgba(56, 243, 171, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(56, 243, 171, 0.5),
    inset 0px 0px 6px 0px rgba(56, 243, 171, 0.5);
  border-radius: 50%;
}

.quality-collectors {
  background-color: rgba(170, 0, 0, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(170, 0, 0, 0.5),
    inset 0px 0px 6px 0px rgba(170, 0, 0, 0.5);
  border-radius: 50%;
}

.quality-decorated {
  background-color: rgba(250, 250, 250, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(250, 250, 250, 0.5),
    inset 0px 0px 6px 0px rgba(250, 250, 250, 0.5);
  border-radius: 50%;
}

.quality-community {
  background-color: rgba(112, 176, 74, 0.1);
  box-shadow:
    0px 0px 10px 3px rgba(112, 176, 74, 0.5),
    inset 0px 0px 6px 0px rgba(112, 176, 74, 0.5);
  border-radius: 50%;
}

.item-background {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Switch container with text */
.switch-wrapper {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 14px;
  gap: 6px;
}

/* Pure Mode label */
.pure-mode-text {
  font-weight: normal;
  color:gold;
}

/* Switch style */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

/* Checked state */
input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Fullscreen dark backdrop */
#historyContainer {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 89%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0); /* dark overlay */
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
  font-family: tf2font;
}


/* Actual popup content box */
#historyContainer > div:not(#historyPagination):not(.info-bar-hist) {
  background-color: #121318;
  border-radius: 10px;
  padding: 0px 20px;
  width: 80%;
  max-width: 1100px;
  height: 84vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Optional: historyPagination styling */
#historyPagination {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

#historyPagination button {
  padding: 8px 14px;
  background-color: #1e1f23;
  color: white;
  font-family: 'tf2font';
  font-size: 17px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#historyPagination button:hover {
  background-color: #555;
}

#historyPagination button:disabled {
  background-color: #1e1f23;
  opacity: 0.6;
  cursor: not-allowed;
}

.info-bar-hist {
  display: flex;
  justify-content: space-between;
  background-color: #191a1e;
  color: white;
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
  width: 95%;
  max-width: 1100px;
  box-sizing: border-box;
}

.info-bar-hist > div {
  flex: 1;
  text-align: center;
}

.faq-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  animation: fadeIn 0.3s ease-in-out;
}

.faq-content {
  background-color: #121318;
  margin: 3.5% auto;
  padding: 20px 30px;
  border-radius: 12px;
  width: 60%;
  max-height: 82vh;
  color: #fff;
  position: relative;
  overflow-y: auto;
}

.faq-content h2 {
  margin-top: 0;
  text-align: center;
  letter-spacing: 1px;
}

.faq-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.faq-item{
  border-bottom: 1px solid #333;
  padding: 10px 0;
  cursor: pointer;
}

.tos-item{
  border-bottom: 1px solid #333;
  padding: 10px 0;
}

.faq-item:hover{
  /* color: #00bcd4; */
  background-color: #191a1e;
}

.faq-question {
  font-weight: bold;
  color: #fff;
  transition: color 0.3s;
}


.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: #ccc;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  padding-left: 10px;
}

.tos-answer {
    overflow: hidden;
    color: #ccc;
    padding: 4px 2px;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* adjust as needed */
  opacity: 1;
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.waiting-dots {
  font-style: italic;
  color: #ccc;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.random-result-info {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: tf2font;
  font-size: 13px;
  color: darkgrey;
  background-color: #121318;
  padding: 8px 12px;
  border-radius: 6px;
  line-height: 1.6;
  width: 64%;
}

#siteFooter {
  position: fixed; /* ✅ fixed footer */
  left: 0;
  right: 0;
  bottom: 0;

  height: var(--footer-height);
  min-height: var(--footer-height);
  box-sizing: border-box;

  background-color: #1e1f23;
  color: #dcdcdc;
  padding: 0 clamp(12px, 2vw, 30px);

  display: flex;
  justify-content: center;
  align-items: center;

  font-family: 'tf2font', sans-serif;
  font-size: clamp(10px, 0.75vw, 14px);
  border-top: 1px solid #333;

  z-index: 850; /* below header/modals, above background */
}



.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 12px);
  text-align: center;
  max-width: calc(100vw - 24px);
  overflow: hidden;
}



.footer-logo {
  height: clamp(18px, 2vh, 24px);
  width: auto;
  flex: 0 0 auto;
}


.footer-text {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.item-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2em; /* Optional: spacing */
  max-height: 2.4em;  /* Line height * line clamp */
  padding-top: 19px;
}

.custom-tooltip {
  position: absolute;
  background-color: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'tf2font';

  max-width: min(420px, calc(100vw - 30px));
  white-space: normal;
  overflow-wrap: anywhere;

  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(6px);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.item-container:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}


#totalPriceContainer {
  grid-column: 1;
  grid-row: 3;

  padding-top: 0 !important;
  align-self: end;

  font-size: clamp(12px, 0.8vw, 15px);
  font-family: 'tf2font';
}

#minPriceInfo {
  grid-column: 1;
  grid-row: 4;

  margin-top: 0 !important;
  font-size: clamp(11px, 0.72vw, 13px) !important;
  font-family: 'tf2font';
  line-height: 1.25;
}


#deselectAllBtn, #deselectAll_joinBtn {

  grid-column: 1;
  grid-row: 5;

  justify-self: start;
  align-self: end;
  margin-top: 0 !important;
  font-size: clamp(12px, 0.8vw, 16px) !important;  
  
  color: white;
  background-color: transparent;
  border: 2px outset rgb(0, 0, 0, 0.3);
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 10px;
  transition: all 0.2s ease-in-out;
  font-family: 'tf2font'

}

#deselectAllBtn:hover , #deselectAll_joinBtn:hover {
  background-color: #1e1e45;
  border-color: #1e1e45;
  color: #fff;
}

.trade-title {
  font-weight: bold;
  margin: 0 0 6px 0;
}

.secret-code {
  font-size: 14px;
  color: #ffc107;
  font-family: monospace;
  margin: 0 0 10px 0;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-family: tf2font, sans-serif;
  font-size: 16px;
}

.trade-btn {
  margin-right: 10px;
}

.trade-btn.web {
  background: #007bff;
  color: #fff;
}

.trade-btn.steam {
  background: #5a9b4f;
  color: #fff;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Base look */
#inventorySearchInput{
  background:#121317;
  color:#fff;
  border:1px solid #3a3d45;
  border-radius:6px;
  outline:none;           /* remove default white ring */
}

/* Mouse focus (no ring) */
#inventorySearchInput:focus{
  outline:none;
  box-shadow:none;
}

/* Keyboard focus (accessible ring) */
#inventorySearchInput:focus-visible{
  box-shadow:0 0 0 2px #121318;  /* gold-ish */
  border-color:#121318;
}

.total-price-row .coin-icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin-right: 4px;
}

.coin-icon {
  width: 28px !important;
  height: 28px !important;
  vertical-align: middle;
  margin-right: 4px;
}


.verify-random-btn {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #2f6fed;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease;
}

.verify-random-btn:hover {
  background: #2457bb;
}

.verify-row {
  margin-bottom: 6px;
}

body.booting {
  overflow: hidden;
}

#pageBootOverlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(40, 44, 52, 0.95) 0%, rgba(18, 19, 24, 0.98) 65%, rgba(10, 10, 14, 1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  font-family: 'tf2font';
}

#pageBootOverlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#pageBootContent {
  width: 420px;
  max-width: calc(100vw - 40px);
  padding: 28px 24px;
  border-radius: 16px;
  background: #191a1e;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 30px rgba(0,0,0,0.45);
  text-align: center;
  color: antiquewhite;
}

.boot-logo {
  width: 220px;
  max-width: 80%;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(240, 185, 11, 0.18));
}


.boot-subtitle {
  font-size: 16px;
  color: #d8d0c2;
  margin-bottom: 20px;
}

.boot-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.16);
  border-top-color: #f0b90b;
  animation: bootSpin 0.9s linear infinite;
}

@keyframes bootSpin {
  to { transform: rotate(360deg); }
}



/* =====================================================
   COINFLIP GAME ROW ALIGNMENT
   Header uses .info-bar.
   Game rows use the same --game-row-columns.
===================================================== */

#coinflipcontainer > [class^="coinflipcontainer-"] {
  display: grid !important;
  grid-template-columns: var(--game-row-columns);
  align-items: center;
  column-gap: 10px;

  width: 100%;
  height: auto !important;
  min-height: clamp(78px, 7vh, 110px);
  padding: 10px;
  overflow: hidden;
  font-family: 'tf2font';
}

/* Players column */
#coinflipcontainer > [class^="coinflipcontainer-"] > .user-wrapper {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 100%;
  min-width: 0;
  margin-left: 0 !important;
}

/* VS text */
#coinflipcontainer > [class^="coinflipcontainer-"] > .vs-text {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  margin: 0 !important;
}

/* Challenger / bot profile */
#coinflipcontainer > [class^="coinflipcontainer-"] > .challenger-container {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
}

/* Items column */
#coinflipcontainer > [class^="coinflipcontainer-"] > .items-container {
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;

  width: 100%;
  min-width: 0;
  margin-left: 0 !important;
  flex-grow: 0 !important;

  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Total column */
#coinflipcontainer > [class^="coinflipcontainer-"] > .total-price {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;

  margin-left: 0 !important;
  margin-right: 0 !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  white-space: nowrap;
  font-size: clamp(14px, 0.95vw, 21px);
}

/* Winner column */
#coinflipcontainer > [class^="coinflipcontainer-"] > .winner-profile-block,
#coinflipcontainer > [class^="coinflipcontainer-"] > .winner-countdown-wrapper,
#coinflipcontainer > [class^="coinflipcontainer-"] > .row-coinflip-preview {
  grid-column: 4;
  grid-row: 1;
  justify-self: center;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* View button column */
#coinflipcontainer > [class^="coinflipcontainer-"] > .button-container {
  grid-column: 5;
  grid-row: 1;
  justify-self: center;

  margin-left: 0 !important;
  margin-right: 0 !important;

  display: flex;
  justify-content: center;
}


/* =====================================================
   SMALL COINFLIP INSIDE GAME ROW WINNER COLUMN
===================================================== */

.row-coinflip-preview {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

.row-coin-wrapper {
  position: relative;

  width: 50px;
  height: 50px;

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

.row-coin-element {
  position: relative;

  width: 50px;
  height: 50px;

  transform-style: preserve-3d;
  perspective: 500px;

  display: none;

  z-index: 2;
}

.row-coin-element .front,
.row-coin-element .back {
  position: absolute;

  width: 50px;
  height: 50px;

  background-size: cover;
  background-position: center;

  border-radius: 50%;
  border: 1px solid gray;

  backface-visibility: hidden;
}

.row-coin-element .front {
  background-image: url('Blu.png');
  transform: rotateX(0deg);
}

.row-coin-element .back {
  background-image: url('Red.png');
  transform: rotateX(180deg);
}

.row-coin-shadow {
  width: 38px;
  height: 7px;

  left: 6px;
  bottom: -4px;

  z-index: 1;
}




/* =====================================================
   FIX COMPLETED GAME ROW HEIGHT
   Force all game-row columns to stay on the same row
===================================================== */

#coinflipcontainer > [class^="coinflipcontainer-"] > .user-wrapper,
#coinflipcontainer > [class^="coinflipcontainer-"] > .vs-text,
#coinflipcontainer > [class^="coinflipcontainer-"] > .challenger-container,
#coinflipcontainer > [class^="coinflipcontainer-"] > .items-container,
#coinflipcontainer > [class^="coinflipcontainer-"] > .total-price,
#coinflipcontainer > [class^="coinflipcontainer-"] > .winner-profile-block,
#coinflipcontainer > [class^="coinflipcontainer-"] > .row-coinflip-preview,
#coinflipcontainer > [class^="coinflipcontainer-"] > .button-container {
  grid-row: 1;
}

/* Make player side fit user VS bot in one line */
#coinflipcontainer > [class^="coinflipcontainer-"] > .user-wrapper,
#coinflipcontainer > [class^="coinflipcontainer-"] > .challenger-container {
  min-width: 0;
}

/* Completed game player layout inside first column */
#coinflipcontainer > [class^="coinflipcontainer-"] > .user-wrapper {
  justify-self: start;
}

#coinflipcontainer > [class^="coinflipcontainer-"] > .vs-text {
  justify-self: center;
}

#coinflipcontainer > [class^="coinflipcontainer-"] > .challenger-container {
  justify-self: end;
}

#rewardToastStack {
  position: fixed;
  top: calc(8.5vh + 16px);
  right: 18px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.reward-toast {
  position: relative;
  width: min(360px, calc(100vw - 36px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 16px 16px 14px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #23252d, #15161b);
  color: #fff;
  font-family: tf2font, Arial, sans-serif;
  border: 1px solid rgba(240, 185, 11, 0.7);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(240, 185, 11, 0.22);
  overflow: hidden;
  pointer-events: auto;
  z-index: 1001;
}

.reward-toast-enter {
  animation: rewardToastIn 0.35s ease-out both, rewardToastPulse 1.8s ease-in-out 0.35s 2;
}

.reward-toast-leave {
  animation: rewardToastOut 0.25s ease-in both;
}

.reward-toast-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.18);
  border: 1px solid rgba(240, 185, 11, 0.65);
  font-size: 24px;
  box-shadow: 0 0 16px rgba(240, 185, 11, 0.25);
}

.reward-toast-content {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}

.reward-toast-title {
  color: #f0b90b;
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.1;
  margin-bottom: 6px;
}

.reward-toast-message {
  color: #e6e6e6;
  font-size: clamp(12px, 0.75vw, 14px);
  line-height: 1.35;
  margin-bottom: 12px;
}

.reward-toast-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reward-toast-btn {
  border: 0;
  border-radius: 7px;
  padding: 8px 11px;
  font-family: tf2font, Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.reward-toast-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.reward-toast-btn.primary {
  background: #f0b90b;
  color: #121318;
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.25);
}

.reward-toast-btn.secondary {
  background: transparent;
  color: #d7d7d7;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.reward-toast-close {
  position: absolute;
  top: 7px;
  right: 9px;
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.8;
}

.reward-toast-close:hover {
  opacity: 1;
  color: #fff;
}


@keyframes rewardToastIn {
  from {
    opacity: 0;
    transform: translateX(34px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes rewardToastOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(34px) scale(0.96);
  }
}

@keyframes rewardToastPulse {
  0%, 100% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.45),
      0 0 18px rgba(240, 185, 11, 0.22);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.45),
      0 0 28px rgba(240, 185, 11, 0.42);
  }
}


@media (max-width: 700px) {
  #rewardToastStack {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .reward-toast {
    width: 100%;
  }
}


.container.giveaway-page-container {
  right: var(--page-gap);
}

.giveaway-maintenance-wrapper {
  min-height: clamp(260px, 48vh, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2vw, 32px);
  box-sizing: border-box;
}

.giveaway-maintenance-card {
  width: min(720px, 100%);
  background: linear-gradient(135deg, #191a1e, #121318);
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 46px);
  text-align: center;
  color: lightgray;
  font-family: tf2font, Arial, sans-serif;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(240, 185, 11, 0.12);
}

.giveaway-maintenance-icon {
  font-size: clamp(42px, 4vw, 72px);
  margin-bottom: 12px;
}

.giveaway-maintenance-card h1 {
  margin: 0 0 12px;
  color: #f0b90b;
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1.15;
}

.giveaway-maintenance-card p {
  margin: 8px 0;
  font-size: clamp(13px, 0.95vw, 17px);
  line-height: 1.45;
}

.giveaway-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-width: 150px;
  height: 40px;
  padding: 0 16px;
  border-radius: 7px;
  background-color: midnightblue;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.giveaway-back-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.giveaway-disabled-btn {
  opacity: 0.65;
  cursor: not-allowed;
}

.simple-rate-limit-page {
  width: 100vw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121318;
  font-family: tf2font, Arial, sans-serif;
  color: white;
}

.simple-rate-limit-card {
  width: min(520px, calc(100vw - 32px));
  background-color: #191a1e;
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.simple-rate-limit-card h1 {
  color: #f0b90b;
  margin-top: 0;
}

.simple-rate-limit-card a {
  color: #f0b90b;
  text-decoration: none;
}

@media (max-width: 700px) {
  .giveaway-maintenance-wrapper {
    min-height: 42vh;
    padding: 14px;
  }

  .giveaway-maintenance-card {
    padding: 22px 16px;
  }
}


.trade-url-help {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

.trade-url-help a {
  color: #007bff;
  text-decoration: underline;
}

.trade-url-help a:hover {
  color: #0056b3;
}

#submitTradeUrl.trade-url-btn-saved {
  background: #777;
  color: #ddd;
  cursor: not-allowed;
  opacity: 0.75;
}


/* =====================================================
   PRIVATE COINFLIP HISTORY - REWARD ACTION
===================================================== */

#historyContainer.user-history-mode > .info-bar-hist {
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) minmax(220px, 1fr) 110px 110px 110px;
  column-gap: 10px;
  align-items: center;
}

#historyContainer.user-history-mode > .info-bar-hist > div {
  margin: 0 !important;
  text-align: center;
}

#historyContainer.user-history-mode > .info-bar-hist > .info-players,
#historyContainer.user-history-mode > .info-bar-hist > .info-items {
  justify-self: start;
  text-align: left;
}

.info-action-hist {
  justify-self: center;
  width: 110px;
}

.history-action-cell {
  order: 3;
  flex: 0 0 110px;
  min-width: 110px;
  margin-left: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.history-resend-btn {
  min-width: 88px;
  padding: 7px 12px;

  border: 1px solid #f0b90b;
  border-radius: 5px;

  background-color: #2c2f34;
  color: #f0b90b;

  font-family: 'tf2font';
  font-size: 13px;

  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.history-resend-btn:hover:not(:disabled) {
  background-color: #f0b90b;
  color: #121318;
}

.history-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.history-action-status {
  min-height: 15px;
  max-width: 110px;

  color: lightgray;
  font-family: 'tf2font';
  font-size: 11px;
  text-align: center;
}

.history-action-link {
  color: #f0b90b;
  text-decoration: none;
}

.history-action-link:hover {
  text-decoration: underline;
}

#historyContainer.user-history-mode #historyGames > [class^="coinflipcontainer-"] > .total-price {
  margin-right: 20px;
}

#historyContainer.user-history-mode #historyGames > [class^="coinflipcontainer-"] > .winner-profile-block-hist {
  margin-right: 10px;
}

@media (max-width: 700px) {
  #historyContainer.user-history-mode > .info-bar-hist {
    display: flex;
    gap: 8px;
  }

  .info-action-hist {
    flex: 0 0 80px !important;
    width: 80px;
  }

  .history-action-cell {
    flex: 1 1 100%;
    min-width: 0;
    margin-left: 0;
    align-items: flex-end;
  }
}

