body {
    font-family: 'Arial', sans-serif;
    background-image: url('img/the-1865639_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #e3350d;
}

#game-board {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.player-area, .computer-area {
    text-align: center;
}

.card-placeholder {
    width: 240px;
    height: 340px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.card {
    width: 240px;
    height: 340px;
    background-color: #fffde0;
    border: 8px solid #ffcb05;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

.card .name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0;
}

.card .hp {
    align-self: flex-end;
    font-weight: bold;
    color: #e3350d;
}

.card .image-container {
    width: 100%;
    height: 150px;
    background-color: #eee;
    border: 2px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}

.card img {
    max-width: 100%;
    max-height: 100%;
}

.card .attacks {
    font-size: 0.9em;
    margin-top: 10px;
    width: 100%;
}

.card .attack {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

#controls {
    margin-bottom: 20px;
}

#draw-button {
    padding: 10px 20px;
    font-size: 1.2em;
    color: white;
    background-color: #3b4cca;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#draw-button:hover {
    background-color: #2a37a8;
}

.result-box {
    font-size: 1.5em;
    font-weight: bold;
    padding: 15px;
    border-radius: 5px;
    min-width: 300px;
    text-align: center;
}

.win {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lose {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tie {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}
