/* Chess Board Styles - Converted from HTML template */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.chess-board-main {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
width: 100%;
}
.container {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
max-width: 600px;
width: 100%;
}
h2 {
text-align: center;
color: #333;
margin: 0 0 20px 0;
font-size: 1.8rem;
}
/* Controls */
.controls {
display: flex;
gap: 10px;
margin-bottom: 15px;
flex-wrap: wrap;
justify-content: center;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: 5px;
background: #667eea;
color: white;
cursor: pointer;
font-size: 14px;
transition: background 0.3s;
font-family: Arial, sans-serif;
}
.btn:hover {
background: #5568d3;
}
.btn:active {
background: #4558c3;
}
.color-scheme {
padding: 8px 12px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
background: white;
color: #333;
}
/* FEN Input */
.fen-input {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 2px solid #ddd;
border-radius: 5px;
font-family: monospace;
font-size: 14px;
color: #333;
}
.fen-input:focus {
outline: none;
border-color: #667eea;
}
/* Board Wrapper */
.board-wrapper {
display: flex;
justify-content: center;
margin-bottom: 20px;
padding: 10px;
}
/* react-chessboard uses its own styling, we just need container styles */
/* Info */
.info {
margin-top: 20px;
text-align: center;
color: #333;
font-size: 14px;
line-height: 1.6;
}
.info strong {
color: #667eea;
}
/* Loading States */
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
gap: 20px;
color: white;
}
.spinner {
width: 50px;
height: 50px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Error States */
.error-container {
background: white;
border: 2px solid #ff4a4a;
border-radius: 15px;
padding: 30px;
margin: 40px auto;
max-width: 600px;
text-align: center;
box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.error-container strong {
color: #ff4a4a;
font-size: 1.5rem;
display: block;
margin-bottom: 15px;
}
.error-details {
color: #666;
margin-top: 15px;
font-size: 0.95rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.container {
padding: 20px;
margin: 10px;
}
h2 {
font-size: 1.5rem;
}
.controls {
flex-direction: column;
}
.btn,
.color-scheme {
width: 100%;
}
.board-wrapper {
padding: 5px;
}
}
@media (max-width: 480px) {
.container {
padding: 15px;
}
h2 {
font-size: 1.3rem;
}
}