body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

#startup-screen {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

select, input[type="range"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="range"] {
    height: 30px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -8px;
}

input[type="range"]::-moz-range-track {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-ms-track {
    width: 100%;
    height: 10px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="range"]::-ms-fill-upper {
    background: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="range"]::-ms-thumb {
    width: 25px;
    height: 25px;
    background: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]:focus {
    outline: none;
}

button {
    padding: 10px 20px;
    margin: 2px 0;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

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

#decorative-box {
    display: flex;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    margin: 20px;
}

#graph-and-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

#score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    border: none;
    background: #f0f0f0;
    box-shadow: none;
    transition: background-color 0.5s ease;
    width: 100px;
}

#score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.box-wrapper {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

#score-container, #buttons-and-turn {
    margin: 0;
}

.score-label {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-bar {
    width: 20px;
    height: 450px;
    background-image: linear-gradient(to bottom, red 0%, red 45%, blue 55%, blue 100%);
    border: 1px solid black;
    transition: background-image 1s ease-in-out;
}

#score {
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 15px;
}

#graph-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
}

#game-canvas {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

canvas {
    display: block;
}

#buttons-and-turn {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 15px;
    margin-right: 15px;
}

#buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 240px;
}

#buttons-container button {
    background: #737474;
}

#player-indicators {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#player1-indicator, #player2-indicator {
    padding: 10px 10px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    margin: 5px 0;
}

#player1-indicator {
    background-color: #FF4136;
}

#player2-indicator {
    background-color: #007BFF;
}

#turn-notification {
    padding: 10px 10px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    margin: 5px 0;
    background-color: #737474;
    margin-bottom: 5px;
}

#node-count-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#node-count-display {
    font-weight: bold;
    font-size: 17px;
}

#node-count {
    font-weight: bold;
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover, .close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}