#answerDiv {
    text-align: center;
    font-size: 1rem;
    min-height: 1.5em;
}

#mainGameWrapper {
    max-width: 900px;
    width: 95%;
    margin-inline: auto;
    margin-top: calc(var(--header-height) + 1rem);
}

#gameGrid {
    display: grid;
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr) minmax(0, 120px);
    align-items: center;
    gap: 1rem;
    min-height: calc(100dvh - var(--header-height) - 5rem);
}







#loginOrSignup{
    display: none;
}









#startknapp {
    font-size: 2rem;
    margin: 1rem;
}

img {
    user-select: none;
}

#tableThing {
    text-align: center;
}

#regnestykket{
    font-size: 3em;
}

#venstrepil,
#hoyrepil {
    background-color: #f0f0f0;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

#venstrepil:hover,
#hoyrepil:hover {
    background-color: #ddd;
}


#venstrepil:disabled,
#hoyrepil:disabled{
    opacity: 0.2;
}

.svarKnapp{
    margin-inline: 0.1em;
}

#titleTen{
    text-align: center;
}


#bilde1, #bilde2 {
    max-width: 120px;
    width: 100%;
    height: auto;
    display: block;
}

#middleWrapper{
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.75rem;
}

#answerBtnDiv{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

#arrowDiv{
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

#progressWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: min(100%, 32rem);
    margin: 0.5rem 0 0;
    padding: 0;
}

.tierTimingOption {
    align-self: flex-end;
    font-size: 0.9rem;
}

#poengscore {
    display: block;
    width: 100%;
    height: 22px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid black;
    border-radius: 11px;
    overflow: hidden;
    background-color: white;
}

#poengscore::-webkit-progress-bar {
    background-color: white;
}

#poengscore::-webkit-progress-value {
    background-color: #2ecc40;
}

#poengscore::-moz-progress-bar {
    background-color: #2ecc40;
}

.error{
    
    animation: shake 0.2s ease-in-out 0s 2;
    outline: 3px solid var(--color);
  
}

@keyframes shake {
    0% { margin-left: 0rem; }
    25% { margin-left: 0.5rem; }
    75% { margin-left: -0.5rem; }
    100% { margin-left: 0rem; }
  }

@media (max-width: 600px) {
    #gameGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
    #bilde1, #bilde2 { grid-row: 1; justify-self: center; max-height: 12rem; object-fit: contain; }
    #bilde1 { grid-column: 1; }
    #bilde2 { grid-column: 2; }
    #middleWrapper { grid-column: 1 / -1; grid-row: 2; }
    #titleTen, #regnestykket { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .error { animation: none; } }

