body {
    margin: 0;
    font-family: sans-serif;
    background-color: #dddddd;
}


.main-container {
    text-align: center;
    padding: 1rem;
    max-width: 500px;
    margin: 10px auto 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

img {
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.footnote {
  min-height: 1.4em;
  margin-top: 0.4em;
  font-size: 0.8rem;
  color: #555;
}


hr {margin: 15px 0;
    border: none;
    border-top: 1px solid #999;
}


button {
  margin-top: 1rem;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

button:hover {
  background-color: #218838;
  transform: translateY(-4px);
}


button:disabled,
button.disabled-button {
  opacity: 0.5;
  pointer-events: none;
  color: #ccc;
  background-color: #6c757d;
  cursor: default;
}

.button-row {
  display: flex;
  justify-content: center;  /* Or 'space-between', 'flex-start', etc. */
  gap: 1rem;                /* Optional: space between buttons */
  margin-top: 1rem;         /* Optional: spacing from elements above */
}

#next-button, #see-results-button, #reveal-button, #play-button, #hint1-button, #hint2-button, #share-button, #admire-button, #extra-yes, #extra-no {
    display: none;
    position: relative;
    padding: 10px 10px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#reveal-button, #hint1-button, #hint2-button, #extra-no {
    background-color: rgb(240, 140, 0);
}

#next-button, #see-results-button, #share-button, #play-button, #admire-button, #extra-yes {
    background-color: #25D366;
}


.center-table {
  text-align: center;
}

.grid-table {
  border-collapse: collapse;
  margin: 0 auto;
}

.grid-table th,
.grid-table td {
  border: 1px solid grey;
  padding: 4px;
}

.grid-table td.spacer {
  border-top: none;
  border-bottom: none;
  background: none;
  width: 1rem;
}


.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    position: relative;
    min-height: 80vh;
    font-size: 24px;
}


#gameplay-elements {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

#completion-elements {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.info-button-container {
  position: absolute;
  top: 0rem;
  left: 0rem;
  z-index: 10;
}

.mute-button-container {
  position: absolute;
  top: 0rem;
  right: 0rem;
  z-index: 10;
}

.info-icon,
.mute-icon {
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

.degu-trophy {
  display: none;
  width: 200px;
}

.box-container {
    display: flex;
    margin-bottom: 10px;
}

.tile-container {
    display: flex;
    margin-bottom: 10px;
}

.box, .tile {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s;
    background-color: white;
    color: white;
}

.tile-container .tile[data-value="1"],.tile-container .tile[data-value="2"],.tile-container .tile[data-value="3"],
.tile-container .tile[data-value="4"],.tile-container .tile[data-value="5"],.tile-container .tile[data-value="6"],
.tile-container .tile[data-value="7"],.tile-container .tile[data-value="8"],.tile-container .tile[data-value="9"],
.tile-container .tile[data-value="0"]
{
    background-color: rgb(0, 115, 255);
}

.tile-container .tile[data-value="+"] {
    background-color: red;
}

.tile-container .tile[data-value="-"] {
    background-color: red;
}

.tile-container .tile[data-value="*"] {
    background-color: red;
}

.tile-container .tile[data-value="/"] {
    background-color: red;
}

.tile-container .tile[data-value="!"] {
    background-color: purple;
}

.tile-container .tile[data-value="^"] {
    background-color: purple;
}

.tile:hover {
    transform: translateY(-4px);
}

.sumfing-title {
    font-size: 34px;
}

.sumfing-result {
    font-size: 34px;
    margin-bottom: 14px;
}

.sumfing-target {
    font-size: 34px;
    margin-bottom: 10px;
}

.sumfing-feedback {
    font-size: 34px;
    margin-bottom: 10px;
}

.deguFeedback {
  display: flex;
  align-items: center;
  height: 120px;
}


#clue-summary {
  list-style: none;
  padding-left: 0;
}

.sumfing-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(200, 200, 200, 0.8); /* white overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.sumfing-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 0rem 0rem 0rem 0rem;
}

.sumfing-modal-close {
    font-size: 2rem;
    cursor: pointer;
}

.sumfing-modal-content {
  background: white;
  padding: 2rem;
  max-width: 400px; /* smaller box */
  width: 100vw;
  height: 100%;
  text-align: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;    
}

.sumfing-modal-title {
    font-size: 33px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}


.sumfing-modal-review-row {
  margin-bottom: 1rem;
}

.sumfing-modal-review-tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
  max-width: 98vw;
}


.sumfing-modal-review-tiles .tile {
  width: 26px;
  height: 26px;
  font-size: 15px;
  padding: 0;
  margin: 0.1rem;
  border-radius: 6px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Color coding */
.sumfing-modal-review-tiles .tile.number {
  background-color: rgb(0, 115, 255);
  color: white;
}

.sumfing-modal-review-tiles .tile.operator {
  background-color: red;
  color: white;
}

.sumfing-modal-review-tiles .tile.special {
  background-color: purple;
  color: white;
}

.sumfing-modal-review-tiles .tile.equals {
  background-color: #cce;
  color: #333;
}

.sumfing-modal-review-row p:last-child {
  font-size: 1.5rem; /* bigger emoji */
  margin-top: 0.5rem;
} 
