:root {
    --textfarbe: #EEF0F4;
    --hintergrundfarbe: #140531;
    --helle-hintergrundfarbe: #5b3d98;
    --dunkle-hintergrundfarbe: #11042a;
    --suprise-hintergrundfarbe: #0a2315;
    --width: 320px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: var(--hintergrundfarbe);
    color: var(--textfarbe);
}

h1 {
    color: goldenrod;
}

button:hover {
    cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* #################### Custom #################### */

.container {
  display: flex;
  flex-direction: column;
  max-width: var(--width);
  margin: auto;
  align-items: center;
  border-radius: 10px;
  padding: 2rem;
  gap: 1rem;
}

#message-el {
    font-style: italic;
}

#loader {
  width: 100px;
  height: 100px;
}

.button {
    color: var(--textfarbe);
    background-color: var(--helle-hintergrundfarbe);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.header-elements {
  width: calc(100%); /* Full width of container minus padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.money-display {
  background-color: var(--helle-hintergrundfarbe);
  color: var(--textfarbe);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2em;
  margin: 0;
}

#new-card-button {
    display: none;
}
#evaluate-button {
    display: none;
}

#number-background {
    background: var(--helle-hintergrundfarbe);
    width: 100%;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
}

#history-el {
    width: 300px;
    margin: 10px auto;
}

#money-el {
    width: 300px;
    margin: 10px auto;
}





.info-icon {
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.8em;
    color:  var(--textfarbe); 
}

.hidden-info {
  display: none;
  background-color: var(--textfarbe);
  padding: 10px;
  border-radius: 5px;
  z-index: 100;
  font-style: italic;
  color: var(--hintergrundfarbe);
  text-align: justify;
  /* max-width: var(--width); */
}

#restart-journey {
    display:none;
    color:black;
}

#appear-later {
    display:none;
}

#cardholder {
    display:grid;
    grid-template-columns: repeat(4,80px);
    grid-template-rows: repeat(3, 116px);
    margin: 20px auto;
    width:320px;
}

.cell {
    border: 1px solid black;
    background-size: contain;
  }

@media (min-width:769px) {
    #cardholder {
        grid-template-columns: repeat(2,160px);
        grid-template-rows: repeat(3, 232px);
        width:320px;
    }
}

#surprise-message {
    color:var(--textfarbe);
    text-align: center;
    margin: 5px 0;
}