body {
    font-family: 'Inter', sans-serif;
    font-weight: bold; /* Bold */
    text-align: center;
    margin: 20px;
    background-color: #F0EAD6; /* Meget lys beige/grå */
}

table {
    margin: 20px auto;
    border-collapse: collapse;
    border: 10px solid #F0EAD6; /* Samme farve som baggrunden */
    width: 80vw; /* Adjust table width based on viewport width */
    height: 80vh; /* Adjust table height based on viewport height */
}

td {
    width: 20%; /* Adjust cell width based on table width */
    height: 20%; /* Adjust cell height based on table height */
    border: 10px solid #F0EAD6; /* Samme farve som baggrunden */
    text-align: center;
    vertical-align: middle;
    font-size: 18px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
    background-color: #D2B48C; /* Mørk beige farve */
    border-radius: 7px; /* Afrundede hjørner på 7px */
    font-weight: bold; /* Bold */
}

td.flipped {
    transform: rotateY(180deg);
}

td .front, td .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 7px; /* Afrundede hjørner på 7px */
}

td .back {
    transform: rotateY(180deg);
}

button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #6B8E23; /* Støvet mørk grøn */
    color: white;
    border: none;
    border-radius: 7px;
    font-weight: bold; /* Bold */
}

.timer-container {
    display: inline-flex;
    align-items: center;
    margin: 10px;
}

#timer-input {
    width: 60px;
    padding: 10px;
    margin-right: 5px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #6B8E23;
    border-radius: 7px;
    font-weight: bold;
}

.red {
    background-color: #8B0000; /* Mere dyb rød */
    color: white;
}

.blue {
    background-color: #1B3A4B; /* Mere dyb, mørkere og støvet blå */
    color: white;
}

.gray {
    background-color: black; /* Sort */
    color: white;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
    background-size: 20px 20px; /* Adjust the size of the stripes */
}

.win-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.win-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: pulse-scale 1s infinite;
}

@keyframes pulse-scale {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}
