body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #181a1b;
    margin: 0;
    padding: 0;
}

.puzzle-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.puzzle-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    width: 220px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.puzzle-card h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.puzzle-card p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.9rem;
    font-family: Arial, Helvetica, sans-serif;
}

h4,
h3 {
    font-family: 'arial black', sans-serif;
}

.puzzle-actions {
    display: flex;
    gap: 8px;
}


.puzzle-btn {
    background: #599bb3;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.puzzle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 155, 179, 0.4);
}

.puzzle-btn.secondary {
    background: white;
    color: #599bb3;
    border: 2px solid #599bb3;
}

.puzzle-btn.secondary:hover {
    background: rgba(89, 155, 179, 0.1);
}

.puzzle-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.puzzle-btn:focus {
    outline: 3px solid #2b6cb0;
    outline-offset: 2px;
}


#mainpuzzlehead {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    max-width: 1200px;
    text-align: center;
}

#mainpuzzle {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    max-width: 1200px;
}

.board-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.board-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.controls-panel {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
}

.info-box {
    background: rgba(89, 155, 179, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #599bb3;
    margin-bottom: 15px;
}

.info-box h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.info-box p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    padding: 12px;
    background: #599bb3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #408c99;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: white;
    color: #599bb3;
    border: 2px solid #599bb3;
}

.action-btn.secondary:hover {
    background: rgba(89, 155, 179, 0.1);
}

.board-wrapper {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chessboard {
    display: grid;
    grid-template-columns: repeat(8, 70px);
    grid-template-rows: repeat(8, 70px);
    border: 3px solid #333;
    margin: 0 auto 15px;
}

.square {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    cursor: pointer;
}

.square.white {
    background-color: #f0d9b5;
}

.square.black {
    background-color: #b58863;
}

.coordinates {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9em;
    margin-bottom: 15px;
    width: 100%;
}

.coordinates span {
    width: 70px;
    text-align: center;
}