/* Custom styles to complement Tailwind CSS */
body {
    font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background-color: #000000;
    color: #ffffff;
}

.header {
    padding: 1rem;
}

.menu-container {
    padding-left: 1rem;
}

.welcome-title, .setup-title, .shutdown-title, .help-title, .debug-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.shuffleboard-game h4, #other h4 {
    margin-left: 1.25rem; /* Equivalent to 20px */
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #4b5563; /* Tailwind gray-500 */
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #374151; /* Tailwind gray-700 */
    font-weight: bold;
}

.error-message {
    color: #ff4444; /* Red for errors */
    text-align: center;
    padding: 0.625rem;
}

h2 {
    color: #90ee90; /* Light green from original styles */
    font-weight: bold;
}

h3 {
    color: #add8e6; /* Light blue from original styles */
    font-weight: bold;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.game-form-container {
    transition: opacity 0.3s ease;
}

.start-game-btn {
    width: fit-content;
}

.toggle-checkbox {
    appearance: none;
    width: 1.5rem;
    height: 0.75rem;
    background-color: #4b5563; /* gray-500 */
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.toggle-checkbox:checked {
    background-color: #10b981; /* green-500 */
}

.toggle-checkbox:before {
    content: '';
    position: absolute;
    width: 0.625rem;
    height: 0.625rem;
    background-color: white;
    border-radius: 50%;
    top: 0.0625rem;
    left: 0.0625rem;
    transition: transform 0.2s ease;
}

.toggle-checkbox:checked:before {
    transform: translateX(0.75rem);
}

@media (max-width: 640px) {
    .menu-container {
        padding-left: 0.5rem;
    }

    .header {
        padding: 0.5rem;
    }

    .welcome-title, .setup-title, .shutdown-title, .help-title, .debug-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .shuffleboard-game h4, #other h4 {
        margin-left: 0.75rem;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.875rem; /* Smaller text on mobile */
    }

    th, td {
        padding: 0.25rem;
    }

    .game-form-container {
        padding: 1rem;
    }

    .start-game-btn {
        width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}