@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Acme") screen;

body {
  overflow: auto;
}

a:hover {
  color: white;
  /* Keep the same color on hover */
}

/* Header */
header {
  padding: 20px 0;
}

.logo-container {
  text-align: center;
}

.logo {
  font-size: 36px;
  color: #fff;
  text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  box-shadow: none;
}

.desktop-nav a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.desktop-nav a:hover {
  text-decoration: underline;
}


svg#baize {
  padding: 4px;
  border-radius: 10px;
  background-color: var(--bg-color, darkgreen);
  /* cascades to children */
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                supported by Chrome and Opera */
  /*touch-action: none;*/
  position: static;
}

/*
  Basically, if you switch to pointer events you will be able to prevent pointercancel by simply using the touch-action CSS property with a value of none, 
  as long as the browser has both features correctly implemented. (Android 5+, Chrome 55+, IE11, Edge, etc)
*/
.spielkarte {
  fill: white;
  stroke-width: 1;
  stroke: silver;
  pointer-events: fill;
  touch-action: none;
}

.spielkarteback {
  fill: url("#image");
  stroke-width: 1;
  stroke: silver;
  pointer-events: fill;
  touch-action: none;
}

.grabbed {
  /* stroke-width: 2 !important; */
  filter: url("#dropshadow");
}

.focus {
  stroke-width: 2 !important;
  stroke: black !important;
}

.unmoveable {
  fill: rgb(233, 240, 233) !important;
}

.spielkartevalue {
  font-family: "Acme", sans-serif;
  font-size: 28px;
  /* fill here gets overwritten */
  pointer-events: none;
  touch-action: none;
}

.spielkartesuit {
  font-family: "Acme", sans-serif;
  font-size: 32px;
  /* fill here gets overwritten */
  pointer-events: none;
  touch-action: none;
}

.Reserve,
.ReserveFrog,
.Stock,
.StockAgnes,
.StockCruel,
.StockFan,
.StockGolf,
.StockKlondike,
.StockScorpion,
.StockSpider,
.Waste {
  fill: var(--bg-color, darkgreen);
  stroke: none;
}

.Cell,
.CellCarpet {
  fill: var(--bg-color, darkgreen);
  stroke: white;
  stroke-width: 1;
}

.Tableau,
.TableauBlockade,
.TableauCanfield,
.TableauFortunesFavor,
.TableauFreecell,
.TableauGolf,
.TableauSpider,
.TableauTail {
  fill: var(--bg-color, darkgreen);
  stroke: var(--hi-color, lightgreen);
  stroke-width: 1;
}

.Foundation,
.FoundationCanfield,
.FoundationOsmosis,
.FoundationPenguin,
.FoundationSpider {
  fill: var(--bg-color, darkgreen);
  stroke: var(--hi-color, lightgreen);
  stroke-width: 1;
}

.accepts {
  font-family: "Acme", sans-serif;
  font-size: 24px;
  stroke: none;
  fill: var(--hi-color, lightgreen);
}

.stockredeals {
  font-family: "Acme", sans-serif;
  /* font-family: 'Ariel', sans-serif; */
  font-size: 48px;
  stroke: none;
  fill: var(--hi-color, lightgreen);
}

/*
.stocknoredeals {
  font-family: 'Ariel', sans-serif;
  font-size: 48px;
  stroke: none;
  fill: red;
}
*/
.noselect {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.steelblue {
  background-color: #4682b4 !important;
}

/* Footer */
footer {
  background: black;
  color: white;
  padding: 40px 0 0 0;
  width: 100%;
  margin-top: auto;
}

.footer-column h4 {
  font-size: unset;
  /* Resets font size */
  line-height: unset;
  /* Resets line height */
  margin: unset;
  /* Resets margin */
  font-weight: 700;
  /* Resets font weight */
}

.footer-content-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 24px;
  color: white;
  text-decoration: none;
}

.footer-column h4 {
  margin-bottom: 10px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-column a:hover {
  text-decoration: underline;
}
/* Resizing the popup button */
.btn-resize{
  font-size: 15px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-basis: 88%;
}
.btn-resize-undo{
  font-size: 15px;
  align-items: center;
  justify-content: center;
  display: flex !important;
  flex-basis: 43%;
}

.modal-footer{
  justify-content: center !important;
}

.btn-resize.steel-red{
  background-color: rgb(136, 8, 8) !important;
  
}
/* Game Container */
.game-inner-content {
  background: #fff;
  border-radius: 10px;
  padding: 9px;
  max-width: 900px;
  width: 100%;
}

/* How to Play Section */
.how-to-play {
  background: linear-gradient(135deg, #d4fc79, #96e6a1);
  color: #333;
  padding: 30px;
  border-radius: 10px;
  max-width: 900px;
  width: 98%;
  margin: 20px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.how-to-play h2 {
  margin-bottom: 20px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  color: #333;
  font-size: 24px;
  line-height: unset;
  font-weight: 700;
}

.how-to-play h3 {
  margin-bottom: 20px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  color: #333;
  font-size: 24px;
  line-height: unset;
  font-weight: 700;
}

.how-to-play p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.game-header {
  margin-top: 15px;
  margin-bottom: 0px;
}


/* Bob and Message Bubble container */
.bob-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-bottom: 20px; */
}
/* 
.bob-image {
  width: 50px;
  height: 50px;
} */

.tooltip-bob {
  color: #000;
  font-size: 18px;
  max-width: 28ch;
  text-align: center;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 1em;
  position: relative;
  margin-left: 20px;
}

.tooltip-bob::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 10px 10px 0;
  border-style: solid;
  border-color: transparent #000 transparent transparent;
}

.tooltip-bob::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

@media only screen and (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container-fluid {
    padding-right: 3px;
    padding-left: 3px;

  }

  .game-inner-content {
    padding: 3px;
  }

  svg#baize {
    padding: 2px;
  }
}


/* Hamburger Menu for Mobile */
.hamburger-menu {
  display: none;
  position: relative;
}

.hamburger-icon {
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 15px;
  color: #fff;
}

.hamburger-links {
  display: none;
  flex-direction: column;
  background-color: #003366;
  padding: 10px;
  position: absolute;
  top: 50px;
  left: 0;
  width: 200px;
  z-index: 99;
}

.hamburger-links.active {
  display: flex;
}

.hamburger-links a {
  color: #fff;
  padding: 10px;
  text-decoration: none;
}

.hamburger-links a:hover {
  background-color: #2f6d9b;
}


/* Hide desktop navigation on mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }
}