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

#gameContainer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 96%;
    height: 90%;
}

#gameArea {
    position: relative;
    flex: 4;
    height: 100%;
    border: 2px solid #000;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 1%;
}

.controls {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    height: 100%;
    margin-left: 1%;
    padding: 0 10px;
    box-sizing: border-box;
}

#speedControl {
    margin-top: 20px;
    width: 100%;
}

#timerDisplay {
    margin-top: 10px;
    font-size: 24px;
    font-weight: bold;
}

#reactionButton, #startStopButton {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    width: auto;
    min-width: 120px;
}

#startStopButton {
    margin-top: auto;
    margin-bottom: 20px;
}

#reactionTimeDisplay, #scoreDisplay {
    margin-top: 10px;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.game-link {
    margin-top: 10px;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.game-link a {
    text-decoration: none;
    color: #0066cc;
}

.dot {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: blue;
    transition: background-color 0.5s, transform 0.5s;
}

.star-of-david {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 70px solid green;
    transform: rotate(0deg);
}

.star-of-david::before {
    content: '';
    position: absolute;
    top: 21px;
    left: -35px;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 70px solid green;
    transform: rotate(0deg);
}

.star-of-david::after {
    content: '';
    position: absolute;
    top: 0px;
    left: -35px;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 70px solid green;
    transform: rotate(180deg);
}

.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);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    line-height: 1.4;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#settingsForm {
    display: flex;
    flex-direction: column;
}

#settingsForm .setting {
    margin-bottom: 15px;
}

#settingsForm label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

#settingsForm .checkbox-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#settingsForm .checkbox-container label {
    margin-right: 10px;
}

#settingsForm input[type="checkbox"] {
    margin-left: 0;
}

#settingsForm .file-input-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#settingsForm .file-input-container input[type="file"] {
    margin-bottom: 10px;
}

#settingsForm button#clearBackground {
    padding: 2px 10px;
    font-size: 14px;
}

#settingsForm input[type="number"] {
    width: 60px;
    padding: 5px;
}

#settingsForm button[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    align-self: flex-start;
}

#settingsForm h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

/* SUDS Slider Styles */
.suds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 16px 0; /* Slightly reduced margin */
    width: 100%;
}

.suds-slider {
    -webkit-appearance: slider-vertical;
    width: 20px;
    height: 160px; /* Reduced from 200px to 160px (80% of original) */
    margin: 8px 0; /* Slightly reduced margin */
}

.suds-value {
    font-size: 18px;
    font-weight: bold;
}