body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

#logoContainer {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

#siteLogo {
    width: 60px;
    height: auto;
}

#gameContainer {
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

canvas {
    border: 2px solid #333;
    background-color: white;
    width: 1200px;
    height: 900px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#controlPanel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
}

#controlPanel::-webkit-scrollbar {
    width: 6px;
}

#controlPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#controlPanel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#controlPanel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

button {
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin: 2px 0;
}

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

#resetButton {
    background-color: #dc3545;
}

#resetButton:hover {
    background-color: #c82333;
}

#settingsMenu, #crosshairMenu, #dotSizeMenu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

input,
select {
    padding: 6px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 2px 0;
}

label {
    font-weight: bold;
    margin-top: 4px;
    display: block;
    font-size: 13px;
}

h3 {
    margin: 8px 0 6px 0;
    color: #333;
    font-size: 16px;
    padding-bottom: 4px;
    border-bottom: 2px solid #007bff;
}

.dotSizeOption {
    padding: 8px;
    font-size: 13px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.2s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin: 2px 0;
}

.dotSizeOption.active {
    background-color: #0056b3;
    font-weight: bold;
}

.dotSizeOption:hover {
    background-color: #003f7f;
}

#gameStats {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 5px;
    box-sizing: border-box;
}

#gameStats div {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

#gameStats div:last-child {
    border-bottom: none;
}

/* Responsive design for smaller screens */
@media (max-width: 1600px) {
    #gameContainer {
        justify-content: flex-start;
        padding-left: 20px;
    }
}

@media (max-width: 1400px) {
    canvas {
        width: 1100px;
        height: 825px;
    }
    
    #controlPanel {
        height: 825px;
    }
}

@media (max-width: 1300px) {
    canvas {
        width: 1000px;
        height: 750px;
    }
    
    #controlPanel {
        height: 750px;
    }
}

@media (max-width: 1200px) {
    canvas {
        width: 900px;
        height: 675px;
    }
    
    #controlPanel {
        width: 200px;
        height: 675px;
    }
}

@media (max-width: 1100px) {
    #gameContainer {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }
    
    canvas {
        width: 95vw;
        height: calc(95vw * 0.75);
        max-width: 900px;
        max-height: 675px;
    }
    
    #controlPanel {
        width: 95vw;
        max-width: 900px;
        height: auto;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 15px;
    }
    
    #startButton, #resetButton {
        width: calc(50% - 5px);
    }
    
    #settingsMenu, #crosshairMenu, #dotSizeMenu {
        width: calc(33.33% - 10px);
        min-width: 180px;
    }
    
    #gameStats {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    
    #gameStats div {
        border-bottom: none;
        border-right: 1px solid #eee;
        padding: 0 10px;
        flex: 1;
        text-align: center;
    }
    
    #gameStats div:last-child {
        border-right: none;
    }
}

@media (max-width: 768px) {
    #logoContainer {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto 10px;
        text-align: center;
    }
    
    #controlPanel {
        flex-direction: column;
    }
    
    #settingsMenu, #crosshairMenu, #dotSizeMenu {
        width: 100%;
    }
    
    #startButton, #resetButton {
        width: 100%;
    }
    
    #gameStats {
        flex-direction: column;
    }
    
    #gameStats div {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 8px 0;
    }
}