body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding-top: 20px; /* Lite extra utrymme överst */
}

/* UPPDATERAD REGEL: Styling för logotypen */
#page-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 0; /* NYTT: Förhindrar en blå ram runt den länkade bilden */
}

h1 {
    margin-bottom: 20px;
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #ffffff;
    border-radius: 10px;
}

#game-setup, #game-info {
    margin-bottom: 20px;
}

#difficulty-selection {
    margin-top: 15px;
}

#board-container {
    width: 90vw;
    height: 80vh;
    overflow: scroll;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    position: relative;
}

#board {
    position: relative;
    width: 2000px;
    height: 2000px;
    background-image:
        linear-gradient(black 1px, transparent 1px),
        linear-gradient(90deg, black 1px, transparent 1px);
    background-size: 40px 40px;
}

.cell {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.black {
    background-color: black;
}

.white {
    background-color: white;
    border: 1px solid #000;
}

#winner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #000;
    color: #000000;
}

#winner-message {
    font-size: 1.5em;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 5px;
    background-color: #fff;
    color: #000;
    margin: 5px;
}

button:hover {
    background-color: #f0f0f0;
}

.hidden {
    display: none !important;
}